Add WorkingDir configuration for runtime containers and provide workaround instructions

This commit is contained in:
John Doe
2026-02-28 13:20:14 -05:00
parent de2a6cc75d
commit 2d08ec507e
+18
View File
@@ -258,6 +258,24 @@ journalctl -u litellm -n 200 --no-pager
podman logs litellm 2>/dev/null || true
```
If you see `FileNotFoundError: ... 'loot/reports'`, the process is running with an invalid current working directory. This stack now sets `WorkingDir=/app` for runtime containers.
Immediate workaround on existing running container:
```bash
podman exec -it -w /app pentestagent-kali sh -lc 'mkdir -p loot/reports loot/artifacts/screenshots && python3 -m pentestagent run -t shad-base.com "Use terminal tool once to run: echo TOOL_OK, then summarize."'
```
Persistent fix (system scope / LXC root):
```bash
cp quadlet/pentestagent.container /etc/containers/systemd/pentestagent.container
cp quadlet/pentestagent-kali.container /etc/containers/systemd/pentestagent-kali.container
./scripts/prepare-system-quadlet.sh
systemctl daemon-reload
systemctl restart pentestagent.service pentestagent-kali.service
```
## Ollama profile switch (ROCm ↔ CPU fallback)
This repo includes both: