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
Upgrade mechanism is broken starting from version 2 #10697
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.
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.
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.
Activity
calmh commentedon May 18, 2026
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.
ilyaradko commentedon May 19, 2026
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.
acolomb commentedon May 19, 2026
It is necessary though, because the config file may specify a URL of the upgrade server.
fix(syncthing): properly upgrade via REST when Syncthing is running (f…
Merge branch 'main' into jb/archiveuserbits
Merge remote-tracking branch 'upstream/main' into jb/morecrashrep
[codex] Merge upstream stable v2.1.1 into main (#23)