[Pkg-systemd-maintainers] Bug#734809: Bug#734809: systemd: systemctl disable/enable => Failed to issue method call: No such file or directory

Marco d'Itri md at Linux.IT
Sun Jan 19 14:04:53 GMT 2014


On Jan 12, Michael Stapelberg <stapelberg at debian.org> wrote:

> Hi Christoph,
> 
> Christoph Anton Mitterer <calestyo at scientia.net> writes:
> > # systemctl enable ssh
> > Synchronizing state for ssh with sysvinit using update-rc.d...
> > Executing /usr/sbin/update-rc.d ssh defaults
> > insserv: warning: current start runlevel(s) (empty) of script `ssh' overrides LSB defaults (2 3 4 5).
> > insserv: warning: current stop runlevel(s) (2 3 4 5) of script `ssh' overrides LSB defaults (empty).
> > Executing /usr/sbin/update-rc.d ssh enable
> > Failed to issue method call: No such file or directory
> >
> > # systemctl disable ssh
> > Synchronizing state for ssh with sysvinit using update-rc.d...
> > Executing /usr/sbin/update-rc.d ssh defaults
> > Executing /usr/sbin/update-rc.d ssh disable
> > insserv: warning: current start runlevel(s) (empty) of script `ssh' overrides LSB defaults (2 3 4 5).
> > insserv: warning: current stop runlevel(s) (2 3 4 5) of script `ssh' overrides LSB defaults (empty).
> > Failed to issue method call: No such file or directory
> >
> >
> > There is always that "Failed to issue method call: No such file or directory" error.
> Not on my machine:
> 
> root at midna ~ $ systemctl enable ssh
> Synchronizing state for ssh with sysvinit using update-rc.d...
> Executing /usr/sbin/update-rc.d ssh enable
> root at midna ~ $ systemctl disable ssh
> Synchronizing state for ssh with sysvinit using update-rc.d...
> Executing /usr/sbin/update-rc.d ssh disable
> insserv: warning: current start runlevel(s) (empty) of script `ssh' overrides LSB defaults (2 3 4 5).
> insserv: warning: current stop runlevel(s) (2 3 4 5) of script `ssh' overrides LSB defaults (empty).
> root at midna ~ $ systemctl enable ssh 
> Synchronizing state for ssh with sysvinit using update-rc.d...
> Executing /usr/sbin/update-rc.d ssh enable

> Can you run strace -f -o /tmp/strace.log -s 2048 systemctl enable ssh
> and provide /tmp/strace.log? Also, please run strace -f -o
> /tmp/strace-systemd.log -s 2048 -p 1 before that and provide that file
> as well.
I can reproduce it with "systemctl disable isc-dhcp-server.service":

[...]
lstat64("/run/systemd/system/", {st_dev=makedev(0, 15), st_ino=5274, st_mode=S_IFDIR|0755, st_nlink=2, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=0, st_size=40, st_atime=2014/01/19-02:08:18, st_mtime=2014/01/19-02:08:18, st_ctime=2014/01/19-02:08:18}) = 0
sendmsg(3, {msg_name(0)=NULL, msg_iov(2)=[{"l\1\0\1$\0\0\0\1\0\0\0\251\0\0\0\1\1o\0\31\0\0\0/org/freedesktop/systemd1\0\0\0\0\0\0\0\6\1s\0\30\0\0\0org.freedesktop.systemd1\0\0\0\0\0\0\0\0\2\1s\0 \0\0\0org.freedesktop.systemd1.Manager\0\0\0\0\0\0\0\0\3\1s\0\20\0\0\0DisableUnitFiles\0\0\0\0\0\0\0\0\10\1g\0\3asb\0\0\0\0\0\0\0\0", 192}, {"\34\0\0\0\27\0\0\0isc-dhcp-server.service\0\0\0\0\0", 36}], msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 228
clock_gettime(CLOCK_MONOTONIC, {24590, 163686570}) = 0
poll([{fd=3, events=POLLIN}], 1, 25000) = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"l\4\1\1\0\0\0\0\1\0\0\0q\0\0\0\1\1o\0\31\0\0\0/org/freedesktop/systemd1\0\0\0\0\0\0\0\2\1s\0 \0\0\0org.freedesktop.systemd1.Manager\0\0\0\0\0\0\0\0\3\1s\0\20\0\0\0UnitFilesChanged\0\0\0\0\0\0\0\0l\4\1\1\0\0\0\0\1\0\0\0q\0\0\0\1\1o\0\31\0\0\0/org/freedesktop/systemd1\0\0\0\0\0\0\0\2\1s\0 \0\0\0org.freedesktop.systemd1.Manager\0\0\0\0\0\0\0\0\3\1s\0\20\0\0\0UnitFilesChanged\0\0\0\0\0\0\0\0l\3\1\1\36\0\0\0\2\0\0\0?\0\0\0\4\1s\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temporarily unavailable)
writev(2, [{"Failed to issue method call: No such file or directory", 54}, {"\n", 1}], 2) = 55
close(3)                                = 0
exit_group(1)                           = ?

-- 
ciao,
Marco
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 648 bytes
Desc: Digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20140119/5f853694/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list