返回列表 发布新帖

[交流讨论] docker部署dify写权限不足求助

1169 1
发表于 2025-11-29 21:10:59 | 查看全部 阅读模式 IP:–江苏–苏州

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
image.png

部署并启动完成后,在注册新用户的时候报错如上图,日志如下:
Traceback (most recent call last):
api-1            |   File "/app/api/services/account_service.py", line 1283, in setup
api-1            |     TenantService.create_owner_tenant_if_not_exist(account=account, is_setup=True)
api-1            |   File "/app/api/services/account_service.py", line 1028, in create_owner_tenant_if_not_exist
api-1            |     tenant = TenantService.create_tenant(name=f"{account.name}'s Workspace", is_setup=is_setup)
api-1            |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1            |   File "/app/api/services/account_service.py", line 1000, in create_tenant
api-1            |     tenant.encrypt_public_key = generate_key_pair(tenant.id)
api-1            |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1            |   File "/app/api/libs/rsa.py", line 22, in generate_key_pair
api-1            |     storage.save(filepath, pem_private)
api-1            |   File "/app/api/extensions/ext_storage.py", line 89, in save
api-1            |     self.storage_runner.save(filename, data)

api-1            |   File "/app/api/extensions/storage/opendal_storage.py", line 44, in save
api-1            |     self.op.write(path=filename, bs=data)
api-1            | opendal.exceptions.PermissionDenied: PermissionDenied (persistent) at write => permission denied
api-1            |
api-1            | Context:
api-1            |    service: fs
api-1            |    path: privkeys/ce44339b-2de7-4421-b87a-232607f464ff/private.pem
api-1            |
api-1            | Source:
api-1            |    Permission denied (os error 13)

看起来是没有权限把秘钥写入文件夹,我专门找了个普通用户也有读写权限的共享文件夹来测试的,仍然有上面这个报错,不知道怎么解决


image.png

评论1

夏夏子Lv.7绿联NAS社区会员用户 发表于 2025-12-1 08:55:34 | 查看全部 IP:–湖南
可以ls -l看看权限,不行可以chmod赋个权。

评论

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Copyright © 2026 绿联NAS私有云社区 版权所有 All Rights Reserved. 粤公网安备44030002002555号| 粤ICP备12028978号
关灯 在本版发帖
联系技术支持
返回顶部
快速回复 返回顶部 返回列表