syncthing-bin

Rating: 
4.666665
Your rating: None Average: 4.7 (3 votes)

The package contains the binary downloaded from syncthing.net.

Syncthing replaces proprietary sync and cloud services with something open, trustworthy and decentralized. Your data is your data alone and you deserve to choose where it is stored, if it is shared with some third party and how it's transmitted over the Internet.

https://syncthing.net/

Sources of spec and systemd units installed by this package:

https://github.com/fuchsmich/sailfish-syncthing-bin

 

start service

$ systemctl --user start syncthing

enable service startup

$ systemctl --user enable syncthing

You can install syncthing-inotify to enable sync on file change:

https://openrepos.net/content/fooxl/syncthing-inotify-bin

Application versions: 
AttachmentSizeDate
syncthing-bin-0.14.8-1.i486.rpm3.5 MB18/10/2016 - 21:38
syncthing-bin-0.14.8-1.armv7hl.rpm3.28 MB18/10/2016 - 21:38
syncthing-bin-0.14.9-1.i486.rpm3.49 MB21/10/2016 - 12:53
syncthing-bin-0.14.9-1.armv7hl.rpm3.27 MB21/10/2016 - 12:53
syncthing-bin-0.14.10-1.armv7hl.rpm3.27 MB11/11/2016 - 17:29
syncthing-bin-0.14.10-1.i486.rpm3.5 MB11/11/2016 - 17:29
syncthing-bin-0.14.12-1.armv7hl.rpm3.41 MB23/11/2016 - 19:29
syncthing-bin-0.14.12-1.i486.rpm3.65 MB23/11/2016 - 19:29
syncthing-bin-0.14.13-1.armv7hl.rpm3.42 MB30/11/2016 - 22:25
syncthing-bin-0.14.13-1.i486.rpm3.66 MB30/11/2016 - 22:25
syncthing-bin-0.14.13-2.armv7hl.rpm3.42 MB13/12/2016 - 22:53
syncthing-bin-0.14.13-2.i486.rpm3.66 MB13/12/2016 - 22:53
syncthing-bin-0.14.14-1.armv7hl.rpm3.42 MB16/12/2016 - 23:20
syncthing-bin-0.14.14-1.i486.rpm3.66 MB16/12/2016 - 23:20
syncthing-bin-0.14.15-1.armv7hl.rpm3.64 MB20/12/2016 - 23:35
syncthing-bin-0.14.15-1.i486.rpm3.79 MB20/12/2016 - 23:35
syncthing-bin-0.14.16-1.armv7hl.rpm3.64 MB23/12/2016 - 15:37
syncthing-bin-0.14.16-1.i486.rpm3.79 MB23/12/2016 - 15:37
syncthing-bin-0.14.17-1.armv7hl.rpm3.66 MB28/12/2016 - 20:07
syncthing-bin-0.14.17-1.i486.rpm3.81 MB28/12/2016 - 20:07
syncthing-bin-0.14.18-1.armv7hl.rpm3.66 MB02/01/2017 - 13:35
syncthing-bin-0.14.18-1.i486.rpm3.81 MB02/01/2017 - 13:35
syncthing-bin-0.14.19-1.armv7hl.rpm3.69 MB10/01/2017 - 22:29
syncthing-bin-0.14.19-1.i486.rpm3.83 MB10/01/2017 - 22:29
syncthing-bin-0.14.21-1.armv7hl.rpm3.69 MB26/01/2017 - 22:03
syncthing-bin-0.14.21-1.i486.rpm3.84 MB26/01/2017 - 22:03
syncthing-bin-0.14.23-1.armv7hl.rpm3.71 MB10/02/2017 - 23:25
syncthing-bin-0.14.23-1.i486.rpm3.86 MB10/02/2017 - 23:25
syncthing-bin-0.14.24-1.i486.rpm3.86 MB12/03/2017 - 15:36
syncthing-bin-0.14.24-1.armv7hl.rpm3.71 MB12/03/2017 - 15:36
syncthing-bin-0.14.25-1.armv7hl.rpm3.87 MB21/03/2017 - 23:07
syncthing-bin-0.14.25-1.i486.rpm4.02 MB21/03/2017 - 23:07
syncthing-bin-0.14.26-1.armv7hl.rpm3.88 MB06/04/2017 - 09:18
syncthing-bin-0.14.26-1.i486.rpm4.03 MB06/04/2017 - 09:18
syncthing-bin-0.14.27-1.armv7hl.rpm3.89 MB02/05/2017 - 23:47
syncthing-bin-0.14.27-1.i486.rpm4.04 MB02/05/2017 - 23:47
syncthing-bin-0.14.28-1.armv7hl.rpm3.9 MB23/05/2017 - 20:14
syncthing-bin-0.14.28-1.i486.rpm4.05 MB23/05/2017 - 20:14
syncthing-bin-0.14.29-1.armv7hl.rpm3.9 MB01/06/2017 - 09:30
syncthing-bin-0.14.29-1.i486.rpm4.05 MB01/06/2017 - 09:30
syncthing-bin-0.14.30-1.armv7hl.rpm3.9 MB15/06/2017 - 14:05
syncthing-bin-0.14.30-1.i486.rpm4.05 MB15/06/2017 - 14:05
syncthing-bin-0.14.32-1.armv7hl.rpm3.9 MB18/07/2017 - 20:56
syncthing-bin-0.14.32-1.i486.rpm4.05 MB18/07/2017 - 20:56
syncthing-bin-0.14.33-1.armv7hl.rpm3.9 MB06/08/2017 - 14:34
syncthing-bin-0.14.33-1.i486.rpm4.05 MB06/08/2017 - 14:34
syncthing-bin-0.14.36-1.armv7hl.rpm3.9 MB11/08/2017 - 19:25
syncthing-bin-0.14.36-1.i486.rpm4.06 MB11/08/2017 - 19:25

Comments

DarkTuring's picture

I am getting the following inotify error. The permanent fix to the described for the inotify systemctl.conf doesnt work for me. Please check if you are getting the same error amd if there is a fix for it.   Notice  2017-08-10 07:08:06: [Inotify] Failed to install inotify handler for SyncSD. Please increase inotify limits, see http://bit.ly/1PxkdUC for more information

Self_Perfection's picture

Two days ago syncthing 0.14.14 with important security update was released

https://github.com/syncthing/syncthing/releases/tag/v0.14.14

fooxl's picture

Done with new systemd unit files.

Self_Perfection's picture

syncthing frequently stops

For me syncthing daemon started by systemd does not run more than 1-2 hours. It stops most of the time with exit code 3. Guys have already reported such behaviour so to address this issue syncthing.service was extended with following directives:

SuccessExitStatus=3 4
RestartForceExitStatus=3 4

Unfortunately, RestartForceExitStatus is implemented since systemd v215, but Sailfish OS uses systemd 208 (and that is pretty ancient :( ). So systemd does not restart syncthing daemon as was intended by upstream.

As a workaround for myself I switched to using native syncthing daemonizing method with master daemon watching for worker daemon. At least it seems to restart worker on demand. Here is my workaround (changed daemon run cmd to exclude -no-restart switch):

$ cat /home/nemo/.config/systemd/user/syncthing.service
[Service]
ExecStart=
ExecStart=/usr/bin/syncthing -no-browser -logflags=0

And don't forget `systemctl --user daemon-reload; systemctl --user restart syncthing`

fooxl's picture

Yes, you are right I already came up on this when writing syncthing-sf and forogt about it later. Do you think this unit is ok:

EDIT: oh, i see...


[Unit] Description=Syncthing - Open Source Continuous File Synchronization
Documentation=http://docs.syncthing.net/
After=network.target
Wants=syncthing-inotify.service

[Service]
ExecStart=/usr/bin/syncthing -no-browser -logflags=0

[Install]
WantedBy=default.target

Self_Perfection's picture

Finally I've switched to

[Service]

ExecStart=/usr/bin/syncthing -no-browser -no-restart -logflags=0
Restart=on-failure

Systemd appears to restart service just fine if told to. In other words commenting

SuccessExitStatus=3 4

in upstream service file is enough. But memory savings in comparison to variant with watchdog syncthing process is under measure error, i.e. there is no visible difference in memory consumption.

 


 

 


 

fooxl's picture

Ok, thanks. Will keep it in mind for next release.

Self_Perfection's picture

>The package contains the binary downloaded from syncthing.net.

I've compared binaries from https://openrepos.net/sites/default/files/packages/5162/syncthing-bin-0.... and https://github.com/syncthing/syncthing/releases/download/v0.14.13/syncth...

$ du -b syncthing-bin-0.14.13-1.armv7hl.rpm_extracted/usr/bin/syncthing syncthing-linux-arm-v0.14.13/syncthing
12132568        syncthing-bin-0.14.13-1.armv7hl.rpm_extracted/usr/bin/syncthing
12134301        syncthing-linux-arm-v0.14.13/syncthing

Why do these binaries differ? Seems suspicious to me.

fooxl's picture

Ok, this happens due to binary-stripping when creating the package.

I disabled this now and will upload a new release.

fooxl's picture

Thanks for pointing this out.

I have no explanation for this. I will check this tomorrow. Propably i should include a checksum in future releases.