mattrgx
October 16, 2022, 10:27am
1
Hello everyone,
I’m having trouble while trying to start my syncthing service on my Debian 11 home server.
I’ve created a specific user (syncthing) to run the syncthing service.
I can enable the service without any error.
But when trying to execute this command :
sudo systemctl start syncthing@syncthing.service
and then check the status of the service, i got this :
● syncthing@syncthing.service - Syncthing - Open Source Continuous File Synchronization for syncthing
Loaded: loaded (/lib/systemd/system/syncthing@.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2022-10-16 12:23:25 CEST; 1s ago
Docs: man:syncthing(1)
Process: 30912 ExecStart=/usr/bin/syncthing serve --no-browser --no-restart --logflags=0 (code=exited, status=1/FAILURE)
Main PID: 30912 (code=exited, status=1/FAILURE)
CPU: 10ms
oct. 16 12:23:25 Debian-Serveur-Matt systemd[1]: syncthing@syncthing.service: Scheduled restart job, restart counter is at 4.
oct. 16 12:23:25 Debian-Serveur-Matt systemd[1]: Stopped Syncthing - Open Source Continuous File Synchronization for syncthing.
oct. 16 12:23:25 Debian-Serveur-Matt systemd[1]: syncthing@syncthing.service: Start request repeated too quickly.
oct. 16 12:23:25 Debian-Serveur-Matt systemd[1]: syncthing@syncthing.service: Failed with result 'exit-code'.
oct. 16 12:23:25 Debian-Serveur-Matt systemd[1]: Failed to start Syncthing - Open Source Continuous File Synchronization for syncthing.
I don’t have anything specific mentioned when i look into the journalctl
So i don’t know where to start to find the solution.
Thanks in advance for your help.
imsodin
(Simon)
October 16, 2022, 12:55pm
2
Could you please still show those logs (journaltctl -u syncthing@syncthing
).
1 Like
imsodin:
Could you please still show those logs (journaltctl -u syncthing@syncthing
).
oct. 16 12:23:24 Debian-Serveur-Matt syncthing[30912]: WARNING: Failure on home directory: mkdir /home/syncthing: permission denied
oct. 16 12:23:24 Debian-Serveur-Matt systemd[1]: syncthing@syncthing.service: Main process exited, code=exited, status=1/FAILURE
oct. 16 12:23:24 Debian-Serveur-Matt systemd[1]: syncthing@syncthing.service: Failed with result 'exit-code'.
oct. 16 12:23:25 Debian-Serveur-Matt systemd[1]: syncthing@syncthing.service: Scheduled restart job, restart counter is at 4.
oct. 16 12:23:25 Debian-Serveur-Matt systemd[1]: Stopped Syncthing - Open Source Continuous File Synchronization for syncthing.
oct. 16 12:23:25 Debian-Serveur-Matt systemd[1]: syncthing@syncthing.service: Start request repeated too quickly.
oct. 16 12:23:25 Debian-Serveur-Matt systemd[1]: syncthing@syncthing.service: Failed with result 'exit-code'.
oct. 16 12:23:25 Debian-Serveur-Matt systemd[1]: Failed to start Syncthing - Open Source Continuous File Synchronization for syncthing.
lines 604-654/654 (END)
acolomb
(André Colomb)
October 16, 2022, 7:37pm
4
Does the HOME directory /home/syncthing/
exist? Is it owned / write-accessible by the syncthing
user?
2 Likes
I don’t have this folder. I’ve just created a simple user for syncthing but without a home directory because i don’t need one.
Do i really need a home directory for the user who run the service ?
acolomb
(André Colomb)
October 16, 2022, 8:53pm
6
Yes, definitely. It’s where the configuration and database will be stored. There are several ways to control where it goes, but you do nerd some place for it.
1 Like
system
(system)
Closed
November 15, 2022, 8:53pm
7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.