FS#31301 - [systemd] services fail to start when /var/tmp is a symlink
Attached to Project:
Arch Linux
Opened by ajes (ajes) - Monday, 27 August 2012, 09:28 GMT
Last edited by Dave Reisner (falconindy) - Monday, 15 October 2012, 06:32 GMT
Opened by ajes (ajes) - Monday, 27 August 2012, 09:28 GMT
Last edited by Dave Reisner (falconindy) - Monday, 15 October 2012, 06:32 GMT
|
Details
Description:
After switching to systemd, cups do not start. # systemctl status cups.service cups.service - CUPS Printing Service Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled) Active: failed (Result: exit-code) since Mon, 27 Aug 2012 11:16:13 +0200; 4min 16s ago Process: 1455 ExecStart=/usr/sbin/cupsd -f (code=exited, status=226/NAMESPACE) CGroup: name=systemd:/system/cups.service Aug 27 11:16:13 msi systemd[1455]: Failed at step NAMESPACE spawning /usr/sbin/cupsd: Operation not permitted THe same problem is described here: https://lists.fedoraproject.org/pipermail/users/2012-April/416766.html Additional info: * cups 1.6.1-5 * systemd 189-2 Steps to reproduce: Switch to systemd. run: systemctl enable cups.service reboot check: systemctl status cups.service |
This task depends upon
Closed by Dave Reisner (falconindy)
Monday, 15 October 2012, 06:32 GMT
Reason for closing: Won't fix
Additional comments about closing: This isn't a supported configuration.
Monday, 15 October 2012, 06:32 GMT
Reason for closing: Won't fix
Additional comments about closing: This isn't a supported configuration.
What's the filesystem and mode of /tmp?
There was also another task open by another user which was closed as a duplicate of this one, he was reporting what I said in the previous post,a high cpu usage of systemd when cups is enabled.
# systemctl status ntpd.service
ntpd.service - Network Time Service
Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled)
Active: failed (Result: exit-code) since Tue, 04 Sep 2012 08:15:46 +0200; 25min ago
Process: 1129 ExecStart=/usr/bin/ntpd -g -u ntp:ntp (code=exited, status=226/NAMESPACE)
CGroup: name=systemd:/system/ntpd.service
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
drwxrwxrwt 10 root root 280 Sep 4 08:40 /tmp/
drwxrwxrwt 2 root root 4096 Sep 4 08:40 /var/tmp/
Regards
# systemctl status ntpd.service
ntpd.service - Network Time Service
Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled)
Active: active (running) since Tue, 04 Sep 2012 08:44:42 +0200; 3s ago
Process: 725 ExecStart=/usr/bin/ntpd -g -u ntp:ntp (code=exited, status=0/SUCCESS)
Main PID: 727 (ntpd)
CGroup: name=systemd:/system/ntpd.service
└ 727 /usr/bin/ntpd -g -u ntp:ntp
(...)
Artur, how about you, is /var/tmp a symlink on your system? However I do not have any idea why cupsd and ntpd service files should have different results.
So problem is with symlink on /var/tmp.
# ls -dl /var/tmp/
drwxrwxrwt 5 root root 4096 Sep 4 09:23 /var/tmp/
# systemctl status cups.service
cups.service - CUPS Printing Service
Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled)
Active: active (running) since Tue, 04 Sep 2012 09:23:27 +0200; 1min 56s ago
Main PID: 1045 (cupsd)
CGroup: name=systemd:/system/cups.service
└ 1045 /usr/sbin/cupsd -f
Sep 04 09:23:27 msi cupsd[1045]: Unknown directive DefaultAuthType on line 25.
and
# rm -rf /var/tmp && ln -s /tmp /var/tmp
# ls -ld /var/tmp
lrwxrwxrwx 1 root root 4 Sep 4 09:26 /var/tmp -> /tmp
# systemctl start cups.service
# systemctl status cups.service
cups.service - CUPS Printing Service
Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled)
Active: failed (Result: exit-code) since Tue, 04 Sep 2012 09:26:50 +0200; 2s ago
Process: 1080 ExecStart=/usr/sbin/cupsd -f (code=exited, status=226/NAMESPACE)
CGroup: name=systemd:/system/cups.service
FS#30229. I see no reason to support /var/tmp as a symlink.# ls -dl /var/tmp/
drwxrwxrwt 3 root root 143360 4 set 20.51 /var/tmp/
# systemctl start cups.service
# systemctl status cups.service
cups.service - CUPS Printing Service
Loaded: loaded (/usr/lib/systemd/system/cups.service; disabled)
Active: failed (Result: signal) since Tue, 04 Sep 2012 20:54:15 +0200; 8s ago
Process: 13373 ExecStart=/usr/sbin/cupsd -f (code=killed, signal=ABRT)
CGroup: name=systemd:/system/cups.service
zsh: segmentation fault systemctl status cups.service
I think is a slightly different bug as systemd use a lot of cpu.