6.3升到7.0报错

现版本:6.3.12
尝试升级到7.0.2,报错
然后手工升到6.3.13后再尝试升级,一样报错

[WARNING] Failed to execute sql: (1075, 'Incorrect table definition; there can be only one auto column and it must be defined as a key')
[WARNING] Failed to execute sql: (1060, "Duplicate column name 'id'")
[WARNING] Failed to execute sql: (1072, "Key column 'name_time_md5' doesn't exist in table")
[WARNING] Failed to execute sql: (1091, "Can't DROP 'profile_profile_contact_email_0975e4bf_uniq'; check that column/key exists")

升级姿势不对…看准升级文档没

升JAVA
执行脚本升级
没问题啊

参看:https://docs.seafile.com/published/seafile-manual-cn/升级说明/7.0.md

再者,报错是数据库升级表语句错,和升级方式有什么关系
官方也没要求逐个版本升级,6.3.12=>6.3.13=>7.0.0=>7.0.1=>7.0.2
况且7.0.0和7.0.1已经撤包了,只剩7.0.2

升级过程中数据库报错只是一个 Warning 级别的。可以忽略。

升级后搜索出错,提示内部错误
在服务器里手工执行 sudo -u seafile ./pro/pro.py search --update
报连不上数据库

另外我针对某些页面有修改了模板,7.0以下都没问题的正常用,升到7.0后修改的模板都不生效,全是默认模板

@daniel.pan

搜索的问题看升级说明。需要使用非 root 用户来启动 seafile,否则 ES 服务器不会运行起来。