Gitea breaks on Mariadb 10.1.35 #2196

Closed
opened 2025-11-02 04:26:46 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @CountMurphy on GitHub (Aug 14, 2018).

  • Gitea version (or commit ref): 15.0
  • Git version:2.18.0
  • Operating system: Arch Linux
  • 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:

Error 1071: Specified key was too long; max key length is 767 bytes

Description

Looks like this Gogs bug (https://github.com/gogs/gogs/issues/4894) migrated over. gitea now expects mariadb 10.2 for this upgrade. Arch still runs 10.1.35. Gitea will crash trying to upgrade the database.
...

Screenshots

Originally created by @CountMurphy on GitHub (Aug 14, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) 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): 15.0 - Git version:2.18.0 - Operating system: Arch Linux - 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: Error 1071: Specified key was too long; max key length is 767 bytes ## Description Looks like this Gogs bug (https://github.com/gogs/gogs/issues/4894) migrated over. gitea now expects mariadb 10.2 for this upgrade. Arch still runs 10.1.35. Gitea will crash trying to upgrade the database. ... ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the issue/duplicate label 2025-11-02 04:26:46 -06:00
Author
Owner

@SagePtr commented on GitHub (Aug 14, 2018):

Just another duplicate of #2979

@SagePtr commented on GitHub (Aug 14, 2018): Just another duplicate of #2979
Author
Owner

@CountMurphy commented on GitHub (Aug 14, 2018):

didn't see that one. thanks

@CountMurphy commented on GitHub (Aug 14, 2018): didn't see that one. thanks
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2196