Syncthing on RaspberryPi

You’d have to check the manuals for start-stop-daemon to see how to get it to handle standard out correctly. Or just not use that unit script, syncthing is designed to be run manually or by a process manager (upstart, systemd, runit, launchd or SMF), all of which handle this gracefully…

syncthing > logfile.txt does the trick too.

Ok done :slight_smile: But what about the EOF messaged what does this mean?

i am trying to switch to syncthing from btsync. With btsync I got sync speed aroud 3MBps. Syncthing gives me only 250KBps, almoust 10 times less !!! I understanf that rasberry pi is pretty weak. But why btsync work much faster? I tried to disable compression and web gui, still very low speed. I was hoping to switch to open source, but 10 times speed decrease is too bad.

What about you CPU load?

May I point you to the http://docs.syncthing.net : http://docs.syncthing.net/users/faq.html#why-does-it-use-so-much-cpu

Thanks man. Now I know that "Note however that once things are in sync CPU usage should be negligible." Thats cool to know when all work is done the cpu esage will drop. I just have to wait a couple of days till it syncs.

All folders should have been hashed and syncing is just some MB and just at a specific time. But the RPi has 24/7 100% cpu load.

No ideas?

Run it with -verbose to start with, to see what’s going on a little bit better.

Add the following two lines to “options” in your config.xml:

        <pingTimeoutS>300</pingTimeoutS>
        <pingIdleTimeS>480</pingIdleTimeS>

Synchting is running as systemd service. How can I start it with verbose?

There is a small “debugging” section in the docs: http://docs.syncthing.net/users/autostart.html#debugging

Also you could edit your ExecStart in the service file to do that. Or, just start it on the command line, without systemd for debugging.

How do you guys make Syncthing start at boot? I installed it on OSMC by following the instructions to add it to apt-get: http://apt.syncthing.net/ But how to start it correctly and make it start at boot?

edit: I found the information: http://docs.syncthing.net/users/autostart.html Just not sure if I should use user OSMC or create a new user? Any benefits/downsides?

Google for instructions of your distribution/OS as every one of them does it differently.