Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#56471 closed defect (fixed)

GnuCash 3.1 fails to start

Reported by: thomasleaute Owned by: drkp (Dan Ports)
Priority: Normal Milestone:
Component: ports Version: 2.4.4
Keywords: Cc:
Port: gnucash

Description

Hi,

When I attempt to activate gnucash @3.1_0, I get the following error message:

Error: Failed to activate gnucash: Image error: 
/opt/local/share/glib-2.0/schemas/gschemas.compiled already exists and does not belong to a registered port.  
Unable to activate port gnucash. Use 'port -f activate gnucash' to force the activation.

Forcing the activation as suggested produces the following warning:

Warning: File /opt/local/share/glib-2.0/schemas/gschemas.compiled already exists.  
Moving to: /opt/local/share/glib-2.0/schemas/gschemas.compiled.mp_1526142725.

Then, attempting to start gnucash brings up the splash screen for a second, but then results in a crash with the following error message:

dbus[657]: Dynamic session lookup supported but failed: launchd did not provide a socket path, 
verify that org.freedesktop.dbus-session.plist is loaded!

gnucash @2.6.20_0+hbci+ofx works fine.

Any suggestions?

Change History (15)

comment:1 Changed 3 years ago by mf2k (Frank Schima)

Owner: set to drkp
Status: newassigned

In the future, please Cc the port maintainer(s) (port info --maintainers gnucash).

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

I just installed and ran gnucash last night.

You might need to do this:

$ port notes dbus
dbus has the following notes:
  ############################################################################
  # Startup items were not installed for dbus
  # Some programs which depend on dbus might not function properly.
  # To load dbus manually, run
  #
  # launchctl load -w /opt/local/Library/LaunchDaemons/org.freedesktop.dbus-system.plist
  # launchctl load -w /opt/local/Library/LaunchAgents/org.freedesktop.dbus-session.plist
  ############################################################################

comment:3 Changed 3 years ago by thomasleaute

The first command line returns the following:

/opt/local/Library/LaunchDaemons/org.freedesktop.dbus-system.plist: service already loaded

and the second returns the following error message:

Could not find domain for 

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

If gnucash still doesn't work, restart your computer and try it again.

comment:5 Changed 3 years ago by thomasleaute

Rebooting didn't help.

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

mmm. and you keep getting:

dbus[657]: Dynamic session lookup supported but failed: launchd did not provide a socket path, 
verify that org.freedesktop.dbus-session.plist is loaded!

OK. I'm out of ideas :>

Everything I've read, and all the reports I can find, e.g. 53378 say that should work.

I guess we'll have to wait for someone to chime in. Google has dozens of hits on this error sentence -- maybe you can find something in there.

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

come to think of it, the fix in 53378 is slightly different. Maybe that one would work for you.

comment:8 Changed 3 years ago by thomasleaute

The solution proposed to #53378 that you are pointing to is the first one I found and tried before opening this ticket, but it returns the same error message "Could not find domain for" and does not solve the issue.

comment:9 Changed 3 years ago by thomasleaute

I got a bit further. Until now, I had run launchtcl in Terminal, logged in as a sudo user (my normal user account isn't a sudo user). This time, I ran it in XQuartz as my normal user. I did not get any error message "Could not find domain for". When I then start gnucash from an XQuartz command line, the splash screen appears for a split second, and then gnucash exits unexpectedly without displaying any error message at the command line. Even when passed the --debug command line option, nothing is displayed.

I'm starting to think that the dbus error message may be unrelated with the gnucash unexpected termination.

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

ok. the place to look for the error message that might help figure it out is in the console application, in utilities.

open that, run gnucash, and see what errors are listed.

there may also be crash reports in crashreporter.

comment:11 Changed 3 years ago by thomasleaute

Absolutely nothing shows up in the Console. No entry in the logs, no crash report. Nothing.

comment:12 Changed 3 years ago by drkp (Dan Ports)

Status: assignedaccepted

I'm seeing this now too... maybe a path error loading the modules.

comment:13 Changed 3 years ago by drkp (Dan Ports)

Summary: GnuCash 3.1 fails to start: "Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!"GnuCash 3.1 fails to start

Yes, gnucash seems confused about which path to search for its modules.

I'm a little confused about why this is happening now, since it clearly worked when I committed the update to 3.1..

comment:14 Changed 3 years ago by drkp (Dan Ports)

Resolution: fixed
Status: acceptedclosed

In ac2793906b4f93750808035d7aecf4bda2b729b8/macports-ports (master):

gnucash: fix path to environment file and modules

Also don't install gschemas file to prevent activation conflicts

Closes: #56471

comment:15 Changed 3 years ago by thomasleaute

GnuCash 3.1.1 indeed fixed it for me.

Thanks!

Note: See TracTickets for help on using tickets.