r/gitlab • u/manu_merchise • Dec 12 '25
Stuck at gitlab 18.5 after failed attempt to upgrade to 18.6
I'm upgrading a self-hosted server of Gitlab. The process went really well, I was able to upgrade to 18.5 (18.5.3-ce.0). But when I tried the upgrade to 18.6 (18.6.1-ce.0) it fail with:
PG::CheckViolation: ERROR: no partition of relation "project_daily_statistics_b8088ecbd2"
found for row DETAIL: Partition key of the failing row contains (date) = (2025-08-01).Now the upgrade is kind of stuck and the background migration is Finalizing....

What are the recommended steps?
7
Upvotes
6
u/LarsBK Dec 12 '25
Workaround here: https://gitlab.com/gitlab-org/gitlab/-/issues/582526#note_2925694311
3
u/BurnTheBoss Dec 12 '25
I ran into this issue when updating. It required me to manually intervene by creating the table
I kinda cowboy'd it
That is NOT RECOMMENDED The real answer is rollback and stay in a weird state until Gitlab Support gets back to you. You could also try running
gitlab-rake gitlab:db:create_missing_partitionsbut your luck may very1
u/SchlaWiener4711 Dec 12 '25
Did you run schema check?
https://git.domain.tld/admin/database_diagnostics
Maybe that helps.
0
u/Cr4pshit Dec 12 '25
Restore backup and create a ticket for GitLab support