You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Trying to launch Syncthing when already running resets cert.pem to 0 bytes #10053
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Try to start Syncthing again using the same --config (or --home) directory.
The new instance fails to start with the following error:
[start] 2025/04/12 01:58:55.751711 main.go:432: INFO: syncthing v2.0.0-beta.6 "Hafnium Hornet" (go1.24.2 windows-amd64) [email protected] 2025-04-07 09:43:08 UTC [stnoupgrade]
[start] 2025/04/12 01:58:55.751711 utils.go:64: INFO: Generating ECDSA key and certificate for syncthing...
[start] 2025/04/12 01:58:55.753718 main.go:440: WARNING: Failed to load/generate certificate: save cert: write R:\test\syncthing\syncthing1\cert.pem: The process cannot access the file because another process has locked a portion of the file.
[monitor] 2025/04/12 01:58:55.755224 monitor.go:199: INFO: Syncthing exited: exit status 1
Despite that, the cert.pem file has been wiped out and has a size of 0 bytes.
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Activity
calmh commentedon Apr 12, 2025
Sweet this seems like rather the opposite of what locking is supposed to accomplish
calmh commentedon Apr 12, 2025
So this doesn't happen on my Windows, but 🤷
fix(syncthing): use separate lock file instead of locking the certifi…
Merge branch 'release-1.29.5'
fix(syncthing): use separate lock file instead of locking the certifi…
Merge branch 'main' into v2
Merge branch 'v2' into jb/configapi