Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gitea crash when indexer is run (database error, data too long for column language) #13013

Closed
2 of 7 tasks
furai opened this issue Oct 2, 2020 · 3 comments · Fixed by #12396, #12427 or #12445
Closed
2 of 7 tasks
Labels
issue/duplicate The issue has already been reported. type/bug

Comments

@furai
Copy link

furai commented Oct 2, 2020

  • Gitea version (or commit ref): Gitea version 1.12.5 built with GNU Make 4.1, go1.14.9 : bindata, sqlite, sqlite_unlock_notify
  • Git version: 2.28.0
  • Operating system: Ubuntu 18.04.5 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:
./gitea.log:2562:2020/10/02 09:12:07 ...dexer/stats/queue.go:24:handle() [E] stats queue indexer.Index(24) failed: Error 1406: Data too long for column 'language' at row 1

Description

I've upgraded Gitea today the usual way by stopping the service, replacing binary and starting the service again. (From 1.12.4 to 1.12.5)

Gitea crashes when indexer runs. I have no idea why this happened. Maybe failed database migration on my end? That's the only relevant log I could find above.

I've disabled repo indexer and things started working again.

@zeripath
Copy link
Contributor

zeripath commented Oct 2, 2020

This is a duplicate of #12379

You will need to run the following SQL on the database:

ALTER TABLE language_stat MODIFY COLUMN language VARCHAR(50)

This is fixed in 1.13 with a migration using #12396, (with additional fixes in #12427, #12445) but migrations are not backportable.

@lunny
Copy link
Member

lunny commented Oct 2, 2020

Maybe we could add a doctor or fix sub command gitea doctor fix 12379 which is backportable.

@lunny
Copy link
Member

lunny commented Jan 6, 2021

closed as duplicated.

@lunny lunny closed this as completed Jan 6, 2021
@go-gitea go-gitea locked and limited conversation to collaborators Feb 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/duplicate The issue has already been reported. type/bug
Projects
None yet
3 participants