Skip to content

fix: run the settings reconciles after queued tasks; 35.0.3:1 → 35.0.3:2 - #185

Merged
MattDHill merged 1 commit into
masterfrom
fix/reconcile-after-maintenance
Nov 16, 2026
Merged

MattDHill merged 1 commit into
masterfrom
fix/reconcile-after-maintenance

Conversation

@MattDHill

Copy link
Copy Markdown
Member

The external-storage, talk and office-suite oneshots now wait for finish-upgrade and long-running-tasks to exit.

Why. long-running-tasks runs post-update maintenance and queued Repairs, both of which hold Nextcloud in maintenance mode, where occ refuses the reconciles' commands. A reconcile that started alongside one had its calls refused partway, left a half-applied change, and only retried on the next start. Found while testing #184: an update that reconfigured Talk deleted Coturn's plain TURN entry and failed to re-add it, leaving it missing for as long as the service stayed up. #184 removed that particular trigger, but a Talk Calls, Office Suite or External Storage change landing during maintenance still hit the same race. external-storage also did not wait for finish-upgrade.

Cost. A setting changed during post-update maintenance or a Repair now applies when that work finishes, which on a large instance can be hours. The README says so.

Also corrects the README's oneshot list, which counted six and left out office-suite.

Verified on a StartOS box: installed nextcloud-talk-hpb 2.2.0:0 and Nextcloud 35.0.3:1 from beta, queued Talk Calls → High-performance backend while Nextcloud was stopped, then updated to 35.0.3:2. The log shows all three reconciles waiting on long-running-tasks, launching only after the post-update repair exited, and Talk's TURN and signaling entries applying with no errors.

🤖 Generated with Claude Code

The external-storage, talk and office-suite oneshots ran alongside
long-running-tasks, whose post-update maintenance and Repair hold Nextcloud in
maintenance mode. A reconcile that started then had its occ calls refused
partway, left a half-applied change, and did not retry until the next start: a
Talk Calls change could leave Talk without its TURN entry for as long as the
service stayed up. All three now require finish-upgrade and long-running-tasks;
external-storage did not wait for finish-upgrade either.

Verified on a StartOS box: with a Talk Calls change queued while stopped, the
update from 35.0.3:1 starts all three only after long-running-tasks exits, and
Talk's settings apply in full.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No blocking findings. All three settings reconciles now wait for recovery and queued occ work, while web and cron startup remain independent. The 35.0.3:1 Talk migration is preserved under its original version, avoiding replay when updating from :1 to :2.

Static review of 0564570; merge-tree is clean. No builds or tests run by this reviewer. Both architecture builds are still in progress.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@MattDHill
MattDHill merged commit 3d38e44 into master Nov 16, 2026
3 checks passed
@MattDHill
MattDHill deleted the fix/reconcile-after-maintenance branch November 16, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants