insserv doesn't work with upstart

Bug #467000 reported by Nick Wellnhofer
152
This bug affects 28 people
Affects Status Importance Assigned to Milestone
insserv (Debian)
Fix Released
Unknown
insserv (Ubuntu)
Triaged
Medium
Unassigned
upstart (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: insserv

I upgraded to Karmic and insserv doesn't work anymore. I get the following error messages:

insserv: warning: script 'rsyslog-kmsg' missing LSB tags and overrides
insserv: warning: script 'udevtrigger' missing LSB tags and overrides
insserv: warning: script 'cron' missing LSB tags and overrides
insserv: warning: script 'module-init-tools' missing LSB tags and overrides
insserv: warning: script 'hwclock' missing LSB tags and overrides
insserv: warning: script 'procps' missing LSB tags and overrides
insserv: warning: script 'udevmonitor' missing LSB tags and overrides
insserv: warning: script 'udev-finish' missing LSB tags and overrides
insserv: warning: script 'dmesg' missing LSB tags and overrides
insserv: warning: script 'udev' missing LSB tags and overrides
insserv: warning: script 'hwclock-save' missing LSB tags and overrides
insserv: warning: script 'rsyslog' missing LSB tags and overrides
insserv: There is a loop between service rsyslog and apache2 if stopped
insserv: loop involving service apache2 at depth 3
insserv: loop involving service rsyslog at depth 2
insserv: loop involving service udev at depth 1
insserv: loop involving service sendsigs at depth 5
insserv: exiting without changing boot order!

The offending scripts are all links to /lib/init/upstart-job. I think this is the upstream bug in Debian:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=547235

Tags: patch
Changed in insserv (Debian):
status: Unknown → Fix Released
Revision history for this message
cmcginty (casey-mcginty) wrote :

Is there a work around for this. I have a lot of services that do not start-up such as cups, cron, sshd

Revision history for this message
Nick Wellnhofer (nick-aevum) wrote :

You can try to run "insserv -f" manually.

Revision history for this message
Fitch (brafferton) wrote :
Download full text (3.7 KiB)

Hi there.
Exactly the same problem.
Running insserv -f gives:

brafferton@office:~$ sudo insserv -f
[sudo] password for brafferton:
insserv: warning: script 'S01linux-restricted-modules-common' missing LSB tags and overrides
insserv: warning: script 'K20acpi-support' missing LSB tags and overrides
insserv: warning: script 'dmesg' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0) of script `halt' overwrites defaults (empty).
insserv: warning: script 'module-init-tools' missing LSB tags and overrides
insserv: warning: script 'dbus' missing LSB tags and overrides
insserv: warning: script 'avahi-daemon' missing LSB tags and overrides
insserv: warning: script 'hwclock-save' missing LSB tags and overrides
insserv: warning: script 'rsyslog-kmsg' missing LSB tags and overrides
insserv: warning: script 'udev-finish' missing LSB tags and overrides
insserv: warning: current stop runlevel(s) (1) of script `policykit' overwrites defaults (empty).
insserv: warning: script 'procps' missing LSB tags and overrides
insserv: warning: script 'network-manager' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0 6) of script `sendsigs' overwrites defaults (empty).
insserv: warning: script 'atd' missing LSB tags and overrides
insserv: warning: script 'udev' missing LSB tags and overrides
insserv: warning: script 'ufw' missing LSB tags and overrides
insserv: warning: script 'usplash' missing LSB tags and overrides
insserv: warning: script 'gdm' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0 6) of script `networking' overwrites defaults (empty).
insserv: warning: script 'udevmonitor' missing LSB tags and overrides
insserv: warning: script 'apport' missing LSB tags and overrides
insserv: warning: script 'acpid' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0 6) of script `umountnfs.sh' overwrites defaults (empty).
insserv: warning: script 'hwclock' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0 6) of script `wpa-ifupdown' overwrites defaults (empty).
insserv: warning: script 'udevtrigger' missing LSB tags and overrides
insserv: warning: script 'cron' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (6) of script `reboot' overwrites defaults (empty).
insserv: warning: current start runlevel(s) (0 6) of script `umountroot' overwrites defaults (empty).
insserv: warning: script 'failsafe-x' missing LSB tags and overrides
insserv: warning: script 'rsyslog' missing LSB tags and overrides
insserv: warning: script 'anacron' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0 6) of script `umountfs' overwrites defaults (empty).
insserv: warning: script 'hal' missing LSB tags and overrides
insserv: warning: script 'acpi-support' missing LSB tags and overrides
insserv: warning: script 'linux-restricted-modules-common' missing LSB tags and overrides
insserv: There is a loop between service rsyslog and hwclock if stopped
insserv: loop involving service hwclock at depth 4
insserv: loop involving service sysklogd at depth 3
insserv: There is a loop between service rsyslog and apache2 ...

Read more...

Revision history for this message
gcb (gcb0) wrote :

Just upgraded to ubuntu 10.04 (lucid) and started getting those.

$ sudo insserv -f
insserv: warning: script 'K01acpi-support' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'network-interface' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'rpc_pipefs' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
[...]
insserv: warning: script 'udev-finish' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0 6) of script `umountfs' overwrites defaults (empty).
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'udevmonitor' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'idmapd' missing LSB tags and overrides
insserv: There is a loop between service rsyslog and kerneloops if stopped
insserv: loop involving service kerneloops at depth 3
insserv: loop involving service rsyslog at depth 2
insserv: loop involving service udev at depth 1
insserv: There is a loop between service kerneloops and rsyslog if stopped

Revision history for this message
criser (devel-god) wrote :

It seems that insserv is already fixed, just upstart does not output the required lsb-header information when a job is run with /lib/init/upstart-job.
The attached patch will fix this.

tags: added: patch
Revision history for this message
Fitch (brafferton) wrote :

That's nice, but in words of one syllable, what am I meant to do with this patch?

Revision history for this message
criser (devel-god) wrote : Re: [Bug 467000] Re: insserv doesn't work with upstart

Do:

cd /lib/init
patch < "path to patch"

regards,
criser
On Di, 2010-06-01 at 09:37 +0000, Fitch wrote:
> That's nice, but in words of one syllable, what am I meant to do with
> this patch?
>

Revision history for this message
Jonny (dioni21) wrote :

It appears to solve the bug. Please post it as a system upgrade!

Now I can finally modify startup settings, and my only errors (warnings) are:

insserv: warning: script 'K95showfsck' missing LSB tags and overrides
insserv: warning: script 'K20acpi-support' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0 6) of script `umountfs' overwrites defaults (empty).
insserv: warning: current start runlevel(s) (0 6) of script `wpa-ifupdown' overwrites defaults (empty).
insserv: warning: current start runlevel(s) (0 6) of script `networking' overwrites defaults (empty).
insserv: warning: current start runlevel(s) (0 6) of script `umountroot' overwrites defaults (empty).
insserv: warning: current start runlevel(s) (6) of script `reboot' overwrites defaults (empty).
insserv: warning: current start runlevel(s) (0 6) of script `umountnfs.sh' overwrites defaults (empty).
insserv: warning: current start runlevel(s) (0 6) of script `sendsigs' overwrites defaults (empty).
insserv: warning: script 'acpi-support' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0) of script `halt' overwrites defaults (empty).
insserv: warning: script 'showfsck' missing LSB tags and overrides

Revision history for this message
criser (devel-god) wrote :

If you mean by 'system upgrade' an updated debian package, here it is.

Revision history for this message
criser (devel-god) wrote :

Removed the package, because it had wrong permissions set. Will post a corrected version soon.

Revision history for this message
Neil Silverman (silvermanneil) wrote :

Thanks for this patch! I need to use Likewise to join my company's AD domain, and the domain join tool uses chkconfig to set up some daemons. This is the exact problem I was having, and the patch fixed it.

Revision history for this message
Alexey Loukianov (lexa2) wrote :

Thanks for patch, working brilliant, but only in case insserv is recent-enough. Users of releases prior to 10.04 should manually upgrade insserv to the package version 1.12.0-14. It is harmless to use binary deb compiled for 10.04 in 9.10 (that's what I did with Mint 8 installation), hadn't had a chance to test it with earlier Ubuntu releases.

Nevertheless it is always possible to compile and install package from the source deb package in case there would some dependency problems on earlier Ubuntu (and derivates) releases.

Revision history for this message
Tim Hawes (trhawes) wrote :

Unfortunately, it appears upstart-job has still not been patched upstream for 10.04.2, and the patch needed to be updated (just line number changes).

Just in case this post gets outdated and upstream has still not patched this file, all the patch does is add:
lsb-header)
    $ECHO "### BEGIN INIT INFO"
    $ECHO "# Provides: $JOB"
    $ECHO "# Required-Start:"
    $ECHO "# Required-Stop:"
    $ECHO "# Should-Start:"
    $ECHO "# Should-Stop:"
    $ECHO "# Default-Start:"
    $ECHO "# Default-Stop:"
    $ECHO "# Short-Description: $JOB, converted to upstart."
    $ECHO "### END INIT INFO"
    ;;
to the end of the case statement, just before the default:
*)
toward the end of the file.

Revision history for this message
Tim Hawes (trhawes) wrote :

I am dislexic this morning. My previous patch was backwards. =S
Here is the proper patch.

Revision history for this message
holokube (antonio-vivenzio) wrote :

i use the patch and it works but giving me a problem
when I run :

sudo /sbin/insserv /etc/init.d

reply to me

insserv: warning: script 'K01acpi-support' missing LSB tags and overrides
insserv: warning: script 'acpi-support' missing LSB tags and overrides

what's wrong??Any idea??
I'm on ubuntu64 10.04.2 kernel 2.6.38

Changed in insserv (Ubuntu):
status: New → Fix Committed
Revision history for this message
Fredrik Lysen (fredrik-lysen) wrote :
Download full text (6.5 KiB)

Ubuntu Linux 10.04.3
Linux 2.6.32-33-server on x86_64
AMD Athlon(tm) II X3 450 Processor, 3 cores

I still have this problem, I can't see that the problem are solved. Webmin version 1.560 are trying to take advantage of insserv but it fails to start some services? If i run "sudo insserv" at terminal it shows:

The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'rsyslog' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'network-interface-security' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'nmbd' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'module-init-tools' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'atd' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'cron' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0 6) of script `sendsigs' overwrites defaults (empty).
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'hostname' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'udevtrigger' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (6) of script `reboot' overwrites defaults (empty).
insserv: warning: current start runlevel(s) (0 6) of script `umountfs' overwrites defaults (empty).
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'console-setup' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0) of script `halt' overwrites defaults (empty).
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'ufw' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'apport' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0 6) of script `wpa-ifupdown' overwrites defaults (empty).
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'smbd' missing LSB tags and overrides
The script you are attempting to invoke has ...

Read more...

Revision history for this message
Daniel Hahler (blueyed) wrote :

This appears to have been marked as "Fix Committed", although it is not (by maurizio).
Marking Triaged.

Changed in insserv (Ubuntu):
importance: Undecided → Medium
status: Fix Committed → Triaged
Revision history for this message
Daniel Hahler (blueyed) wrote :

From the insserv man page:
    UPSTART JOB COMPATIBILITY
           To allow upstart jobs to work as init.d scripts, insserv will recognize a symlink from path/to/init.d/script to /lib/init/upstart-job as upstart
           jobs, and instead of reading the header from the file will run the script with the argument lsb-header to get the script header.

This sounds like upstart now needs to provide the "lsb-header" functionality, which is what the patch provided here is about.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in upstart (Ubuntu):
status: New → Confirmed
Revision history for this message
martin suchanek (martin-suc) wrote :
Download full text (30.1 KiB)

I have 12.04 but it is still not included in upstart-job script anyway.

after:
ln -s /usr/lib/insserv/insserv /sbin/insserv

have got:
 # insserv: warning: script 'K01S99UPS' missing LSB tags and overrides
 # insserv: warning: script 'K01acpi-support' missing LSB tags and overrides
 # The script you are attempting to invoke has been converted to an Upstart
 # job, but lsb-header is not supported for Upstart jobs.
 # insserv: warning: script 'mysql' missing LSB tags and overrides
 # insserv: Default-Start undefined, assuming empty start runlevel(s) for script `mysql'
 # insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `mysql'
 # The script you are attempting to invoke has been converted to an Upstart
 # job, but lsb-header is not supported for Upstart jobs.
 # insserv: warning: script 'network-interface-container' missing LSB tags and overrides
 # insserv: Default-Start undefined, assuming empty start runlevel(s) for script `network-interface-container'
 # insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `network-interface-container'
 # The script you are attempting to invoke has been converted to an Upstart
 # job, but lsb-header is not supported for Upstart jobs.
 # insserv: warning: script 'xinetd' missing LSB tags and overrides
 # insserv: Default-Start undefined, assuming empty start runlevel(s) for script `xinetd'
 # insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `xinetd'
 # The script you are attempting to invoke has been converted to an Upstart
 # job, but lsb-header is not supported for Upstart jobs.
 # insserv: warning: script 'hostname' missing LSB tags and overrides
 # insserv: Default-Start undefined, assuming empty start runlevel(s) for script `hostname'
 # insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `hostname'
 # The script you are attempting to invoke has been converted to an Upstart
 # job, but lsb-header is not supported for Upstart jobs.
 # insserv: warning: script 'portmap-wait' missing LSB tags and overrides
 # insserv: Default-Start undefined, assuming empty start runlevel(s) for script `portmap-wait'
 # insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `portmap-wait'
 # The script you are attempting to invoke has been converted to an Upstart
 # job, but lsb-header is not supported for Upstart jobs.
 # insserv: warning: script 'network-interface-security' missing LSB tags and overrides
 # insserv: Default-Start undefined, assuming empty start runlevel(s) for script `network-interface-security'
 # insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `network-interface-security'
 # The script you are attempting to invoke has been converted to an Upstart
 # job, but lsb-header is not supported for Upstart jobs.
 # insserv: warning: script 'udevtrigger' missing LSB tags and overrides
 # insserv: Default-Start undefined, assuming empty start runlevel(s) for script `udevtrigger'
 # insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `udevtrigger'
 # The script you are attempting to invoke has been converted to an Upstart
 # job,...

Revision history for this message
GospoGied (gospogied) wrote :

Same here on Ubuntu 12.04:
$ sudo insserv -f
insserv: warning: script 'K01vmware' missing LSB tags and overrides
initctl: Unknown job: K01dmesg
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'K01dmesg' missing LSB tags and overrides
insserv: warning: script 'K01vmware-workstation-server' missing LSB tags and overrides
initctl: Unknown job: K01smbd
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'K01smbd' missing LSB tags and overrides
insserv: Script vmware-vms is broken: incomplete LSB comment.
insserv: missing `Required-Start:' entry: please add even if empty.
insserv: missing `Required-Stop:' entry: please add even if empty.
initctl: Unknown job: K01nmbd
(...)
initctl: Unknown job: S02smbd
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
initctl: Unknown job: S02nmbd
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
initctl: Unknown job: S02smbd
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
initctl: Unknown job: S02cups
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
initctl: Unknown job: S02nmbd
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
initctl: Unknown job: S02dmesg
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: Script vmware-vms is broken: incomplete LSB comment.
insserv: missing `Required-Start:' entry: please add even if empty.
insserv: missing `Required-Stop:' entry: please add even if empty.
initctl: Unknown job: S02smbd
(...)

Revision history for this message
Nick Wellnhofer (nick-aevum) wrote :

I had a deeper look into this issue, and this is what I think is going on: If you switched to Debian-style dependency-based boot ordering on a very old Ubuntu release and kept upgrading to newer releases, somewhere along the line the support for dependency-based boot ordering was dropped in Ubuntu. I was able to recover by simply executing:

$ touch /etc/init.d/.legacy-bootordering

Use at your own risk.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.