Timeout opening/writing control channel /dev/initctl

From FVue
Jump to: navigation, search

Problem

In the process list ps -ef I can see a lot of `defunct' processes:

joe      14346     1  0 02:06 ?        00:00:00 [ssh] <defunct>
root     14414     1  0 02:12 ?        00:00:00 [cdrecord] <defunct>
joe      14662     1  0 05:00 ?        00:00:00 [zcat] <defunct>

When I try to give the command shutdown -r now I get these error messages:

shutdown: timeout opening/writing control channel /dev/initctl
init: timeout opening/writing control channel /dev/initctl

All I can remember I mounted an USB mp3 player with mount /dev/sda /mnt/iaudio and unmounted it with umount /mnt/iaudio. In fact, physical terminal tty hangs with these lines:

sd 3:0:0:0: Attached scsi removable disk sda
usb 1-1: USB disconnect, address 5

I also did an sudo apt-get upgrade

Environment

  • Debian 4.0

Solution

The problem seems to have been instigated by an apt-get update. To reboot, give the command:

sudo reboot -f

Journal

20080111

theNthDoctor's Not-MySpace Page: timeout opening/writing control channel /dev/initctl
Same problem in blog with reboot -f answer

But if I call reboot -f `shutdown' isn't going to be called, so there must be a better solution?

From info init: "Usage of SIGPWR and /etc/powerstatus is discouraged. Someone wanting to interact with init should use the /dev/initctl control channel - see the source code of the sysvinit package for more documentation about this."


Linux From Scratch HOWTO: Installing Sysvinit
Chapter 4 handles installing Sysvinit and shows this script:
@if [! -p $(ROOT)/dev/initctl ]; then \
echo "Creating $(ROOT)/dev/initctl" \
rm -f $(ROOT)/dev/initctl; \
mknod -m 600 $(ROOT)/dev/initctl p; fi

Checking if /dev/initctl exists:

$> ls -l /dev/initctl
prw------- 1 root root 0 2008-01-09 22:41 /dev/initctl
$>
Fun with /dev/initctl - David A. Harding
More info on /dev/initctl

Tried this:

mv /dev/initctl /dev/initctl_
mknod -m 600 /dev/initctl p

but shutdown still won't work.

From /var/log/auth.log I can see the timestamp from /dev/initctl is the same as when I gave the commands sudo apt-get upgrade and sudo apt-get update

Looking at /var/log/dpkg.log shows the upgrade started at 2008-01-09 22:41 - the last modified time of /dev/initctl, but the log shows no errors. Below is an grep upgrade dpgk.log

2008-01-09 22:41:19 upgrade libc6-dev 2.3.6.ds1-13etch2 2.3.6.ds1-13etch4
2008-01-09 22:41:21 upgrade libc6 2.3.6.ds1-13etch2 2.3.6.ds1-13etch4
2008-01-09 22:41:27 upgrade libc6-i686 2.3.6.ds1-13etch2 2.3.6.ds1-13etch4
2008-01-09 22:41:28 upgrade tzdata 2007b-1 2007j-1etch1
2008-01-09 22:41:32 upgrade e2fslibs 1.39+1.40-WIP-2006.11.14+dfsg-2 1.39+1.40-WIP-2006.11.14+dfsg-2etch1
2008-01-09 22:41:35 upgrade e2fsprogs 1.39+1.40-WIP-2006.11.14+dfsg-2 1.39+1.40-WIP-2006.11.14+dfsg-2etch1
2008-01-09 22:41:36 upgrade findutils 4.2.28-1 4.2.28-1etch1
2008-01-09 22:41:39 upgrade perl-modules 5.8.8-7 5.8.8-7etch1
2008-01-09 22:41:42 upgrade perl 5.8.8-7 5.8.8-7etch1
2008-01-09 22:41:45 upgrade perl-base 5.8.8-7 5.8.8-7etch1
2008-01-09 22:41:46 upgrade debconf-i18n 1.5.11 1.5.11etch1
2008-01-09 22:41:47 upgrade debconf 1.5.11 1.5.11etch1
2008-01-09 22:41:47 upgrade mysql-common 5.0.32-7etch1 5.0.32-7etch3
2008-01-09 22:41:48 upgrade mysql-server 5.0.32-7etch1 5.0.32-7etch3
2008-01-09 22:41:54 upgrade mysql-client 5.0.32-7etch1 5.0.32-7etch3
2008-01-09 22:41:54 upgrade libdbi-perl 1.53-1 1.53-1etch1
2008-01-09 22:41:55 upgrade libmysqlclient15off 5.0.32-7etch1 5.0.32-7etch3
2008-01-09 22:41:55 upgrade mysql-client-5.0 5.0.32-7etch1 5.0.32-7etch3
2008-01-09 22:42:00 upgrade mysql-server-5.0 5.0.32-7etch1 5.0.32-7etch3
2008-01-09 22:42:19 upgrade libblkid1 1.39+1.40-WIP-2006.11.14+dfsg-2 1.39+1.40-WIP-2006.11.14+dfsg-2etch1
2008-01-09 22:42:23 upgrade libcomerr2 1.39+1.40-WIP-2006.11.14+dfsg-2 1.39+1.40-WIP-2006.11.14+dfsg-2etch1
2008-01-09 22:42:24 upgrade libpam-runtime 0.79-4 0.79-5
2008-01-09 22:42:25 upgrade libpam0g 0.79-4 0.79-5
2008-01-09 22:42:26 upgrade libpam-modules 0.79-4 0.79-5
2008-01-09 22:42:27 upgrade libss2 1.39+1.40-WIP-2006.11.14+dfsg-2 1.39+1.40-WIP-2006.11.14+dfsg-2etch1
2008-01-09 22:42:28 upgrade libuuid1 1.39+1.40-WIP-2006.11.14+dfsg-2 1.39+1.40-WIP-2006.11.14+dfsg-2etch1
2008-01-09 22:42:30 upgrade libssl0.9.8 0.9.8c-4 0.9.8c-4etch1
2008-01-09 22:42:30 upgrade vim 1:7.0-122+1etch2 1:7.0-122+1etch3
2008-01-09 22:42:33 upgrade vim-runtime 1:7.0-122+1etch2 1:7.0-122+1etch3
2008-01-09 22:42:39 upgrade vim-common 1:7.0-122+1etch2 1:7.0-122+1etch3
2008-01-09 22:42:39 upgrade libisc11 1:9.3.4-2 1:9.3.4-2etch1
2008-01-09 22:42:39 upgrade libdns22 1:9.3.4-2 1:9.3.4-2etch1
2008-01-09 22:42:41 upgrade libisccc0 1:9.3.4-2 1:9.3.4-2etch1
2008-01-09 22:42:41 upgrade libisccfg1 1:9.3.4-2 1:9.3.4-2etch1
2008-01-09 22:42:41 upgrade libbind9-0 1:9.3.4-2 1:9.3.4-2etch1
2008-01-09 22:42:41 upgrade liblwres9 1:9.3.4-2 1:9.3.4-2etch1
2008-01-09 22:42:41 upgrade bind9-host 1:9.3.4-2 1:9.3.4-2etch1
2008-01-09 22:42:41 upgrade dnsutils 1:9.3.4-2 1:9.3.4-2etch1
2008-01-09 22:42:42 upgrade file 4.17-5etch2 4.17-5etch3
2008-01-09 22:42:42 upgrade libmagic1 4.17-5etch2 4.17-5etch3
2008-01-09 22:42:42 upgrade libkrb53 1.4.4-7etch1 1.4.4-7etch4
2008-01-09 22:42:42 upgrade libpcre3 6.7-1 6.7+7.4-2
2008-01-09 22:42:42 upgrade librpcsecgss3 0.14-2 0.14-2etch3
2008-01-09 22:42:43 upgrade locales 2.3.6.ds1-13etch2 2.3.6.ds1-13etch4
2008-01-09 22:42:46 upgrade libpq4 8.1.9-0etch1 8.1.9-0etch2
2008-01-09 22:42:46 upgrade apache2-utils 2.2.3-4+etch1 2.2.3-4+etch3
2008-01-09 22:42:46 upgrade apache2-mpm-prefork 2.2.3-4+etch1 2.2.3-4+etch3
2008-01-09 22:42:50 upgrade apache2.2-common 2.2.3-4+etch1 2.2.3-4+etch3
2008-01-09 22:42:51 upgrade apache2 2.2.3-4+etch1 2.2.3-4+etch3
2008-01-09 22:42:51 upgrade debconf-utils 1.5.11 1.5.11etch1
2008-01-09 22:42:51 upgrade fetchmail 6.3.6-1 6.3.6-1etch1
2008-01-09 22:42:52 upgrade klibc-utils 1.4.34-1 1.4.34-2
2008-01-09 22:42:52 upgrade libklibc 1.4.34-1 1.4.34-2
2008-01-09 22:42:53 upgrade php5-cli 5.2.0-8+etch5~pu1 5.2.0-8+etch7
2008-01-09 22:42:53 upgrade php5-mysql 5.2.0-8+etch5~pu1 5.2.0-8+etch7
2008-01-09 22:42:54 upgrade libapache2-mod-php5 5.2.0-8+etch5~pu1 5.2.0-8+etch7
2008-01-09 22:42:54 upgrade php5-common 5.2.0-8+etch5~pu1 5.2.0-8+etch7
2008-01-09 22:42:55 upgrade libpoppler0c2 0.4.5-5.1 0.4.5-5.1etch1
2008-01-09 22:42:55 upgrade libt1-5 5.1.0-2 5.1.0-2etch1
2008-01-09 22:42:56 upgrade openssl 0.9.8c-4 0.9.8c-4etch1
2008-01-09 22:42:57 upgrade php4-cli 6:4.4.4-8+etch3 6:4.4.4-8+etch4
2008-01-09 22:42:57 upgrade php4-cgi 6:4.4.4-8+etch3 6:4.4.4-8+etch4
2008-01-09 22:42:58 upgrade php4-common 6:4.4.4-8+etch3 6:4.4.4-8+etch4
2008-01-09 22:42:58 upgrade php5 5.2.0-8+etch5~pu1 5.2.0-8+etch7
2008-01-09 22:42:58 upgrade dhcp-client 2.0pl5-19.5 2.0pl5-19.5etch2
2008-01-09 22:42:59 upgrade libssl0.9.7 0.9.7k-3.1 0.9.7k-3.1etch1

Comments

blog comments powered by Disqus