biter
1
求助:新建用户,用户信息中,点群组,报“错误”
日志:
2022-06-02 08:23:40,686 [ERROR] seahub.api2.endpoints.admin.users:894 get ‘CcnetAPI’ object has no attribute ‘get_personal_groups_by_user’
2022-06-02 08:23:40,687 [ERROR] django.request:230 log_response Internal Server Error: /api/v2.1/admin/users/366e82633eb8408ab6063d4e0d4c5ad6@auth.local/groups/
1 个赞
biter
2
自己来解:
修改users.py中
groups = ccnet_api.get_personal_groups_by_user(email)
为
groups = ccnet_api.get_groups(email)
文件位置在:/opt/seatable/seatable-server-latest/dtable-web/seahub/api2/endpoints/admin/users.py
1 个赞
我的seatable里面没有找到seatable-server-latest这个文件夹,什么原因?
biter
4
该文件没有映射出来,需要SSH进去
查看容器ID
docker ps
将文件复制出来修改
docker cp 容器ID:/opt/seatable/seatable-server-latest/dtable-web/seahub/api2/endpoints/admin/users.py /volume1/docker/seatable
修改完成后,复制回原目录
docker cp /volume1/docker/seatable/users.py 容器ID:/opt/seatable/seatable-server-latest/dtable-web/seahub/api2/endpoints/admin