[Spce-user] kamailio wont start after apt-get upgrade

Alexander Griesser ag at anexia.at
Sat Feb 28 05:26:37 EST 2015


Interesting.

The postinst script tries to do the following actions (at least on my system) and fails at one of these points.
You might want to replace the shebang in the first line with „#! /bin/sh –x“ to see where it stops or add some „echo“ debugging to this script to see where it bails out.
Location is /var/lib/dpkg/info/ngcp-kamailio.postinst.

#! /bin/sh
#

set -e

HOMEDIR=/var/run/kamailio

case "$1" in
    configure)
        adduser --quiet --system --group --disabled-password \
                --shell /bin/false --gecos "Kamailio" \
                --home "$HOMEDIR" kamailio || true
        ;;

    abort-upgrade|abort-remove|abort-deconfigure)
        ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
        ;;
esac

# Automatically added by dh_installinit
if [ -x "/etc/init.d/kamailio-lb" ]; then
        update-rc.d kamailio-lb defaults 23 >/dev/null
        invoke-rc.d kamailio-lb start || exit $?
fi
# End automatically added section
# Automatically added by dh_installinit
if [ -x "/etc/init.d/kamailio-proxy" ]; then
        update-rc.d kamailio-proxy defaults 23 >/dev/null
        invoke-rc.d kamailio-proxy start || exit $?
fi
# End automatically added section
# Automatically added by dh_makeshlibs
if [ "$1" = "configure" ]; then
        ldconfig
fi
# End automatically added section

Alexander Griesser
Head of Systems Operations

ANEXIA Internetdienstleistungs GmbH

E-Mail: ag at anexia.at<mailto:ag at anexia.at>
Web: http://www.anexia.at<http://www.anexia.at/>

Anschrift Hauptsitz Klagenfurt: Feldkirchnerstraße 140, 9020 Klagenfurt
Geschäftsführer: Alexander Windbichler
Firmenbuch: FN 289918a | Gerichtsstand: Klagenfurt | UID-Nummer: AT U63216601

Von: Jasper Hagoort [mailto:jhagoort at dside-telecom.nl]
Gesendet: Samstag, 28. Februar 2015 11:22
An: Alexander Griesser
Cc: spce-user at lists.sipwise.com
Betreff: Re: AW: [Spce-user] kamailio wont start after apt-get upgrade

root at sip ~ # apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
9 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up ngcp-kamailio (4.1.6-1+0~mr3.7.1.2) ...
Active node or transition.
Starting kamailio-lb using /etc/kamailio/lb/kamailio.cfg:
kamailio already running.
Active node or transition.
Starting kamailio-proxy using /etc/kamailio/proxy/kamailio.cfg:
loading modules under /usr/lib/x86_64-linux-gnu/kamailio/modules:/usr/lib/kamailio/modules
Listening on
             udp: 127.0.0.1:5062
             tcp: 127.0.0.1:5062
Aliases:

kamailio error, failed to start.
invoke-rc.d: initscript kamailio-proxy, action "start" failed.
dpkg: error processing ngcp-kamailio (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of ngcp-kamailio-mysql-modules:amd64:
 ngcp-kamailio-mysql-modules:amd64 depends on ngcp-kamailio (= 4.1.6-1+0~mr3.7.1.2); however:
  Package ngcp-kamailio is not configured yet.

dpkg: error processing ngcp-kamailio-mysql-modules:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ngcp-kamailio-lcrrate-modules:amd64:
 ngcp-kamailio-lcrrate-modules:amd64 depends on ngcp-kamailio-mysql-modules (= 4.1.6-1+0~mr3.7.1.2); however:
  Package ngcp-kamailio-mysql-modules:amd64 is not configured yet.

dpkg: error processing ngcp-kamailio-lcrrate-modules:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ngcp-kamailio-lua-modules:amd64:
 ngcp-kamailio-lua-modules:amd64 depends on ngcp-kamailio (= 4.1.6-1+0~mr3.7.1.2); however:
  Package ngcp-kamailio is not configured yet.

dpkg: error processing ngcp-kamailio-lua-modules:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ngcp-kamailio-presence-modules:amd64:
 ngcp-kamailio-presence-modules:amd64 depends on ngcp-kamailio (= 4.1.6-1+0~mr3.7.1.2); however:
  Package ngcp-kamailio is not configured yet.

dpkg: error processing ngcp-kamailio-presence-modules:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ngcp-kamailio-tls-modules:amd64:
 ngcp-kamailio-tls-modules:amd64 depends on ngcp-kamailio (= 4.1.6-1+0~mr3.7.1.2); however:
  Package ngcp-kamailio is not configured yet.

dpkg: error processing ngcp-kamailio-tls-modules:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ngcp-kamailio-utils-modules:amd64:
 ngcp-kamailio-utils-modules:amd64 depends on ngcp-kamailio (= 4.1.6-1+0~mr3.7.1.2); however:
  Package ngcp-kamailio is not configured yet.

dpkg: error processing ngcp-kamailio-utils-modules:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ngcp-kamailio-websocket-modules:amd64:
 ngcp-kamailio-websocket-modules:amd64 depends on ngcp-kamailio (= 4.1.6-1+0~mr3.7.1.2); however:
  Package ngcp-kamailio is not configured yet.

dpkg: error processing ngcp-kamailio-websocket-modules:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ngcp-kamailio-xml-modules:amd64:
 ngcp-kamailio-xml-modules:amd64 depends on ngcp-kamailio (= 4.1.6-1+0~mr3.7.1.2); however:
  Package ngcp-kamailio is not configured yet.

dpkg: error processing ngcp-kamailio-xml-modules:amd64 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 ngcp-kamailio
 ngcp-kamailio-mysql-modules:amd64
 ngcp-kamailio-lcrrate-modules:amd64
 ngcp-kamailio-lua-modules:amd64
 ngcp-kamailio-presence-modules:amd64
 ngcp-kamailio-tls-modules:amd64
 ngcp-kamailio-utils-modules:amd64
 ngcp-kamailio-websocket-modules:amd64
 ngcp-kamailio-xml-modules:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

________________________________
Van: "Alexander Griesser" <ag at anexia.at<mailto:ag at anexia.at>>
Aan: "Jasper Hagoort" <jhagoort at dside-telecom.nl<mailto:jhagoort at dside-telecom.nl>>, spce-user at lists.sipwise.com<mailto:spce-user at lists.sipwise.com>
Verzonden: Zaterdag 28 februari 2015 11:16:38
Onderwerp: AW: [Spce-user] kamailio wont start after apt-get upgrade
Hi Jasper,

what would `apt-get –f install` do? Don’t accept what it suggests blindly, just send the output first.

Best,

Alexander Griesser
Head of Systems Operations

ANEXIA Internetdienstleistungs GmbH

E-Mail: ag at anexia.at<mailto:ag at anexia.at>
Web: http://www.anexia.at<http://www.anexia.at/>

Anschrift Hauptsitz Klagenfurt: Feldkirchnerstraße 140, 9020 Klagenfurt
Geschäftsführer: Alexander Windbichler
Firmenbuch: FN 289918a | Gerichtsstand: Klagenfurt | UID-Nummer: AT U63216601

Von: Spce-user [mailto:spce-user-bounces at lists.sipwise.com] Im Auftrag von Jasper Hagoort
Gesendet: Samstag, 28. Februar 2015 11:06
An: spce-user at lists.sipwise.com<mailto:spce-user at lists.sipwise.com>
Betreff: [Spce-user] kamailio wont start after apt-get upgrade


root at sip ~ # apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
9 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
[master 8461322] saving uncommitted changes in /etc prior to apt run
 Author: root <root at sip.dside.nl<mailto:root at sip.dside.nl>>
 15 files changed, 16 insertions(+), 3 deletions(-)
Setting up ngcp-kamailio (4.1.6-1+0~mr3.7.1.2) ...
Active node or transition.
Starting kamailio-lb using /etc/kamailio/lb/kamailio.cfg:
kamailio already running.
Active node or transition.
Starting kamailio-proxy using /etc/kamailio/proxy/kamailio.cfg:
loading modules under /usr/lib/x86_64-linux-gnu/kamailio/modules:/usr/lib/kamailio/modules
Listening on
             udp: 127.0.0.1:5062
             tcp: 127.0.0.1:5062
Aliases:

kamailio error, failed to start.
invoke-rc.d: initscript kamailio-proxy, action "start" failed.
dpkg: error processing ngcp-kamailio (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of ngcp-kamailio-mysql-modules:amd64:
 ngcp-kamailio-mysql-modules:amd64 depends on ngcp-kamailio (= 4.1.6-1+0~mr3.7.1.2); however:
  Package ngcp-kamailio is not configured yet.

dpkg: error processing ngcp-kamailio-mysql-modules:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ngcp-kamailio-lcrrate-modules:amd64:
 ngcp-kamailio-lcrrate-modules:amd64 depends on ngcp-kamailio-mysql-modules (= 4.1.6-1+0~mr3.7.1.2); however:
  Package ngcp-kamailio-mysql-modules:amd64 is not configured yet.

dpkg: error processing ngcp-kamailio-lcrrate-modules:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ngcp-kamailio-lua-modules:amd64:
 ngcp-kamailio-lua-modules:amd64 depends on ngcp-kamailio (= 4.1.6-1+0~mr3.7.1.2); however:
  Package ngcp-kamailio is not configured yet.

dpkg: error processing ngcp-kamailio-lua-modules:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ngcp-kamailio-presence-modules:amd64:
 ngcp-kamailio-presence-modules:amd64 depends on ngcp-kamailio (= 4.1.6-1+0~mr3.7.1.2); however:
  Package ngcp-kamailio is not configured yet.

dpkg: error processing ngcp-kamailio-presence-modules:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ngcp-kamailio-tls-modules:amd64:
 ngcp-kamailio-tls-modules:amd64 depends on ngcp-kamailio (= 4.1.6-1+0~mr3.7.1.2); however:
  Package ngcp-kamailio is not configured yet.

dpkg: error processing ngcp-kamailio-tls-modules:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ngcp-kamailio-utils-modules:amd64:
 ngcp-kamailio-utils-modules:amd64 depends on ngcp-kamailio (= 4.1.6-1+0~mr3.7.1.2); however:
  Package ngcp-kamailio is not configured yet.

dpkg: error processing ngcp-kamailio-utils-modules:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ngcp-kamailio-websocket-modules:amd64:
 ngcp-kamailio-websocket-modules:amd64 depends on ngcp-kamailio (= 4.1.6-1+0~mr3.7.1.2); however:
  Package ngcp-kamailio is not configured yet.

dpkg: error processing ngcp-kamailio-websocket-modules:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ngcp-kamailio-xml-modules:amd64:
 ngcp-kamailio-xml-modules:amd64 depends on ngcp-kamailio (= 4.1.6-1+0~mr3.7.1.2); however:
  Package ngcp-kamailio is not configured yet.

dpkg: error processing ngcp-kamailio-xml-modules:amd64 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 ngcp-kamailio
 ngcp-kamailio-mysql-modules:amd64
 ngcp-kamailio-lcrrate-modules:amd64
 ngcp-kamailio-lua-modules:amd64
 ngcp-kamailio-presence-modules:amd64
 ngcp-kamailio-tls-modules:amd64
 ngcp-kamailio-utils-modules:amd64
 ngcp-kamailio-websocket-modules:amd64
 ngcp-kamailio-xml-modules:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)


[Das Bild wurde vom Absender entfernt.]






Jasper Hagoort
Directeur


Zalmweg 36E | 4941 VX Raamsdonksveer
T +31 (0)162 714 450 | F +31 (0)162 714 451



dside-telecom.nl<http://www.dside-telecom.nl>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20150228/76864f28/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 823 bytes
Desc: image001.jpg
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20150228/76864f28/attachment-0001.jpg>


More information about the Spce-user mailing list