Opened 6 years ago

Closed 6 years ago

#56738 closed defect (duplicate)

Failure to install dbus

Reported by: kelleyj Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: base Version: 2.5.2
Keywords: Cc:
Port:

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Upon attempting to install gnuradio, ports fails out on installing dbus. The error log gives:

Error: Failed to activate dbus: error renaming "/opt/local/var/macports/software/dbus/mpextractxjyyE352/Library/LaunchDaemons/org.freedesktop.dbus-system.plist" to "/Library/LaunchDaemons/org.freedesktop.dbus-system.plist": permission denied

After verifying that the permissions (and making sure that it was run as sudo) there appeared to be no resolution. However, if one manually untars the dbus port, one can see that in ./Library/LaunchAgents and ./LibraryLaunchDaemons it is creating .plist files that are a soft link back to /opt/local/etc/{LaunchDaemons,LaunchAgents}, but when checking the soft link, one can see that these directories do not exist.

Change History (10)

comment:1 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: set to MarcusCalhoun-Lopez
Priority: HighNormal
Status: newassigned

comment:2 Changed 6 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Please run

sudo port clean dbus
sudo port install dbus

If there is still an error, please post the main.log as outlined in the error message.

comment:3 Changed 6 years ago by kencu (Ken)

This has been happening to me with several ports, most often dbus.

The solution in every case has just been to

sudo port -v activate dbus

and then select the last one from the list that pops up. It always activates without any trouble doing that.

comment:4 Changed 6 years ago by jmroot (Joshua Root)

Can you give more info about your setup? OS version? Any startupitem-related settings in your macports.conf?

And can you attach the log file?

Last edited 6 years ago by jmroot (Joshua Root) (previous) (diff)

comment:5 Changed 6 years ago by mwette

I'm getting "startupitems" error message

root# port clean --all dbus
Error: Unable to open port: invalid command name "startupitems"

root# port uninstall dbus
Note: It is not recommended to uninstall/deactivate a port that has dependents as it breaks the dependents.
The following ports will break:
 dbus-glib @0.110_0
 qt4-mac @4.8.7_7
Continue? [y/N]: y
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Deactivating dbus @1.12.8_0
--->  Cleaning dbus
--->  Uninstalling dbus @1.12.8_0
--->  Cleaning dbus

root# port install dbus
Error: Unable to open port: invalid command name "startupitems"

root# port -d install dbus
DEBUG: Copying /Users/mwette/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/devel/dbus
DEBUG: OS darwin/16.7.0 (Mac OS X 10.12) arch i386
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Sourcing PortGroup muniversal 1.0 from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: invalid command name "startupitems"
    while executing
"startupitems        name        dbus-system \
                    location    LaunchDaemons \
                    uniquename  ${daemon_uniquename} \
 ..."
    (file "Portfile" line 59)
    invoked from within
"source Portfile"
    invoked from within
"$workername eval {source Portfile}"
    (procedure "mportopen" line 41)
    invoked from within
"mportopen $porturl [array get options] [array get requested_variations]"
Error: Unable to open port: invalid command name "startupitems"
Last edited 6 years ago by mwette (previous) (diff)

comment:6 in reply to:  5 Changed 6 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Replying to mwette:

I'm getting "startupitems" error message

root# port clean --all dbus
Error: Unable to open port: invalid command name "startupitems"

Are you using the latest versions of MacPorts?
Please run sudo port selfupdate, run sudo port clean dbus, run port install dbus, and post the main.log file if the problem persists.

comment:7 Changed 6 years ago by mwette

mwette$ sudo -s
Password: 
root#

I've run selfupdate at least three times and it always says the exact same thing:

root# port selfupdate
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.4.2 installed,
MacPorts base version 2.5.2 downloaded.

which tells me the update is somehow not working right.

Then I get {{{root# port clean dbus Error: Unable to open port: invalid command name "startupitems" root# port uninstall dbus root# port install dbus Error: Unable to open port: invalid command name "startupitems" root# port clean dbus Error: Unable to open port: invalid command name "startupitems" }}}

No main.log file to provide. I will hunt for other stuff.

comment:8 Changed 6 years ago by kencu (Ken)

I don't think you can do it that way.

Do this instead:

sudo port -v selfupdate

comment:9 Changed 6 years ago by jmroot (Joshua Root)

Regardless, that's selfupdate failing, which is not what this ticket is about. Please restrict discussion in this ticket to just the problem described by the original reporter.

comment:10 Changed 6 years ago by jmroot (Joshua Root)

Component: portsbase
Port: dbus removed
Resolution: duplicate
Status: assignedclosed

Most likely the same underlying problem as #56721.

Note: See TracTickets for help on using tickets.