Skip to content

'syncthing upgrade' fails if lockfile does not exist #10240

Closed

Description

@GermanCoding

What happened?

Noticed the following failure in CI:

Running Syncthing upgrade...
2025/08/12 15:19:54 INFO: Upgrade available (current "v2.0.0-rc.23" < latest "v2.0.0")
2025/08/12 15:19:54 WARNING: Upgrade: open C:\Users\runneradmin\AppData\Local\Syncthing\syncthing.lock: The system cannot find the path specified.
Syncthing upgrade failed with exit code 1.

The CI simply does syncthing upgrade without any syncthing being installed, e.g. there is no config, no lockfile, nothing. In this case, it appears that syncthing fails to upgrade, as it expects the lockfile to already exist.

Syncthing version

v2.0.0-rc.23

Platform & operating system

Windows amd64

Browser version

No response

Relevant log output

2025/08/12 15:19:54 INFO: Upgrade available (current "v2.0.0-rc.23" < latest "v2.0.0")
2025/08/12 15:19:54 WARNING: Upgrade: open C:\Users\runneradmin\AppData\Local\Syncthing\syncthing.lock: The system cannot find the path specified.

Activity

  1. added theissue type on Aug 12, 2025
  2. added
    bug
    needs-triage
    on Aug 12, 2025
  3. removed
    needs-triage
    on Aug 12, 2025
  4. added this to the v2.0.1 milestone on Aug 12, 2025
  5. added a commit that references this issue on Aug 12, 2025
    fcf4916
  6. added a commit that references this issue on Aug 24, 2025
    0c93469
  7. added
    frozen-due-to-age
    on Aug 13, 2026
  8. locked and limited conversation to collaborators on Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfrozen-due-to-age

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions