-
-
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 from version 1.8.3 to version 1.9.0 fails #7698
Comments
By the way, switching back to version 1.8.3 the server starts again like a breeze. |
Within the log file, I found this SQL after which a rollback is done.
|
I suspect this is an error in droptables - #6849 but why it's not been caught by our migration tests I don't understand. |
@zeripath So can I provide additional information to tackle this problem? I really want to upgrade. ;) |
Any workaround available? I'm on 1.8.3 with sqlite and can't upgrade to 1.9.0 too because of database errors... |
@phamilton4321 as far as I know, the patch is already available and I think it will be there in the next release. |
@wumpz okay, thx. I'll stay patient, 1.8.3 Ist more than awesome for me 😁 |
I have the same problem when upgrading from 1.7.5 |
In which version will this be integrated? |
1.9.1 |
Did updating from 1.8.3 to 1.9.1 work for everybody? I'm having the same error as I had while updating to 1.9.0... |
Update from 1.8.3 to 1.9.1 worked. Gitea started so far I understand it. The webfront end pops up and shows version 1.9.1. No more error messages within the log. I am using a docker image of Gitea. Maybe there is still a difference. |
Okay, then it might be an issue with my current db. I'm going to check if I can fix it manually. Edit: Created an empty database with 1.9.1 and restored my data from gitea dump sql. |
Upgraded from 1.4.3 to 1.9.3. Having the same issue
|
@dunklesToast Please try migrating to intermediate versions (especially before 1.6.0) and let us know which was the latest you could upgrade to. Also, if you could try "SELECT version FROM version", it would help. |
@dunklesToast I think I might understand what's going on here! What database are you using? It's MYSQL right? |
I think it's looking for the index, not finding one, but then still trying to remove the index |
@guillep2k tried that already. With Version 1.5.0 I am getting this error:
@zeripath Yep, MySQL. Do you think adding the index manually will fix this? |
The causative code is: gitea/models/migrations/migrations.go Lines 398 to 423 in ac3613b
In particular gitea/models/migrations/migrations.go Lines 406 to 407 in ac3613b
I think I thought it would not return any results if there was no index. Clearly I was wrong. Simple bug fix add between 406 and 407: if strings.Trimspace(indexname) == "" {
continue
} Probably doesn't need the Trimspace. Anyone fancy putting a PR up? |
A quick PR? NP. 😁 |
Thanks! |
@dunklesToast First the PR must be approved. Then one of the owners will assign a milestone for it. Depending on the milestone they may request a backport. And then we must wait until the target release is done. I don't know how desperate you are 😁, but if you don't want to wait, you could pull the 1.9.4 tag, apply the diff from that PR (it's only a couple of lines), compile and run. That should make it pass the upgrade part. If it works, then you can download and use a vanilla 1.9.4 to stay "standard". |
What's the status on this? I'm also trying to upgrade from |
@robin-thoni This issue has (reportedly) been fixed. |
Please only migrate to the last point release of a series - so from 1.8.x to 1.9.5 not to 1.9.0. The broken migrations can only be fixed in later point releases - we can't re-release. |
[x]
):Description
I have a running 1.8.3 gitea docker server. All works fine. Now I wanted to upgrade to the new version 1.9.0. The server seems to be in a neverending loop initializing itself. All I see in my docker logs is repeatingly endless.
Where should I look for additional informations? Logs?
The text was updated successfully, but these errors were encountered: