-
-
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
Migrate from GitLab to Gitea fail "duplicate key value violates unique constraint "UQE_issue_repo_index"" #32910
Comments
I think this is an known issue. |
Some problems may be similar to "GitLab migrate merge requests + issues faile #13884". But I have zero "issues" in the GitLab repo. |
If there's a sample GitLab instance which can reproduce this issue....I have tried to deploy a GitLab with version 11.4.5, and created an empty repo with zero issues, and the migration is done. |
May be version of PostgreSQL 16.6 may work incorrect? From postgres log. Errors before last try: |
2024/12/28 10:45:00 ...ices/task/migrate.go:60:func1() [E] runMigrateTask[16] by DoerID[3] to RepoID[26] for OwnerID[12] failed: pq: duplicate key value violates unique constraint "UQE_issue_repo_index" |
Some observations: Problem always exist with last Merge Request (by index). |
Description
Try to migrate from old GitLab Community Edition 11.4.5 to new Gitea installation.
Old Repo have zero Issues. I have check a box: Labels, Merge Request, Releases.
2024/12/18 17:55:14 ...ices/task/migrate.go:60:func1() [E] runMigrateTask[14] by DoerID[3] to RepoID[24] for OwnerID[12] failed: pq: duplicate key value violates unique constraint "UQE_issue_repo_index"
2024/12/18 17:55:14 ...ervices/task/task.go:53:handler() [E] Run task failed: pq: duplicate key value violates unique constraint "UQE_issue_repo_index"
Gitea Version
1.22.6
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.34.1
Operating System
Ubuntu 22.04.5 LTS
How are you running Gitea?
get from https://dl.gitea.com/gitea/1.22.6/gitea-1.22.6-linux-amd64
Systemd service from https://github.com/go-gitea/gitea/blob/release/v1.22/contrib/systemd/gitea.service
Database
PostgreSQL
The text was updated successfully, but these errors were encountered: