Fail to connect to socket, not found system_bus_socket.

dtdang <[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <CAJpUOaf6tr_97PPt4Uk18bFxD-3U+_gUcwMLwTVoWGQNufHwAQ@mail.gmail.com>
Hello,

Here is my cross-compile make command to build dbus-daemon util.

./configure  --host=mipsel-linux-gnu --disable-static --enable-shared
--prefix=/usr CC=/opt/toolchains/stbgcc-4.8-1.6/bin/mipsel-linux-gnu-gcc
LD=/opt/toolchains/stbgcc-4.8-1.6/bin/mipsel-linux-gnu-ld
--enable-tests=no && sudo make && sudo make install


After that I run "dbus-daemon --system &" as daemon. The system-config file
was attached.

However, when I run my application or 'dbus-monitor' util then I get bellow
error.


"Fail to connect to socket /usr/var/run/dbus/system_bus_socket: No such
file or directory".


Even I check in /tmp/dbus/ then I can see 'pid' & 'system_bus_socket' was
created there when running dbus-daemon.


It is a bit weird since I set local socket as
'<listen>unix:path=/tmp/dbus/system_bus_socket</listen>' in system.conf
file.

But this error still happen.


Could anyone help me to point out the root cause ?


Thanks,

_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus
system.conf (application/octet-stream, 1.5 KB)
<!-- 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>

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

  <!-- Write a pid file -->
  <pidfile>/tmp/dbus/pid</pidfile>

  <!-- Enable logging to syslog -->
  <syslog/>

  <!-- 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=/tmp/dbus/system_bus_socket</listen>

  <allow_anonymous></allow_anonymous>
  <auth>ANONYMOUS</auth>
  <include ignore_missing="yes">nonexistent.conf</include>

  <policy context="default">
    <!-- All users can connect to system bus -->
    <allow user="*"/>
	
    <!-- Allow everything to be sent -->
    <allow send_destination="*" eavesdrop="true"/>
    <!-- Allow everything to be received -->
    <allow eavesdrop="true"/>
    <!-- Allow anyone to own anything -->
    <allow own="*"/>
  </policy>
</busconfig>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.