Gitea doesn't start after upgrade from 1.12 to 1.22 #13108

Closed
opened 2025-11-02 10:31:19 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @giannf on GitHub (Jun 5, 2024).

Description

I attempted to upgrade my Gitea rootless Docker installation from version 1.12 to 1.22 using the following commands:
docker compose pull
docker compose up -d
I am using gitea/gitea:latest-rootless in my docker-compose.yml file. After executing these commands, Gitea fails to start and shows the following error:
routers/common/db.go:36:InitDBEngine() [E] ORM engine initialization attempt #2/10 failed. Error: sync database struct error: Error 1170 (42000): BLOB/TEXT column 'name' used in key specification without a key length
My database is MySQL 8.4.0.

Gitea Version

1.12

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Gitea Docker rootless installation

Database

MySQL/MariaDB

Originally created by @giannf on GitHub (Jun 5, 2024). ### Description I attempted to upgrade my Gitea rootless Docker installation from version 1.12 to 1.22 using the following commands: `docker compose pull` `docker compose up -d` I am using gitea/gitea:latest-rootless in my docker-compose.yml file. After executing these commands, Gitea fails to start and shows the following error: `routers/common/db.go:36:InitDBEngine() [E] ORM engine initialization attempt #2/10 failed. Error: sync database struct error: Error 1170 (42000): BLOB/TEXT column 'name' used in key specification without a key length` My database is MySQL 8.4.0. ### Gitea Version 1.12 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Gitea Docker rootless installation ### Database MySQL/MariaDB
GiteaMirror added the type/bug label 2025-11-02 10:31:19 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13108