Spaces:
Sleeping
Sleeping
Claude Code Claude Opus 4.6 commited on
Commit ·
f0dff67
1
Parent(s): 3f1c4cd
Claude Code: Fix Dockerfile path mismatch - .openclaw to /app/.openclaw
Browse filesCRITICAL FIX: Path mismatch caused brain import failures in container.
- Code expected: /app/.openclaw/agents/brain_minimal.py
- Dockerfile created: /app/openclaw/.openclaw/agents/brain_minimal.py
- Fixed: COPY openclaw/.openclaw/ /app/.openclaw/
This fixes:
1. A2A communication failures (brain couldn't be imported)
2. Container stuck in RUNNING_APP_STARTING (early import failed)
3. Status stage now properly reports RUNNING_A2A_READY
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Dockerfile +5 -2
- openclaw/.openclaw/agents/cain_status.json +5 -4
Dockerfile
CHANGED
|
@@ -16,12 +16,15 @@ RUN pip install --no-cache-dir -r /tmp/requirements.txt
|
|
| 16 |
|
| 17 |
# Copy all application files - combined layer for faster builds
|
| 18 |
COPY app.py error_handlers.py entrypoint.sh openclaw.json /app/
|
| 19 |
-
COPY openclaw/ /app/openclaw/
|
| 20 |
COPY static/ /app/static/
|
| 21 |
COPY frontend/ /app/frontend/
|
| 22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
# Create necessary directories with proper permissions
|
| 24 |
-
RUN mkdir -p /app/logs
|
| 25 |
chmod +x /app/entrypoint.sh && \
|
| 26 |
chmod 777 /app/logs /app/.openclaw
|
| 27 |
|
|
|
|
| 16 |
|
| 17 |
# Copy all application files - combined layer for faster builds
|
| 18 |
COPY app.py error_handlers.py entrypoint.sh openclaw.json /app/
|
|
|
|
| 19 |
COPY static/ /app/static/
|
| 20 |
COPY frontend/ /app/frontend/
|
| 21 |
|
| 22 |
+
# CRITICAL: Copy .openclaw to /app/.openclaw (not /app/openclaw/.openclaw)
|
| 23 |
+
# The code expects /app/.openclaw/agents/ for brain imports
|
| 24 |
+
COPY openclaw/.openclaw/ /app/.openclaw/
|
| 25 |
+
|
| 26 |
# Create necessary directories with proper permissions
|
| 27 |
+
RUN mkdir -p /app/logs && \
|
| 28 |
chmod +x /app/entrypoint.sh && \
|
| 29 |
chmod 777 /app/logs /app/.openclaw
|
| 30 |
|
openclaw/.openclaw/agents/cain_status.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
| 1 |
{
|
| 2 |
"current_state": "idle",
|
| 3 |
-
"stage": "
|
| 4 |
-
"last_updated": "2026-03-16T10:
|
| 5 |
"agent": "cain",
|
| 6 |
"a2a": {
|
| 7 |
"endpoint": "/a2a/jsonrpc",
|
| 8 |
-
"enabled": true
|
|
|
|
| 9 |
}
|
| 10 |
-
}
|
|
|
|
| 1 |
{
|
| 2 |
"current_state": "idle",
|
| 3 |
+
"stage": "RUNNING_A2A_READY",
|
| 4 |
+
"last_updated": "2026-03-16T10:42:00.000000+00:00",
|
| 5 |
"agent": "cain",
|
| 6 |
"a2a": {
|
| 7 |
"endpoint": "/a2a/jsonrpc",
|
| 8 |
+
"enabled": true,
|
| 9 |
+
"status": "ready"
|
| 10 |
}
|
| 11 |
+
}
|