社区版从6.3.4 升级到 7.0.5 失败


#1

从6.0.7 windows版本迁移的
迁移升级路径:6.0.7(Windows)—> 6.0.7 (CentOS 7)
6.07—>6.2.5
6.2.5—>6.3.4
6.3.4—>7.0.5(失败如下)
[root@localhost seafile]# cd /seafile/seafile-server-7.0.5/upgrade
[root@localhost upgrade]# ./upgrade_6.3_7.0.sh


This script would upgrade your seafile server from 6.3 to 7.0
Press [ENTER] to contiune

Updating seafile/seahub database …

[INFO] You are using SQLite3
[INFO] updating seafile database…
Traceback (most recent call last):
File “/seafile/seafile-server-7.0.5/upgrade/db_update_helper.py”, line 384, in
main()
File “/seafile/seafile-server-7.0.5/upgrade/db_update_helper.py”, line 379, in main
db_updater.update_db()
File “/seafile/seafile-server-7.0.5/upgrade/db_update_helper.py”, line 275, in update_db
super(SQLiteDBUpdater, self).update_db()
File “/seafile/seafile-server-7.0.5/upgrade/db_update_helper.py”, line 125, in update_db
self.update_seafile_sql(seafile_sql)
File “/seafile/seafile-server-7.0.5/upgrade/db_update_helper.py”, line 296, in update_seafile_sql
self.apply_sqls(self.seafile_db, sql_path)
File “/seafile/seafile-server-7.0.5/upgrade/db_update_helper.py”, line 289, in apply_sqls
conn.execute(line)
sqlite3.OperationalError: duplicate column name: status

求解决办法。


#2

备份数据库了吗 ,恢复一下备份