[nomad-step-3] S3-fix-3 — host-volume dirs need 0777 for non-root containers #953
Labels
No labels
action
backlog
blocked
bug-report
cannot-reproduce
in-progress
in-triage
needs-triage
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
rejected
reproduced
tech-debt
underspecified
vision
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#953
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?
Step 3 verification: WP server crashed with
unable to open database file: no such file or directorybecausecluster-up.shcreates host-volume dirs as755 root:rootbut containers run as non-root users (woodpeckerfor WP,agentfor disinto agents).Root cause
lib/init/nomad/cluster-up.shstep 4:755 root:root → container user
woodpeckercan't write. Manuallychmod 777fixed it.Fix
In
lib/init/nomad/cluster-up.sh, change host-volume creation to0777:Keep
forgejo-dataandcaddy-dataat current perms if those containers run as root (verify first; if not, 0777 too).Alternative (cleaner): look up each container's UID from the image and
chownspecifically. But 0777 is acceptable for a factory dev box — the LXC is single-tenant.Acceptance criteria
disinto init --backend=nomad --with forgejo,woodpecker: WP server creates SQLite without permission errors.shellcheckclean.Scope
One line per dir in
lib/init/nomad/cluster-up.shstep 4. ~7 lines changed.Labels / meta
backlog+bug-report.