Repository navigation
Closed
Labels
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
Description
What happened?
We've done a new install using Arch Linux with XFCE, with attempts on using all three packages (syncthing, syncthing-gtk, syncthingtray). Every one would fail, with one of them giving us a cryptic "system exited too fast" error. (in
In log output, Page 1)
We were going on about this for hours, later figuring out with syncthing alone, that it had something to do with the systemd service. (In log output, Page 2)
Creating a blank lockfile that the systemd service is complaining about fixes the issue.
We have not tested if a brand new install can replicate this.
Syncthing version
1.29.6-2
Platform & operating system
Linux x86/64
Browser version
No response
Relevant log output
###PAGE 1###
[cinnamon@green-machine ~]$ sudo systemctl status [email protected]
× [email protected] - Syncthing - Open Source Continuous File Synchronization for cinnamon
Loaded: loaded (/usr/lib/systemd/system/[email protected]; enabled; preset: disabled)
Active: failed (Result: exit-code) since Sat 2025-05-24 20:49:45 EDT; 3s ago
Duration: 47ms
Invocation: d5d60cae045440769f6a8602b1397bb4
Docs: man:syncthing(1)
Process: 46303 ExecStart=/usr/bin/syncthing serve --no-browser --no-restart --logflags=0 (code=exited, status=1/FAILURE)
Main PID: 46303 (code=exited, status=1/FAILURE)
May 24 20:49:45 green-machine systemd[1]: [email protected]: Scheduled restart job, restart counter is at 4.
May 24 20:49:45 green-machine systemd[1]: [email protected]: Start request repeated too quickly.
May 24 20:49:45 green-machine systemd[1]: [email protected]: Failed with result 'exit-code'.
May 24 20:49:45 green-machine systemd[1]: Failed to start Syncthing - Open Source Continuous File Synchronization for cinnamon.
###END PAGE 1###
###PAGE 2###
[cinnamon@green-machine ~]$ syncthing
[start] 2025/05/24 21:35:46 INFO: syncthing v1.29.6 "Gold Grasshopper" (go1.24.3 linux-amd64) syncthing@archlinux 2025-05-15 09:30:00 UTC [noupgrade]
[start] 2025/05/24 21:35:46 WARNING: Failed to acquire lock: open /home/cinnamon/.local/state/syncthing/syncthing.lock: no such file or directory
[monitor] 2025/05/24 21:35:46 INFO: Syncthing exited: exit status 1
[start] 2025/05/24 21:35:47 INFO: syncthing v1.29.6 "Gold Grasshopper" (go1.24.3 linux-amd64) syncthing@archlinux 2025-05-15 09:30:00 UTC [noupgrade]
[start] 2025/05/24 21:35:47 WARNING: Failed to acquire lock: open /home/cinnamon/.local/state/syncthing/syncthing.lock: no such file or directory
[monitor] 2025/05/24 21:35:47 INFO: Syncthing exited: exit status 1
[start] 2025/05/24 21:35:48 INFO: syncthing v1.29.6 "Gold Grasshopper" (go1.24.3 linux-amd64) syncthing@archlinux 2025-05-15 09:30:00 UTC [noupgrade]
[start] 2025/05/24 21:35:48 WARNING: Failed to acquire lock: open /home/cinnamon/.local/state/syncthing/syncthing.lock: no such file or directory
[monitor] 2025/05/24 21:35:48 INFO: Syncthing exited: exit status 1
[start] 2025/05/24 21:35:49 INFO: syncthing v1.29.6 "Gold Grasshopper" (go1.24.3 linux-amd64) syncthing@archlinux 2025-05-15 09:30:00 UTC [noupgrade]
[start] 2025/05/24 21:35:49 WARNING: Failed to acquire lock: open /home/cinnamon/.local/state/syncthing/syncthing.lock: no such file or directory
[monitor] 2025/05/24 21:35:49 INFO: Syncthing exited: exit status 1
[monitor] 2025/05/24 21:35:50 WARNING: 4 restarts in 4.063240369s; not retrying further
###END OF PAGE 2###Metadata
Metadata
Assignees
Labels
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
marbens-arch commentedon May 25, 2025
This looks more like a support request than a clear bug or feature request. Please use the forum - https://forum.syncthing.net/ - for support, first by searching for any similar issues and then by posting a new one when required. The forum has a lot more eyes and friendly people on it than the issue tracker.
Thanks!
calmh commentedon May 25, 2025
Nah this is a actually a legit bug. The lock file is in the database directory, which may not be created yet if it's not the same as the config directory; I can reproduce. I suspect Arch sets the env vars to trigger xdg fundamentalist mode with separation of config and database dirs by default.
fix(syncthing): ensure both config and data dirs exist at startup (fixes
[-]Weird "Lockfile doesn't exist" Error on New Install Preventing Service From Starting[/-][+]"Lockfile doesn't exist" error on new install[/+]Merge branch 'main' into v2
Merge branch 'v2' into jb/slog
Merge tag 'v1.29.7'
~/.local/state/syncthing/doesn't exist #10198 as a duplicate of this issuePugglewuggle commentedon Jul 31, 2025
This happens on Debian as well with a fresh install of syncthing from the Debian apt repositories (version 1.29.5)
bt90 commentedon Jul 31, 2025
Sure, because the fix is shipped with v1.29.7 and the Debian version is lagging behind.
Add https://apt.syncthing.net to your sources if you need a recent version.
Pugglewuggle commentedon Jul 31, 2025
@bt90 Well, that is good to know. Thanks!