Trying to activate syncthing in a raspberry pi

I need help from you guys, i installed syncthing in a raspberry pi and i am trying to configure it to start at boot automatically using systemd, but when i start the raspberry pi and sudo systemctl status syncthing@pi.service i get

syncthing@pi.service - Syncthing - Open Source Continuous File Synchronization for pi Loaded: loaded (/lib/systemd/system/syncthing@.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Sun 2020-12-20 14:05:53 GMT; 1s ago Docs: man:syncthing(1) Process: 1131 ExecStart=/usr/bin/syncthing -no-browser -no-restart -logflags=0 (code=exited, status=1/FAILURE) Main PID: 1131 (code=exited, status=1/FAILURE)

If i stopit via terminal sudo pkill syncthing and start it again via sudo systemctl restart syncthing@pi.service syncthing activates correctly

What can i do to activate syncthing at boot correctly? without having to pkill it

Thanks for your help!

This is the journalctl -r -u syncthing@pi.service

> -- Logs begin at Sun 2020-12-20 14:02:07 GMT, end at Sun 2020-12-20 14:09:01 GMT. --
> Dec 20 14:09:01 retropie systemd[1]: syncthing@pi.service: Failed with result 'exit-code'.
> Dec 20 14:09:01 retropie systemd[1]: syncthing@pi.service: Main process exited, code=exited, status=1/FAILURE
> Dec 20 14:09:01 retropie syncthing[1674]: [S647B] INFO: Exiting
> Dec 20 14:09:01 retropie syncthing[1674]: [S647B] INFO: Relay listener (dynamic+https://relays.syncthing.net/endpoint)
> Dec 20 14:09:01 retropie syncthing[1674]: [S647B] WARNING: Failed starting API: listen tcp 0.0.0.0:8384: bind: address
> Dec 20 14:09:01 retropie syncthing[1674]: [S647B] INFO: Completed initial scan of sendreceive folder "Drastic" (ltxqo-
> Dec 20 14:09:01 retropie syncthing[1674]: [S647B] INFO: Completed initial scan of sendreceive folder "Default Folder" 
> Dec 20 14:09:01 retropie syncthing[1674]: [S647B] INFO: Ready to synchronize "Drastic" (ltxqo-ergtq) (sendreceive)
> Dec 20 14:09:01 retropie syncthing[1674]: [S647B] INFO: Ready to synchronize "Default Folder" (default) (sendreceive)
> Dec 20 14:09:01 retropie syncthing[1674]: [S647B] INFO: Relay listener (dynamic+https://relays.syncthing.net/endpoint)
> Dec 20 14:09:01 retropie syncthing[1674]: [S647B] INFO: c.S.listenerSupervisor: Failed service 'tcp://0.0.0.0:22000' (
> Dec 20 14:09:01 retropie syncthing[1674]: [S647B] INFO: Entering the backoff state.
> Dec 20 14:09:01 retropie syncthing[1674]: [S647B] INFO: Listen (BEP/tcp): listen tcp 0.0.0.0:22000: bind: address alre
> Dec 20 14:09:01 retropie syncthing[1674]: [S647B] INFO: c.S.listenerSupervisor: Failed service 'quic://0.0.0.0:22000' 
> Dec 20 14:09:01 retropie syncthing[1674]: [S647B] INFO: Entering the backoff state.
> Dec 20 14:09:01 retropie syncthing[1674]: [S647B] INFO: Listen (BEP/quic): listen udp 0.0.0.0:22000: bind: address alr
> Dec 20 14:09:01 retropie syncthing[1674]: [S647B] INFO: c.S.listenerSupervisor: Failed service 'quic://0.0.0.0:22000' 
> Dec 20 14:09:01 retropie syncthing[1674]: [S647B] INFO: Listen (BEP/quic): listen udp 0.0.0.0:22000: bind: address alr
> Dec 20 14:09:01 retropie syncthing[1674]: [S647B] INFO: c.S.listenerSupervisor: Failed service 'quic://0.0.0.0:22000' 
> Dec 20 14:09:01 retropie syncthing[1674]: [S647B] INFO: Listen (BEP/quic): listen udp 0.0.0.0:22000: bind: address alr
> Dec 20 14:09:01 retropie syncthing[1674]: [S647B] INFO: Using discovery mechanism: IPv6 local multicast discovery on a
> Dec 20 14:09:01 retropie syncthing[1674]: [S647B] INFO: Using discovery mechanism: IPv4 local broadcast discovery on p
> Dec 20 14:09:01 retropie syncthing[1674]: [S647B] INFO: Using discovery mechanism: global discovery server https://dis
> Dec 20 14:09:01 retropie syncthing[1674]: [S647B] INFO: Using discovery mechanism: global discovery server https://dis
> Dec 20 14:09:01 retropie syncthing[1674]: [S647B] INFO: Using discovery mechanism: global discovery server https://dis
> Dec 20 14:09:01 retropie syncthing[1674]: [S647B] INFO: Overall send rate is unlimited, receive rate is unlimited
> Dec 20 14:09:01 retropie syncthing[1674]: [S647B] INFO: Hashing performance is 41.21 MB/s
> Dec 20 14:09:01 retropie syncthing[1674]: [S647B] INFO: Single thread SHA256 performance is 45 MB/s using crypto/sha25
> Dec 20 14:09:00 retropie syncthing[1674]: [S647B] INFO: My ID: S647BDN-I64HVJA-N3DL6YG-PCOKHVF-2DKM6JL-63PHEC4-ZND2NAR
> Dec 20 14:08:59 retropie syncthing[1674]: [start] INFO: syncthing v1.12.0 "Fermium Flea" (go1.15.5 linux-arm) deb@buil
> Dec 20 14:08:59 retropie systemd[1]: Started Syncthing - Open Source Continuous File Synchronization for pi.
> Dec 20 14:08:59 retropie systemd[1]: Stopped Syncthing - Open Source Continuous File Synchronization for pi.
> Dec 20 14:08:59 retropie systemd[1]: syncthing@pi.service: Scheduled restart job, restart counter is at 43.
> Dec 20 14:08:59 retropie systemd[1]: syncthing@pi.service: Service RestartSec=5s expired, scheduling restart.
> Dec 20 14:08:54 retropie systemd[1]: syncthing@pi.service: Failed with result 'exit-code'.

looks like it’s already running, as the port is taken… or firewall…

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.