Repository navigation
[stable-9.3] fix(docker): start with empty bind mounts and use branded paths (#578) - #634
Conversation
* fix(docker): create supervisor log directories on an empty logs volume An empty bind mount over $EO_LOG hides the log directories the supervisor programs write to, and supervisord exits with "The directory named as part of the path ... does not exist". Create the parent of every stdout/stderr logfile from the supervisor confs before starting. Fixes #410 Signed-off-by: Julius Knorr <jus@bitgrid.net> Assisted-by: ClaudeCode:claude-opus-5-5 * fix(docker): use the branded data and lib paths in the standalone entrypoint The Nextcloud Office image installs to /var/www/nextcloud-office and /var/lib/nextcloud-office, but the entrypoint hardcoded the euro-office paths. Secrets landed in /var/www/euro-office/Data next to runtime.json in /var/www/nextcloud-office/Data, and the ownership repair targeted a lib directory that does not exist, so a bind-mounted data volume stayed unwritable. Derive both from COMPANY_NAME_LOW, which the image sets, and warn when the old secrets path is still mounted. Signed-off-by: Julius Knorr <jus@bitgrid.net> No-test: path defaults, checked against the nextcloud-office image layers Assisted-by: ClaudeCode:claude-opus-5-5 --------- Signed-off-by: Julius Knorr <jus@bitgrid.net>
juliusknorr
left a comment
There was a problem hiding this comment.
Same change as #578, CI green.
chrip
left a comment
There was a problem hiding this comment.
Approve. Looks good to merge.
This is the same patch as #578: git patch-id matches, and only the line numbers of the Dockerfile hunk moved. On stable-9.3 the supervisor confs and the entrypoint are identical to main when #578 merged, and the image sets COMPANY_NAME_LOW the same way, so the change behaves the same here. The latest CI run passes, including the build, the end-to-end tests and the upgrade test. The red entries are two conventional-commits runs from before the title fix and an image cleanup that hit a GitHub server error (HTTP 502). The new script test only runs on pull requests to main, so I ran it in a Debian container: it passes under dash and bash, and shellcheck is clean.
My earlier review on #578:
- keep existing secrets when a Nextcloud Office install upgrades: still open, see below
suggestion: keep reading the old secrets path on this branch.
build/scripts/standalone/entrypoint.sh:113. The Nextcloud Office image ghcr.io/nextcloud-releases/office-documentserver:v9.3.8 is published and tagged latest, and it keeps its secrets in /var/www/euro-office/Data. The next 9.3 patch release is the first one that stops reading that folder. An install with a volume there and no JWT_SECRET gets a new JWT secret after a patch update, and its Nextcloud connection stops working until the admin copies the new secret over. Falling back to /var/www/euro-office/Data/.private when the new path has no secrets would avoid that. A follow-up on main that is backported too is fine.
Assisted-by: ClaudeCode:claude-opus-5-5
Backport of PR #578