deploy-video: the peertube-oidc oneshot swallows its plugin install (|| true), PUTs settings to an uninstalled plugin (404), then re-logs-in on all 60 retries and 429-walls the clean-retry — switch exit 4 #1606
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#1606
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The failure
Drive
20260918T193207Z(targetbrands, commite74b1cbb), 35 legs green, red atdeploy-videoafter 954s.artifacts/verdict.jsonnamesdeploy-videoas the only red;artifacts/legs.jsoncarries its error:logs/guest-failed-units.logconfirms exactly one failed unit on the box:This is the first drive that deploys the #1544 OIDC oneshot (
169b24c5, an ancestor of the driven commit);deploy-videois a new-contact failure, not a regression.What the box said, verbatim
The clean-retry attempt (unit run 2, 20:42:41 → 20:49:19,
Consumed 1min 1.056s CPU time over 6min 38.958s wall clock) never got past the PeerTube login. Every retry is identical — the whole kanidm half succeeds, then:(
logs/guest-system-journal.log:47-50, repeated at :129-132, :211-214, :295-298), ending at(
logs/guest-system-journal.log:299-301). Each iteration's kanidm calls all answerstatus_code: 200(_scopemap,_claimmap,PATCH /v1/oauth2/video,_basic_secret—guest-system-journal.log:2-46), so kanidm is NOT the fault. The only failing step isPOST /api/v1/users/token.The limiter is shared, and a third consumer walks into it too:
(
guest-system-journal.log:216) — that is the control plane's deploy-time video health check (control-plane/cmd/control-plane/videohealth.go:199).The two defects, in order
1. The plugin install's failure is swallowed, so the settings PUT 404s with no diagnosis (run 1's fault).
internal/clan/video.go:503-505installs the plugin and discards everything:and
internal/clan/video.go:518-520then PUTs to$api/plugins/$plugin/settings. In run 1 the last error was 404, not 429 — meaning the login SUCCEEDED and the chain died later. Of the four URLs the script touches,/oauth-clients/localand/users/tokenboth answered 200/429 in run 2 (they exist), and the install's own stderr is discarded by2>&1, so the printedcurl: (22) … 404can only be thePUT /api/v1/plugins/peertube-plugin-auth-openid-connect/settings— PeerTube 404s that route for a plugin it has not registered. The install therefore failed,|| truehid the reason, and the 404 is an unreadable consequence. (First thing to check on a re-drive: keep the install's response body. Second: whethernpmNameinstall needs a package manager the peertube unit's PATH lacks — nixpkgs'services.peertubespawns the install itself.)2. The retry loop burns PeerTube's login rate-limit budget, so the clean-retry can never converge (run 2's fault).
internal/clan/video.go:522-526:The whole body — including
POST $api/users/tokenatvideo.go:492-500— is inside the retried function, so each of the 60 retries mints a fresh PeerTube login. PeerTube rate-limits/api/v1/users/tokenseparately from its general API; ~60 logins in ~5 minutes from run 1, plus the video-brand oneshot's own 30-attempt login loop (internal/clan/video.go:607-624) and the health check (videohealth.go:199), leave the limiter saturated when run 2 starts seconds later. Run 2 then 429s on EVERY attempt for its full 6m38s budget without ever reaching the step that actually broke. The precedent for absorbing exactly this is GOTCHAS #6746 (whakapapa-brand absorbing a flask-limiter 429 on its firstPOST /api/token/); video has no such tolerance — the login is neither hoisted out of the retry body nor backed off on 429.Net effect: defect 2 masks defect 1, so the drive's own error message names 429 (a self-inflicted collateral) rather than the 404 that is the real fault.
Suspected layer
Product,
internal/clan/video.go— therenderVideoOIDConeshot script (the #1544 render), with a supporting change in how the brand oneshot / health check share PeerTube's login limiter. Not harness, not fixture: no Playwright leg, selector or wait is involved; the deploy died on the box before any browser assertion ran.Why the healer refused in-lane
Not a refusal-rule trip — a confidence one. The 429 half (hoist the login out of the retry body / tolerate 429) and the diagnosis half (stop discarding the install's response) are both mechanical and render-level testable, but neither makes this leg green: run 1's 404 — the plugin genuinely not installing on the box — remains, and its cause is precisely what the current code hides. There is no test in this checkout that can prove a plugin installs into a real PeerTube, so I cannot fast-lane it and cannot honestly claim the fix. Landing only the presentation fix would re-fire the drive straight into the same 404 and spend another full run to rediscover it.
Suggested order of work: (a) stop swallowing
plugins/install— keep its body, tolerate only the already-installed case, fail loud otherwise; (b) mint the PeerTube token ONCE per unit run and reuse it across retries, with an explicit 429 backoff rather than a 5s hammer; (c) with (a)'s output in hand on a re-drive, fix the actual install failure. Each of (a) and (b) is provable by aTestRenderVideo_OIDC…render assertion ininternal/clan/video_test.goalongside the existing #1544 tests (video_test.go:144-222).drive
20260918T193207Zred atdeploy-video:deploy failed (clean-retry): provision: deploy gateway: clan: deploy failed on 1 node(s): gateway: clan: masked_exit on gateway: clan reported success but the log shows a real failure: the remote switevidence:
/home/swarm/swarm/Matou/idss/test-results/private-path/20260918T193207Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedThree facts from an interactive session's read of the same run (
20260918T193207Z), for whoever takes this:peertube-oidc's first live deploy anywhere. #1544 landed 09-16; the last brand-reach green was 09-09; and the roles proof (#1547) never placesvideo(ROLES_PROOF_SERVICES+newsletters). So treat it as a first-contact defect, not a regression — nothing proves the plugin install has EVER worked on a NixOSservices.peertube.nix evalon nixpkgs50ab7937: the only PeerTube attrs arepeertube(6.3.3) andpeertube-viewer— nopeertube-plugin-*. The runtime API install must work (PeerTube shelling out toyarnin its storage dir, with network, under the unit's hardening), or the plugin must be vendored as our own derivation. Printing the install's status + body is what decides between them — do that first and do not guess.guest-system-journal.logkept 503 lines and starts at 20:48:53, so the entire first unit run (the 404 phase, and PeerTube's own log of the install) was gone. Add a per-unit harvest forpeertube+peertube-oidc(theguest-grampsweb.log/guest-omeka-*.logpattern) in this ticket, or the next red teaches as little.Also worth knowing: the control plane's video health check (
Go-http-client) logs in to PeerTube too and shares the same login rate limit (15 per 5 min by default) — minting the token once in the oneshot fixes the oneshot, but a deploy-time health check pollingusers/tokencan trip the same 429 on a slow box.swarm-claim host=matou-dev-server-01 run=26682
(automated multi-host claim — lowest live claim id works this ticket)
removableon the catalogue read, and the live client's two verbs — the UI is on main and draws no button until this lands #1590close-report for #1606 — status
success⛔ close-report gates REFUSED this close — the following claims did not verify:
09504f01is not reachable from origin/main (not landed)envelope
close-report for #1606 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
pnpm, so PeerTube 8's sign-in plugin install diescommand not foundand reports a bare 400 — the 429 in the leg error is self-inflicted #1621