dapper->hardy upgrade dbus reload fails

Bug #172835 reported by Michael Vogt
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
hal (Ubuntu)
Fix Released
High
Martin Pitt

Bug Description

Binary package hint: hal

During a dapper->hardy upgrade, the following error occured (I got a conffile prompt before, this might be releated):

[72.1738] hal: Configuring hal
n^M
Installing new version of config file /etc/hal/fdi/policy/preferences.fdi ...^M
Installing new version of config file /etc/dbus-1/system.d/hal.conf ...^M
perl: warning: Setting locale failed.^M
perl: warning: Please check that your locale settings:^M
        LANGUAGE = (unset),^M
        LC_ALL = (unset),^M
        LANG = "en_DK.UTF-8"^M
    are supported and installed on your system.^M
perl: warning: Falling back to the standard locale ("C").^M
 * Reloading system message bus config...^M
Failed to open connection to system message bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused^M
invoke-rc.d: initscript dbus, action "force-reload" failed.^M
perl: warning: Setting locale failed.^M
perl: warning: Please check that your locale settings:^M
        LANGUAGE = (unset),^M
        LC_ALL = (unset),^M
        LANG = "en_DK.UTF-8"^M
    are supported and installed on your system.^M
perl: warning: Falling back to the standard locale ("C").^M
 * Starting Hardware abstraction layer hald^M
invoke-rc.d: initscript hal, action "start" failed.^M
dpkg: error processing hal (--configure):^M
 subprocess post-installation script returned error exit status 2^M

Revision history for this message
Michael Vogt (mvo) wrote :

The output of sh -xv on the failing script:

+ set -e
+ case "$1" in
+ getent passwd haldaemon
+ getent group powerdev
+ getent group plugdev
+ chown haldaemon:haldaemon /var/run/hal
+ '[' -x /etc/init.d/dbus ']'
+ invoke-rc.d dbus force-reload
 * Reloading system message bus config...
Failed to open connection to system message bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused
invoke-rc.d: initscript dbus, action "force-reload" failed.
+ true
+ dpkg --compare-versions '' le-nl 0.5.8.1-3ubuntu7
+ '[' -x /etc/init.d/hal ']'
+ update-rc.d hal start 24 2 3 4 5 . stop 16 1 .
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_DK.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
++ which invoke-rc.d
+ '[' -x /usr/sbin/invoke-rc.d ']'
+ invoke-rc.d hal start
 * Starting Hardware abstraction layer hald
invoke-rc.d: initscript hal, action "start" failed.
+ exit 1
['/bin/sh', '-x', '/var/lib/dpkg/info//hal.postinst', 'configure']

Changed in hal:
assignee: nobody → pitti
importance: Undecided → High
milestone: none → ubuntu-8.04-beta
Revision history for this message
Michael Vogt (mvo) wrote :

Here is also omething in the preinst that gives a warning/error about arguments, not sure what its about:

[37.8875] hal: Preparing hal
Removing obsolete conffile /etc/udev/rules.d/90-hal.rules ...^M
perl: warning: Setting locale failed.^M
perl: warning: Please check that your locale settings:^M
        LANGUAGE = (unset),^M
        LC_ALL = (unset),^M
        LANG = "en_DK.UTF-8"^M
    are supported and installed on your system.^M
perl: warning: Falling back to the standard locale ("C").^M
Undefined argument in option spec^M
Package `dhcdbd' is not installed and no info is available.^M
Use dpkg --info (= dpkg-deb --info) to examine archive files,^M
and dpkg --contents (= dpkg-deb --contents) to list their contents.^M
 * Stopping Hardware abstraction layer hald^M
   ...done.^M
Removing obsolete conffile /etc/dbus-1/event.d/20hal ...^M
rm: cannot remove `/usr/share/doc/hal': Is a directory^M
rm: cannot remove `/usr/share/doc/libhal-storage1': Is a directory^M
Unpacking replacement hal ...^M

Revision history for this message
Michael Vogt (mvo) wrote :

I looked briefly into this issue and it seems like a dbus restart fixes it and hal is happy again. Not sure if this is a real solution give the side-effects that has.

Martin Pitt (pitti)
Changed in hal:
status: New → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

Michael confirmed that with the latest hal not restarting itself from a dapper upgrade this is fixed.

Changed in hal:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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