You are not logged in.

#1 2012-11-05 04:59:00

DanB91
Member
Registered: 2012-11-05
Posts: 6

[SOLVED] timedatectl cannot connect to D-Bus

Today daylight savings time ended.  But, Arch Linux did not reflect this so I am trying to figure out how to fix this.  I stumble upon the timedatectl which seems it should allow me to set the time and date easily. 

Unfortunately, when I execute this command, I get the following error:

"Failed to get D-Bus connection: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory"

Now, the problem seems to be that for some reason, the D-Bus daemon is not running so I run "sudo rc.d start dbus" and it starts D-Bus. 

Now, when I run timedatectl, I get this message:

"Failed to issue method call: Launch helper exited with unknown return code 1"

A few questions:

1) Why is the dbus daemon not in rc.conf by default?
2) Why did the time not change when daylight savings ended?
3) Is timedatectl the best way to fix the daylight savings problem?
4) Why does timedatectl give me this unknown return code error?
5) Does the recent switch to systemd have anything to do with this?

Last edited by DanB91 (2012-11-05 23:51:16)

Offline

#2 2012-11-05 09:46:40

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] timedatectl cannot connect to D-Bus

There isn't anything in the daemons array by default.  It's up to the user to add what they need and/or want if they are using it.

Are you booting using systemd or initscripts?  It seems from the errors that you are not using systemd.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2012-11-05 13:13:01

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: [SOLVED] timedatectl cannot connect to D-Bus

timedatectl is a systemd tool, it requires you to boot with systemd.

Offline

#4 2012-11-05 15:36:38

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] timedatectl cannot connect to D-Bus

If you don't want to switch to systemd just yet, use the history tab in the wiki to go back in time and find instructions that work with initscripts: https://wiki.archlinux.org/index.php?ti … did=231548

Offline

#5 2012-11-05 23:52:05

DanB91
Member
Registered: 2012-11-05
Posts: 6

Re: [SOLVED] timedatectl cannot connect to D-Bus

I just switched over to systemd and synced with ntpd.  All is well.  Thanks!

Offline

Board footer

Powered by FluxBB