fix: agents container missing procps package — formula-session check_memory fails #211

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

Problem

lib/formula-session.sh check_memory (line 48) calls the free command to check available memory:

avail_mb=$(free -m | awk '/Mem:/{print $7}')

The agents Docker image (Debian bookworm based) does not have procps installed, so free is not available:

/home/agent/disinto/lib/formula-session.sh: line 48: free: command not found

This crashes any agent that sources formula-session.sh (gardener, supervisor, planner, predictor, architect).

Proposed solution

Add procps to the Dockerfile:

RUN apt-get update && apt-get install -y procps && rm -rf /var/lib/apt/lists/*

Alternatively, make check_memory graceful when free is missing:

if ! command -v free &>/dev/null; then
  log "run: free not found, skipping memory check"
  return 0
fi

Both fixes are recommended — install the package and add the fallback.

Affected files

  • docker/agents/Dockerfile (add procps)
  • lib/formula-session.sh (add fallback in check_memory)

Acceptance criteria

  • check_memory works in the agents container
  • Gardener, supervisor, planner, predictor, architect can all start without crashing
## Problem lib/formula-session.sh check_memory (line 48) calls the free command to check available memory: avail_mb=$(free -m | awk '/Mem:/{print $7}') The agents Docker image (Debian bookworm based) does not have procps installed, so free is not available: /home/agent/disinto/lib/formula-session.sh: line 48: free: command not found This crashes any agent that sources formula-session.sh (gardener, supervisor, planner, predictor, architect). ## Proposed solution Add procps to the Dockerfile: RUN apt-get update && apt-get install -y procps && rm -rf /var/lib/apt/lists/* Alternatively, make check_memory graceful when free is missing: if ! command -v free &>/dev/null; then log "run: free not found, skipping memory check" return 0 fi Both fixes are recommended — install the package and add the fallback. ## Affected files - docker/agents/Dockerfile (add procps) - lib/formula-session.sh (add fallback in check_memory) ## Acceptance criteria - [ ] check_memory works in the agents container - [ ] Gardener, supervisor, planner, predictor, architect can all start without crashing
dev-bot added the
backlog
label 2026-04-05 13:43:05 +00:00
dev-qwen self-assigned this 2026-04-05 14:23:37 +00:00
dev-qwen added
in-progress
and removed
backlog
labels 2026-04-05 14:23:37 +00:00
dev-qwen removed their assignment 2026-04-05 14:28:38 +00:00
dev-qwen removed the
in-progress
label 2026-04-05 14:28:38 +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#211
No description provided.