-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DB Migrations might not be running #292
Comments
Hi, thank you for the issue report. Upon investigating, I believe this might be an upstream issue. Here's a summary of what I found: Firstly, I reviewed my production database and observed that some of the migrations are indeed missing. Upon checking the commit history of the SQL migration script for 11.0, it appears that changes were introduced after the initial release of version 11.0.0. Notably, the last update to this file occurred in version 11.0.4. The issue seems to stem from the fact that this script, which executes the SQL migrations, is only triggered during the upgrade from 10.0.x to 11.0.y. If your upgrade path involved updating to 11.0 before the release of 11.0.4, your database would likely be missing these migrations. In this deployment, the update scripts are executed within |
I set up a new local deployment with version 10.0.1 and then upgraded to version 11.0.12. During the migration process, the table The migration script did generate a single warning though:
Despite this warning, I confirmed that the script executed the remaining lines. This test supports my assumption that the upgrade path is indeed the cause of the problem. Additionally, I updated the |
If you upgraded from 10.0.x to a version of 11 prior to 11.0.4, and are encountering issues, here’s a workaround you can try. Please ensure you take a full backup of your data before proceeding. To apply the workaround, follow these steps:
This process should trigger the upgrade script to rerun, including the necessary migrations. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Not really sure if this issue is relevant on this project or on seafile upstream, I will report on both, haiwen/seahub#6550
I activated
CLIENT_SSO_VIA_LOCAL_BROWSER = True
To login with system browser in seafile clients, but when enabled, clients fail to get sso url, and on server logs the following message appears
Looking through the Seafile sources, that table is created in the v11.0.0 db migrations script or what i guess is the initial DB setup.
The original problem was fixed by manually crating the DB using the v11.0.0 migration script linked above.
I've been running this deployment since version 9, so my only guess is that migrations aren't running for whatever reason, I will backup the DB and try to run migrations on a separate testing environment and report what I find.
The text was updated successfully, but these errors were encountered: