Bug#919602: apache2: reload via systemd: apache2.service: Failed to set up mount namespacing: No such file or directory
Package: apache2
Version: 2.4.37-1
Severity: normal
During a reload for log rotation, apache was stopped instead of reloaded:
Jän 17 01:00:38 <SERVER> systemd[1]: Starting Rotate log files...
-- Subject: A start job for unit logrotate.service has begun execution
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit logrotate.service has begun execution.
--
-- The job identifier is 25118.
Jän 17 01:00:38 <SERVER> systemd[1]: Reloading The Apache HTTP Server.
-- Subject: A reload job for unit apache2.service has begun execution
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A reload job for unit apache2.service has begun execution.
--
-- The job identifier is 25186.
Jän 17 01:00:38 <SERVER> systemd[12733]: apache2.service: Failed to set up mount namespacing: No such file or directory
Jän 17 01:00:38 <SERVER> systemd[12733]: apache2.service: Failed at step NAMESPACE spawning /usr/sbin/apachectl: No such file or directo
-- Subject: Process /usr/sbin/apachectl could not be executed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The process /usr/sbin/apachectl could not be executed and failed.
--
-- The error number returned by this process is ERRNO.
Jän 17 01:00:38 <SERVER> systemd[1]: apache2.service: Control process exited, code=exited, status=226/NAMESPACE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecReload= process belonging to unit apache2.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 226.
Jän 17 01:00:39 <SERVER> systemd[1]: apache2.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit apache2.service has entered the 'failed' state with result 'exit-code'.
Jän 17 01:00:39 <SERVER> systemd[1]: Reload failed for The Apache HTTP Server.
-- Subject: A reload job for unit apache2.service has finished
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A reload job for unit apache2.service has finished.
--
-- The job identifier is 25186 and the job result is failed.
Jän 17 01:00:39 <SERVER> logrotate[12713]: error: error running shared postrotate script for '/var/log/apache2/*.log '
I'm not sure whether that bug should be sent to cron, logrotate, or
apache2; I chose apache2 because I thought that a reload more or less just
sends a signal to the active process, and so shouldn't cause any stop or
other downtime. (Be it directly or via the systemd integration.)
(OTOH, perhaps this is a systemd bug, in that a failed reload causes
a stop?)
Thanks for any help you can offer.
-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'testing-debug'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8), LANGUAGE=de_AT:de (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
--
Reply to: