# Upgrading gitea from 1.12.3 to 1.13.1

**URL:** <https://forum.gitea.com/t/upgrading-gitea-from-1-12-3-to-1-13-1/2824>\
**Category:** General\
**Created:** [January 5, 2021, 11:36am UTC](https://forum.gitea.com/t/upgrading-gitea-from-1-12-3-to-1-13-1/2824 "2021-01-05T11:36:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![flowerstapedtopens](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/flowerstapedtopens/32/4939_2.png) [@flowerstapedtopens](https://forum.gitea.com/u/flowerstapedtopens)\
**Post date:** [January 5, 2021, 11:36am UTC](https://forum.gitea.com/t/upgrading-gitea-from-1-12-3-to-1-13-1/2824/1 "2021-01-05T11:36:04Z")

</div>

- Gitea version (or commit ref):
- Git version: 1.12.3
- Operating system: Centos 7
- Database:
  - 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](http://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?

---

<div class="post-metadata">

**Author:** ![somera](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/somera/32/641_2.png) [@somera](https://forum.gitea.com/u/somera)\
**Post date:** [January 6, 2021, 3:38pm UTC](https://forum.gitea.com/t/upgrading-gitea-from-1-12-3-to-1-13-1/2824/2 "2021-01-06T15:38:21Z")

</div>

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?
