Internal Server Error 一种解决思路

背景

部署方式:docker compose
版本:seafile9.0 pro版,数据库10.6

打算升级到seafile10,数据库也要更新到10.11
升级后,打开网页显示Internal Server Error,多次重启,清理缓存(Nginx、seafile/conf)等方法无效。

报错

seafevent.log出现以下错误

[2023-12-10 12:43:04,074] [WARNING] Unknown database backend: 

docker: mysql 的日志显示

2023-12-10  4:08:17 3 [Warning] Aborted connection 3 to db: 'unconnected' user: 'seafile' host: '172.26.0.7' (Got an error reading communication packets)
2023-12-10  4:08:17 4 [Warning] Aborted connection 4 to db: 'ccnet_db' user: 'seafile' host: '172.26.0.7' (Got an error reading communication packets)
2023-12-10  4:08:28 9 [Warning] Aborted connection 9 to db: 'seahub_db' user: 'seafile' host: '172.26.0.7' (Got an error reading communication packets)
2023-12-10  4:08:28 11 [Warning] Aborted connection 11 to db: 'seahub_db' user: 'seafile' host: '172.26.0.7' (Got an error reading communication packets)

解决思路

docker exec -it seafile /opt/seafile/seafile-server-latest/pro/pro.py setup --migrate

参考资料:
迁移到专业版

之前还有个什么数据库问题

seafile [ERROR] Incorrect definition of table mysql.column_stats

执行了一下命令

mysql_upgrade -u[用户名] -p[密码];
1 个赞