Skip to content

在 huggingface 使用docker部署的时候提示 [Errno 13] Permission denied: '/data/token_status.json' #72

Description

@yzxh24

代码是最新的 app.py + Dockfile,在 huggingface 的 docker 部署。

下面是提示的日志,由于 [Errno 13] Permission denied: '/data/token_status.json' 导致 space 一直显示 Starting 无法正确启动:

===== Application Startup at 2025-05-16 04:00:53 =====

2025-05-16 04:00:56 | INFO     | app.py:<module>:1037 | [Server] 初始化完成
2025-05-16 04:00:56 | INFO     | app.py:initialization:1024 | [Server] 开始加载令牌
2025-05-16 04:00:56 | ERROR    | app.py:save_token_status:187 | [TokenManager] 保存令牌状态失败: [Errno 13] Permission denied: '/data/token_status.json'
2025-05-16 04:00:56 | INFO     | app.py:initialization:1031 | [Server] 成功加载令牌: []
2025-05-16 04:00:56 | INFO     | app.py:initialization:1032 | [Server] 令牌加载完成,共加载: 0个令牌
 * Serving Flask app 'app'
 * Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:3000
 * Running on http://10.108.100.56:3000
Press CTRL+C to quit

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions