Skip to content

"Lockfile doesn't exist" error on new install #10126

@Saiyaken-PHOENIX

Description

@Saiyaken-PHOENIX

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

This Image

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 syncthing@cinnamon.service
× syncthing@cinnamon.service - Syncthing - Open Source Continuous File Synchronization for cinnamon
     Loaded: loaded (/usr/lib/systemd/system/syncthing@.service; 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]: syncthing@cinnamon.service: Scheduled restart job, restart counter is at 4.
May 24 20:49:45 green-machine systemd[1]: syncthing@cinnamon.service: Start request repeated too quickly.
May 24 20:49:45 green-machine systemd[1]: syncthing@cinnamon.service: 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

No one assigned

    Labels

    bugA problem with current functionality, as opposed to missing functionality (enhancement)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions