sudo tail -f /var/log/php-fpm.log [30-Mar-2021 16:30:35] NOTICE: fpm is running, pid 1988 [30-Mar-2021 16:30:35] NOTICE: ready to handle connections [30-Mar-2021 16:30:35] WARNING: failed to notify start to systemd [30-Mar-2021 16:30:35] NOTICE: systemd monitor interval set to 10000ms [30-Mar-2021 16:30:45] NOTICE: failed to notify status to systemd [30-Mar-2021 16:30:55] NOTICE: failed to notify status to systemd [30-Mar-2021 16:31:05] NOTICE: failed to notify status to systemd [30-Mar-2021 16:31:15] NOTICE: failed to notify status to systemd [30-Mar-2021 16:31:25] NOTICE: failed to notify status to systemd [30-Mar-2021 16:31:35] NOTICE: failed to notify status to systemd [30-Mar-2021 16:31:45] NOTICE: failed to notify status to systemd [30-Mar-2021 16:31:55] NOTICE: failed to notify status to systemd [30-Mar-2021 16:32:05] NOTICE: failed to notify status to systemd [30-Mar-2021 16:32:06] NOTICE: Terminating ... [30-Mar-2021 16:32:06] NOTICE: exiting, bye-bye! [30-Mar-2021 16:48:55] NOTICE: fpm is running, pid 3182 [30-Mar-2021 16:48:55] NOTICE: ready to handle connections [30-Mar-2021 16:48:55] WARNING: failed to notify start to systemd [30-Mar-2021 16:48:55] NOTICE: systemd monitor interval set to 10000ms [30-Mar-2021 16:49:05] NOTICE: failed to notify status to systemd [30-Mar-2021 16:49:15] NOTICE: failed to notify status to systemd [30-Mar-2021 16:49:25] NOTICE: failed to notify status to systemd sudo systemctl status php-fpm.service ● php-fpm.service - The PHP FastCGI Process Manager Loaded: loaded (/etc/systemd/system/php-fpm.service; disabled; vendor preset: enabled) Active: activating (start) since Tue 2021-03-30 17:02:32 CEST; 15s ago Main PID: 3887 (php-fpm) Tasks: 3 (limit: 9335) Memory: 9.5M CPU: 51ms CGroup: /system.slice/php-fpm.service ├─3887 php-fpm: master process (/etc/php/php-fpm.conf) ├─3888 php-fpm: pool www └─3889 php-fpm: pool www : Cannot find module (IPV6-MIB): At line 0 in (none) : Cannot find module (IPV6-TCP-MIB): At line 0 in (none) : Cannot find module (IPV6-UDP-MIB): At line 0 in (none) : Cannot find module (IP-FORWARD-MIB): At line 0 in (none) : Cannot find module (NET-SNMP-PASS-MIB): At line 0 in (none) : Cannot find module (NET-SNMP-EXTEND-MIB): At line 0 in (none) : Cannot find module (UCD-DLMOD-MIB): At line 0 in (none) : Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none) : Cannot find module (SNMPv2-TM): At line 0 in (none) : Cannot find module (NET-SNMP-VACM-MIB): At line 0 in (none) ################################ ## then comes the failure message ## ################################ : php-fpm.service: start operation timed out. Terminating. : php-fpm.service: Failed with result 'timeout'. : Failed to start The PHP FastCGI Process Manager. php --version PHP 7.3.26 (cli) (built: Jan 13 2021 22:40:26) ( NTS )
Description
Details
Event Timeline
It seems apparmor is the problem.
Adding this line to /etc/apparmor.d/php-fpm resolves it for me.
/run/systemd/notify w,
I looked how ubuntu solves it. They don't ship /etc/apparmor.d/php-fpm. Removing the file would also solve it.
Edit: A better workaround for now seems to be this:
sudo aa-disable php-fpm
@kaktuspalme Mind submitting a patch that removes the file? I agree that makes the most sense for our environment.
Edit: A better workaround for now seems to be this:
sudo aa-disable php-fpm
Hi @kaktuspalme.
I tried that workaround you mentioned, but i still got the errors preventing php-fpm.service to launch properly :
Cannot find module (SNMP-NOTIFICATION-MIB) Cannot find module (NET-SNMP-PASS-MIB) ...
I saw that @fdubuy posted the same question here.
Has anyone more tips to solve this ?
Thx,
@placido Do you still have these messages? Because I don't have them maybe it's solved by another update.
Yeah, i still have thoses with my system up-to-date.
[~]: sudo aa-disable php-fpm Disabling /usr/sbin/php-fpm. [~]: sudo systemctl status php-fpm.service ● php-fpm.service - The PHP FastCGI Process Manager Loaded: loaded (/etc/systemd/system/php-fpm.service; enabled; vendor preset: enabled) Active: activating (start) since Sun 2021-05-23 10:28:51 CEST; 1min 38s ago Main PID: 3924 (php-fpm) Tasks: 3 (limit: 9332) Memory: 10.3M CPU: 58ms CGroup: /system.slice/php-fpm.service ├─3924 php-fpm: master process (/etc/php/php-fpm.conf) ├─4010 php-fpm: pool www └─4011 php-fpm: pool www mai 23 10:28:51 y540 php-fpm[3924]: Cannot find module (IPV6-MIB): At line 0 in (none) mai 23 10:28:51 y540 php-fpm[3924]: Cannot find module (IPV6-TCP-MIB): At line 0 in (none) mai 23 10:28:51 y540 php-fpm[3924]: Cannot find module (IPV6-UDP-MIB): At line 0 in (none) mai 23 10:28:51 y540 php-fpm[3924]: Cannot find module (IP-FORWARD-MIB): At line 0 in (none) mai 23 10:28:51 y540 php-fpm[3924]: Cannot find module (NET-SNMP-PASS-MIB): At line 0 in (none) mai 23 10:28:51 y540 php-fpm[3924]: Cannot find module (NET-SNMP-EXTEND-MIB): At line 0 in (none) mai 23 10:28:51 y540 php-fpm[3924]: Cannot find module (UCD-DLMOD-MIB): At line 0 in (none) mai 23 10:28:51 y540 php-fpm[3924]: Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none) mai 23 10:28:51 y540 php-fpm[3924]: Cannot find module (SNMPv2-TM): At line 0 in (none) mai 23 10:28:51 y540 php-fpm[3924]: Cannot find module (NET-SNMP-VACM-MIB): At line 0 in (none)