Gitea: After 1.1.0 upgrade: relation "IDX_repo_unit_S" already exists

Created on 15 Mar 2017  路  4Comments  路  Source: go-gitea/gitea

  • Gitea version (or commit ref): 1.1.0
  • Git version: 2.12.0
  • Operating system: Gentoo Linux
  • Database (use [x]):

    • [X] PostgreSQL

    • [ ] MySQL

    • [ ] MSSQL

    • [ ] SQLite

  • Can you reproduce the bug at https://try.gitea.io:

    • [ ] Yes (provide example URL)

    • [ ] No

    • [X] Not relevant

  • Log gist:

Description

After upgrading to 1.1.0 via Gentoo portage I can't start gitea because of:

2017/03/15 12:27:52 [...itea/routers/init.go:54 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: CreateIndexes RepoUnit: pq: relation "IDX_repo_unit_S" already exists ...

kinquestion

All 4 comments

Please drop the table repo_unit manually and start again.

That worked.

@lunny any way to make our migrations immune from this issue ? (might help when people try to migrate from a newer Gogs, for example)

It's hard to resolve this problem. Many operations cannot be reverted.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Fastidious picture Fastidious  路  3Comments

adpande picture adpande  路  3Comments

BNolet picture BNolet  路  3Comments

kolargol picture kolargol  路  3Comments

jonasfranz picture jonasfranz  路  3Comments