[SOLVED] Updating syncthing to v0.14.20 breaks it

Hello,
today I’ve noticed the warning that v0.14.20 of syncthing was available and clicked the update button.
syncthing did not restart after the update. Launching it manually works but the service seems to be broken:

root@DietPiHome:~# systemctl status syncthing.service 
● syncthing.service - Syncthing
   Loaded: loaded (/etc/systemd/system/syncthing.service; disabled)
   Active: failed (Result: exit-code) since Tue 2017-01-24 15:08:07 GMT; 1s ago
  Process: 1703 ExecStart=/usr/bin/syncthing -logfile=/var/log/syncthing.log -logflags=3 (code=exited, status=1/FAILURE)
 Main PID: 1703 (code=exited, status=1/FAILURE)

Jan 24 15:08:04 DietPiHome syncthing[1703]: [monitor] 2017/01/24 15:08:04 INFO: Syncthing exited: exit status 1
Jan 24 15:08:05 DietPiHome syncthing[1703]: [monitor] 2017/01/24 15:08:05 INFO: Starting syncthing
Jan 24 15:08:05 DietPiHome syncthing[1703]: 2017/01/24 15:08:05 FATAL: -logfile may not be used with -no-restart or STNORESTART
Jan 24 15:08:05 DietPiHome syncthing[1703]: [monitor] 2017/01/24 15:08:05 INFO: Syncthing exited: exit status 1
Jan 24 15:08:06 DietPiHome syncthing[1703]: [monitor] 2017/01/24 15:08:06 INFO: Starting syncthing
Jan 24 15:08:06 DietPiHome syncthing[1703]: 2017/01/24 15:08:06 FATAL: -logfile may not be used with -no-restart or STNORESTART
Jan 24 15:08:06 DietPiHome syncthing[1703]: [monitor] 2017/01/24 15:08:06 INFO: Syncthing exited: exit status 1
Jan 24 15:08:07 DietPiHome syncthing[1703]: [monitor] 2017/01/24 15:08:07 WARNING: 4 restarts in 4.483534711s; not retrying further
Jan 24 15:08:07 DietPiHome systemd[1]: syncthing.service: main process exited, code=exited, status=1/FAILURE
Jan 24 15:08:08 DietPiHome systemd[1]: Unit syncthing.service entered failed state.

Since I need it up and running I edited /etc/systemd/system/syncthing-service and disabled logging by modifying the line to:

ExecStart=/usr/bin/syncthing

For the time being it’s a suitable workaround but of course it’s not the ideal solution.

Is still works on my XU4 which I think I installed manually a while back - but not on my Orange Pi Zero. I uninstalled and reinstalled and working again - but I have not upgraded for the time being - I’ll wait for the next version.

John

If it’s a problem with this release, we’ll discover it soon.
As soon as a new version comes out, I’ll restore the old syncthing.service and see if it works again.
Otherwise, syncthing has changed in a way that might have broken DietPi’s syncthing.service

Maybe not anything to do with DietPi as a few versions back the same happened to me with SyncThing on a remote Debian server - next version it was fixed. There seems to be an update weekly if not more often.

John

Let’s wait and see.
It’s the first time it has happened to me, even though I have been using syncthing for years.

Fixed in v0.14.21 of syncthing.
Sorry for the alarm.