[SOLVED] Updating syncthing to v0.14.20 breaks it

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

[SOLVED] Updating syncthing to v0.14.20 breaks it

Post by Sciamano »

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:

Code: Select all

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:

Code: Select all

ExecStart=/usr/bin/syncthing
For the time being it's a suitable workaround but of course it's not the ideal solution.
Last edited by Sciamano on Wed Jan 25, 2017 3:39 pm, edited 1 time in total.
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: Updating syncthing to v0.14.20 breaks it

Post by johnvick »

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
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Updating syncthing to v0.14.20 breaks it

Post by Sciamano »

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
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: Updating syncthing to v0.14.20 breaks it

Post by johnvick »

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
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Updating syncthing to v0.14.20 breaks it

Post by Sciamano »

Let's wait and see.
It's the first time it has happened to me, even though I have been using syncthing for years.
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Updating syncthing to v0.14.20 breaks it

Post by Sciamano »

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