#3910·WeKnora

[Bug]: 使用WeKnora API报错:restore session attachments into sandbox: stage attachment \"FAQ知识库.txt\": sandbox: create input directory: docker MakeDir: invalid_request: mkdir -p /workspace/input/94088e061da2:

Author: attutudeCreated Sep 30, 2026Updated Sep 30, 2026
Labelsbugneeds-triage

Affected Component

Backend Service & API

Bug Description

使用WeKnora API(通过API调用http://localhost:8080/api/v1/agent-chat/{session_id})报错:restore session attachments into sandbox: stage attachment "FAQ知识库.txt": sandbox: create input directory: docker MakeDir: invalid_request: mkdir -p /workspace/input/94088e061da2:

Image

我进行了sandbox-check(http://localhost:8080/api/v1/system/sandbox-check),沙箱检测正常: { "data": { "ok": true, "provider": "docker", "checks": [ { "name": "api_url_reachable", "ok": true }, { "name": "credential_valid", "ok": true }, { "name": "template_exists", "ok": true }, { "name": "sandbox_exec", "ok": true, "latency_ms": 47 }, { "name": "egress_available", "ok": true, "message": "reachable via cn:baidu", "latency_ms": 269 } ], "capabilities": { "supports_pause_resume": true, "supports_reconnect": true, "supports_volumes": false } }, "success": true }

Steps to Reproduce

使用WeKnora API报错:restore session attachments into sandbox: stage attachment "FAQ知识库.txt": sandbox: create input directory: docker MakeDir: invalid_request: mkdir -p /workspace/input/94088e061da2:

Image

Expected Behavior

通过API调用http://localhost:8080/api/v1/agent-chat/{session_id}能在docker沙箱里面正常运行。

Actual Behavior

通过API调用http://localhost:8080/api/v1/agent-chat/{session_id}能在docker沙箱里面正常运行。

WeKnora Version

v0.8.0

Deployment Method

Docker Compose

Operating System

redhat7.9

Relevant Logs

bash

Confirmation

  • I have searched existing issues and confirmed this is a new one