Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#35795 closed defect (worksforme)

dbus launching problems

Reported by: egor7@… Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: anddam (Andrea D'Amore), pixilla (Bradley Giesbrecht)
Port: dbus

Description

Install(Upgrade) DBUS:

$ sudo port install dbus

--->  Computing dependencies for dbus
--->  Fetching archive for dbus
--->  Attempting to fetch dbus-1.4.20_1+startupitem.darwin_10.x86_64.tbz2 from http://packages.macports.org/dbus
--->  Attempting to fetch dbus-1.4.20_1+startupitem.darwin_10.x86_64.tbz2.rmd160 from http://packages.macports.org/dbus
--->  Installing dbus @1.4.20_1+startupitem
--->  Deactivating dbus @1.4.20_1+startupitem+universal
--->  Cleaning dbus
--->  Activating dbus @1.4.20_1+startupitem

############################################################################
# Startup items have been generated that will aid in
# starting dbus with launchd. They are disabled
# by default. Execute the following command to start them,
# and to cause them to launch at startup:
#
# sudo launchctl load -w /Library/LaunchDaemons/org.freedesktop.dbus-system.plist
# launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist
############################################################################

--->  Cleaning dbus
--->  Updating database of binaries: 100.0%
--->  Scanning binaries for linking errors: 100.0%
--->  No broken files found.

then trying to activate:

$ launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist

Bug: launchctl.c:2344 (25952):13: (dbfd = open(g_job_overrides_db_path, O_RDONLY | O_EXLOCK | O_CREAT, S_IRUSR | S_IWUSR)) != -1
launchctl: CFURLWriteDataAndPropertiesToResource(/Library/LaunchAgents/org.freedesktop.dbus-session.plist) failed: -10
launch_msg(): Socket is not connected

Change History (9)

comment:1 Changed 12 years ago by pixilla (Bradley Giesbrecht)

The dbus port has to launchd plists. Did you first load system plist?

sudo launchctl load -w /Library/LaunchDaemons/org.freedesktop.dbus-system.plist
launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist

comment:2 in reply to:  1 Changed 12 years ago by egor7@…

Replying to pixilla@…:

The dbus port has to launchd plists. Did you first load system plist?

sudo launchctl load -w /Library/LaunchDaemons/org.freedesktop.dbus-system.plist
launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist

yes, I do, but with no any effects - dbus-system launched perfectly, but session is not. Session must be loaded from user, not from sudo, all correct, but it fails.

comment:3 Changed 12 years ago by anddam (Andrea D'Amore)

Cc: and.damore@… added

This issue suggest it's related to environment.

Are you using screen? If so from ports or apple's? Are you using tmux? If so with tmux-pasteboard port? Did you reboot since installing dbus or did you unload previously running LaunchDaemons/LaunchAgents plists?

What happens if you unload before loading?

 launchctl unload -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist
 launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist

identifier should be the same so you should be able to unload the previously loaded plist.

comment:4 Changed 12 years ago by anddam (Andrea D'Amore)

Owner: changed from macports-tickets@… to mcalhoun@…

comment:5 Changed 12 years ago by pixilla (Bradley Giesbrecht)

Cc: pixilla@… added

Cc Me!

comment:6 Changed 12 years ago by egor7@…

I've tried to reboot, no screen, no tmux, ant it works! Ticket may be closed. Thanks for attantion!

comment:7 Changed 12 years ago by anddam (Andrea D'Amore)

Resolution: worksforme
Status: newclosed

comment:8 Changed 11 years ago by dusan.maliarik@…

@and.damore@… How could I use meld from within tmux then? I made a diff of environment variables and nothing interesting related to dbus was found.

comment:9 in reply to:  8 Changed 11 years ago by anddam (Andrea D'Amore)

Replying to dusan.maliarik@…:

@and.damore@…

This isn't Twitter.

How could I use meld from within tmux then? I made a diff of environment variables and nothing interesting related to dbus was found.

I have no clue what you're talking about, if it is related to this ticket you'll have to elaborate more.

Note: See TracTickets for help on using tickets.