#26712 closed defect (worksforme)
dbus @1.2.24_1: Start error - Socket error
Reported by: | fokkovisser@… | Owned by: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.1 |
Keywords: | Cc: | jaguarul@…, anatol (Anatol Pomozov), mparchet@… | |
Port: | dbus |
Description
I've been wrestling with this problem for day's . When I start dbus i got this error:
Failed to start message bus: launchd's environment variable DBUS_LAUNCHD_SESSION_BUS_SOCKET is empty, but should contain a socket path. EOF in dbus-launch reading address from bus daemon
I installed dbus in combination of gnome on a ppc64 machine with 10.5.8. I googled it much and i seems to me a specific problem with dbus, mac osx 10.5.8 and a ppc machine.
I did run the command
sudo launchctl load -w /Library/LaunchDaemons/org.freedesktop.dbus-system.plist
and/or
launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist
Nothing worked out for me. Please help
Change History (10)
comment:1 Changed 14 years ago by jmroot (Joshua Root)
Cc: | mcalhoun@… openmaintainer@… removed |
---|---|
Owner: | changed from macports-tickets@… to mcalhoun@… |
comment:5 Changed 14 years ago by anatol (Anatol Pomozov)
I have the same issue trying to run vala tests on macosx 10.6.4 64bits Intel.
comment:8 Changed 10 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
dbus has undergone numerous revisions since this ticket was opened (apologies for never acknowledging).
I have never encountered this problem.
Closing now with the hope that the problem has been solved in the interim.
We can reassess if there is still a problem.
comment:9 follow-up: 10 Changed 9 years ago by ryan.young.baylor@…
I also get the same error, newest version of dbus, Mac OS X 10.10.4 .. no clue what to do about it. Ran the code suggested by port notes dbus
. But no cigar.
sudo dbus-launch bash
Failed to start message bus: launchd's environment variable DBUS_LAUNCHD_SESSION_BUS_SOCKET is empty, but should contain a socket path.
EOF in dbus-launch reading address from bus daemon
comment:10 Changed 9 years ago by dbevans (David B. Evans)
Replying to ryan.young.baylor@…:
I also get the same error, newest version of dbus, Mac OS X 10.10.4 .. no clue what to do about it. Ran the code suggested by
port notes dbus
. But no cigar.
sudo dbus-launch bash
Failed to start message bus: launchd's environment variable DBUS_LAUNCHD_SESSION_BUS_SOCKET is empty, but should contain a socket path.
EOF in dbus-launch reading address from bus daemon
On Mac OS X, dbus-launch is not used to start a session dbus instance, say at user login time, as it typically is on Linux implementations. Rather OS X's launchd facility is used instead as outlined in the notes from the dbus port.
So when you execute the command
launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist
the session dbus instance is immediately started (if it doesn't already exist) and will similarly be started each time you login thereafter. You only have to do this once.
Having executed this command you can verify that the session bus is running using
$ ps ax | grep dbus 21714 ?? S 0:00.37 /opt/local/bin/dbus-daemon --nofork --session
Similarly you can verify that DBUS_LAUNCHD_SESSION_BUS_SOCKET env var is set using something like this
$ env | grep DBUS DBUS_LAUNCHD_SESSION_BUS_SOCKET=/private/tmp/com.apple.launchd.rvlgFyFZuj/unix_domain_listener
If you want to stop the session bus, just use the same command with 'unload' instead of 'load'.
launchctl unload -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist
I should note that using sudo with dbus-launch is why your got the DBUS_LAUNCHD_SESSION_BUS_SOCKET error. The session bus is running in your user session, not that of the privileged user.
Since this is an old ticket and has been closed, if you need more help with this issue please inquire on the macports-users email list.
Thanks.
As stated in the ticket guidelines, it's not useful to cc openmaintainer.