Skip to content

GUI shows "Connection Error" after removing several folders in quick succession #10934

Open

Description

@axos88

What happened?

When a few folders are removed quickly while the web UI is open, it shows the "Connection Error" dialog ("Syncthing seems to be experiencing a problem processing your request…"). It stays until I reload the page. For syncthingtray, it needs to be completely closed and restarted, as there is no way to refresh that. Syncthing itself is fine.

Repro

  1. Open the web UI.
  2. Remove two or more folders less than a second apart, e.g.:
    for id in f1 f2 f3; do syncthing cli config folders $id delete; done
    

Removing a single folder doesn't trigger it.

Cause

On each config change, updateLocalConfig schedules refreshFolder for every folder, debounced by a second. When a folder is removed within that second, its pending GET /rest/db/status returns 404 ("no such folder"). refreshFolder passes every error to emitHTTPError, and that shows the dialog for any 404.

Possible fix

Handle the 404 in refreshFolder the way refreshCompletion already does: log it and carry on. Branch: axos88/syncthing@main...fix-gui-removed-folder-404

Tested against v2.1.7 by serving the patched GUI. The same 404s are only logged, and no dialog appears.

Version

Seen on 1.30.0 and v2.1.7, Linux (Ubuntu 24.04), Chrome.

Syncthing version

1.30.0 & 2.1.7

Platform & operating system

linux x64

Browser version

Chrome & syncthingtray

Relevant log output

Activity

  1. added
    bug
    needs-triage
    on Oct 22, 2026
  2. added theissue type on Oct 22, 2026
  3. added 3 commits that reference this issue on Oct 22, 2026
    b2458bb
    5e99ca2
    9745103
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

    bugneeds-triage

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions