Skip to content

Desktop DB graph download failures are only logged and leave misleading progress UI #1058

Open

Description

@JaredStemper

Search first

  • I searched open and closed issues and found no Desktop report focused on error surfacing for this flow.

What happened?

General DB graph snapshot-download failures are written to Electron or graph-local worker logs but are not presented as actionable UI errors.

Two reproduced examples:

  1. Worker runtime startup failed. The last visible message remained Preparing graph snapshot download while the Electron log contained db-worker-node failed to start.
  2. The worker started, but the initial pull failed with a TLS error. The UI briefly showed Downloading..., then stopped and allowed an empty graph to be opened. The graph-local worker log contained:
:db-sync/download-graph-by-id-failed
:stage :fetch-pull
TypeError: fetch failed

The operation can therefore look hung or completed even though snapshot transfer never began.

Reproduce

  1. Initiate a remote DB graph download.
  2. Force either a worker startup failure or a network failure at :fetch-pull.
  3. Observe the progress UI and compare it with Electron main and graph-local worker logs.

Expected behavior

  • Clear the progress state on every failure path.
  • Show the failed stage and a sanitized underlying error.
  • Do not switch into or present a failed empty graph as usable.
  • Offer Retry and Remove failed local graph actions where appropriate.

Platform

  • Logseq Desktop 2.0.1
  • macOS arm64
  • DB Sync and db-worker-node

Activity

  1. transferred this issue fromlogseq/logseqon Aug 17, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions