Syncthing System Service Issue (issue and resolution)

Hello!

Requirements:

I have Searched the forum for my issue and found nothing related or helpful
I have checked the Resources category (Resources Index)
I have reviewed the Wiki for relevant information
I have read the Release Notes and Errata

OpenMandriva Lx version:

Rome 25.06

Desktop environment (KDE, LXQT…):

KDE

Description of the issue (screenshots if relevant):

Issue with the system service for syncthing

Relevant informations (hardware involved, software version, logs or output…):

syncthing.service: Main process exited, code=exited, status=1/FAILURE
syncthing.service: Failed with result ‘exit-code’.
syncthing.service: Scheduled restart job, restart counter is at 4.
syncthing.service: Start request repeated too quickly.
syncthing.service: Failed with result ‘exit-code’.
Failed to start syncthing.service

My Analysis and Answer to the issue
I recently did a fresh install of OMLx. As I have always, I have loved it. I’m glad I did a fresh install as it helped me to run into a couple of issues with some base configurations. Syncthing was the first one on my mind, however.
The packager for the OpenMandriva release of Syncthing opted to include the systemd service file (Thanks so much! So much easier than writing our own, lol!).

However, the service was automatically enabled. I am of the opinion, perhaps wrongly, that this service should not be enabled by default and that the user should decide whether and when to enable the syncthing service. That’s just a preference–now for the problem.

Actual issue
It would appear that syncthing when enabled via systemctl using the global tag causes syncthing to hiccup and fail (logs above). It did this on every system startup without fail–on two machines (I did a fresh install on both my desktop and laptop).
I resolved the issue by:
sudo systemctl disable --global syncthing
Then enabling it as a service for just my user, by:
systemctl enable --user syncthing.service
It then ran perfectly fine without any issue whatsoever and has started gracefully at every bootup.

In Conclusion
What am I saying? I am asking the packager, on his next repackaging of syncthing (i.e. the next version he chooses to package for us) to change what systemd file to mark as used. Thus, disabling the global tag on the service activation.
Perhaps this is an issue only with my systems, however.
Either way, thanks so much.

1 Like

@chrols ^

Please mark your post as “Solution”.

1 Like

It appears that I am unable either to mark my own post as the solution or to have the original post as the solution.

1 Like

Yeah, it’s a feature. Not a bug. :wink:

We can just mark this one since it links to your original post.