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

Closed
opened 2025-11-02 05:06:28 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @sitilge on GitHub (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.

Originally created by @sitilge on GitHub (May 1, 2019). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.8.0 - Git version: 2.21.0 - Operating system: arch linux 4.18.16 - Database (use `[x]`): - [ ] PostgreSQL - [X] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [X] 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.
Author
Owner

@sitilge commented on GitHub (May 1, 2019):

Manually recreating the index solves the problem

CREATE INDEX IDX_repository_is_bare ON repository (is_bare)

@sitilge commented on GitHub (May 1, 2019): Manually recreating the index solves the problem `CREATE INDEX IDX_repository_is_bare ON repository (is_bare)`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3280