用户群组出错


这个是什么原因?怎么解决?

打开浏览器控制台,看一下是否有报错,网络请求是否正常,服务器日志是否有报错。

控制台没有报错,其他都没问题,就是点击用户群组出现错误,服务器日志看哪个?

2022-08-26 02:17:50,253 [WARNING] django.request:230 log_response Not Found: /favicon.ico
2022-08-26 02:18:27,322 [ERROR] seahub.api2.endpoints.admin.users:901 get ‘CcnetAPI’ object has no attribute ‘get_personal_groups_by_user’
2022-08-26 02:18:27,323 [ERROR] django.request:230 log_response Internal Server Error: /api/v2.1/admin/users/2a4c21ee2c604cc8bf3547870cc7c666@auth.local/groups/
2022-08-26 02:37:32,515 [ERROR] seahub.api2.endpoints.admin.users_batch:342 post (1054, “Unknown column ‘expires_at’ in ‘field list’”)
2022-08-26 02:37:32,786 [ERROR] seahub.api2.endpoints.admin.users_batch:342 post (1054, “Unknown column ‘expires_at’ in ‘field list’”)
2022-08-26 02:37:32,969 [ERROR] seahub.api2.endpoints.admin.users_batch:342 post (1054, “Unknown column ‘expires_at’ in ‘field list’”)
2022-08-26 02:37:33,202 [ERROR] seahub.api2.endpoints.admin.users_batch:342 post (1054, “Unknown column ‘expires_at’ in ‘field list’”)
2022-08-26 02:37:33,402 [ERROR] seahub.api2.endpoints.admin.users_batch:342 post (1054, “Unknown column ‘expires_at’ in ‘field list’”)
2022-08-26 02:37:37,476 [ERROR] seahub.api2.endpoints.admin.users:901 get ‘CcnetAPI’ object has no attribute ‘get_personal_groups_by_user’
2022-08-26 02:37:37,477 [ERROR] django.request:230 log_response Internal Server Error: /api/v2.1/admin/users/99b6e1adc70640e8805af79bbcdec11b@auth.local/groups/
2022-08-26 02:38:21,814 [ERROR] seahub.api2.endpoints.admin.users:901 get ‘CcnetAPI’ object has no attribute ‘get_personal_groups_by_user’
2022-08-26 02:38:21,815 [ERROR] django.request:230 log_response Internal Server Error: /api/v2.1/admin/users/99b6e1adc70640e8805af79bbcdec11b@auth.local/groups/
2022-08-26 02:46:14,886 [ERROR] seahub.api2.endpoints.admin.users:901 get ‘CcnetAPI’ object has no attribute ‘get_personal_groups_by_user’
2022-08-26 02:46:14,887 [ERROR] django.request:230 log_response Internal Server Error: /api/v2.1/admin/users/2a4c21ee2c604cc8bf3547870cc7c666@auth.local/groups/
2022-08-26 02:46:38,145 [ERROR] seahub.api2.endpoints.admin.users:901 get ‘CcnetAPI’ object has no attribute ‘get_personal_groups_by_user’
2022-08-26 02:46:38,146 [ERROR] django.request:230 log_response Internal Server Error: /api/v2.1/admin/users/2a4c21ee2c604cc8bf3547870cc7c666@auth.local/groups/
2022-08-26 02:46:49,683 [ERROR] seahub.api2.endpoints.admin.users:901 get ‘CcnetAPI’ object has no attribute ‘get_personal_groups_by_user’
2022-08-26 02:46:49,683 [ERROR] django.request:230 log_response Internal Server Error: /api/v2.1/admin/users/2a4c21ee2c604cc8bf3547870cc7c666@auth.local/groups/
2022-08-26 02:47:02,715 [ERROR] seahub.api2.endpoints.admin.users:901 get ‘CcnetAPI’ object has no attribute ‘get_personal_groups_by_user’
2022-08-26 02:47:02,716 [ERROR] django.request:230 log_response Internal Server Error: /api/v2.1/admin/users/2a4c21ee2c604cc8bf3547870cc7c666@auth.local/groups/
2022-08-26 02:47:11,567 [ERROR] seahub.api2.endpoints.admin.users:901 get ‘CcnetAPI’ object has no attribute ‘get_personal_groups_by_user’
2022-08-26 02:47:11,567 [ERROR] django.request:230 log_response Internal Server Error: /api/v2.1/admin/users/99b6e1adc70640e8805af79bbcdec11b@auth.local/groups/

这里报错信息是 ccnetAPI 没有这个属性 get_personal_groups_by_user,可能你安装 ccnetAPI 版本不对,或者服务没有正常启动。

ccnetAPI 版本去哪里看?怎么看服务有没有启动?

可以参考一下这个帖子,应该是同样的问题

修改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

刚刚看了这个帖子,找不到seatable-server-latest这个文件夹