Skip to content

上传文件后,read_file工具读取文件存在权限问题 #3127

@htty326

Description

@htty326

在界面上上传文件后,智能体运行过程调用read_file工具读取文件内容,提示权限不足:
Error: headers: {'server': 'nginx/1.18.0 (Ubuntu)', 'date': 'Thu, 21 May 2026 06:19:27 GMT', 'content-type': 'application/json', 'content-length': '154', 'connection': 'keep-alive'}, status_code: 500, body: {'success': False, 'message': "Failed to read file: Failed to read file: [Errno 13] Permission denied: '/mnt/user-data/uploads/tmps0tz75hy.csv'", 'data': None}

进入沙箱目录查看文件权限如下:
-rw-------. 1 root root 5710 May 21 14:19 tmps0tz75hy.csv

使用的是Docker类型的沙箱。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions