Package: openrc
Severity: important
Version: 0.12.4+20131230-3

Hi,

[Writing this report from another machine, hence no meta data at the
end]

I've installed a Xen DomU with xen-tools 4.4 and "xen-create-image
--dist sid --dhcp --pygrub --noaccounts --role minimal [some
host-specific parameters like disk size, memory size, hostname and
mirror settings]".

"--role minimal" causes (beyond other things I wanted) busybox-syslogd
instead of rsyslog to be installed.

On the machine I then installed openrc, called the command being told
while openrc was set up (c.f. http://thomas.goirand.fr/blog/?p=153). It
only seemed to shutdown busybox-syslogd and then rebooted the box.

ssh didn't come up on boot, so I started it manually. Then I replaced
busybox-syslogd with rsyslog to get persistent syslogs.

apt-get suggested to remove insserv, as it was installed automatically,
so I purged it.

Then I tried to reboot the virtual machine with "reboot".

While the ssh session where I typed "reboot" is still there, hence, the
system hasn't rebooted yet, I endlessly get the following messages on
the console, despite they rather look like bootup sequence than a
shutdown sequence (don't know where the start of the loop is, so I took
a random line as start):

[…]
[ ok ] Cleaning up temporary files....
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: /lib/rc/sh/gendepends.sh start|stop
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: /etc/init.d/networking {start|stop|reload|restart|force-reload}
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: /etc/init.d/procps {start|stop|restart|reload|force-reload|status}
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
 * Caching service dependencies ...
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
/lib/rc/sh/gendepends.sh: 91: /lib/rc/sh/gendepends.sh: shell_var: not found
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
/lib/rc/sh/gendepends.sh: 91: /lib/rc/sh/gendepends.sh: shell_var: not found
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.20.1
done.
/lib/rc/sh/gendepends.sh: 91: /lib/rc/sh/gendepends.sh: shell_var: not found
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
[ ok ] Cleaning up temporary files... /tmp /run /run/lock /run/shm.
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
[ ok ] Activating swap...done.
mount: you must specify the filesystem type
[FAIL] Cannot check root file system because it is not mounted read-only. ... 
failed!
[ 2552.694335] EXT4-fs (xvda2): re-mounted. Opts: errors=remount-ro
/lib/rc/sh/gendepends.sh: 91: /lib/rc/sh/gendepends.sh: shell_var: not found
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
[info] Usage: /etc/init.d/cron {start|stop|status|restart|reload|force-reload}.
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: /lib/rc/sh/gendepends.sh start|stop
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
[ ok ] Usage: hwclock.sh {start|stop|reload|force-reload|show}.
[ ok ] start sets kernel (system) clock from hardware (RTC) clock.
[ ok ] stop and reload set hardware (RTC) clock from kernel (system) clock.
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: /lib/rc/sh/gendepends.sh start|stop
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
[ ok ] Usage: /lib/rc/sh/gendepends.sh start.
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
/lib/rc/sh/gendepends.sh: 91: /lib/rc/sh/gendepends.sh: shell_var: not found
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
[ ok ] Cleaning up temporary files....
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
/lib/rc/sh/gendepends.sh: 91: /lib/rc/sh/gendepends.sh: shell_var: not found
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Warning: mountdevsubfs should be called with the 'start' argument.
/lib/rc/sh/gendepends.sh: 91: /lib/rc/sh/gendepends.sh: shell_var: not found
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Warning: mountkernfs should be called with the 'start' argument.
/lib/rc/sh/gendepends.sh: 91: /lib/rc/sh/gendepends.sh: shell_var: not found
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
[ ok ] Cleaning up temporary files....
[…]

At least the following line suggests that there may be a hard dependency
on insserv missing:

error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.

On the still open SSH session I then installed insserv again, and it
switched to the following endless loop (again looking like a bootup):

[…]
[ ok ] Cleaning up temporary files... /tmp /run /run/lock /run/shm.
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
[ ok ] Activating swap...done.
mount: you must specify the filesystem type
[FAIL] Cannot check root file system because it is not mounted read-only. ... 
failed!
[ 2775.698468] EXT4-fs (xvda2): re-mounted. Opts: errors=remount-ro
/lib/rc/sh/gendepends.sh: 91: /lib/rc/sh/gendepends.sh: shell_var: not found

Service `mountall.sh' needs non existent service `checkfs'
Service `mountall.sh' needs non existent service `checkroot-bootclean'
 [ ok ]
[ ok ] Cleaning up temporary files....
[ ok ] Cleaning up temporary files....
[ ok ] Starting enhanced syslogd: rsyslogd.
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
Service `rsyslog' needs non existent service `hwclock'
Service `single' needs non existent service `killprocs'
Service `udev' needs non existent service `mountkernfs'
Service `urandom' needs non existent service `hwclock'
 [ ok ]
[info] Saving the system clock.
hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for an access 
method.
Service `rsyslog' needs non existent service `hwclock'
Service `single' needs non existent service `killprocs'
Service `udev' needs non existent service `mountkernfs'
Service `urandom' needs non existent service `hwclock'
 [ ok ]
Service `rsyslog' needs non existent service `hwclock'
Service `single' needs non existent service `killprocs'
Service `udev' needs non existent service `mountkernfs'
Service `urandom' needs non existent service `hwclock'
 [ ok ]
Service `rsyslog' needs non existent service `hwclock'
Service `single' needs non existent service `killprocs'
Service `udev' needs non existent service `mountkernfs'
Service `urandom' needs non existent service `hwclock'
 [ ok ]
Service `rsyslog' needs non existent service `hwclock'
Service `single' needs non existent service `killprocs'
Service `udev' needs non existent service `mountkernfs'
Service `urandom' needs non existent service `hwclock'
 [ ok ]
[…]

I then did a "reboot -f" and the virtual machine seemed to come up clean
again, all services running as expected.

I logged in via SSH, typed "reboot" again and the machine rebooted fine
again, except that my SSH session was not killed (at least not before
the network of the virtual machine was down).

Then I removed insserv again and typed "reboot". This time everything
looked different and there were quite some error messages on the
console, but no more loops:

INIT: Switching to runlevel: 6
INIT: Sending processes the TERM signal
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: /lib/rc/sh/runscript.sh start|stop
 * ERROR: rc.local failed to stop
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: /lib/rc/sh/runscript.sh start|stop
 * ERROR: rmnologin failed to stop
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
[info] Usage: /etc/init.d/ssh 
{start|stop|reload|force-reload|restart|try-restart|status}.
 * ERROR: ssh failed to stop
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: motd [start|stop|status]
 * ERROR: motd failed to stop
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
[ ok ] Usage: /lib/rc/sh/runscript.sh start. 
 * ERROR: kmod failed to stop
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
[info] Usage: /etc/init.d/cron {start|stop|status|restart|reload|force-reload}.
 * ERROR: cron failed to stop
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: /etc/init.d/rsyslog {start|stop|rotate|restart|force-reload|status}
 * ERROR: rsyslog failed to stop
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: bootmisc.sh [start|stop]
 * ERROR: bootmisc.sh failed to stop
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: mountnfs-bootclean.sh [start|stop]
 * ERROR: mountnfs-bootclean.sh failed to stop
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: /lib/rc/sh/runscript.sh start|stop
 * ERROR: mountnfs.sh failed to stop
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: /etc/init.d/networking {start|stop|reload|restart|force-reload}
 * ERROR: networking failed to stop
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: /etc/init.d/procps {start|stop|restart|reload|force-reload|status}
 * ERROR: procps failed to stop
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: urandom start|stop
 * ERROR: urandom failed to stop
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: bootlogs [start|stop|status]
 * ERROR: bootlogs failed to stop
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: mountall-bootclean.sh [start|stop]
 * ERROR: mountall-bootclean.sh failed to stop
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: mountall.sh [start|stop]
 * ERROR: mountall.sh failed to stop
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: checkroot-bootclean.sh [start|stop]
 * ERROR: checkroot-bootclean.sh failed to stop
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: checkfs.sh [start|stop]
 * ERROR: checkfs.sh failed to stop
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: checkroot.sh [start|stop]
 * ERROR: checkroot.sh failed to stop
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
[ ok ] Usage: hwclock.sh {start|stop|reload|force-reload|show}.
[ ok ] start sets kernel (system) clock from hardware (RTC) clock.
[ ok ] stop and reload set hardware (RTC) clock from kernel (system) clock.
 * hwclock.sh: error loading /etc/init.d/hwclock.sh
 * ERROR: hwclock.sh failed to stop
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: mountdevsubfs [start|stop]
 * ERROR: mountdevsubfs.sh failed to stop
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: /etc/init.d/udev {start|stop|restart|reload|force-reload|status}
 * ERROR: udev failed to stop
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: mountkernfs [start|stop]
 * ERROR: mountkernfs.sh failed to stop
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: hostname.sh [start|stop]
 * ERROR: hostname.sh failed to stop
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
 * Saving dependency cache ...
 [ ok ]
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
 * reboot runlevel... ...
[info] Will now restart.
[  155.294508] reboot: Restarting system

Not sure what made that difference now.

On bootup I got these error messages:

INIT: version 2.88 booting

   OpenRC 0.13 is starting up Linux 3.12-1-amd64 (x86_64) [XENU]

 * /proc is already mounted
 * /run/openrc: creating directory
 * /run/lock: creating directory
 * /run/lock: correcting owner
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: mountkernfs [start|stop]
 * ERROR: mountkernfs.sh failed to start
 * ERROR: cannot start udev as mountkernfs.sh would not start
 * ERROR: cannot start mountdevsubfs.sh as mountkernfs.sh would not start
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: hostname.sh [start|stop]
 * ERROR: hostname.sh failed to start
 * ERROR: cannot start checkroot.sh as mountkernfs.sh would not start
 * ERROR: cannot start checkfs.sh as mountkernfs.sh would not start
 * ERROR: cannot start checkroot-bootclean.sh as mountkernfs.sh would not start
 * ERROR: cannot start mountall.sh as mountkernfs.sh would not start
 * ERROR: cannot start mountall-bootclean.sh as mountkernfs.sh would not start
 * ERROR: cannot start hwclock.sh as mountkernfs.sh would not start
 * ERROR: cannot start urandom as mountkernfs.sh would not start
 * ERROR: cannot start procps as mountkernfs.sh would not start
 * ERROR: cannot start networking as mountkernfs.sh would not start
 * ERROR: cannot start mountnfs.sh as mountkernfs.sh would not start
 * ERROR: cannot start mountnfs-bootclean.sh as mountkernfs.sh would not start
 * ERROR: cannot start bootmisc.sh as mountkernfs.sh would not start
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
[ ok ] Usage: /lib/rc/sh/runscript.sh start.
 * ERROR: kmod failed to start
 * ERROR: cannot start nviboot as mountkernfs.sh would not start
INIT: Entering runlevel: 2
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: hostname.sh [start|stop]
 * ERROR: hostname.sh failed to start
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: mountall-bootclean.sh [start|stop]
 * ERROR: mountall-bootclean.sh failed to start
 * ERROR: cannot start bootlogs as hostname.sh would not start
 * ERROR: cannot start mountnfs-bootclean.sh as mountall-bootclean.sh would not 
start
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: mountkernfs [start|stop]
 * ERROR: mountkernfs.sh failed to start
 * ERROR: cannot start mountdevsubfs.sh as mountkernfs.sh would not start
 * ERROR: cannot start hwclock.sh as mountkernfs.sh would not start
 * ERROR: cannot start rsyslog as mountall-bootclean.sh would not start
 * ERROR: cannot start cron as mountall-bootclean.sh would not start
 * ERROR: cannot start motd as hostname.sh would not start
 * ERROR: cannot start ssh as mountall-bootclean.sh would not start
 * ERROR: cannot start rmnologin as mountall-bootclean.sh would not start
error: unable to read /etc/insserv.conf at /lib/rc/bin/lsb.pl line 19.
Usage: /lib/rc/sh/runscript.sh start|stop
 * ERROR: rc.local failed to start

The login screen was then missing the hostname:

Debian GNU/Linux jessie/sid (none) hvc0

(none) login: 

The machine came up without network and a read-only root file system:

root@(none):~# dhclient eth0
/sbin/dhclient-script: line 26: /etc/resolv.conf.dhclient-new: Read-only file 
system
/sbin/dhclient-script: line 42: /etc/resolv.conf.dhclient-new: Read-only file 
system
/sbin/dhclient-script: line 49: /etc/resolv.conf.dhclient-new: Read-only file 
system
/sbin/dhclient-script: line 49: /etc/resolv.conf.dhclient-new: Read-only file 
system
/sbin/dhclient-script: line 49: /etc/resolv.conf.dhclient-new: Read-only file 
system
chown: cannot access '/etc/resolv.conf.dhclient-new': No such file or directory
chmod: cannot access '/etc/resolv.conf.dhclient-new': No such file or directory
mv: cannot stat '/etc/resolv.conf.dhclient-new': No such file or directory
root@(none):~# 

What helped again (after network was working again) was:

# mount -o remount,rw /
# apt-get install insserv
# reboot

The machine came up fine again.


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to