Jaroslav Posted April 23, 2016 Report Share Posted April 23, 2016 I've install btsync on a fresh Debian Jessie system (server). Used this documentation for installing: http://help.getsync.com/hc/en-us/articles/207689576-Installing-Sync-on-Linux If I manually run `sudo service btsync start` it starts and works ok. But after the system restarts it doesn't start. Here is what I get from `sudo service btsync status`: Apr 23 17:45:36 serveris systemd[1]: btsync.service: main process exited, code=exited, status=255/n/a Apr 23 17:45:36 serveris systemd[1]: Unit btsync.service entered failed state. Apr 23 17:45:36 serveris systemd[1]: btsync.service start request repeated too quickly, refusing to start. Apr 23 17:45:36 serveris systemd[1]: Failed to start BitTorrent Sync service. Apr 23 17:45:36 serveris systemd[1]: Unit btsync.service entered failed state. Quote Link to comment Share on other sites More sharing options...
Remirus Posted April 25, 2016 Report Share Posted April 25, 2016 Jaroslav, does your system use systemd or sysvinit/upstart? If you have systemd did you try to enable automatic run using this command: sudo systemctl enable btsync If you have sysvinit or upstart there is no such a feature and you need to write a script to launch Sync after system starts. Quote Link to comment Share on other sites More sharing options...
Jaroslav Posted April 26, 2016 Author Report Share Posted April 26, 2016 My I'm not sure which one is used But it's standard Debian Jessie installation. When I run sudo systemctl enable btsync I get this: Synchronizing state for btsync.service with sysvinit using update-rc.d... Executing /usr/sbin/update-rc.d btsync defaults Executing /usr/sbin/update-rc.d btsync enable Then after restart I run sudo service btsync status and get ● btsync.service - BitTorrent Sync service Loaded: loaded (/lib/systemd/system/btsync.service; enabled) Active: failed (Result: start-limit) since Tue 2016-04-26 22:49:59 EEST; 1min 41s ago Docs: http://help.getsync.com/ Process: 1046 ExecStart=/usr/bin/btsync --config /etc/btsync/config.json (code=exited, status=0/SUCCESS) Process: 1042 ExecStartPre=/bin/chown -R btsync:btsync /var/run/btsync (code=exited, status=0/SUCCESS) Process: 1041 ExecStartPre=/bin/mkdir -p /var/run/btsync (code=exited, status=0/SUCCESS) Main PID: 1048 (code=exited, status=255) Apr 26 22:49:59 serveris systemd[1]: Unit btsync.service entered failed state. Apr 26 22:49:59 serveris systemd[1]: btsync.service start request repeated too quickly, refusing to start. Apr 26 22:49:59 serveris systemd[1]: Failed to start BitTorrent Sync service. Apr 26 22:49:59 serveris systemd[1]: Unit btsync.service entered failed state. Then I'm able to start it manually: sudo service btsync start sudo service btsync status ● btsync.service - BitTorrent Sync service Loaded: loaded (/lib/systemd/system/btsync.service; enabled) Active: active (running) since Tue 2016-04-26 22:52:20 EEST; 6s ago Docs: http://help.getsync.com/ Process: 1485 ExecStart=/usr/bin/btsync --config /etc/btsync/config.json (code=exited, status=0/SUCCESS) Process: 1482 ExecStartPre=/bin/chown -R btsync:btsync /var/run/btsync (code=exited, status=0/SUCCESS) Process: 1479 ExecStartPre=/bin/mkdir -p /var/run/btsync (code=exited, status=0/SUCCESS) Main PID: 1486 (btsync) CGroup: /system.slice/btsync.service └─1486 /usr/bin/btsync --config /etc/btsync/config.json Quote Link to comment Share on other sites More sharing options...
Remirus Posted April 27, 2016 Report Share Posted April 27, 2016 Jaroslav, unfortunately I couldn't reproduce it. I've got the latest Debian Jessie iso for i386, installed Debian with some DE and added Sync. Then after reboot Sync starts correctly. Maybe you've tried to enable autostart under several users? Do you have another scripts to start Sync automatically? Or maybe some program causes Sync to start again? Quote Link to comment Share on other sites More sharing options...
THpubs Posted July 23, 2016 Report Share Posted July 23, 2016 I'm also having the same issue with Fedora 24 Quote Link to comment Share on other sites More sharing options...
THpubs Posted July 23, 2016 Report Share Posted July 23, 2016 Just fixed it! The problems was, SELinux is blocking btsync. When I run `journalctl -xe` it showed the error gave the instructions on how to fix it. Simply run these two commands : ausearch -c 'btsync' --raw | audit2allow -M my-btsync semodule -X 300 -i my-btsync.pp Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.