dbus_bus_request_name (): Connections are not allowed to own the service

Ahmed Darwish ahmed.07 at gmail.com
Wed May 10 07:59:02 PDT 2006


Hi all. I've compiled and installed dbus-0.60 under linux-2.6.16
(System IPC enabled). It seemed to works fine when I checked it with
utils like dbus-monitor and dbus-viewer. But It seems that daemons
like Avahi can't connect. avahi-daemon produced the following:

dbus_bus_get(): Failed to connect to socket
/var/run/dbus/system_bus_socket: Connection refused

After googling, some folks running Gnome Power Manager faced this
problem and they were adviced to restart d-bus. After restarting dbus,
avahi-daemon produced this error message and exited !:

dbus_bus_request_name(): Connection ":1.8" is not allowed to own the
service "org.freedesktop.Avahi" due to security policies in the
configuration file

I've read README and the FAQs at dbus homepage but nothing matched.
Any help is greatly appreciated.

ahmed $ dbus-monitor
signal sender=org.freedesktop.DBus -> dest=:1.0
interface=org.freedesktop.DBus; member=NameAcquired
 string ":1.0"
method call sender=:1.0 -> dest=org.freedesktop.DBus
interface=org.freedesktop.DBus; member=AddMatch
( .. similare messages continue ..)

ahmed $ ps aux | grep dbus
146       2597  0.0  0.1   2208   752 ?        Ss   01:14   0:00
dbus-daemon --config-file=/etc/dbus-1/system.conf
ahmed     2602  0.0  0.1   2204   804 ?        Ss   01:14   0:00
dbus-daemon --fork --print-pid 8 --print-address 6 --session
root      2611  0.0  0.0   2160   424 ?        Ss   01:16   0:00
dbus-daemon --fork --print-pid 8 --print-address 6 --session

--
Ahmed S. Darwish


More information about the dbus mailing list