Sync won't start (stops immediately) on Linux


w82

Recommended Posts

Hi,

I made one small tweak to my config yesterday and since then, BTSync (latest official Linux version) no longer starts. Systemd kills it immediately, then retries infinitely, failing constantly.

The change I made was the download directory for all the folders, from /path/a/b to /path/b. All paths exist and are accessible. The .sync folders are still present (though I did try deleting them all to see if that was causing an issue). Nothing else has changed.

I've removed and purged btsync with apt-get, tried a basic config as well as my normal one. I've even tried the standard example from the installation. Nothing works, and what's weirder is nothing has (to my knowledge) changed on the system (a Pi). I've tried everything and am lost - some logs below, which hopefully someone can diagnose better than me. I think a dependency might be broken though...

Thanks for any help!

Will

Systemd status

May 23 18:58:44 raspberrypi systemd[1]: Started BitTorrent Sync service.
pi@raspberrypi:~$ sudo systemctl status btsync.service
● btsync.service - BitTorrent Sync service
   Loaded: loaded (/lib/systemd/system/btsync.service; disabled)
   Active: inactive (dead)
     Docs: http://help.getsync.com/

May 23 18:58:25 raspberrypi systemd[1]: Stopping BitTorrent Sync service...
May 23 18:58:30 raspberrypi systemd[1]: Stopped BitTorrent Sync service.
May 23 18:58:32 raspberrypi systemd[1]: Starting BitTorrent Sync service...
May 23 18:58:33 raspberrypi systemd[1]: Started BitTorrent Sync service.
May 23 18:58:36 raspberrypi systemd[1]: Stopping BitTorrent Sync service...
May 23 18:58:41 raspberrypi systemd[1]: Stopped BitTorrent Sync service.
May 23 18:58:43 raspberrypi systemd[1]: Starting BitTorrent Sync service...
May 23 18:58:44 raspberrypi systemd[1]: Started BitTorrent Sync service.
May 23 18:58:46 raspberrypi systemd[1]: Stopping BitTorrent Sync service...
May 23 18:58:50 raspberrypi systemd[1]: Stopped BitTorrent Sync service.
pi@raspberrypi:~$ sudo systemctl status btsync.service
● btsync.service - BitTorrent Sync service
   Loaded: loaded (/lib/systemd/system/btsync.service; disabled)
   Active: inactive (dead)
     Docs: http://help.getsync.com/

May 23 18:59:46 raspberrypi systemd[1]: Stopping BitTorrent Sync service...
May 23 18:59:51 raspberrypi systemd[1]: Stopped BitTorrent Sync service.
May 23 18:59:53 raspberrypi systemd[1]: Starting BitTorrent Sync service...
May 23 18:59:53 raspberrypi systemd[1]: Started BitTorrent Sync service.
May 23 18:59:55 raspberrypi systemd[1]: Stopping BitTorrent Sync service...
May 23 19:00:04 raspberrypi systemd[1]: Stopped BitTorrent Sync service.
May 23 19:00:06 raspberrypi systemd[1]: Starting BitTorrent Sync service...
May 23 19:00:06 raspberrypi systemd[1]: Started BitTorrent Sync service.
May 23 19:00:09 raspberrypi systemd[1]: Stopping BitTorrent Sync service...
May 23 19:00:14 raspberrypi systemd[1]: Stopped BitTorrent Sync service.

 

Sync.log (for the standard config)

[19:00:52.412] Debug log mask has been set to FFFF
[19:00:52.413] Features mask has been set to 0
[20160523 19:00:52.423] Configuration from file "/etc/btsync/config.json" has been applied
[20160523 19:00:52.442] ZIP: Can't locate [version] in zip, error -100.
[20160523 19:00:52.453] PLC[0x01f321c0] binding on 0.0.0.0:25768
[20160523 19:00:52.453] Socket[0x01f321c0][8] bound listening socket 8 to IP 0.0.0.0:25768
[20160523 19:00:52.454] UDP: bound listening socket 9 to IP 0.0.0.0:25768
[20160523 19:00:52.454] Socket[0x01f32dc0][10] bound listening socket 10 to IP 127.0.0.1:8888
[20160523 19:00:52.458] UPNP: Using IP address 172.16.0.95
[20160523 19:00:52.490] test sha1: AE5BD8EFEA5322C4D9986D06680A781392F9A642
[20160523 19:00:52.490] test sha2: 630DCD2966C4336691125448BBB25B4FF412A49C732DB2C8ABC1B8581BD710DD
[20160523 19:00:52.490] test aes: 0A940BB5416EF045F1C39458C653EA5A07FEEF74E1D5036E900EEE118E949293
[20160523 19:00:52.492] Loading config file version 2.3.7, current version 2.3.7
[20160523 19:00:52.492] My PeerID: 10344197918885B006FE520626BBF53C4462DA96
[20160523 19:00:52.493] loaded history: 0 events
[20160523 19:00:52.495] setup socket 14 for local peer discovery for 127.0.0.1: success
[20160523 19:00:52.495] setup socket 15 for local peer discovery for 172.16.0.95: success
[20160523 19:00:52.496] setup socket 16 for local peer discovery for 10.136.1.6: success
[20160523 19:00:55.478] Received shutdown request via signal 15
[20160523 19:00:55.483] saved history: 0 events
[20160523 19:00:55.503] SyncFolderScanner: shut down
[20160523 19:00:55.503] Shutdown. Saving config sync.dat
[19:01:02.925] Debug log mask has been set to FFFF
[19:01:02.927] Features mask has been set to 0
[20160523 19:01:02.961] Configuration from file "/etc/btsync/config.json" has been applied
[20160523 19:01:03.012] ZIP: Can't locate [version] in zip, error -100.
[20160523 19:01:03.029] PLC[0x012481c0] binding on 0.0.0.0:31140
[20160523 19:01:03.036] Socket[0x012481c0][7] bound listening socket 7 to IP 0.0.0.0:31140
[20160523 19:01:03.036] UDP: bound listening socket 8 to IP 0.0.0.0:31140
[20160523 19:01:03.037] Socket[0x01248dc0][9] bound listening socket 9 to IP 127.0.0.1:8888
[20160523 19:01:03.038] UPNP: Using IP address 172.16.0.95
[20160523 19:01:03.057] test sha1: AE5BD8EFEA5322C4D9986D06680A781392F9A642
[20160523 19:01:03.057] test sha2: 630DCD2966C4336691125448BBB25B4FF412A49C732DB2C8ABC1B8581BD710DD
[20160523 19:01:03.058] test aes: 0A940BB5416EF045F1C39458C653EA5A07FEEF74E1D5036E900EEE118E949293
[20160523 19:01:03.059] Loading config file version 2.3.7, current version 2.3.7
[20160523 19:01:03.060] My PeerID: 10344197918885B006FE520626BBF53C4462DA96
[20160523 19:01:03.060] loaded history: 0 events
[20160523 19:01:03.061] setup socket 14 for local peer discovery for 127.0.0.1: success
[20160523 19:01:03.062] setup socket 15 for local peer discovery for 172.16.0.95: success
[20160523 19:01:03.062] setup socket 16 for local peer discovery for 10.136.1.6: success

Sync.log (for my usual config)

[20160523 19:06:04.913] SyncFolderNotify: Added path=/home/epistrophy/bt/Will-FileStore/rsyncNEW/home/pi/btsyncOLD with fd=176
[20160523 19:06:05.127] UPnP: Device error "http://172.16.0.221:8060/": (-2)
[20160523 19:06:06.129] Received shutdown request via signal 15
[20160523 19:06:06.131] saved history: 0 events
[20160523 19:06:08.135] UPnP: Could not map UPnP Port on this pass, retrying.
[20160523 19:06:10.163] UPnP: Device error "http://172.16.0.17:9000/TMSDeviceDescription.xml": (-2)
[20160523 19:06:10.185] UPnP: Device error "http://172.16.0.137:7676/smp_2_": (-2)
[20160523 19:06:10.187] UPnP: Device error "http://172.16.0.137:7676/smp_6_": (-2)
[20160523 19:06:10.193] UPnP: Device error "http://172.16.0.125:49153/setup.xml": (-2)
[20160523 19:06:10.196] UPnP: Device error "http://172.16.0.150:49153/setup.xml": (-2)
[20160523 19:06:10.198] UPnP: Device error "http://172.16.0.137:7676/smp_10_": (-2)
[20160523 19:06:10.199] UPnP: Device error "http://172.16.0.137:7676/smp_18_": (-2)
[20160523 19:06:10.219] UPnP: Device error "http://172.16.0.17:9000/NMCServerDescription.xml": (-2)
[20160523 19:06:10.255] UPnP: Device error "http://172.16.0.36:80/description.xml": (-2)
[20160523 19:06:10.440] UPnP: Device error "http://172.16.0.19:49153/description5.xml": (-2)
[20160523 19:06:10.623] UPnP: Device error "http://172.16.0.19:49153/description6.xml": (-2)
[20160523 19:06:10.851] UPnP: Device error "http://172.16.0.13:8008/ssdp/device-desc.xml": (-2)
[20160523 19:06:11.703] UPnP: Device error "http://172.16.0.19:49153/description4.xml": (-2)
[20160523 19:06:12.157] UPnP: Device error "http://172.16.0.17:58130/": (-2)
[20160523 19:06:12.285] UPnP: Device error "http://172.16.0.53:32469/DeviceDescription.xml": (-2)
[20160523 19:06:12.493] UPnP: Device error "http://172.16.0.76:8080/dd.xml": (-2)
[20160523 19:06:12.889] UPnP: Device error "http://172.16.0.221:8060/": (-2)
[20160523 19:06:14.892] UPnP: Could not map UPnP Port on this pass, retrying.
[20160523 19:06:14.892] NAT-PMP: Unable to map port with NAT-PMP.

Config

{
   "device_name": "Chuck Berry",
    "listening_port" : 0,
    "storage_path" : "/home/pi/btsync/",
    "pid_file" : "/var/run/btsync/btsync.pid",
    "sync_trash_ttl": 3,
    "agree_to_EULA": "yes",
    "folder_rescan_interval":300,

    "webui" :
    {
        "listen" : "0.0.0.0:1234"
    },

"shared_folders" :
  [
    {
      "secret" : "x",
      "dir" : "/home/a1",
      "use_relay_server" : true,
      "use_tracker" : true,
      "search_lan" : true,
      "use_sync_trash" : true,
      "overwrite_changes" : false
    },
    
      {
      "secret" : "y",
      "dir" : "/home/a2/",
      "use_relay_server" : true,
      "use_tracker" : true,
      "search_lan" : true,
      "use_sync_trash" : true,
      "overwrite_changes" : false
    },
    
      {
      "secret" : "z",
      "dir" : "/home/a3",
      "use_relay_server" : true,
      "use_tracker" : true,
      "search_lan" : true,
      "use_sync_trash" : true,
      "overwrite_changes" : false
    },
    
      {
      "secret" : "zz",
      "dir" : "/home/a4",
      "use_relay_server" : true,
      "use_tracker" : true,
      "search_lan" : true,
      "use_sync_trash" : true,
      "overwrite_changes" : false
    }
    
  ]
}

 

Systemd service file

[Unit]
Description=BitTorrent Sync service
Documentation=http://help.getsync.com/
After=network.target

[Service]
Type=forking
User=pi
Group=pi
UMask=0002
Restart=on-failure
PermissionsStartOnly=true
PIDFile=/var/run/btsync/btsync.pid
ExecStartPre=/bin/mkdir -p /var/run/btsync
ExecStartPre=/bin/chown -R pi:pi /var/run/btsync
ExecStart=/usr/bin/btsync --config /home/pi/.config/btsync/config2.json

[Install]
WantedBy=multi-user.target

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.