[gelöst] [buster] lighttpd mit php-fpm: ERROR: Another FPM instance seems to already listen on /run/php/php7.3-fpm.sock

Debian macht sich hervorragend als Web- und Mailserver. Schau auch in den " Tipps und Tricks"-Bereich.
Antworten
floogy
Beiträge: 125
Registriert: 19.04.2006 22:43:15

[gelöst] [buster] lighttpd mit php-fpm: ERROR: Another FPM instance seems to already listen on /run/php/php7.3-fpm.sock

Beitrag von floogy » 11.06.2020 16:51:21

Hallo, ich habe einen alten virtuozzo vserver auf eine lokale virtualbox-instanz übertragen und das jessie system i386 auf buster amd64 aktualisiert.
lighttpd/1.4.53. Ich habe Probleme mit PHP-Fpm. Ich erhalte 500 und 503 http Server Fehler.

Code: Alles auswählen

 ERROR: Another FPM instance seems to already listen on /run/php/php7.3-fpm.sock
 ERROR: FPM initialization failed
Ich habe die fastcgi-Serverkonfiguration in lighttpd.conf # "socket" => "/var/run/lighttpd/php7.3-fpm.sock" auskommentiert.
/etc/php/7.3/fpm/pool.d/www.conf:36:listen = /run/php/php7.3-fpm.sock

Code: Alles auswählen

pv10:~floogy# service lighttpd restart
pv10:~floogy# service lighttpd status
* lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2020-06-11 02:46:50 CEST; 1s ago
  Process: 23151 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
 Main PID: 23156 (lighttpd)
    Tasks: 5 (limit: 2359)
   Memory: 16.9M
   CGroup: /system.slice/lighttpd.service
           |-23156 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
           |-23174 php-fpm: master process (/etc/php/7.3/fpm/php-fpm.conf)
           |-23175 php-fpm: pool www
           |-23176 php-fpm: pool www
           `-23185 /usr/sbin/php-fpm7.3
pv10:~floogy# ls /run/php/php7.3-fpm.
php7.3-fpm.pid   php7.3-fpm.sock
pv10:~floogy# ls -l /run/php/php7.3-fpm.sock
                 srw-rw---- 1 www-data www-data 0 Jun 11 02:46 /run/php/php7.3-fpm.sock
pv10:~floogy# fuser /run/php/php7.3-fpm.sock
                 /run/php/php7.3-fpm.sock: 23174 23175 23176
pv10:~floogy# ps axuf | egrep '23174|23175|23176'
root       663  0.0  0.1   7352  2132 pts/0    S+   05:42   0:00                      \_ grep -E 23174|23175|23176
www-data 23174  0.0  0.4 217476  8628 ?        Ss   02:46   0:00 php-fpm: master process (/etc/php/7.3/fpm/php-fpm.conf)
www-data 23175  0.0  0.3 217476  6828 ?        S    02:46   0:00  \_ php-fpm: pool www
www-data 23176  0.0  0.3 217476  6828 ?        S    02:46   0:00  \_ php-fpm: pool www
pv10:~floogy# service lighttpd status
* lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2020-06-11 02:46:50 CEST; 2h 56min ago
  Process: 23151 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
 Main PID: 23156 (lighttpd)
    Tasks: 4 (limit: 2359)
   Memory: 30.5M
   CGroup: /system.slice/lighttpd.service
           |-23156 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
           |-23174 php-fpm: master process (/etc/php/7.3/fpm/php-fpm.conf)
           |-23175 php-fpm: pool www
           `-23176 php-fpm: pool www

Jun 11 05:43:22 pv10.floogy.selfhost.eu lighttpd[23156]: [11-Jun-2020 05:43:22] ERROR: Another FPM instance seems to already listen on /run/php/php7.3-fpm.sock
Jun 11 05:43:22 pv10.floogy.selfhost.eu lighttpd[23156]: [11-Jun-2020 05:43:22] ERROR: FPM initialization failed
Jun 11 05:43:24 pv10.floogy.selfhost.eu lighttpd[23156]: [11-Jun-2020 05:43:24] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
Jun 11 05:43:24 pv10.floogy.selfhost.eu lighttpd[23156]: [11-Jun-2020 05:43:24] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
Jun 11 05:43:24 pv10.floogy.selfhost.eu lighttpd[23156]: [11-Jun-2020 05:43:24] ERROR: Another FPM instance seems to already listen on /run/php/php7.3-fpm.sock
Jun 11 05:43:24 pv10.floogy.selfhost.eu lighttpd[23156]: [11-Jun-2020 05:43:24] ERROR: FPM initialization failed
Jun 11 05:43:24 pv10.floogy.selfhost.eu lighttpd[23156]: [11-Jun-2020 05:43:24] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
Jun 11 05:43:24 pv10.floogy.selfhost.eu lighttpd[23156]: [11-Jun-2020 05:43:24] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
Jun 11 05:43:24 pv10.floogy.selfhost.eu lighttpd[23156]: [11-Jun-2020 05:43:24] ERROR: Another FPM instance seems to already listen on /run/php/php7.3-fpm.sock
Jun 11 05:43:24 pv10.floogy.selfhost.eu lighttpd[23156]: [11-Jun-2020 05:43:24] ERROR: FPM initialization failed
pv10:~floogy# rgrep -n php7.3-fpm /etc
/etc/php/7.3/fpm/pool.d/www.conf:36:listen = /run/php/php7.3-fpm.sock
/etc/php/7.3/fpm/php-fpm.conf:17:pid = /run/php/php7.3-fpm.pid
/etc/php/7.3/fpm/php-fpm.conf:24:error_log = /var/log/php7.3-fpm.log
[...]
/etc/init.d/php7.3-fpm:3:# Provides:          php7.3-fpm
/etc/init.d/php7.3-fpm:8:# Short-Description: starts php7.3-fpm
/etc/init.d/php7.3-fpm:21:PIDFILE=${CONF_PIDFILE:-/run/php/php7.3-fpm.pid}
/etc/init.d/php7.3-fpm:101:    TMPFILES=/usr/lib/tmpfiles.d/php7.3-fpm.conf
/etc/init/php7.3-fpm.conf:1:# php7.3-fpm - The PHP FastCGI Process Manager
config

Code: Alles auswählen

pv10:~floogy# egrep -v '^;|^ *$'  /etc/php/7.3/fpm/php.ini | grep cgi
cgi.fix_pathinfo=1

pv10:~floogy# egrep -v '^;|^ *$'  /etc/php/7.3/fpm/pool.d/www.conf
[www]
user = www-data
group = www-data
listen = /run/php/php7.3-fpm.sock
listen.owner = www-data
listen.group = www-data
pm = dynamic
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3

pv10:~floogy# egrep -v '^;|^ *$' /etc/php/7.3/fpm/php-fpm.conf
[global]
pid = /run/php/php7.3-fpm.pid
error_log = /var/log/php7.3-fpm.log
include=/etc/php/7.3/fpm/pool.d/*.conf

pv10:~floogy# egrep -v '#|^ *$' /etc/lighttpd/lighttpd.conf
server.modules              = (
"mod_access",
"mod_alias",
"mod_accesslog",
"mod_compress",
"mod_rewrite",
"mod_redirect",
"mod_evhost",
"mod_webdav",
"mod_auth",
"mod_simple_vhost",
"mod_status",
"mod_flv_streaming",
)
server.document-root       = "/var/www/"
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
server.errorlog            = "/var/log/lighttpd/error.log"
index-file.names           = ( "index.php", "index.html",
                               "index.htm", "default.htm",
                               "index.lighttpd.html" )
 mimetype.use-xattr = "enable"
accesslog.filename         = "/var/log/lighttpd/access.log"
url.access-deny            = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
include_shell "/usr/share/lighttpd/use-ipv6.pl"
server.pid-file            = "/var/run/lighttpd.pid"
dir-listing.encoding        = "utf-8"
server.dir-listing          = "disable"
server.username            = "www-data"
server.groupname           = "www-data"
compress.cache-dir          = "/var/cache/lighttpd/compress/"
compress.filetype           = ("text/plain", "text/html", "application/x-javascript", "text/css")
include_shell "/usr/share/lighttpd/create-mime.conf.pl"
include "/etc/lighttpd/conf-enabled/*.conf"
$HTTP["remoteip"] =~ "127.0.0.1" {
        alias.url += (
                "/doc/" => "/usr/share/doc/",
                "/images/" => "/usr/share/images/"
        )
        $HTTP["url"] =~ "^/doc/|^/images/" {
                dir-listing.activate = "enable"
        }
}
  $HTTP["host"] =~ "(^|\.)myserve\.de$" {
    server.document-root = "/var/www/www.myserve.de/www/"
  }
$HTTP["remoteip"] =~ "127.0.0.1" {
  status.status-url = "/server-status"
  status.config-url = "/server-config"
}
$HTTP["host"] !~ "(\.myserve\.de|www\.myserve\.eu$|g2\.myserve\.eu$)$" {
    simple-vhost.server-root         = "/home/www"
    simple-vhost.document-root       = "/www/"
    simple-vhost.default-host        = "www.myserve.de"
}
  $HTTP["url"] =~ "^/subdomains" {
    url.access-deny = ("")
  }
var.servername = "myserve.de"
var.logdir = "/home/floogy/www/logs"
$HTTP["host"] == "www.myserve.de" {
    server.document-root = "/home/www/www.myserve.de/www"
    accesslog.filename = "|/usr/sbin/cronolog " + var.logdir + "/%Y/%m/www." + servername + ".access.log"
}
[...]
Alle Berechtigungen scheinen www-Daten zu haben
top/ps zeigt lighttpd mit www-daten
Es liegt wohl an einer Fehlkonfiguration, weil sich in lighttpd und/oder php-fpm etwas in der Konfiguration von jessie bis zu buster geändert hat.

Ich habe wirklich keine Ahnung, welche zweite Instanz bereits auf /run/php/php7.3-fpm.sock lauscht.
Es gibt nur Thread-Instanzen von php-fpm selbst, die vom fpm-Master geerbt wurden

Code: Alles auswählen

tail /var/log/lighttpd/error.log
2020-06-11 16:57:31: (gw_backend.c.476) unlink /var/run/lighttpd/php7.3-fpm.sock-0 after connect failed: Connection refused
2020-06-11 16:57:31: (gw_backend.c.328) child exited: 70 unix:/var/run/lighttpd/php7.3-fpm.sock-0
 
 ls -ld /var/run/lighttpd/ *
 srwxr-xr-x 1 www-data www-data 0 11. Juni 15:57 /var/run/lighttpd/php.socket
 
 # ps axuf | grep -A4 httpd
root       925  0.0  0.0   7352  1924 pts/0    S+   15:58   0:00                      \_ grep -A4 httpd
root       705  0.0  0.1   7116  3252 tty1     Ss   Jun10   0:00 /bin/login -p --
root      2025  0.0  0.1   8516  3668 tty1     S+   Jun10   0:01  \_ -bash
root       928  0.0  0.6  22484 12760 ?        Ss   Jun10   0:03 /usr/bin/perl -wT /usr/sbin/munin-node
root      1990  0.0  0.4  21260  8968 ?        Ss   Jun10   0:00 /lib/systemd/systemd --user
--
www-data 23156  0.0  0.3  48916  8060 ?        Ss   02:46   0:28 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
www-data 23174  0.0  0.4 217476  8576 ?        Ss   02:46   0:01 php-fpm: master process (/etc/php/7.3/fpm/php-fpm.conf)
www-data 23175  0.0  0.3 217476  6828 ?        S    02:46   0:00  \_ php-fpm: pool www
www-data 23176  0.0  0.3 217476  6828 ?        S    02:46   0:00  \_ php-fpm: pool www
 
Ich verstehe es nicht

lighttpd/conf-enabled

Code: Alles auswählen

pv10:~floogy# egrep -v '^#|^ *$' /etc/lighttpd/conf-enabled/15-fastcgi-php.conf
fastcgi.server += ( ".php" =>
        ((
        #       "bin-path" => "/usr/bin/php-cgi",
        "bin-path" => "/usr/sbin/php-fpm7.3",
                "socket" => "/var/run/lighttpd/php.socket",
                "max-procs" => 1,
                "bin-environment" => (
                        "PHP_FCGI_CHILDREN" => "4",
                        "PHP_FCGI_MAX_REQUESTS" => "10000"
                ),
                "bin-copy-environment" => (
                        "PATH", "SHELL", "USER"
                ),
                "broken-scriptfilename" => "enable"
        ))
)
pv10:~floogy# egrep -v '^#|^ *$' /etc/lighttpd/conf-enabled/10-fastcgi.conf
server.modules += ( "mod_fastcgi" )
pv10:~floogy# egrep -v '^#|^ *$' /etc/lighttpd/conf-enabled/10-cgi.conf
server.modules += ( "mod_cgi" )
$HTTP["url"] =~ "^/cgi-bin/" {
        cgi.assign = ( "" => "" )
        alias.url += ( "/cgi-bin/" => "/usr/lib/cgi-bin/" )
}

Ich habe "socket" => "/var/run/lighttpd/php.socket" gegen "socket" => "/var/run/lighttpd/php7.3-fpm.sock" /etc/lighttpd/conf-enabled/15-fastcgi-php.conf/15-fastcgi-php.conf ausgetauscht, aber ohne Wirkung.

Ich versuche mich hieran zu orientieren. https://www.howtoforge.de/anleitung/wie ... stalliert/ Die Schwierigkeit besteht wohl in der Migration der alten Konfiguration ... Ich scheine da etwas zu übersehen.
Zuletzt geändert von floogy am 11.06.2020 17:57:26, insgesamt 1-mal geändert.

floogy
Beiträge: 125
Registriert: 19.04.2006 22:43:15

Re: [buster] lighttpd mit php-fpm: ERROR: Another FPM instance seems to already listen on /run/php/php7.3-fpm.sock

Beitrag von floogy » 11.06.2020 17:27:44

Mir ist nun noch folgendes aufgefallen:

Code: Alles auswählen

pv10:~floogy# vi  /etc/php/7.3/fpm/pool.d/www.conf

36:;listen = /run/php/php7.3-fpm.sock
37:listen = 127.0.0.1:9000

Code: Alles auswählen

pv10:~floogy# grep -n listen  /etc/php/7.3/fpm/pool.d/www.conf
10:; - 'listen' (unixsocket)
28:;   'ip.add.re.ss:port'    - to listen on a TCP socket to a specific IPv4 address on
30:;   '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
32:;   'port'                 - to listen on a TCP socket to all addresses
34:;   '/path/to/unix/socket' - to listen on a unix socket.
36:;listen = /run/php/php7.3-fpm.sock
37:listen = 127.0.0.1:9000
39:; Set listen(2) backlog.
41:;listen.backlog = 511
48:listen.owner = www-data
49:listen.group = www-data
50:;listen.mode = 0660
53:; When set, listen.owner and listen.group are ignored
54:;listen.acl_users =
55:;listen.acl_groups =
59:; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
63:;listen.allowed_clients = 127.0.0.1
149:;   listen queue         - the number of request in the queue of pending
150:;                          connections (see backlog in listen(2));
151:;   max listen queue     - the maximum number of requests in the queue
153:;   listen queue len     - the size of the socket queue of pending connections;
169:;   listen queue:         0
170:;   max listen queue:     1
171:;   listen queue len:     42

Code: Alles auswählen

pv10:~floogy# php-fpm7.3 -t
[11-Jun-2020 17:16:48] NOTICE: configuration file /etc/php/7.3/fpm/php-fpm.conf test is successful
Standardmäßig zeigt PHP auf den UNIX-Socket /var/run/php/php/php7.3-fpm.sock. Sie müssen also den PHP-FPM-Pool so konfigurieren, dass PHP Listens auf TCP-Socket setzt.

Sie können dies tun, indem Sie die Datei /etc/php/7.3/fpm/pool.d/wwww.conf bearbeiten:

Code: Alles auswählen

nano /etc/php/7.3/fpm/pool.d/www.conf
Suchen Sie die folgende Zeile:

Code: Alles auswählen

listen = /run/php/php7.3-fpm.sock
Und ersetzen Sie es durch die folgende Zeile:

Code: Alles auswählen

listen = 127.0.0.1:9000
Speichern und schließen Sie die Datei, wenn Sie fertig sind. Starten Sie dann den PHP-FPM-Dienst neu, um die Konfigurationsänderungen zu übernehmen:

Code: Alles auswählen

systemctl restart php7.3-fpm
Als nächstes müssen Sie die Datei 15-fastcgi-php.conf ändern:

Code: Alles auswählen

nano /etc/lighttpd/conf-available/15-fastcgi-php.conf
Suchen Sie die folgenden Zeilen:

Code: Alles auswählen

"bin-path" => "/usr/bin/php-cgi",
"socket" => "/var/run/lighttpd/php.socket",
Und ersetzen Sie sie durch Folgendes:

Code: Alles auswählen

"host" => "127.0.0.1",
"port" => "9000",
Speichern und schließen Sie die Datei, wenn Sie fertig sind. Aktivieren Sie dann sowohl FastCGI- als auch FastCHI-PHP-Modul mit den folgenden Befehlen:

Code: Alles auswählen

lighty-enable-mod fastcgi
 lighty-enable-mod fastcgi-php
Starten Sie schließlich den Lighttpd-Dienst neu, um die Änderungen zu übernehmen:

Code: Alles auswählen

systemctl restart lighttpd
Ich musste das nun auch in /etc/lighttpd/conf-available/15-fastcgi-php.conf anpassen.

Allerdings bekomme ich dann

Code: Alles auswählen

[11-Jun-2020 17:25:35] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98)
[11-Jun-2020 17:25:35] ERROR: FPM initialization failed{/code]

floogy
Beiträge: 125
Registriert: 19.04.2006 22:43:15

Re: [buster] lighttpd mit php-fpm: ERROR: Another FPM instance seems to already listen on /run/php/php7.3-fpm.sock

Beitrag von floogy » 11.06.2020 17:30:39

Okay, nach einem weiterem restart läuft es jetzt aber.

Es lag also wohl an der fehlenden Umstellung fon unix sockets auf port 9000(?)

Code: Alles auswählen

pv10:~floogy# lynx --dump http://pv10.foo.selfhost.eu/phpinfo.php | head
   [1]PHP logo

PHP Version 7.3.14-1~deb10u1

   System Linux pv10.foo.selfhost.eu 4.19.0-9-amd64 #1 SMP Debian
   4.19.118-2 (2020-04-29) x86_64
   Build Date Feb 16 2020 15:07:23
   Server API FPM/FastCGI
   Virtual Directory Support disabled
   Configuration File (php.ini) Path /etc/php/7.3/fpm

Code: Alles auswählen

pv10:~floogy# systemctl status php7.3-fpm
* php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager
   Loaded: loaded (/lib/systemd/system/php7.3-fpm.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2020-06-11 17:27:02 CEST; 10min ago
     Docs: man:php-fpm7.3(8)
 Main PID: 19344 (php-fpm7.3)
   Status: "Processes active: 0, idle: 2, Requests: 4, slow: 0, Traffic: 0req/sec"
    Tasks: 3 (limit: 2359)
   Memory: 16.0M
   CGroup: /system.slice/php7.3-fpm.service
           |-19344 php-fpm: master process (/etc/php/7.3/fpm/php-fpm.conf)
           |-19349 php-fpm: pool www
           `-19350 php-fpm: pool www

Jun 11 17:27:02 pv10.gaussling.selfhost.eu systemd[1]: Starting The PHP 7.3 FastCGI Process Manager...
Jun 11 17:27:02 pv10.gaussling.selfhost.eu systemd[1]: Started The PHP 7.3 FastCGI Process Manager.

Code: Alles auswählen

pv10:~floog# ps axuf | egrep 'httpd|php|fpm'
root     22412  0.0  0.0   7352  2016 pts/0    S+   17:35   0:00                      \_ grep -E httpd|php|fpm
www-data 19320  0.0  0.4  48964  9532 ?        Ss   17:26   0:00 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
root     19344  0.0  1.4 221684 28956 ?        Ss   17:27   0:00 php-fpm: master process (/etc/php/7.3/fpm/php-fpm.conf)
www-data 19349  0.0  0.8 221840 17100 ?        S    17:27   0:00  \_ php-fpm: pool www
www-data 19350  0.0  0.9 221840 19228 ?        S    17:27   0:00  \_ php-fpm: pool www

Code: Alles auswählen

pv10:~floogy# systemctl restart php7.3-fpm
Job for php7.3-fpm.service failed because the control process exited with error code.
See "systemctl status php7.3-fpm.service" and "journalctl -xe" for details.
pv10:~floogy# journalctl -xe
Jun 11 17:25:01 pv10.foo.selfhost.eu CRON[17917]: pam_unix(cron:session): session closed for user root
Jun 11 17:25:17 pv10.foo.selfhost.eu sudo[18461]: pam_unix(sudo:auth): conversation failed
Jun 11 17:25:17 pv10.foo.selfhost.eu sudo[18461]: pam_unix(sudo:auth): auth could not identify password for [nobody]
Jun 11 17:25:17 pv10.foo.selfhost.eu sudo[18464]: pam_unix(sudo:auth): conversation failed
Jun 11 17:25:17 pv10.foo.selfhost.eu sudo[18464]: pam_unix(sudo:auth): auth could not identify password for [nobody]
Jun 11 17:25:17 pv10.foo.selfhost.eu sudo[18461]:   nobody : user NOT in sudoers ; TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/cat /proc/user_beancounters
Jun 11 17:25:17 pv10.foo.selfhost.eu sudo[18464]:   nobody : user NOT in sudoers ; TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/cat /proc/user_beancounters
Jun 11 17:25:17 pv10.foo.selfhost.eu sudo[18505]: pam_unix(sudo:auth): conversation failed
Jun 11 17:25:17 pv10.foo.selfhost.eu sudo[18505]: pam_unix(sudo:auth): auth could not identify password for [nobody]
Jun 11 17:25:17 pv10.foo.selfhost.eu sudo[18508]: pam_unix(sudo:auth): conversation failed
Jun 11 17:25:17 pv10.foo.selfhost.eu sudo[18508]: pam_unix(sudo:auth): auth could not identify password for [nobody]
Jun 11 17:25:17 pv10.foo.selfhost.eu sudo[18505]:   nobody : user NOT in sudoers ; TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/cat /proc/user_beancounters
Jun 11 17:25:17 pv10.foo.selfhost.eu sudo[18508]:   nobody : user NOT in sudoers ; TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/cat /proc/user_beancounters
Jun 11 17:25:18 pv10.foo.selfhost.eu sudo[18536]: pam_unix(sudo:auth): conversation failed
Jun 11 17:25:18 pv10.foo.selfhost.eu sudo[18536]: pam_unix(sudo:auth): auth could not identify password for [nobody]
Jun 11 17:25:18 pv10.foo.selfhost.eu sudo[18536]:   nobody : user NOT in sudoers ; TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/cat /proc/user_beancounters
Jun 11 17:25:18 pv10.foo.selfhost.eu sudo[18539]: pam_unix(sudo:auth): conversation failed
Jun 11 17:25:18 pv10.foo.selfhost.eu sudo[18539]: pam_unix(sudo:auth): auth could not identify password for [nobody]
Jun 11 17:25:18 pv10.foo.selfhost.eu sudo[18539]:   nobody : user NOT in sudoers ; TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/cat /proc/user_beancounters
Jun 11 17:25:18 pv10.foo.selfhost.eu sudo[18589]: pam_unix(sudo:auth): conversation failed
Jun 11 17:25:18 pv10.foo.selfhost.eu sudo[18589]: pam_unix(sudo:auth): auth could not identify password for [nobody]
Jun 11 17:25:18 pv10.foo.selfhost.eu sudo[18592]: pam_unix(sudo:auth): conversation failed
Jun 11 17:25:18 pv10.foo.selfhost.eu sudo[18592]: pam_unix(sudo:auth): auth could not identify password for [nobody]
Jun 11 17:25:18 pv10.foo.selfhost.eu sudo[18592]:   nobody : user NOT in sudoers ; TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/cat /proc/user_beancounters
Jun 11 17:25:18 pv10.foo.selfhost.eu sudo[18589]:   nobody : user NOT in sudoers ; TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/cat /proc/user_beancounters
Jun 11 17:25:32 pv10.foo.selfhost.eu CRON[17918]: pam_unix(cron:session): session closed for user munin
Jun 11 17:25:35 pv10.foo.selfhost.eu systemd[1]: Starting The PHP 7.3 FastCGI Process Manager...
-- Subject: A start job for unit php7.3-fpm.service has begun execution
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit php7.3-fpm.service has begun execution.
--
-- The job identifier is 8202.
Jun 11 17:25:35 pv10.foo.selfhost.eu php-fpm7.3[19282]: [11-Jun-2020 17:25:35] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98)
Jun 11 17:25:35 pv10.foo.selfhost.eu php-fpm7.3[19282]: [11-Jun-2020 17:25:35] ERROR: FPM initialization failed
Jun 11 17:25:35 pv10.foo.selfhost.eu systemd[1]: php7.3-fpm.service: New main PID 17909 does not belong to service, and PID file is not owned by root. Refusing.
Jun 11 17:25:35 pv10.foo.selfhost.eu systemd[1]: php7.3-fpm.service: Main process exited, code=exited, status=78/CONFIG
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStart= process belonging to unit php7.3-fpm.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 78.
Jun 11 17:25:35 pv10.foo.selfhost.eu systemd[1]: php7.3-fpm.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit php7.3-fpm.service has entered the 'failed' state with result 'exit-code'.
Jun 11 17:25:35 pv10.foo.selfhost.eu systemd[1]: Failed to start The PHP 7.3 FastCGI Process Manager.
-- Subject: A start job for unit php7.3-fpm.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit php7.3-fpm.service has finished with a failure.
--
-- The job identifier is 8202 and the job result is failed.
pv10:~floogy# tail /var/log/lighttpd/error.log
2020-06-11 17:24:26: (gw_backend.c.328) child exited: 70 unix:/var/run/lighttpd/php7.3-fpm.sock-0
2020-06-11 17:24:27: (gw_backend.c.476) unlink /var/run/lighttpd/php7.3-fpm.sock-0 after connect failed: Connection refused
2020-06-11 17:24:28: (gw_backend.c.328) child exited: 70 unix:/var/run/lighttpd/php7.3-fpm.sock-0
2020-06-11 17:24:28: (gw_backend.c.476) unlink /var/run/lighttpd/php7.3-fpm.sock-0 after connect failed: Connection refused
2020-06-11 17:24:28: (gw_backend.c.328) child exited: 70 unix:/var/run/lighttpd/php7.3-fpm.sock-0
2020-06-11 17:24:29: (gw_backend.c.476) unlink /var/run/lighttpd/php7.3-fpm.sock-0 after connect failed: Connection refused
2020-06-11 17:24:30: (gw_backend.c.328) child exited: 70 unix:/var/run/lighttpd/php7.3-fpm.sock-0
2020-06-11 17:24:30: (gw_backend.c.476) unlink /var/run/lighttpd/php7.3-fpm.sock-0 after connect failed: Connection refused
2020-06-11 17:24:30: (server.c.2059) server stopped by UID = 0 PID = 1
2020-06-11 17:26:00: (server.c.1464) server started (lighttpd/1.4.53)
pv10:~floogy# tail /var/log/php7.3-fpm.log
[11-Jun-2020 17:24:30] ERROR: FPM initialization failed
[11-Jun-2020 17:24:30] NOTICE: Terminating ...
[11-Jun-2020 17:24:30] NOTICE: exiting, bye-bye!
[11-Jun-2020 17:24:30] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
[11-Jun-2020 17:24:30] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
[11-Jun-2020 17:24:30] NOTICE: fpm is running, pid 17909
[11-Jun-2020 17:24:30] NOTICE: ready to handle connections
[11-Jun-2020 17:24:30] NOTICE: systemd monitor interval set to 10000ms
[11-Jun-2020 17:25:35] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98)
[11-Jun-2020 17:25:35] ERROR: FPM initialization failed
pv10:~floogy# service lighttpd restart
pv10:~floogy# service lighttpd status
* lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2020-06-11 17:26:43 CEST; 8s ago
  Process: 19315 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
 Main PID: 19320 (lighttpd)
    Tasks: 1 (limit: 2359)
   Memory: 2.1M
   CGroup: /system.slice/lighttpd.service
           `-19320 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf

Jun 11 17:26:42 pv10.foo.selfhost.eu systemd[1]: Starting Lighttpd Daemon...
Jun 11 17:26:43 pv10.foo.selfhost.eu systemd[1]: Started Lighttpd Daemon.
pv10:~floogy# systemctl restart php7.3-fpm
pv10:~floogy# service lighttpd status
* lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2020-06-11 17:26:43 CEST; 22s ago
  Process: 19315 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
 Main PID: 19320 (lighttpd)
    Tasks: 1 (limit: 2359)
   Memory: 2.1M
   CGroup: /system.slice/lighttpd.service
           `-19320 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf

Jun 11 17:26:42 pv10.foo.selfhost.eu systemd[1]: Starting Lighttpd Daemon...
Jun 11 17:26:43 pv10.foo.selfhost.eu systemd[1]: Started Lighttpd Daemon.
pv10:~floogy#

Antworten