-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Gitea migration in docker #5763
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
Comments
Hi! It looks like you were unfortunately bitten by a bug in migration earlier. Have you downloaded the latest version of the docker again and changed the table see #5762 |
My version is 74... I migrated from an older installation. |
OK, just check you have the absolute latest gitea docker. Then try running the migrate command. |
executing /app/gitea/gitea migrate as git user worked! |
I'm currently having this issue on the gitea:latest being updated by watchtower. Running migrate is giving me that same error. |
Take a look at #5797 When did this happen? |
In the end I did not need to change the version number, however I used sqlite3 on the database file to check the version. Were do you store your database? SQLite as well or mysql? Since I am new to docker, I used portainer, which gives you an easy way to open an console into your container. |
Hmm the db on sqlite is where you found it, on mysql it depends on the container providing it. I need to just check what happened though. What version of Gitea were you using and when did you upgrade to latest? I'm worried that although our migration command works automigration isn't working. |
For any future people looking for how to migrate on docker: You can get to a command prompt on any docker running instance by: You can start a docker instance without running the entry point using Once at a command line you can Please note I'm typing these commands from memory on my phone so some of the options might be slightly different but you should get the gist. |
I'm also pretty new to docker, but this is what I've been able to put together. Going through the logs, the problem seems to start here:
The unexpected update line is preceded by number of similar lines with different commits. |
Yeah you were bitten by the broken migrate. Update your docker and follow the instructions in #5797 in particular |
Thanks for your help DROP INDEX IF EXISTS IDX_repository_is_bare; and then restarting did the trick. |
I have a docker container with gitea (latest) running.
I just realized that gitea is not running anymore. The error in the log is:
After that Gitea restarts and repeats
The text was updated successfully, but these errors were encountered: