Closed
Description
Gitea Version
1.15.2
Git Version
2.30.2
Operating System
Debian 11, kernel 5.10.0-8-amd64
How are you running Gitea?
Self hosted gitea, binary service through systemd
Database
MySQL
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Description
I recently upgraded from 1.14.6 to 1.15.2, one of my repositories is getting error 500 when opening a new issue. It works on other repositories.
I'm using MariaDB 15.1
The relevant log is
2021/09/16 16:13:19 ...vices/issue/issue.go:16:NewIssue() [I] [SQL] COMMIT [] - 1.287557ms
2021/09/16 16:13:19 modules/web/route.go:64:func1() [I] [SQL] BEGIN TRANSACTION [] - 305.286µs
2021/09/16 16:13:19 models/issue.go:1025:NewIssue() [I] [SQL] INSERT INTO `issue` (`repo_id`,`index`,`poster_id`,`original_author`,`original_author_id`,`name`,`content`,`milestone_id`,`priority`,`is_closed`,`is_pull`,`num_comments`,`ref`,`deadline_unix`,`created_unix`,`updated_unix`,`closed_unix`,`is_locked`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) [2 24 6 0 Prova prova 0 0 false false 0 0 1631801599 1631801599 0 false] - 1.299408ms
2021/09/16 16:13:19 ...rs/web/repo/issue.go:975:NewIssuePost() [I] [SQL] ROLLBACK [] - 936.385µs
2021/09/16 16:13:19 ...rs/web/repo/issue.go:980:NewIssuePost() [E] NewIssue: newIssue: Error 1062: Duplicate entry '2-24' for key 'UQE_issue_repo_index'
Screenshots
No response