I was able to see the following logs from the web gui log view on the app screen…
2024-10-30 12:59:42.376157+00:00[start] 2024/10/30 12:59:42 INFO: syncthing v1.28.0 "Gold Grasshopper" (go1.23.2 linux-amd64) docker@github.syncthing.net 2024-10-04 19:47:57 UTC [noupgrade, stnoupgrade]
2024-10-30 12:59:42.376221+00:00[start] 2024/10/30 12:59:42 INFO: Generating ECDSA key and certificate for syncthing...
2024-10-30 12:59:42.381911+00:00[start] 2024/10/30 12:59:42 WARNING: Failed to load/generate certificate: save cert: open /var/syncthing/config/cert.pem: permission denied
2024-10-30 12:59:42.382600+00:00[monitor] 2024/10/30 12:59:42 INFO: Syncthing exited: exit status 1
2024-10-30 12:59:43.391028+00:00[start] 2024/10/30 12:59:43 INFO: syncthing v1.28.0 "Gold Grasshopper" (go1.23.2 linux-amd64) docker@github.syncthing.net 2024-10-04 19:47:57 UTC [noupgrade, stnoupgrade]
2024-10-30 12:59:43.391113+00:00[start] 2024/10/30 12:59:43 INFO: Generating ECDSA key and certificate for syncthing...
2024-10-30 12:59:43.394287+00:00[start] 2024/10/30 12:59:43 WARNING: Failed to load/generate certificate: save cert: open /var/syncthing/config/cert.pem: permission denied
2024-10-30 12:59:43.394937+00:00[monitor] 2024/10/30 12:59:43 INFO: Syncthing exited: exit status 1
2024-10-30 12:59:44.402668+00:00[start] 2024/10/30 12:59:44 INFO: syncthing v1.28.0 "Gold Grasshopper" (go1.23.2 linux-amd64) docker@github.syncthing.net 2024-10-04 19:47:57 UTC [noupgrade, stnoupgrade]
2024-10-30 12:59:44.402726+00:00[start] 2024/10/30 12:59:44 INFO: Generating ECDSA key and certificate for syncthing...
2024-10-30 12:59:44.405932+00:00[start] 2024/10/30 12:59:44 WARNING: Failed to load/generate certificate: save cert: open /var/syncthing/config/cert.pem: permission denied
2024-10-30 12:59:44.406613+00:00[monitor] 2024/10/30 12:59:44 INFO: Syncthing exited: exit status 1
2024-10-30 12:59:45.414606+00:00[start] 2024/10/30 12:59:45 INFO: syncthing v1.28.0 "Gold Grasshopper" (go1.23.2 linux-amd64) docker@github.syncthing.net 2024-10-04 19:47:57 UTC [noupgrade, stnoupgrade]
2024-10-30 12:59:45.414654+00:00[start] 2024/10/30 12:59:45 INFO: Generating ECDSA key and certificate for syncthing...
2024-10-30 12:59:45.417921+00:00[start] 2024/10/30 12:59:45 WARNING: Failed to load/generate certificate: save cert: open /var/syncthing/config/cert.pem: permission denied
2024-10-30 12:59:45.418556+00:00[monitor] 2024/10/30 12:59:45 INFO: Syncthing exited: exit status 1
2024-10-30 12:59:46.419082+00:00[monitor] 2024/10/30 12:59:46 WARNING: 4 restarts in 4.053270045s; not retrying further
It looks as if there’s a permissions issue in the docker container’s config directory.
I’m trying to use a host path with an existing configuration. I set the application’s User ID and Group ID to ‘0’ so it can run as root and read/write to the host path but it’s still reporting the same issue.
root@truenas:~# ls -l /mnt/hdd-pool/NAS/servers/syncthing/config/
total 31
-rw-rw-r-- 1 root root 790 May 17 11:45 cert.pem
-rw------- 1 root root 12125 Sep 6 08:14 config.xml
-rw-rw-r-- 1 root root 863 May 17 11:45 https-cert.pem
-rw------- 1 root root 288 May 17 11:45 https-key.pem
drwxr-xr-x 2 root root 59 Oct 29 12:39 index-v0.14.0.db
-rw------- 1 root root 288 May 17 11:45 key.pem