Skip to content

Can't DROP INDEX IDX_repository_is_bare; check that it exists #6819

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 of 7 tasks
sitilge opened this issue May 1, 2019 · 1 comment
Closed
2 of 7 tasks

Can't DROP INDEX IDX_repository_is_bare; check that it exists #6819

sitilge opened this issue May 1, 2019 · 1 comment

Comments

@sitilge
Copy link

sitilge commented May 1, 2019

  • Gitea version (or commit ref): 1.8.0
  • Git version: 2.21.0
  • Operating system: arch linux 4.18.16
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

2019/05/01 20:40:05 [I] ORM engine initialization attempt #1/10...
2019/05/01 20:40:05 [I] Migration: rename repo is_bare to repo is_empty
2019/05/01 20:40:05 [D] ORM engine initialization attempt #1/10 failed. Error: migrate: do migrate: Drop index failed: Error 1091: Can't DROP INDEX IDX_repository_is_bare; check that it exists
2019/05/01 20:40:05 [I] Backing off for 3 seconds

Description

After upgrading gitea, the gitea won't start and the error Can't DROP INDEX IDX_repository_is_bare; check that it exists appears in the logs.

@sitilge
Copy link
Author

sitilge commented May 1, 2019

Manually recreating the index solves the problem

CREATE INDEX IDX_repository_is_bare ON repository (is_bare)

@sitilge sitilge closed this as completed May 1, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant