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
bug: node stays stopped after a failed start on a network error #2163
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:
The app came to the foreground, the previous node finished stopping, and a new node build started.
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.
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.
No further node build or start followed, although other requests from the app (Blocktank) succeeded in the same minutes.
Cause
This foreground start runs LightningRepo.setup without the generic retry path that other starts use.
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
bug: node unstable on high-latency network #1293 records the same Read failed after a stalled VSS read on slow links, and asks that such reads never fail startup. This issue is about recovering after any such failure.
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.
Activity
ovitrif commentedon Nov 27, 2026
iOS already recovers from this:
NodeRestarterrestarts the node fromerrorStartingwhen the app returns to the foreground with a connection, andAppScenedoes 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.