-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Migration error: rename repo is_bare to repo is_empty #5759
Comments
Sigh. Sorry about this. |
no worries 😄 I am even not pretty sure if MariaDB is one of the supported platforms. I did manual migration by executing the proper sql statement and setting version to 79. Now it's running again. |
This also happens on MySQL 8.0 / Percona Server 8.0. Same solution. |
also in sqlite.... |
If unfortunately you were hit by the migration bug and starting your gitea failed, please follow the below steps:
If your version was not 79 you should just run gitea migrate |
Please reply to ensure that you've managed to successfully restart Gitea |
Hmm... I've just had a similar issue on sqlite migrating from versions back to v1.5.3 . The migration is still wrong. |
@lunny It seems that the problem at least for sqlite is that sess.Sync2 locks the schema which means the drop of the index earlier in the transaction breaks. I'm going to put another PR in for this. |
Unfortunately the last fix didn't completely fix the migration to v79 of the db due to bug with schema locking during Sync2. This should fix this issue. Fix go-gitea#5759 Signed-off-by: Andrew Thornton <[email protected]>
Unfortunately the last fix didn't completely fix the migration to v79 of the db due to bug with schema locking during Sync2. This should fix this issue. Fix #5759 Signed-off-by: Andrew Thornton <[email protected]>
I do apologize but my gitea docker instance with sqlite is still down. I understand I do need to change the value of the version table to 79 manually, but I do not seem to be able to run queries within the docker console. I am sure I am missing something as I've never dealt with sqlite within a docker before, but at this point I would like to make it work. |
Is your sqlite DB mounted into the docker as volume? If so, you could connect from share or use https://sqlitebrowser.org. If not - I would recommend copying the DB to a volume mount point and then use console or UI. And you need to change version to 78 ;-) |
[x]
):Description
I am running gitea inside docker container:
gitea/gitea:latest
- so I assume this is the latest version. After the last update with watchtower the container won't come up again. Checking the logfiles:Not pretty sure but while
rename column
works for MySQL I think it is not working in MariaDB.change column
should work for both DBs.MySQL Ref
MaraiDB Ref
Working statement looks like:
The text was updated successfully, but these errors were encountered: