VSIDO Community

VSIDO Support => General Support => Topic started by: PackRat on December 27, 2014, 06:14:15 PM

Title: Failed to get D-Bus connection: Unknown error -1
Post by: PackRat on December 27, 2014, 06:14:15 PM
Anyone else seeing this error with vsido jedi when trying to manager services -

Code: [Select]
Failed to get D-Bus connection: Unknown error -1
(http://en.zimagez.com/miniature/dbus.png) (http://en.zimagez.com/zimage/dbus.php)

everything works - cups, vsftpd, nfs, lightdm etc .... just can't manage any services; google search wasn't much help so if anyone knows what's up with this an answer will be appreciated.

I did a re-install of dbus and systemd from synaptic but no change (have not rebooted yet though).

only other reference to this I've seen - vsido dus error link (http://vsido.org/index.php?topic=869.msg10070#msg10070)
Title: Re: Failed to get D-Bus connection: Unknown error -1
Post by: VastOne on December 27, 2014, 06:42:33 PM
I have been seeing something akin to this for several months but have not pursued it because it has had no impact on what I have been doing lately, D-Feet no longer works at all and shows no errors.  It just does not see or connect to any bus at all

This has been going on before jedi and I believe it is a systemd issue.  I have not been able to find any references at all to bug reports or errors with D-Feet and I will remedy that today.  I think once we understand that it will at least assist in identifying what you and paxmark1 have seen
Title: Re: Failed to get D-Bus connection: Unknown error -1
Post by: PackRat on December 27, 2014, 07:33:25 PM
OK

Did a search on the Arch forum and linuxquestions, nothing.

Get that error in fluxbox, xfce, i3, fvwm, and mwm - so it doesn't appear to be a window manager issue either.
Title: Re: Failed to get D-Bus connection: Unknown error -1
Post by: PackRat on December 28, 2014, 04:46:01 PM
Anyone know what cgroups is/does? - and how to work with it? - cgroups from Arch Linuix wiki (https://wiki.archlinux.org/index.php/Cgroups)

Came across a reference to cgroups while trying to track this dbus error. It's somehow involved with dbus and systemd but I'm not really seeing how. I did notice that I do not have the /etc/cgconfig.conf file referenced in the Arch wiki.

I bring this up because Cgroups appears to be a recent addition to Sid/VSIDO. I've been rolling VSIDO on  my laptop for a while now, and cgroups is not installed - and I've never gotten the dbus error; clean install of VSIDO on the desktop and I now have the dbus error.

Unistalling it through synaptic (trial run) takes some packages with it - like the systemd-schim, but doesn't remove systemd.

Need some more information/research on this one.
Title: Re: Failed to get D-Bus connection: Unknown error -1
Post by: ozitraveller on December 30, 2014, 12:07:07 AM

Hope This helps.

Chapter 1. Introduction to Control Groups (Cgroups) (https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Resource_Management_Guide/ch01.html)

Ozi
Title: Re: Failed to get D-Bus connection: Unknown error -1
Post by: PackRat on December 30, 2014, 03:30:36 AM
Thanks.
Title: Re: Failed to get D-Bus connection: Unknown error -1
Post by: jedi on December 30, 2014, 04:20:18 PM
OK, my 1 cent's worth...

CGroups is a part of systemd, where each 'group' controls a set of processes.  It is very confusing to me, and I'm starting to wonder how much of this stuff is being done on purpose.  (ok, no ranting)  However...
I have seen this error myself when trying to mount /var/run as tmpfs in fstab.  Supposedly this would prolong the life of my SSD as it wouldn't be writing to the drive so much, rather, running all that in RAM.  With newer SSD's, there is really no worries as to drive longevity, thus making this an unnecessary exercise.  Also, I believe that since 'Wheezy' /var/run is a symlink to /run.  So, by doing so I was 'overmounting' /run, and destroying all the states that were stored there.  By simply commenting it out as seen below, all was well again.

Not sure if this is the same issue as your having, but though I'd mention it.

/etc/fstab;
Code: [Select]
# /etc/fstab: static file system information.
# mounting /var into tmpfs to save the life of my SSD 02132013 and defaults,noatime for TRIM
# <file system> <mount point>   <type>  <options>       <dump>  <pass>

proc          /proc proc     defaults 0 0
/dev/sda1 / ext4        defaults,noatime 0 1
/dev/sda2 /home ext4 defaults,noatime 0 0
/dev/sdb1    /media/DATA ext4 defaults 0 0
/dev/cdrom /media/cdrom udf,iso9660 user,noauto,exec,utf8 0 0
tmpfs /tmp tmpfs defaults 0 0
tmpfs /var/lock tmpfs defaults 0 0
tmpfs /var/log tmpfs defaults 0 0
#tmpfs /var/run tmpfs defaults 0 0
Title: Re: Failed to get D-Bus connection: Unknown error -1
Post by: PackRat on December 30, 2014, 07:04:06 PM
^ I don't know if I was having that issue because I wasn't trying to do what you're attempting.

My issue was that I couldn't control processes using systemctl. I think I have fixed my issue by uninstalling cgmanager and reinstalling it. The uninstall removed some other apps and did some reconfiguring of systemd. reinstalling it just installed cgmanager and a couple (d-bus related) - not all - the dependencies removed earlier. Not sure if that is the proper fix, so I really can't recommend it. Not sure which app was the original culprit.

d-feet still doesn't work.

Right now, I'm just assigning this to debian not fully implementing/integrating systemd so there is some dependency mahem going on.
Title: Re: Failed to get D-Bus connection: Unknown error -1
Post by: jedi on December 30, 2014, 11:26:07 PM
Glad your way worked!  So far I've been lucky in that systemctl has always worked to start/stop, enable/disable processes/services.

As an aside, d-feet starts up for me, but it never see's or connects to anything in 'System Bus' or 'Session Bus'.  Wherther I start it from the menu or terminal...  (this has been an issue for quite a while with d-feet, and I think even prior to the 'jedi' release)
Title: Re: Failed to get D-Bus connection: Unknown error -1
Post by: PackRat on December 31, 2014, 12:27:13 AM
d-feet is the same on my system; the app starts, no info.