haiwen / seahub

The web end of seafile server.
seafile.com
Other
528 stars 366 forks source link

"Error happened during creating seafile admin" after migration from sqlite to mysql #5945

Open camlafit opened 9 months ago

camlafit commented 9 months ago

Hello

After a migration from Debian buster/Seafile 9.x/sqlite to Debian Bookworm/Seafile 11.x/mariadb

Migration to buster/Seafile 9.x/sqlite To Bookworm/Seafile 11.x/sqlite look ok.

But i can't migrate to mariabdb I've udpated my configuration to use python venv (and get same trouble as #5896) I've updated my init scrpt and seafile profile to load python exe from venv with a specific ~/.profile but when seahub is started error "Error happened during creating seafile admin" is displayed and I can't login. I've found also #5273, but migration script looks ok, I've convert data and import them without problem.

Thanks a lot

freeplant commented 7 months ago

The two issues you mentioned has already be resolved.

It is better to migrate from buster/Seafile 9.x/sqlite to buster/Seafile 9.x/mariadb first. If it works, upgrade to a newer version.