files: the richdocuments oneshot sets wopi_url but never activates it — Nextcloud never fetches Collabora's capabilities, so Files has no New document/spreadsheet while every surface reads green (Whakatōhea demo) #1827
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.
Dependencies
No dependencies set.
Reference
Matou/idss#1827
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?
Symptom
Whakatōhea Demo run #2 (founded by hand 2026-09-23, gateway
134.199.167.181, buildff4a5263): the panel shows docs-editing (Collabora) Active,docs-editing.<apex>/hosting/discoveryanswers 200, coolwsd is up — and in Files the "+ New" menu offers no New document / New spreadsheet / New presentation. Ben reported it 2026-09-24. No panel card, health check or drive leg said anything.Cause (traced on the box, read-only)
richdocuments 9.2.2 registers the New-document creators in
RegisterTemplateFileCreatorListener::handle, which returns early whenCapabilitiesService::getCapabilities()is empty.CachedRequestService::get()only reads the cache (Redisrichdocuments/capabilities, then the appdata filerichdocuments/remoteData/capabilities) — it never fetches. A fetch happens in exactly three places:OCA\Richdocuments\Backgroundjobs\ObtainCapabilities,occ richdocuments:activate-config,SettingsController→fetch()).Our oneshot
nextcloud-richdocuments.service(internal/clan/files.go,renderNextcloudRichdocuments) runs onlyapp:install richdocuments+config:app:set richdocuments wopi_url. It relies on (1) — and on the demo the job no longer exists (deleted by the founding's cron race, filed separately, #1828).remoteData/was empty 19 h after founding; Redis had no key.Everything else was right: wopi_url correct, WOPI allow-list (#1620), ADR 0258 callback bypass rendered,
files.<apex>pinned to loopback, PHP as the nextcloud user fetched/hosting/capabilitiesfine.Demo repair applied 2026-09-24 17:09Z:
nextcloud-occ richdocuments:activate-config→ all checks ✓,remoteData/{capabilities,discovery}written.Fix
In
renderNextcloudRichdocuments, after settingwopi_url, run$occ richdocuments:activate-configand fail the oneshot if it fails (a red switch is the honest signal — GOTCHAS #266's shape). coolwsd binds the mesh and orders on netbird (meshBound, #964), so on a co-host it may come up after the files oneshot: wrap the call in a bounded retry (e.g. up to ~5 min, 15 s apart) and fail loud after that. Do not addafter = coolwsd.serviceunconditionally — the render does not know the placement (docs-editing may live on another node).Note
activate-configresetswopi_callback_urlto '' (autodetect) — that is the state we want (ADR 0258 relies on the browser-facing URL).Acceptance criteria
TestRenderFiles_*(internal/clan/files_test.go) pins that aDocsEditingHostrender emitsrichdocuments:activate-configafter thewopi_urlset, inside a bounded retry, and that a files-only render still emits nothing richdocuments./settings/admin/richdocuments(rolesProof.ts:355visits the admin page, whose Save fetches capabilities — which is why drives never saw this). The pass is the created.docx/.odtopening in the editor; the red is the menu lacking the entry.Why it matters
A founded community with Collabora "installed" cannot create a single document until an hourly job runs — and that job is gone on any founding that raced cron (see #1828). The demo sat like this for 19 h.
swarm-claim host=matou-dev-server-01 run=31950
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1827 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope