"Failed to get D-Bus connection: Operation not permitted"

Kernels & Hardware, configuring network, installing services

"Failed to get D-Bus connection: Operation not permitted"

Postby SoWhy » 2015-08-17 18:08

Hi there,

after upgrading to Debian 8, I'm having a bit of trouble with systemd, since I'm not used to it (seeing as it was all init when I started). I tried to use a tutorial to create a new service and one step in it was to run

Code: Select all
systemctl enable xxx.service


Unfortunately, every time I run systemctl - even without parameters - I get this error:
Code: Select all
Failed to get D-Bus connection: Operation not permitted


I checked Google and searched various forums but I couldn't find a solution that applies. Google yields ~30 hits when searching for this specific error message and no solution works.

Can someone point me into the right direction?

TIA
SoWhy
SoWhy
 
Posts: 3
Joined: 2013-10-14 23:27

Re: "Failed to get D-Bus connection: Operation not permitted

Postby Head_on_a_Stick » 2015-08-17 19:01

Please post the output of:
Code: Select all
cat /proc/1/comm
User avatar
Head_on_a_Stick
 
Posts: 11987
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: "Failed to get D-Bus connection: Operation not permitted

Postby SoWhy » 2015-08-17 19:22

Head_on_a_Stick wrote:Please post the output of:
Code: Select all
cat /proc/1/comm


init
SoWhy
 
Posts: 3
Joined: 2013-10-14 23:27

Re: "Failed to get D-Bus connection: Operation not permitted

Postby Head_on_a_Stick » 2015-08-17 20:28

SoWhy wrote:
init

You are not using systemd, you are using SysVinit as PID1

Check by reading:
Code: Select all
man init

I'm not sure why you aren't running systemd as PID1 :?

Can we see the output of:
Code: Select all
ls -l /sbin/init
cat /proc/cmdline

How exaxctly did you upgrade to jessie?

Are you sure it was successful?
Code: Select all
lsb_release -a
cat /etc/debian_version
User avatar
Head_on_a_Stick
 
Posts: 11987
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: "Failed to get D-Bus connection: Operation not permitted

Postby SoWhy » 2015-08-19 18:10

Thanks for the reply. I upgraded using apt-get dist-upgrade as described in some guide.

I now installed systemd-sysv package *again* as was written somewhere else. Somehow the first time around the install didn't work. Now the error is gone. :shock:

I fear I probably should reinstall the whole system anyway, too much patchwork... xD
SoWhy
 
Posts: 3
Joined: 2013-10-14 23:27

Re: "Failed to get D-Bus connection: Operation not permitted

Postby GarryRicketson » 2015-08-19 19:22

Did you do this again:
Look at the output:
Code: Select all
cat /proc/1/comm

If it says "systemd" then you should be ok now.
Example:
Code: Select all
 garry@debian8:~$ cat /proc/1/comm
systemd

I upgraded using apt-get dist-upgrade as described in some guide.

I now installed systemd-sysv package *again* as was written somewhere else.

Not knowing which guide or where, no one can say much.
There are some commands you can run, to check your system,
Some of those, were all ready posted by Head_On_A_Stick,
Code: Select all
dmesg
will show you if there are any problems, ( I think)
This is a pretty reliable source.
https://wiki.debian.org/systemd#Installing_and_Testing
User avatar
GarryRicketson
 
Posts: 5872
Joined: 2015-01-20 22:16
Location: Durango, Mexico


Return to System configuration

Who is online

Users browsing this forum: No registered users and 10 guests

fashionable