Hi everyone ! Syncthing gave me quite a hard time yesterday. First, for some reason, I wasn’t able to log in, syncthing would refused my id and password. So I start with a new config file, copy the contents from the previous one and restart again. That was still not working until I delete the user/password in the config file. Now I want to use the systemd service to start/stop syncthing (I run it from a script until now) but I’m having another issue. The service stops quickly with this error :
mars 28 09:06:44 systemd: syncthing.service: Start request repeated too quickly. mars 28 09:06:44 systemd: syncthing.service: Failed with result ‘core-dump’.
I may have mess (a bit) with the systemd file so maybe it comes from there ?
Here’s the content of my syncthing.service file :
[Unit] Description=Syncthing - Open Source Continuous File Synchronization Documentation=man:syncthing(1)
[Service] user=$USER ExecStart=/usr/bin/syncthing -no-browser -logflags=0 -home="/home/$USER/.config/syncthing/" Restart=on-failure SuccessExitStatus=3 4 RestartForceExitStatus=3 4 # Hardening ProtectSystem=full PrivateTmp=true SystemCallArchitectures=native MemoryDenyWriteExecute=true NoNewPrivileges=true [Install] WantedBy=default.target
Is there something I need to do in order to get the syncthing service up and running ? I can get syncthing to work from a terminal with this command line, but it won’t work from the systemd service file … Any idea what I’m doing wrong ? Thanks for your help !