[nomad-step-5] S5-fix-2 — staging.hcl command should be caddy file-server not file-server #1007
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#1007
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 5 verification: staging alloc fails
exec: "file-server": executable file not found in $PATH.Root cause
nomad/jobs/staging.hclhas the command asfile-serverbut should becaddywith args["file-server", "--root", "/srv/site"]. Caddy's file-server is a subcommand, not a standalone binary.Fix
In
nomad/jobs/staging.hcl, change:Or if currently using
args = ["file-server", ...]withoutcommand = "caddy", add thecommandfield.Acceptance criteria
nomad alloc exec <staging> curl localhost:80returns content.Labels / meta
backlog+bug-report. One-line fix.