Repository Migration from Github Fails #2375

Open
opened 2026-02-13 10:16:46 +01:00 by adithyaps · 9 comments

Comment

Trying to Import/Migrate https://github.com/pkgforge-dev/Citron-AppImage to codeberg and facing the below error. Please advise on the next steps

Migrating from https://github.com/pkgforge-dev/Citron-AppImage.git failed.
Error 1062 (23000): Duplicate entry '1258746-3' for key 'UQE_issue_repo_index'

Screenshot From 2026-02-13 14-46-18

### Comment Trying to Import/Migrate https://github.com/pkgforge-dev/Citron-AppImage to codeberg and facing the below error. Please advise on the next steps ``` Migrating from https://github.com/pkgforge-dev/Citron-AppImage.git failed. Error 1062 (23000): Duplicate entry '1258746-3' for key 'UQE_issue_repo_index' ``` ![Screenshot From 2026-02-13 14-46-18](/attachments/6cdf7a54-4ad5-4d05-b8bf-07f7c8519a82)
Member

Unfortunately, this is a known issue, you may try to cancel and recreate the migration (retrying won’t work), see #2295 (comment) #2295.

Fyi, @slink, seems it is still not fully solved (at least on Codeberg)

Unfortunately, this is a known issue, you may try to cancel and recreate the migration (retrying won’t work), see https://codeberg.org/Codeberg/Community/issues/2295#issuecomment-10377628 https://codeberg.org/Codeberg/Community/issues/2295. Fyi, @slink, seems it is still not fully solved (at least on Codeberg)
Author

Yeah, I tried rerunning from scratch and it did fail. I don't want to loose issues/pr data.

What's are my options ?

Yeah, I tried rerunning from scratch and it did fail. I don't want to loose issues/pr data. What's are my options ?
Member

Can you try to migrate to https://v15.next.forgejo.org? Maybe it has been fixed there already? In case this is successful, please let me know, and, then you could migrate from Forgejo to Forgejo (Codeberg), which is much better supported.

Can you try to migrate to https://v15.next.forgejo.org? Maybe it has been fixed there already? In case this is successful, please let me know, and, then you could migrate from Forgejo to Forgejo (Codeberg), which is much better supported.

I doubt there is relevant new code which has not been deployed to codeberg, but at any rate it might be worth a try.
I would be willing to have another look, but I would need a token to test migrate a repo for which the migration fails. See #2295 (comment) for details

I doubt there is relevant new code which has not been deployed to codeberg, but at any rate it might be worth a try. I would be willing to have another look, but I would need a token to test migrate a repo for which the migration fails. See https://codeberg.org/Codeberg/Community/issues/2295#issuecomment-10377628 for details
Author
https://v15.next.forgejo.org/pkgforge-dev/Citron-AppImage -- Im trying!! 🤞
Member

See also this #2295 (comment) and following, it may help to run the migration overnight …

See also this https://codeberg.org/Codeberg/Community/issues/2295#issuecomment-10420738 and following, it may help to run the migration overnight …
Author

Im facing same error

Migrating from https://github.com/pkgforge-dev/Citron-AppImage.git failed.

UNIQUE constraint failed: issue.repo_id, issue.index
Im facing same error ``` Migrating from https://github.com/pkgforge-dev/Citron-AppImage.git failed. UNIQUE constraint failed: issue.repo_id, issue.index ```
Owner

If it's a UNIQUE constraint then it's unlikely related to how busy Codeberg is (those always have been transaction deadlocks).

If it also fails for v15 then it's a bug, if not then I'll look if there's maybe a fix that's not yet backported and otherwise I'll also try to run it and look more into it.

If it's a UNIQUE constraint then it's unlikely related to how busy Codeberg is (those always have been transaction deadlocks). If it also fails for v15 then it's a bug, if not then I'll look if there's maybe a fix that's not yet backported and otherwise I'll also try to run it and look more into it.
Author

Importing to Gitlab first (took less than 2-5 mins) then to codeberg (similar time) worked

Importing to Gitlab first (took less than 2-5 mins) then to codeberg (similar time) worked
Sign in to join this conversation.
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Codeberg/Community#2375
No description provided.