Failing to connect to D-Bus

Andy Bell andy at j2kvideo.com
Mon Sep 27 08:37:46 PDT 2010


Hi,

I have started to develop a client using a D-Bus service.  For some reason I
am always getting an error on initialisation using the following code:

    DBusConnection * connection;
    DBusError error;

    LibHalContext * ctx;
    dbus_error_init( &error );
    connection = dbus_bus_get( DBUS_BUS_SYSTEM, &error );

    if ( dbus_error_is_set( &error ) )
    {
         return 0;
    }

In the logs I am getting:

Unable to connect to DBus: Did not receive a reply. Possible causes include:
the remote application did not send a reply, the message bus security policy
blocked the reply, the reply timeout expired, or the network connection was
broken.

Checking the service messagebus I have:

service messagebus status
dbus-daemon (pid 1773) is running...

I haven't touched the configuration system.conf so I am a little lost why I
can't connect to the daemon.

Any ideas or pointers?

Thanks in advance, Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20100927/96efc87e/attachment.htm>


More information about the dbus mailing list