You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've had this issue after my issue explained at #28846
If the migration fails after already having started (in my case not yet finished) to migrate the issues from https://github.com/tachiyomiorg/tachiyomi and you click the retry button, it fails on Postgres with the issue pq: duplicate key value violates unique constraint "UQE_release_n"
How I fixed it:
Look in the repository table or the task table what the repository id is.
Go to the issue table and delete the issues with that repository id.
Click retry button.
It works as intended
it's probably the same on MySQL (looking at you #28846), but I didn't test it and I don't really want to do this another time since the average full migration time of that repo with all options is ~8h and more
The migration is still ongoing on the Gitea demo site: https://try.gitea.io/TristanWasTaken/tachiyomi
It'll take ~8h to do a full migration. Or at least that's how long it took on my instance.
Gitea Version
1.21.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
Git Version
No response
Operating System
No response
How are you running Gitea?
docker gitea/gitea:1.21.3 image, with postgres and redis
Please note that I also tried with memory instead of redis
Database
PostgreSQL
The text was updated successfully, but these errors were encountered:
We are having the same issue on our instance after upgrading from 1.15.x to 1.24.x and then to 1.25.x
In this hindsight Gitea started to behave very unpredictable.
For instance, the heatmap is not working, the tags and branches on the web interface do not show correct data.
Manually running gitea admin repo-sync-releases results in 2024/03/04 14:13:45 cmd/admin.go:393:runRepoSyncReleases() [W] SyncReleasesWithTags: unable to PushUpdateAddTag: "XXXX" to Repo[109:XXX/YYYY]: InsertOne: pq: duplicate key value violates unique constraint "UQE_release_n"
Gitea doctor:
[1] Check Database Version
- [I] Expected database version: 280
OK
All done (checks: 1).
gitea doctor check --run hooks
[1] Check if hook files are up-to-date and executable
OK
All done (checks: 1).
gitea doctor check --run check-commit-graphs
[1] Check commit-graphs
- [I] Checked 109 repositories, 1 without commit-graphs.
OK
All done (checks: 1).
gitea doctor check --run check-db-consistency
[1] Check consistency of database
- [W] Found 2 Orphaned OAuth2Application without existing User
OK
All done (checks: 1).
@lunny you mentioned the cause, but is there any remedy we can do in the meantime with the gitea doctor?
Description
I've had this issue after my issue explained at #28846
If the migration fails after already having started (in my case not yet finished) to migrate the issues from https://github.com/tachiyomiorg/tachiyomi and you click the retry button, it fails on Postgres with the issue
pq: duplicate key value violates unique constraint "UQE_release_n"
How I fixed it:
repository
table or thetask
table what the repository id is.issue
table and delete the issues with that repository id.it's probably the same on MySQL (looking at you #28846), but I didn't test it and I don't really want to do this another time since the average full migration time of that repo with all options is ~8h and more
The migration is still ongoing on the Gitea demo site: https://try.gitea.io/TristanWasTaken/tachiyomi
It'll take ~8h to do a full migration. Or at least that's how long it took on my instance.
Gitea Version
1.21.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
Git Version
No response
Operating System
No response
How are you running Gitea?
docker
gitea/gitea:1.21.3
image, withpostgres
andredis
Please note that I also tried with
memory
instead of redisDatabase
PostgreSQL
The text was updated successfully, but these errors were encountered: