haiwen / seafile

High performance file syncing and sharing, with also Markdown WYSIWYG editing, Wiki, file label and other knowledge management features.
http://seafile.com/
Other
12.25k stars 1.54k forks source link

Failed to migrate to 3.0 format #834

Closed Cartman34 closed 8 years ago

Cartman34 commented 10 years ago

I'am trying to migrate from 2.2 to 3.1.5, i got an error about a repos that does not exist anymore (i removed it). So i apply the upgrade from 2.2 to 3.0 and i get this error:


This script would upgrade your seafile server from 2.2 to 3.0 Press [ENTER] to contiune


now migrating seafile data to 3.0 format

[09/06/14 14:38:49] Commit 9c9949849995816f54e2ff022c1c61666a6e09c3 is missing [09/06/14 14:38:49] seaf-migrate.c(271): Migrating data for repo 046c3c07. [...] [09/06/14 15:06:52] seaf-migrate.c(271): Migrating data for repo d83a0343. ./seafile-server-3.1.5/upgrade/upgrade_2.2_3.0.sh: line 151: 6948 Erreur de segmentation LD_LIBRARY_PATH=${SEAFILE_LD_LIBRARY_PATH} ${seaf_migrate} -c "${default_ccnet_conf_dir}" -d "${seafile_data_dir}"

Failed to migrate seafile data to 3.0 format

"Erreur de segmentation " means "Segmentation fault" How can i solve it ?

killing commented 10 years ago

Hi, This is a bug in the migrate program. Somehow the library d83a0343 was not deleted from the database, if you are sure it's not used anymore.

First you should make sure the library is not used anymore. You can find the complete id of the library by

select * from Repo where repo_id like 'd83a0343%';

Then access https://example.com/repo/lib-id/

You can delete the entry from database manually.

use seafile-db; delete from Repo where repo_id like 'd83a0343%';

Cartman34 commented 10 years ago

I did it, retry and the output was...


Upgraded your seafile server successfully.


Thank you very much !