Upgrading gitea from 1.12.3 to 1.13.1

  • Gitea version (or commit ref):
  • Git version: 1.12.3
  • Operating system: Centos 7
  • Database:
    • [x] PostgreSQL

Description

Hello!

tried to upgrade from gitea 1.12.3 to 1.13.1 according to the official documentation. updated immediately from 1.12.3 to 1.13. version. but after updating I get 502 http error code when accessing mygiteadomain.com home page

in the gitea logs iI see messages:

2021/01/04 19:39:35 … ations/migrations.go: 538: recreateTable () [E] Unable to rename IDX_topic_updated_unix to IDX_topic_updated_unix. Error: pq: relationship “IDX_topic_updated_unix” does not exist

2021/01/04 19:39:35 … ations/migrations.go: 382: recreateTable () [E] Unable to create table tmp_recreate__repo_topic. Error: pq: current transaction aborted, commands until the end of the transaction block are ignored

2021/01/04 19:39:35 routers/init.go: 88: initDBEngine () [E] ORM engine initialization attempt # 9/10 failed. Error: migrate: do migrate: pq: Could not complete operation in a failed transaction

I have another gitea build with similar settings and characteristics. on this assembly from version 1.12.3 to 1.13.1 I updated without problems

What can be wrong?

No idea.

I did the normal upgrades:

1.12.3 -> 1.12.4 -> 1.12.5 -> 1.12.6 -> 1.13.0 -> 1.13.1

without any problems. Perhaps they removed some stuff in one version?