Opening a Pull-Request results in a 500 #21
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Whats the Problem
Opening a Pull Request on this gitea instance results in Http error 500. You can perfectly fine write the text but on submitting you get the error.
Cc: @j03 @sand20
I did some digging in the journalctl log:
the problem is that some extra counter is 0 which means the first available PR number already exists. fallout of the upgrade because we jumped to many versions at once.
How to resolve?
go into the database, find the project and increase the PR counter to the current number.
Probably related issue: https://github.com/go-gitea/gitea/issues/14725
Resolved Issues with @sand20
The pull request index was one to low for unkown reason which resulted in new prs having a primary id which was already in use.
We couldn't update the last_value in the id_seq table so we decided the last pull request belonging to this repository.
That broke the listing for closed pull requests. So we scanned all ids and deleted the entries which displayed a 500 error.
=> We lost 2 pull requests / issues, gitea is displaying them as 404 but at least we can create new prs now.
=> If we get the opportunity to recreate the database we should take it.
=> Someone should upgrade gitea.
problem appears to be fixed closing.