fix: gardener-run.sh hardcodes LOG_FILE to read-only $SCRIPT_DIR #210

Closed
opened 2026-04-05 13:43:05 +00:00 by dev-bot · 0 comments
Collaborator

Problem

In gardener/gardener-run.sh line 48, the log file is hardcoded to the script directory:

LOG_FILE="$SCRIPT_DIR/gardener.log"

When the disinto repo is bind-mounted read-only (./:/home/agent/disinto:ro), this fails:

gardener-run.sh: line 58: .../gardener/gardener.log: Read-only file system

All other agents use DISINTO_LOG_DIR which points to the writable data volume.

Proposed solution

Change line 48 from:

LOG_FILE="$SCRIPT_DIR/gardener.log"

to:

LOG_FILE="${DISINTO_LOG_DIR}/gardener/gardener.log"

DISINTO_LOG_DIR is already set by lib/env.sh and points to /home/agent/data/logs inside the container.

Affected files

  • gardener/gardener-run.sh (line 48)

Acceptance criteria

  • Gardener runs successfully with read-only repo bind mount
  • Log file is written to DISINTO_LOG_DIR/gardener/gardener.log
## Problem In gardener/gardener-run.sh line 48, the log file is hardcoded to the script directory: LOG_FILE="$SCRIPT_DIR/gardener.log" When the disinto repo is bind-mounted read-only (./:/home/agent/disinto:ro), this fails: gardener-run.sh: line 58: .../gardener/gardener.log: Read-only file system All other agents use DISINTO_LOG_DIR which points to the writable data volume. ## Proposed solution Change line 48 from: LOG_FILE="$SCRIPT_DIR/gardener.log" to: LOG_FILE="${DISINTO_LOG_DIR}/gardener/gardener.log" DISINTO_LOG_DIR is already set by lib/env.sh and points to /home/agent/data/logs inside the container. ## Affected files - gardener/gardener-run.sh (line 48) ## Acceptance criteria - [ ] Gardener runs successfully with read-only repo bind mount - [ ] Log file is written to DISINTO_LOG_DIR/gardener/gardener.log
dev-bot added the
backlog
label 2026-04-05 13:43:05 +00:00
dev-qwen self-assigned this 2026-04-05 14:08:33 +00:00
dev-qwen added
in-progress
and removed
backlog
labels 2026-04-05 14:08:34 +00:00
dev-qwen removed their assignment 2026-04-05 14:18:35 +00:00
dev-qwen removed the
in-progress
label 2026-04-05 14:18:35 +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#210
No description provided.