istage
Posts: 9
Joined: Fri Jan 10, 2014 3:59 pm

dpkg: error processing watchdog (--configure):

Fri Jan 10, 2014 4:01 pm

[email protected] ~/www $ sudo apt-get install php5-memcache
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
php5-memcache
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
Need to get 54.6 kB of archives.
After this operation, 153 kB of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian/ wheezy/main php5-memcache armhf 3.0.6-6 [54.6 kB]
Fetched 54.6 kB in 1s (28.1 kB/s)
Selecting previously unselected package php5-memcache.
(Reading database ... 76432 files and directories currently installed.)
Unpacking php5-memcache (from .../php5-memcache_3.0.6-6_armhf.deb) ...
Setting up php5-fpm (5.4.4-14+deb7u7) ...
insserv: warning: script 'mathkernel' missing LSB tags and overrides
insserv: There is a loop between service watchdog and mathkernel if stopped
insserv: loop involving service mathkernel at depth 2
insserv: loop involving service watchdog at depth 1
insserv: Stopping mathkernel depends on watchdog and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing php5-fpm (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up memcached (1.4.13-0.2+deb7u1) ...
insserv: warning: script 'mathkernel' missing LSB tags and overrides
insserv: There is a loop between service watchdog and mathkernel if stopped
insserv: loop involving service mathkernel at depth 2
insserv: loop involving service watchdog at depth 1
insserv: Stopping mathkernel depends on watchdog and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing memcached (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up varnish (3.0.2-2+deb7u1) ...
insserv: warning: script 'mathkernel' missing LSB tags and overrides
insserv: There is a loop between service watchdog and mathkernel if stopped
insserv: loop involving service mathkernel at depth 2
insserv: loop involving service watchdog at depth 1
insserv: Stopping mathkernel depends on watchdog and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing varnish (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up watchdog (5.12-1) ...
/run/udev or .udevdb or .udev presence implies active udev. Aborting MAKEDEV invocation.
insserv: warning: script 'mathkernel' missing LSB tags and overrides
insserv: There is a loop between service watchdog and mathkernel if stopped
insserv: loop involving service mathkernel at depth 2
insserv: loop involving service watchdog at depth 1
insserv: Stopping mathkernel depends on watchdog and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing watchdog (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up php5-memcache (3.0.6-6) ...
Errors were encountered while processing:
php5-fpm
memcached
varnish
watchdog

User avatar
DougieLawson
Posts: 34166
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: dpkg: error processing watchdog (--configure):

Fri Jan 10, 2014 7:00 pm

Edit /etc/init.d/skeleton and copy the LSB header (first ten lines or so) from there to /etc/init.d/mathkernel
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+

Any DMs sent on Twitter will be answered next month.

istage
Posts: 9
Joined: Fri Jan 10, 2014 3:59 pm

Re: dpkg: error processing watchdog (--configure):

Sat Jan 11, 2014 2:36 pm

copy the first 8 line, didn't work
same issue
dpkg: error processing watchdog (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
mysql-server-5.5
php5-fpm
memcached
mysql-server
varnish
postfix
watchdog

User avatar
DougieLawson
Posts: 34166
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: dpkg: error processing watchdog (--configure):

Sun Jan 12, 2014 12:14 am

Try
sudo apt-get check
sudo apt-get -f install # Note: run it with no other operands
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+

Any DMs sent on Twitter will be answered next month.

Bigun
Posts: 8
Joined: Sat Jan 25, 2014 11:11 pm

Re: dpkg: error processing watchdog (--configure):

Sat Jan 25, 2014 11:13 pm

I'm having the same issue, following your last set of steps:

Code: Select all

[email protected] ~ $ sudo apt-get check
Reading package lists... Done
Building dependency tree
Reading state information... Done
[email protected] ~ $ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up watchdog (5.12-1) ...
/run/udev or .udevdb or .udev presence implies active udev.  Aborting MAKEDEV invocation.
insserv: warning: script 'mathkernel' missing LSB tags and overrides
insserv: There is a loop between service watchdog and mathkernel if stopped
insserv:  loop involving service mathkernel at depth 2
insserv:  loop involving service watchdog at depth 1
insserv: Stopping mathkernel depends on watchdog and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing watchdog (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 watchdog
E: Sub-process /usr/bin/dpkg returned an error code (1)

ChefBorjan
Posts: 6
Joined: Tue Jan 15, 2013 10:22 pm

Re: dpkg: error processing watchdog (--configure):

Wed Mar 05, 2014 12:03 pm

Bigun wrote:I'm having the same issue, following your last set of steps:

Code: Select all

[email protected] ~ $ sudo apt-get check
Reading package lists... Done
Building dependency tree
Reading state information... Done
[email protected] ~ $ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up watchdog (5.12-1) ...
/run/udev or .udevdb or .udev presence implies active udev.  Aborting MAKEDEV invocation.
insserv: warning: script 'mathkernel' missing LSB tags and overrides
insserv: There is a loop between service watchdog and mathkernel if stopped
insserv:  loop involving service mathkernel at depth 2
insserv:  loop involving service watchdog at depth 1
insserv: Stopping mathkernel depends on watchdog and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing watchdog (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 watchdog
E: Sub-process /usr/bin/dpkg returned an error code (1)
Did you ever fix this? Having the same problem.

dmiles
Posts: 1
Joined: Sat Mar 22, 2014 2:03 pm

Re: dpkg: error processing watchdog (--configure):

Sat Mar 22, 2014 6:33 pm

Edit /etc/init.d/mathkernel insert the following lines into it, that you see between two "INIT INFO" markers (taken from the sample file /etc/init.d/skeleton) :

Code: Select all

#!/bin/sh
### BEGIN INIT INFO
# Provides:          mathkernel
# Required-Start:    $syslog
# Required-Stop:     $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: mathkernel
# Description:       This file should be used to construct scripts to be
#                    placed in /etc/init.d.
### END INIT INFO
#
# rest of file here
Another way to edit it is to run this command sequence, maybe via copy-and-paste into shell:

Code: Select all

(
        head -n1 /etc/init.d/mathkernel
        echo "### BEGIN INIT INFO"
        echo "# Provides:          mathkernel"
        echo "# Required-Start:    $syslog"
        echo "# Required-Stop:     $syslog"
        echo "# Default-Start:     2 3 4 5"
        echo "# Default-Stop:      0 1 6"
        echo "# Short-Description: mathkernel"
        echo "# Description:       This file should be used to construct scripts to be"
        echo "#                    placed in /etc/init.d."
        echo "### END INIT INFO"
        tail -n +2 /etc/init.d/mathkernel
) > /etc/init.d/mathkernel.new
chmod a+x /etc/init.d/mathkernel.new
mv /etc/init.d/mathkernel /etc/init.d/mathkernel.old
mv /etc/init.d/mathkernel.new /etc/init.d/mathkernel

update-rc.d mathkernel remove
update-rc.d mathkernel defaults
Now you are ready to install and setup the watchdog with the command sequence:

Code: Select all

# Load the module right now from command line
modprobe bcm2708_wdog
# This line below maybe overkill, global loading of the module on bootup
#grep -q bcm2708_wdog /etc/modules || echo "bcm2708_wdog" >> /etc/modules
sed -e 's#^watchdog_module=.*#watchdog_module=\"bcm2708_wdog\"#' -i /etc/init.d/wd_keepalive
sed -e 's#^watchdog_module=.*#watchdog_module=\"bcm2708_wdog\"#' -i /etc/init.d/watchdog

apt-get install watchdog
# Uncomment the watchdog-device
sed -e 'sX^#watchdog-deviceXwatchdog-deviceX' -i  /etc/watchdog.conf
# Start it up manually
service watchdog start
# Probably not needed to set this up as it should already be setup
update-rc.d wd_keepalive defaults
update-rc.d watchdog defaults
# Check it has around 4 S01* links setup
ls -l /etc/rc?.d/*watch*
# Check it has around 3 K01* and 4 S04* links setup
ls -l /etc/rc?.d/*watch*
You can test watchdog is working by using "kill -9" on the PID of it. Note using "service watchdog stop" or using "kill -15" will allow /usr/sbin/watchdog to cleanup and disable the watchdog in the kernel

Code: Select all

$ ps uaxw | grep watchdog | grep -v grep
root      12345 0.0  0.3   1740  1680 ?        SLs  12:01   0:01 /usr/sbin/watchdog
$ pidof watchdog
12345
$ sync
$ kill -9 $(pidof watchdog)
$ sync
$ dmesg | tail -n 1

## The kernel log entry above confirm the kernel saw the userspace application /usr/sbin/watchdog disconnect without stopping the kernel module and it warning that the system is going to restart soon.

## wait upto 10 seconds and system should restart

Return to “Troubleshooting”