Skip to content

Upgrade mechanism is broken starting from version 2 #10697

Closed

Description

@ilyaradko

What happened?

When syncthing is configures with an alternative GUI address (different from 127.0.0.1), the upgrade from terminal does not work. It gives the following error:

2026-05-17 17:47:37 INF Upgrade available (current=v2.0.11 latest=v2.1.0 log.pkg=main)
2026-05-17 17:47:37 ERR Failed to check for upgrade (error="Post \"http://127.0.0.1:8384/rest/system/upgrade\": dial tcp 127.0.0.1:8384: connect: connection refused" log.pkg=main)

No service is listening on 127.0.0.1:8384, because GUI listen address is configures to a different one. However, syncthing does not properly check settings. It used to work correctly on version 1.

Syncthing version

v2.0.11

Platform & operating system

Linux amd64

Browser version

No response

Relevant log output

Activity

  1. added
    bug
    needs-triage
    on May 17, 2026
  2. added theissue type on May 17, 2026
  3. calmh commented on May 18, 2026

    @calmh
    Member

    There is indeed a bug with this, but it's not that it's using the wrong GUI port, it's that it's trying to use the REST upgrade path when Syncthing isn't running. In your case I suspect it's simply that you're also using a custom config directory, and the syncthing cli command you're running isn't pointed towards it so it's using the default config.

  4. removed
    needs-triage
    on May 18, 2026
  5. ilyaradko commented on May 19, 2026

    @ilyaradko
    Author

    Thank you for the hint. Indeed, providing the "--home" option allowed me to upgrade. I understand why it's needed, but from an unaware user's perspective, the path to config file should not be neccessary for an upgrade.

  6. acolomb commented on May 19, 2026

    @acolomb
    Member

    It is necessary though, because the config file may specify a URL of the upgrade server.

  7. added 3 commits that reference this issue on May 21, 2026
    3962a23
    d335423
    69fa9d8
  8. added a commit that references this issue on Jun 28, 2026
    a4dadaa
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

    bug

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions