PHP-FPM startup failed with error: at step NAMESPACE spawning

Created:

2017-02-22 19:52:25 UTC

Modified:

2017-08-08 13:45:21 UTC

0

Was this article helpful?


Have more questions?

Submit a request

PHP-FPM startup failed with error: at step NAMESPACE spawning

Applicable to:

  • Plesk for Linux

Symptoms

Plesk PHP-FPM service in LXC container failed to start

systemd[10968]: Failed at step NAMESPACE spawning /opt/plesk/php/7.0/sbin/php-fpm: Permission denied `/var/log/syslog`

and /var/log/dmesg have entries like:

[254385.493147] audit: type=1400 audit(1487789756.722:469): apparmor="DENIED" operation="mount" info="failed flags match" error=-13 profile="lxc-container-default-cgns" name="/" pid=6478 comm="(php-fpm)" flags="rw, rslave

Cause

AppArmor policies on LXC host server side.

Resolution

Adjust AppArmor policies on LXC host server side - How to enable bind mount inside lxc container

Or:

Set create overriding configuration file for the service unit and set PrivateTmp to false

# cat /etc/systemd/system/plesk-php56-fpm.service.d/override.conf
[Service]
PrivateTmp=false
Have more questions? Submit a request
Please sign in to leave a comment.