Skip to content

bug: node stays stopped after a failed start on a network error #2163

Backlog

Description

@ovitrif

What happened?

When the node fails to start because its backup (VSS) can't be read over the network, the app never tries to start it again. It stays on the startup error screen with "LDK Build error: Read failed." until the user taps retry, even after the network is back.

Seen on 3.1.1 (1199), mainnet, Pixel 10 Pro on LTE only:

  1. The app came to the foreground, the previous node finished stopping, and a new node build started.
  2. During the build, ldk-node's reads from VSS (getObject) kept failing with error sending request while the phone's mobile connection dropped in and out (Android re-evaluated the network and DNS lookups failed). ldk-node retried for about 5 minutes.
  3. Once its retries ran out, the build failed with BuildException.ReadFailed, surfaced as Node setup error [AppError='LDK Build error: Read failed.'] and Wallet connection recovery startup failed.
  4. No further node build or start followed, although other requests from the app (Blocktank) succeeded in the same minutes.

Cause

Expected behavior

After a node start fails on a network error (VSS or Electrum unreachable), the app starts the node again on its own: when the network comes back, on the next foreground, or after a backoff, without the user tapping retry. A failure that is not a network error (for example corrupt data) keeps the current error screen.

Related

Activity

  1. added this to the 3.3.0 milestone on Nov 27, 2026
  2. ovitrif commented on Nov 27, 2026

    @ovitrif
    CollaboratorAuthor

    iOS already recovers from this: NodeRestarter restarts the node from errorStarting when the app returns to the foreground with a connection, and AppScene does the same when the network is restored. That explains why the same unstable connection left the Android node stopped while iOS kept working. The Android fix in this issue can use the same two triggers.

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions