Repository navigation
Release 0.3.14: a missing cookie after a reboot is waiting for the node - #75
Merged
Merged
Conversation
Right after a reboot the node has not written its RPC cookie file yet. The app showed that as a red "Authentication problem" until the 30 s retry connected. - rpc: a cookie file that does not exist raises CookieMissing; other read errors stay authentication errors, and a refused cookie stays one too. - scanner: CookieMissing shows "Waiting for the node to write its RPC cookie file (<path>)" in the waiting_node phase and checks again every 10 s. - connection test: a warning that the node may still be starting. - New texts in all five languages; version 0.3.14; changelog; CLAUDE.md state and Start9's current release-notes format. Tests written first: the missing-cookie and connection-test cases failed against the old behaviour; the refused-cookie case guards the red state. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Right after a reboot the node has not written its RPC cookie file yet. Until now the app showed that as a red "Authentication problem" until its 30 s retry connected. This was the "maybe later" idea in CLAUDE.md; the maintainer asked for it now.
Change
node/rpc.py: a cookie file that does not exist raisesCookieMissing(aNodeError). Every other read error stays aNodeAuthError, and a cookie the node refuses (401) stays one too.scanner.py:CookieMissingsets thewaiting_nodephase with "Waiting for the node to write its RPC cookie file ()" and checks again every 10 s. The path is in the text, so a wrongrpc_cookie_fileis visible. On StartOS the Scan Progress check shows "Waiting for Bitcoin" (loading) instead of a failure.diagnostics.py: the connection test reports a warning ("may still be starting … check rpc_cookie_file") instead of a failure.Tests
Written first.
CookieNotWrittenYet: the missing-cookie and connection-test cases failed against the old behaviour; the refused-cookie case passed before and after and guards the red state. Full suite: 254 tests pass locally.UI check: the new status text in all five languages at 360, 390, 768, 1024, 1440 and 1920 px (status forced to this state on the demo server): no overflow, translated everywhere, the full text in the tooltip. Screenshots sent to the maintainer.
Release
Version 0.3.14, changelog dated, CLAUDE.md state (StartOS 0.3.14:0 replaces the never-submitted 0.3.13:0) and the release-notes rule updated to Start9's current format (bold section headers).