You are not logged in.

#1 2014-08-24 14:29:08

MickeyKnox
Member
Registered: 2010-02-27
Posts: 169

[SOLVED] btsync Failed to get D-Bus connection: Connection refused

When i try to run

sudo systemctl --user start btsync

i get this error:

Failed to get D-Bus connection: Connection refused

I followed the instructions given here: https://wiki.archlinux.org/index.php/Sy … asic_setup
However, i think some command to launch it all is missing, but i might be wrong.

I also tried to run btsync without the user flag, it works, but then btsync runs as the btsync user (i think) who does not have permission to access my files.

I think it is preferable to run btsync as my user, then to give the btsync user all that privilleges.

Any ideas?

Last edited by MickeyKnox (2014-08-25 18:12:14)

Offline

#2 2014-08-24 23:09:43

brick21
Member
Registered: 2014-08-23
Posts: 7

Re: [SOLVED] btsync Failed to get D-Bus connection: Connection refused

Have you checked https://wiki.archlinux.org/index.php/BitTorrent_Sync

Last edited by brick21 (2014-08-24 23:13:36)

Offline

#3 2014-08-24 23:12:29

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [SOLVED] btsync Failed to get D-Bus connection: Connection refused

What if you run it without sudo?

Offline

#4 2014-08-25 18:11:11

MickeyKnox
Member
Registered: 2010-02-27
Posts: 169

Re: [SOLVED] btsync Failed to get D-Bus connection: Connection refused

@brick21: Of course, that's where i got the command from.

@lucke: I didn't even considered that. The output ist:

> systemctl --user start btsync
Job for btsync.service failed. See 'systemctl status btsync.service' and 'journalctl -xn' for details.

> systemctl status btsyn
● btsync.service - Bittorent Sync service
   Loaded: loaded (/usr/lib/systemd/system/btsync.service; disabled)
   Active: inactive (dead)

> journalctl -xn
...
Can't open pid file /var/lib/btsync/sync.pid. Permission denied
btsync.service: control process exited, code=exited status=1
Failed to start Bittorent Sync per-user service.
...

Ok, i googled the error and landed on the AUR page: https://aur.archlinux.org/packages/btsync/?comments=all
The problem was, the "storage_path" in .config/btsync/btsync.conf was set to "/var/lib/btsync"; it needs to be "/home/user/.btsync". Beware, "~/.btsync" doesn't work.

It's working now.

Offline

Board footer

Powered by FluxBB