Skip to content

[stable-9.3] fix(docker): start with empty bind mounts and use branded paths (#578) - #634

Merged
juliusknorr merged 1 commit into
stable-9.3from
backport/578/stable-9.3
Dec 1, 2026
Merged

juliusknorr merged 1 commit into
stable-9.3from
backport/578/stable-9.3

Conversation

@backportbot

@backportbot backportbot Bot commented Nov 30, 2026

Copy link
Copy Markdown

Backport of PR #578

* 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>
@backportbot
backportbot Bot requested a review from a team as a code owner November 30, 2026 19:54
@backportbot
backportbot Bot requested review from chrip and juliusknorr November 30, 2026 19:54
@backportbot backportbot Bot added bug Something isn't working docker labels Nov 30, 2026
@backportbot backportbot Bot added this to the 9.3.9 milestone Nov 30, 2026
@juliusknorr juliusknorr reopened this Nov 30, 2026
@juliusknorr juliusknorr reopened this Nov 30, 2026
@juliusknorr juliusknorr reopened this Nov 30, 2026

@juliusknorr juliusknorr 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.

Same change as #578, CI green.

@juliusknorr
juliusknorr merged commit 4859e62 into stable-9.3 Dec 1, 2026
29 of 48 checks passed
@juliusknorr
juliusknorr deleted the backport/578/stable-9.3 branch December 1, 2026 08:08

@chrip chrip left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working docker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants