Syncthing service won't start automatically

Hello, good morning.

After each system reboot (I’m using Ubuntu 25.04), the Syncthing service doesn’t start automatically. I always have to start it manually with systemctl enable --now syncthing@myusername.service. How should I proceed?

Thanks.

Are you using an encrypted home directory?

No.

1 Like

What status does systemd report for the unit before you issue that command? There are some subcommands in systemctl to check dependencies. You should check those in addition.

Where did you get the systemd service file from? How did you install Syncthing at all?

systemctl status syncthing@myusername.service:

× syncthing@myusername.service - Syncthing - Open Source Continuous File Synchronization for myusername
     Loaded: loaded (/usr/lib/systemd/system/syncthing@myusername.service; enabled; preset: enabled)
    Drop-In: /run/systemd/system/service.d
             └─zzz-lxc-service.conf
     Active: failed (Result: exit-code) since Mon 2025-06-23 09:39:18 -03; 1 day 6h ago
   Duration: 1.535s
 Invocation: 18029c080c544d9f92aef1a02539a981
       Docs: man:syncthing(1)
    Process: 528 ExecStart=/usr/bin/syncthing serve --no-browser --no-restart --logflags=0 (code=exited, status=1/FAILURE)
   Main PID: 528 (code=exited, status=1/FAILURE)

jun 23 09:39:18 ubuntu systemd[1]: syncthing@myusername.service: Scheduled restart job, restart counter is at 4.
jun 23 09:39:18 ubuntu systemd[1]: syncthing@myusername.service: Start request repeated too quickly.
jun 23 09:39:18 ubuntu systemd[1]: syncthing@myusername.service: Failed with result 'exit-code'.
jun 23 09:39:18 ubuntu systemd[1]: Failed to start syncthing@myusername.service - Syncthing - Open Source Continuous File Synchronization for myusername.

Syncthing installed using: apt install syncthing.