bug: agents-llama entrypoint writes to dev-poll log path before creating parent directory #533

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

Description

On disinto-agents-llama container startup, the entrypoint redirects dev-poll output to a log path that doesn't exist yet, producing an error on every poll iteration:

/entrypoint.sh: line 174: /home/agent/disinto/../data/logs/dev-poll.log: No such file or directory

The polling loop still runs, but log output is lost.

Evidence

Observed on harb-dev-box after a fresh rebuild of disinto/agents-llama:latest against v0.2.0 (commit aeaef88). The container is Up and processing projects/harb.toml, but every dev-poll iteration emits the error.

Relevant log excerpt:

[2026-04-10 05:41:47 UTC] Agent roles configured: dev
[2026-04-10 05:41:47 UTC] Entering polling loop (interval: 300s, roles: dev)
[2026-04-10 05:41:47 UTC] Processing project TOML: /home/agent/disinto/projects/harb.toml
[2026-04-10 05:41:47 UTC] Running dev-poll (iteration 1) for /home/agent/disinto/projects/harb.toml
/entrypoint.sh: line 174: /home/agent/disinto/../data/logs/dev-poll.log: No such file or directory

The path /home/agent/disinto/../data/logs/ resolves to /home/agent/data/logs/ — which IS a mounted volume (./data/llama:/home/agent/data in compose), but the logs/ subdirectory hasn't been created by the entrypoint.

Fix

In docker/agents/entrypoint.sh around line 174, add a mkdir -p before the first log redirect:

mkdir -p "$(dirname "$DEV_POLL_LOG")"

Or normalize the log path to drop the ../ traversal (/home/agent/data/logs/dev-poll.log directly) for clarity.

## Description On `disinto-agents-llama` container startup, the entrypoint redirects dev-poll output to a log path that doesn't exist yet, producing an error on every poll iteration: ``` /entrypoint.sh: line 174: /home/agent/disinto/../data/logs/dev-poll.log: No such file or directory ``` The polling loop still runs, but log output is lost. ## Evidence Observed on harb-dev-box after a fresh rebuild of `disinto/agents-llama:latest` against v0.2.0 (commit `aeaef88`). The container is `Up` and processing `projects/harb.toml`, but every dev-poll iteration emits the error. Relevant log excerpt: ``` [2026-04-10 05:41:47 UTC] Agent roles configured: dev [2026-04-10 05:41:47 UTC] Entering polling loop (interval: 300s, roles: dev) [2026-04-10 05:41:47 UTC] Processing project TOML: /home/agent/disinto/projects/harb.toml [2026-04-10 05:41:47 UTC] Running dev-poll (iteration 1) for /home/agent/disinto/projects/harb.toml /entrypoint.sh: line 174: /home/agent/disinto/../data/logs/dev-poll.log: No such file or directory ``` The path `/home/agent/disinto/../data/logs/` resolves to `/home/agent/data/logs/` — which IS a mounted volume (`./data/llama:/home/agent/data` in compose), but the `logs/` subdirectory hasn't been created by the entrypoint. ## Fix In `docker/agents/entrypoint.sh` around line 174, add a `mkdir -p` before the first log redirect: ```bash mkdir -p "$(dirname "$DEV_POLL_LOG")" ``` Or normalize the log path to drop the `../` traversal (`/home/agent/data/logs/dev-poll.log` directly) for clarity.
dev-bot added the
backlog
label 2026-04-10 06:26:35 +00:00
dev-bot self-assigned this 2026-04-10 07:06:57 +00:00
dev-bot added
in-progress
and removed
backlog
labels 2026-04-10 07:06:57 +00:00
dev-bot removed their assignment 2026-04-10 07:12:46 +00:00
dev-bot removed the
in-progress
label 2026-04-10 07:12:46 +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#533
No description provided.