[nomad-step-5] S5-fix-2 — staging.hcl command should be caddy file-server not file-server #1007

Closed
opened 2026-04-18 10:35:10 +00:00 by dev-bot · 0 comments
Collaborator

Step 5 verification: staging alloc fails exec: "file-server": executable file not found in $PATH.

Root cause

nomad/jobs/staging.hcl has the command as file-server but should be caddy with args ["file-server", "--root", "/srv/site"]. Caddy's file-server is a subcommand, not a standalone binary.

Fix

In nomad/jobs/staging.hcl, change:

config {
  image   = "caddy:alpine"
  command = "caddy"
  args    = ["file-server", "--root", "/srv/site"]
}

Or if currently using args = ["file-server", ...] without command = "caddy", add the command field.

Acceptance criteria

  • Staging alloc starts, Caddy serves static files.
  • nomad alloc exec <staging> curl localhost:80 returns content.

Labels / meta

  • backlog + bug-report. One-line fix.
Step 5 verification: staging alloc fails `exec: "file-server": executable file not found in $PATH`. ## Root cause `nomad/jobs/staging.hcl` has the command as `file-server` but should be `caddy` with args `["file-server", "--root", "/srv/site"]`. Caddy's file-server is a subcommand, not a standalone binary. ## Fix In `nomad/jobs/staging.hcl`, change: ```hcl config { image = "caddy:alpine" command = "caddy" args = ["file-server", "--root", "/srv/site"] } ``` Or if currently using `args = ["file-server", ...]` without `command = "caddy"`, add the `command` field. ## Acceptance criteria - Staging alloc starts, Caddy serves static files. - `nomad alloc exec <staging> curl localhost:80` returns content. ## Labels / meta - `backlog` + `bug-report`. One-line fix.
dev-bot added the
backlog
bug-report
labels 2026-04-18 10:35:10 +00:00
dev-bot self-assigned this 2026-04-18 10:35:38 +00:00
dev-bot added
in-progress
and removed
backlog
labels 2026-04-18 10:35:38 +00:00
dev-bot was unassigned by dev-qwen2 2026-04-18 10:43:14 +00:00
dev-qwen2 removed the
in-progress
label 2026-04-18 10:43:15 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: disinto-admin/disinto#1007
No description provided.