[help] failed to run hald, system_bus_socket connection refused.

=?big5?q?=A9=D3=AB=DB?= bsdson.tw at yahoo.com.tw
Sun Feb 26 19:27:42 PST 2006


hello, everyone.
first of all, I'm sorry if this is not the right place for a help.
(maybe for developers only?
if so, please tell me where to get the help, thx)

----

The problem is that while I run 
"hald --daemon=no --verbose=yes"
it fails with the following messages:
<skip>
2788: 11:06:00.398: probe-pc-floppy.c:73: Checking if /dev/fd0 is
actually present
2788: 11:06:00.399: probe-pc-floppy.c:88: floppy drive name is
'H1440'
11:06:00.400 [I] hald_dbus.c:3035: 2766: Got a connection
11:06:00.401 [I] hald_dbus.c:3036: dbus_connection_get_is_connected =
1
11:06:00.401 [I] hald_dbus.c:2997: local_server_message_handler:
destination=(null) obj_path=/org/freedesktop/DBus/Local
interface=org.freedesktop.DBus.Local method=Disconnected
11:06:00.401 [I] hald_dbus.c:3013: Client to local_server was
disconnected
11:06:00.401 [I] hald_dbus.c:3023: unregistered
11:06:00.444 [I] util.c:607: child exited for pid 2788
11:06:00.444 [I] blockdev.c:280: entering; timed_out=0, return_code=0
11:06:00.451 [I] device_info.c:1371: *** Matched file
/usr/share/hal/fdi/policy/10osvendor/10-storage-policy.fdi
11:06:00.453 [I] blockdev.c:139: Add callouts completed
udi=/org/freedesktop/Hal/devices/platform_floppy_0_storage
11:06:00.454 [I] hald.c:90: Added device to GDL;
udi=/org/freedesktop/Hal/devices/platform_floppy_0_storage
11:06:00.454 [I] acpi.c:1088: acpi_add:
acpi_path=/proc/acpi/processor/CPU1 acpi_type=1, parent=0x00000000
11:06:00.461 [I] acpi.c:1060: Add callouts completed
udi=/org/freedesktop/Hal/devices/acpi_CPU1
11:06:00.461 [I] hald.c:90: Added device to GDL;
udi=/org/freedesktop/Hal/devices/acpi_CPU1
11:06:00.462 [I] acpi.c:1088: acpi_add:
acpi_path=/proc/acpi/button/power/PWRF acpi_type=9, parent=0x00000000
11:06:00.470 [I] acpi.c:1060: Add callouts completed
udi=/org/freedesktop/Hal/devices/acpi_PWRF
11:06:00.470 [I] hald.c:90: Added device to GDL;
udi=/org/freedesktop/Hal/devices/acpi_PWRF
11:06:00.470 [I] acpi.c:1088: acpi_add:
acpi_path=/proc/acpi/button/sleep/SLPB acpi_type=9, parent=0x00000000
11:06:00.478 [I] acpi.c:1060: Add callouts completed
udi=/org/freedesktop/Hal/devices/acpi_SLPB
11:06:00.479 [I] hald.c:90: Added device to GDL;
udi=/org/freedesktop/Hal/devices/acpi_SLPB
11:06:00.479 [I] hald.c:659: Device probing completed
11:06:00.479 [I] hald_dbus.c:3091: entering
11:06:00.479 [E] hald_dbus.c:3098: dbus_bus_get(): Failed to connect
to
socket /var/lib/dbus/system_bus_socket: Connection refused
11:06:00.479 [I] util.c:1268: Killing helper with pid 2788
11:06:00.479 [I] util.c:1268: Killing helper with pid 2786
11:06:00.480 [I] util.c:1268: Killing helper with pid 2772

and I don't know what's going on and how to fix it!
please help me...

----

followings are some related informations:
1. hal version 0.5.6
2. /etc/dbus-1/system.d/hal.conf
<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>

  <!-- This configuration file specifies the required security
policies
       for the HAL to work. -->

  <!-- Only root or user hal can own the HAL service -->
  <policy user="hal">
    <allow own="org.freedesktop.Hal"/>
  </policy>
  <policy user="root">
    <allow own="org.freedesktop.Hal"/>
  </policy>

  <!-- Allow anyone to invoke methods on the Manager and Device
interfaces -->
  <policy context="default">
    <allow send_interface="org.freedesktop.Hal.Manager"/>
    <allow send_interface="org.freedesktop.Hal.Device"/>

    <allow receive_interface="org.freedesktop.Hal.Manager"
           receive_sender="org.freedesktop.Hal"/>
    <allow receive_interface="org.freedesktop.Hal.Device"
           receive_sender="org.freedesktop.Hal"/>
  </policy>

  <!-- Default policy for the exported interfaces -->
  <policy context="default">
    <deny
send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
    <deny send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
    <deny send_interface="org.freedesktop.Hal.Device.Volume"/>
    <deny send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
  </policy>

  <!-- This will not work if pam_console support is not enabled -->
  <policy group="power">
    <allow
send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
    <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
    <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
    <allow
send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
  </policy>

  <!-- You can change this to a more suitable user, or make per-group
-->
  <policy user="0">
    <allow
send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
    <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
    <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
    <allow
send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
  </policy>

</busconfig>

3. dbus version 0.50
4. /etc/dbus-1/system.conf
<!-- This configuration file controls the systemwide message bus.
     Add a system-local.conf and edit that rather than changing this 
     file directly. -->

<!-- Note that there are any number of ways you can hose yourself
     security-wise by screwing up this file; in particular, you
     probably don't want to listen on any more addresses, add any
more
     auth mechanisms, run as a different user, etc. -->

<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus
Configuration
1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>

  <!-- Our well-known bus type, do not change this -->
  <type>system</type>

  <!-- Run as special user -->
  <user>81</user>

  <!-- Fork into daemon mode -->
  <fork/>

  <!-- Write a pid file -->
  <pidfile>/var/run/dbus.pid</pidfile>

  <!-- Only allow socket-credentials-based authentication -->
  <auth>EXTERNAL</auth>

  <!-- Only listen on a local socket. (abstract=/path/to/socket 
       means use abstract namespace, don't really create filesystem 
       file; only Linux supports this. Use path=/whatever on other 
       systems.) -->
  <listen>unix:path=/var/run/dbus/system_bus_socket</listen>

  <policy context="default">
    <!-- Deny everything then punch holes -->
    <deny send_interface="*"/>
    <deny receive_interface="*"/>
    <deny own="*"/>
    <!-- But allow all users to connect -->
    <allow user="*"/>
    <!-- Allow anyone to talk to the message bus -->
    <!-- FIXME I think currently these allow rules are always
implicit 
         even if they aren't in here -->
    <allow send_destination="org.freedesktop.DBus"/>
    <allow receive_sender="org.freedesktop.DBus"/>
    <!-- valid replies are always allowed -->
    <allow send_requested_reply="true"/>
    <allow receive_requested_reply="true"/>
  </policy>

  <!-- Config files are placed here that among other things, punch 
       holes in the above policy for specific services. -->
  <includedir>system.d</includedir>

  <!-- This is included last so local configuration can override
what's

       in this standard file -->
  <include ignore_missing="yes">system-local.conf</include>

  <include if_selinux_enabled="yes"
selinux_root_relative="yes">contexts/dbus_contexts</include>

</busconfig>

5. owner & group
-rwxr-xr-x  1 root root 213K 2006-01-27 02:39 /usr/sbin/hald
-rwxr-xr-x  1 root root 270K 2005-11-16 17:17 /usr/bin/dbus-daemon

6. passwd
dbus:x:81:81:System message bus:/:/bin/false
hal:x:82:82:HAL daemon:/:/bin/false

7. group
dbus:x:81:dbus,hal
hal:x:82:hal,dbus
video:x:91:dbus,hal
audio::92:dbus,hal
optical::93:dbus,hal
floppy:x:94:dbus,hal
storage:x:95:dbus,hal

9. uname -a
Linux henrylee 2.6.15-ARCH #1 SMP PREEMPT Sun Feb 12 18:36:42 CET
2006
i686 Pentium III (Coppermine) GenuineIntel GNU/Linux

10. system_dbus_socket
srwxrwxrwx  1 root root 0 2006-02-23 09:22
/var/run/dbus/system_bus_socket

11. lsof /var/run/dbus/system_bus_socket
COMMAND    PID USER   FD   TYPE     DEVICE SIZE NODE NAME
dbus-daem 2385 dbus    3u  unix 0xd636e200      4103
/var/run/dbus/system_bus_socket

if I missed any information that helps, please let me know.
thank you very much..


___________________________________________________  最新版 Yahoo!奇摩即時通訊 7.0,免費網路電話任你打!  http://messenger.yahoo.com.tw/


More information about the hal mailing list