Can't update to 1.1.x version : duplicat key #565

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

Originally created by @camlafit on GitHub (Mar 22, 2017).

  • Gitea version (or commit ref): 1.0.2 to 1.1.x
  • Git version: 2.1.4
  • Operating system: Jessie 386
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Description

When I update binary from dl.gitea.org and overwrite gitea binary, I can't execute it.

2017/03/20 17:30:58 [I] Log Mode: File(Info)
2017/03/20 17:30:58 [I] XORM Log Mode: File(Info)
2017/03/20 17:30:58 [I] Cache Service Enabled
2017/03/20 17:30:58 [I] Session Service Enabled
2017/03/20 17:30:58 [I] Migration: create repo unit table and add units for all repos
2017/03/20 17:30:58 [...itea/routers/init.go:54 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: CreateIndexes RepoUnit: Error 1061: Duplicate key name 'IDX_repo_unit_S'
Originally created by @camlafit on GitHub (Mar 22, 2017). - Gitea version (or commit ref): 1.0.2 to 1.1.x - Git version: 2.1.4 - Operating system: Jessie 386 - 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 ## Description When I update binary from dl.gitea.org and overwrite gitea binary, I can't execute it. ``` 2017/03/20 17:30:58 [I] Log Mode: File(Info) 2017/03/20 17:30:58 [I] XORM Log Mode: File(Info) 2017/03/20 17:30:58 [I] Cache Service Enabled 2017/03/20 17:30:58 [I] Session Service Enabled 2017/03/20 17:30:58 [I] Migration: create repo unit table and add units for all repos 2017/03/20 17:30:58 [...itea/routers/init.go:54 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: CreateIndexes RepoUnit: Error 1061: Duplicate key name 'IDX_repo_unit_S' ```
GiteaMirror added the issue/duplicate label 2025-11-02 03:28:20 -06:00
Author
Owner

@cez81 commented on GitHub (Mar 22, 2017):

I think this is same issue as #1261, just different database.

@cez81 commented on GitHub (Mar 22, 2017): I think this is same issue as #1261, just different database.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#565