Failed to initialize ORM engine: sync database struct error [...] BLOB/TEXT column 'key_id' used in key specification without a key length #543

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

Originally created by @otih on GitHub (Mar 19, 2017).

  • Gitea version (or commit ref): 8bcb643a03 (latest master)
  • Git version: 2.7.4
  • Operating system: Ubuntu 16.04.2 LTS
  • 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:
    2017/03/19 20:46:10 [I] Log Mode: File(Info)
    2017/03/19 20:46:10 [I] XORM Log Mode: File(Info)
    2017/03/19 20:46:10 [I] Cache Service Enabled
    2017/03/19 20:46:10 [I] Session Service Enabled
    2017/03/19 20:46:10 [I] Mail Service Enabled
    2017/03/19 20:46:10 [I] Register Mail Service Enabled
    2017/03/19 20:46:10 [I] Notify Mail Service Enabled
    2017/03/19 20:46:10 [...itea/routers/init.go:54 GlobalInit()] [E] Failed to initialize ORM engine: sync database struct error: Error 1170: BLOB/TEXT column 'key_id' used in key specification without a key length

Description

gitea is not able to start with latest master version. "BLOB/TEXT column 'key_id' used in key specification without a key length"

following SQL error:
2017/03/19 20:49:51 [I] [sql] CREATE INDEX IDX_gpg_key_key_id ON gpg_key (key_id)
Not solvable by creating this index manually.

Originally created by @otih on GitHub (Mar 19, 2017). - Gitea version (or commit ref): 8bcb643a031e4739ca8ead8351ef7f9092969299 (latest master) - Git version: 2.7.4 - Operating system: Ubuntu 16.04.2 LTS - Database (use `[x]`): - [ ] PostgreSQL - [X] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - [ ] Not relevant - Log gist: 2017/03/19 20:46:10 [I] Log Mode: File(Info) 2017/03/19 20:46:10 [I] XORM Log Mode: File(Info) 2017/03/19 20:46:10 [I] Cache Service Enabled 2017/03/19 20:46:10 [I] Session Service Enabled 2017/03/19 20:46:10 [I] Mail Service Enabled 2017/03/19 20:46:10 [I] Register Mail Service Enabled 2017/03/19 20:46:10 [I] Notify Mail Service Enabled 2017/03/19 20:46:10 [...itea/routers/init.go:54 GlobalInit()] [E] Failed to initialize ORM engine: sync database struct error: Error 1170: BLOB/TEXT column 'key_id' used in key specification without a key length ## Description gitea is not able to start with latest master version. "BLOB/TEXT column 'key_id' used in key specification without a key length" following SQL error: 2017/03/19 20:49:51 [I] [sql] CREATE INDEX `IDX_gpg_key_key_id` ON `gpg_key` (`key_id`) Not solvable by creating this index manually.
Author
Owner

@otih commented on GitHub (Mar 19, 2017):

duplicate with #1327

@otih commented on GitHub (Mar 19, 2017): duplicate with #1327
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#543