Bug#757213: systemd becomes non-responsive, connection refused to /run/systemd/private

Iain M Conochie iain at shihad.org
Sat Sep 6 14:33:42 BST 2014


Hey,

   I have the same situation. Seems like systemd froze 3 days ago. What 
got me to notice was an attempted apt-get upgrade on this jessie system:

sudo ls /proc/1/fd
[sudo] password for iain:
0  1  2
14:28:24 weezer:~$ sudo ls -l /proc/1/fd
total 0
lrwx------ 1 root root 64 Aug 30 15:25 0 -> /dev/null
lrwx------ 1 root root 64 Aug 30 15:25 1 -> /dev/null
lrwx------ 1 root root 64 Aug 30 15:25 2 -> /dev/null
14:28:35 weezer:~$ sudo fuser /run/systemd/private
14:30:17 weezer:~$ sudo systemctl status nscd
Failed to get D-Bus connection: Failed to connect to socket 
/run/systemd/private: Connection refused

Excerpt from /var/log/syslog

Sep  3 23:40:07 weezer systemd[1]: Starting CUPS Printing Service...
Sep  3 23:40:07 weezer systemd[1]: Started CUPS Printing Service.
Sep  3 23:40:07 weezer systemd[1]: Assertion 'close_nointr(fd) == 0' 
failed at .
./src/shared/util.c:188, function safe_close(). Aborting.
Sep  3 23:40:07 weezer systemd[1]: Caught <ABRT>, waitpid() failed: No 
child pro
cesses
Sep  3 23:40:07 weezer systemd[1]: Freezing execution.

sudo apt-get upgrade -y
[sudo] password for iain:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... The following package was automatically installed 
and is no longer required:
   libxen-4.3
Use 'apt-get autoremove' to remove it.
Done
The following packages have been kept back:
   gnome-control-center gnome-settings-daemon gstreamer1.0-libav 
libasound2-plugins libcgi-pm-perl libchromaprint0 libgegl-0.2-0
   libopencv-calib3d2.4 libopencv-contrib2.4 libopencv-core2.4 
libopencv-features2d2.4 libopencv-flann2.4 libopencv-highgui2.4
   libopencv-imgproc2.4 libopencv-legacy2.4 libopencv-ml2.4 
libopencv-objdetect2.4 libopencv-video2.4 upower
   xfce4-systemload-plugin
The following packages will be upgraded:
   acpid nscd sane-utils
3 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.
147 not fully installed or removed.
Need to get 0 B/500 kB of archives.
After this operation, 5,120 B disk space will be freed.
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 134121 files and directories currently installed.)
Preparing to unpack .../acpid_1%3a2.0.23-1_amd64.deb ...
Failed to get D-Bus connection: Failed to connect to socket 
/run/systemd/private: Connection refused
Failed to get D-Bus connection: Failed to connect to socket 
/run/systemd/private: Connection refused
Failed to get D-Bus connection: Failed to connect to socket 
/run/systemd/private: Connection refused
invoke-rc.d: initscript acpid, action "stop" failed.
dpkg: warning: subprocess old pre-removal script returned error exit 
status 1
dpkg: trying script from the new package instead ...
Failed to get D-Bus connection: Failed to connect to socket 
/run/systemd/private: Connection refused
Failed to get D-Bus connection: Failed to connect to socket 
/run/systemd/private: Connection refused
invoke-rc.d: initscript acpid, action "stop" failed.
dpkg: error processing archive 
/var/cache/apt/archives/acpid_1%3a2.0.23-1_amd64.deb (--unpack):
  subprocess new pre-removal script returned error exit status 1
Failed to get D-Bus connection: Failed to connect to socket 
/run/systemd/private: Connection refused
Failed to get D-Bus connection: Failed to connect to socket 
/run/systemd/private: Connection refused
invoke-rc.d: initscript acpid, action "start" failed.
dpkg: error while cleaning up:
  subprocess installed post-installation script returned error exit status 1
Preparing to unpack .../nscd_2.19-10_amd64.deb ...
Failed to get D-Bus connection: Failed to connect to socket 
/run/systemd/private: Connection refused
Failed to get D-Bus connection: Failed to connect to socket 
/run/systemd/private: Connection refused
invoke-rc.d: initscript nscd, action "stop" failed.
dpkg: warning: subprocess old pre-removal script returned error exit 
status 1
dpkg: trying script from the new package instead ...
Failed to get D-Bus connection: Failed to connect to socket 
/run/systemd/private: Connection refused
Failed to get D-Bus connection: Failed to connect to socket 
/run/systemd/private: Connection refused
invoke-rc.d: initscript nscd, action "stop" failed.
dpkg: error processing archive 
/var/cache/apt/archives/nscd_2.19-10_amd64.deb (--unpack):
  subprocess new pre-removal script returned error exit status 1
Failed to get D-Bus connection: Failed to connect to socket 
/run/systemd/private: Connection refused
Failed to get D-Bus connection: Failed to connect to socket 
/run/systemd/private: Connection refused
invoke-rc.d: initscript nscd, action "start" failed.
dpkg: error while cleaning up:
  subprocess installed post-installation script returned error exit status 1
Preparing to unpack .../sane-utils_1.0.24-1.2_amd64.deb ...
Failed to get D-Bus connection: Failed to connect to socket 
/run/systemd/private: Connection refused
Failed to get D-Bus connection: Failed to connect to socket 
/run/systemd/private: Connection refused
invoke-rc.d: initscript saned, action "stop" failed.
/var/lib/dpkg/info/sane-utils.prerm: 5: 
/var/lib/dpkg/info/sane-utils.prerm: saned_eh: not found
dpkg: warning: subprocess old pre-removal script returned error exit 
status 127
dpkg: trying script from the new package instead ...
Failed to get D-Bus connection: Failed to connect to socket 
/run/systemd/private: Connection refused
Failed to get D-Bus connection: Failed to connect to socket 
/run/systemd/private: Connection refused
invoke-rc.d: initscript saned, action "stop" failed.
/var/lib/dpkg/tmp.ci/prerm: 5: /var/lib/dpkg/tmp.ci/prerm: saned_eh: not 
found
dpkg: error processing archive 
/var/cache/apt/archives/sane-utils_1.0.24-1.2_amd64.deb (--unpack):
  subprocess new pre-removal script returned error exit status 127
Failed to get D-Bus connection: Failed to connect to socket 
/run/systemd/private: Connection refused
Failed to get D-Bus connection: Failed to connect to socket 
/run/systemd/private: Connection refused
invoke-rc.d: initscript saned, action "start" failed.
saned couldn't start; check your inetd configuration and README.Debian
Errors were encountered while processing:
  /var/cache/apt/archives/acpid_1%3a2.0.23-1_amd64.deb
  /var/cache/apt/archives/nscd_2.19-10_amd64.deb
  /var/cache/apt/archives/sane-utils_1.0.24-1.2_amd64.deb
Error: Timeout was reached
E: Sub-process /usr/bin/dpkg returned an error code (1)



More information about the Pkg-systemd-maintainers mailing list