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
Docker start and stop wait for the CLI lock with no deadline and can freeze the poll loop #4443
P2-correctnessReal defect, not yet user-visible. After P1, before any P3/P4blockedWaiting on another issue or a release; the runner clears it when that closesbugSomething isn't workingdashboardMining dashboard web UI
_acquire_lock (dashboard/mining_dashboard/client/docker/docker_control.py:43-54) retries a non-blocking flock every 0.1 s with no deadline. request_timeout (5 s default) applies only after the lock is taken (_post, lines 93-97).
The CLI holds the same lock for the whole of up, apply and upgrade. stop and start are awaited inline from the main data loop (dashboard/mining_dashboard/service/data_service.py:329).
What it impacts
During a multi-minute pithead apply, or with a hung CLI, a pending stop or start blocks that loop iteration. The sync gate stops every cycle while holding, so polling, the guard and alerts freeze until the lock is released.
Operators see a dashboard that stops updating.
How I found it
Reproduced by calling the real stop() on a develop checkout with the lock held by a separate process: it was still waiting after 8 seconds, with a 5 second request timeout that is not applied to the lock wait.
A verifier re-ran it.
Code references are from develop at 32d9834a. Checked for an existing issue: none found.
How important is it
P2-correctness: a long CLI operation can stall the whole dashboard, and the ping may still look healthy (see the separate healthcheck issue).
Acceptance criteria
A test holds the lock from another process and asserts stop() returns False within the deadline. It fails today.
The callers retry on the next cycle, and a warning is logged on timeout.
Possible solutions
Smallest: wrap _acquire_lock() in asyncio.wait_for(..., 30), log a warning on timeout and return False.
Alternative: run the lock wait outside the data loop in its own task.
Blocked on #4502. The targeted tier4-e2e on head 245518f (job 4626, rerun by the bench as 1097) ended in error with 272 rows passed and 4 failed, all in lifecycle: backup restore round-trip succeeded; pre-move dashboard rows readable; encrypted restore after config-reset starts the stack; restore original config and healthy stack. The log line behind the first failure reads "This backup's configuration was written by pithead 2.0.4; this machine runs 2.0.3". That is the develop-v2.0.5 2.0.3 vs 2.0.4 bench skew, which the repo rules call the base's failure until pithead#4502 closes. I read the log only for that restore failure and the dashboard-rows failure; I did not read the other two rows' log lines, so they are attributed to the same skew only by inference. The bench also reported an outage and "bench lock still held" for the same job, so I submitted a new attempt, job 4634 on the same head, which is still queued. It will probably meet the same skew. I corrected the PR body, which had wrongly said no rows ran for 4626, and posted the blocker comment on PR #4478. When #4502 closes, bring the base in and run a fresh targeted tier4-e2e.
The runner resumes this issue when that one closes.
P2-correctnessReal defect, not yet user-visible. After P1, before any P3/P4blockedWaiting on another issue or a release; the runner clears it when that closesbugSomething isn't workingdashboardMining dashboard web UI
Activity
pithead-developer commentedon Nov 25, 2026
Blocked on #4502. The targeted tier4-e2e on head 245518f (job 4626, rerun by the bench as 1097) ended in error with 272 rows passed and 4 failed, all in lifecycle: backup restore round-trip succeeded; pre-move dashboard rows readable; encrypted restore after config-reset starts the stack; restore original config and healthy stack. The log line behind the first failure reads "This backup's configuration was written by pithead 2.0.4; this machine runs 2.0.3". That is the develop-v2.0.5 2.0.3 vs 2.0.4 bench skew, which the repo rules call the base's failure until pithead#4502 closes. I read the log only for that restore failure and the dashboard-rows failure; I did not read the other two rows' log lines, so they are attributed to the same skew only by inference. The bench also reported an outage and "bench lock still held" for the same job, so I submitted a new attempt, job 4634 on the same head, which is still queued. It will probably meet the same skew. I corrected the PR body, which had wrongly said no rows ran for 4626, and posted the blocker comment on PR #4478. When #4502 closes, bring the base in and run a fresh targeted tier4-e2e.
The runner resumes this issue when that one closes.