mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 19:01:54 +00:00
The role writes onlyoffice's settings with one occ call per key, DocumentServerUrl first and jwt_secret fourth. Nextcloud loads app config once per process, so a cron.php that starts inside that batch runs onlyoffice's EditorsCheck job, registered when the app was enabled, with the document server URL but without the secret. The document server answers "Invalid token", EditorsCheck stores it in settings_error, and onlyoffice stops loading its Files integration; EditorsCheck itself skips every later run while that error is set. Seen in run 38455782184 (Nextcloud#4, swarm): cron.php started at 06:50:00 inside the batch that ran from 06:49:59 to 06:50:04, logged "Invalid token" at 06:50:22, and both Playwright passes found .docx files offered for download only. DocumentServerUrl is now written last, so a process that cached the config before the batch ended sees no URL and EditorsCheck returns early. After the batch, `occ onlyoffice:documentserver --check` sets settings_error from a fresh check: a redeploy clears an error latched earlier, and a document server that stays unreachable fails the deploy. A unit test keeps the URL last. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>