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

Failed to initialize ORM engine #4904

Closed
2 tasks
Madmorgan007 opened this issue Sep 10, 2018 · 1 comment
Closed
2 tasks

Failed to initialize ORM engine #4904

Madmorgan007 opened this issue Sep 10, 2018 · 1 comment
Labels
issue/duplicate The issue has already been reported.

Comments

@Madmorgan007
Copy link

  • Gitea version (or commit ref): 8ee9922

  • Git version:

  • Operating system: Debian on Raspberry Pi

  • Database (use [x]):

    • [x ] MySQL
  • Can you reproduce the bug at https://try.gitea.io:

    • Yes (provide example URL)
    • No
    • [x ] Not relevant
  • Log gist:

Description

Hi,

I have just upgraded my version of Gitea to latest Master and I can not start my server.

Thanks

Here is part of the log.

2018/08/27 15:17:16 [I] Log Mode: File(Info)
2018/08/27 15:17:16 [I] XORM Log Mode: File(Info)
2018/08/27 15:17:16 [I] Cache Service Enabled
2018/08/27 15:17:16 [I] Session Service Enabled
2018/08/27 15:17:16 [...itea/routers/init.go:60 GlobalInit()] [E] Failed to initialize ORM engine: dial tcp 127.0.0.1:3306: getsockopt: connection refused
2018/08/27 15:17:17 [I] Log Mode: File(Info)
2018/08/27 15:17:17 [I] XORM Log Mode: File(Info)
2018/08/27 15:17:17 [I] Cache Service Enabled
2018/08/27 15:17:17 [I] Session Service Enabled
2018/08/27 15:17:20 [I] Git Version: 2.1.4
2018/08/27 15:17:21 [I] Run Mode: Production
2018/08/27 16:07:37 [I] Listen: http://0.0.0.0:3000
2018/08/27 16:07:37 [I] LFS server enabled
2018/09/10 19:24:43 [I] Log Mode: File(Info)
2018/09/10 19:24:43 [I] XORM Log Mode: File(Info)
2018/09/10 19:24:43 [I] Cache Service Enabled
2018/09/10 19:24:43 [I] Session Service Enabled
2018/09/10 19:24:43 [I] Migration: add label descriptions
2018/09/10 19:24:47 [I] Migration: add merge whitelist for protected branches
2018/09/10 19:24:50 [I] Migration: add is_fsck_enabled column for repos
2018/09/10 19:24:54 [I] Migration: add size column for attachments
2018/09/10 19:24:55 [I] Migration: add last used passcode column for TOTP
2018/09/10 19:25:03 [I] Migration: add language column for user setting
2018/09/10 19:25:04 [I] Migration: add multiple assignees
2018/09/10 19:25:07 [I] Migration: add u2f
2018/09/10 19:25:09 [I] Migration: add login source id column for public_key table
2018/09/10 19:25:11 [I] Migration: remove stale watches
2018/09/10 19:25:12 [I] Migration: Reformat and remove incorrect topics
2018/09/10 19:25:12 [I] This migration could take up to minutes, please be patient.
2018/09/10 19:25:12 [...itea/routers/init.go:60 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: Sync2: Error 1071: Specified key was too long; max key length is 767 bytes

2018/09/10 19:25:13 [I] Log Mode: File(Info)
2018/09/10 19:25:14 [I] XORM Log Mode: File(Info)
2018/09/10 19:25:14 [I] Cache Service Enabled
2018/09/10 19:25:14 [I] Session Service Enabled
2018/09/10 19:25:14 [I] Migration: Reformat and remove incorrect topics
2018/09/10 19:25:14 [I] This migration could take up to minutes, please be patient.
2018/09/10 19:25:14 [...itea/routers/init.go:60 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: Sync2: Error 1071: Specified key was too long; max key length is 767 bytes

2018/09/10 19:25:16 [I] Log Mode: File(Info)
2018/09/10 19:25:21 [I] XORM Log Mode: File(Info)
2018/09/10 19:25:21 [I] Cache Service Enabled
2018/09/10 19:25:21 [I] Session Service Enabled
2018/09/10 19:25:21 [I] Migration: Reformat and remove incorrect topics
2018/09/10 19:25:21 [I] This migration could take up to minutes, please be patient.
2018/09/10 19:25:29 [...itea/routers/init.go:60 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: Sync2: Error 1071: Specified key was too long; max key length is 767 bytes

2018/09/10 19:25:35 [I] Log Mode: File(Info)
2018/09/10 19:25:35 [I] XORM Log Mode: File(Info)
2018/09/10 19:25:35 [I] Cache Service Enabled
2018/09/10 19:25:35 [I] Session Service Enabled
2018/09/10 19:25:35 [I] Migration: Reformat and remove incorrect topics
2018/09/10 19:25:35 [I] This migration could take up to minutes, please be patient.
2018/09/10 19:25:36 [...itea/routers/init.go:60 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: Sync2: Error 1071: Specified key was too long; max key length is 767 bytes

2018/09/10 19:25:41 [I] Log Mode: File(Info)
2018/09/10 19:25:41 [I] XORM Log Mode: File(Info)
2018/09/10 19:25:41 [I] Cache Service Enabled
2018/09/10 19:25:41 [I] Session Service Enabled
2018/09/10 19:25:41 [I] Migration: Reformat and remove incorrect topics
2018/09/10 19:25:41 [I] This migration could take up to minutes, please be patient.
2018/09/10 19:25:42 [...itea/routers/init.go:60 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: Sync2: Error 1071: Specified key was too long; max key length is 767 bytes

2018/09/10 19:25:44 [I] Log Mode: File(Info)
2018/09/10 19:25:44 [I] XORM Log Mode: File(Info)
2018/09/10 19:25:44 [I] Cache Service Enabled
2018/09/10 19:25:44 [I] Session Service Enabled
2018/09/10 19:25:44 [I] Migration: Reformat and remove incorrect topics
2018/09/10 19:25:44 [I] This migration could take up to minutes, please be patient.
2018/09/10 19:25:45 [...itea/routers/init.go:60 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: Sync2: Error 1071: Specified key was too long; max key length is 767 bytes

2018/09/10 19:25:48 [I] Log Mode: File(Info)
2018/09/10 19:25:48 [I] XORM Log Mode: File(Info)
2018/09/10 19:25:48 [I] Cache Service Enabled
2018/09/10 19:25:48 [I] Session Service Enabled
2018/09/10 19:25:48 [I] Migration: Reformat and remove incorrect topics
2018/09/10 19:25:48 [I] This migration could take up to minutes, please be patient.
2018/09/10 19:25:48 [...itea/routers/init.go:60 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: Sync2: Error 1071: Specified key was too long; max key length is 767 bytes

@techknowlogick techknowlogick added the issue/duplicate The issue has already been reported. label Sep 10, 2018
@techknowlogick
Copy link
Member

See #2979

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
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.
Projects
None yet
Development

No branches or pull requests

2 participants