Skip to content

Specified key was too long; max key length is 3072 bytes; migration 5006Date20250927130132 - mail_mailboxes.name #11931

@blizzz

Description

@blizzz

Steps to reproduce

  1. Upgrade to 5.5.9

Expected behavior

Upgrade succeeds

Actual behavior

Exception: Database error when running migration 5006Date20250927130132 for app mail
An exception occurred while executing a query: SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 3072 bytes
Update failed

This is about modifying column name of mail_mailboxes.

{
  "reqId": "G5RuqTtIOPSh39aW2nCM",
  "level": 3,
  "time": "2025-10-14T21:49:36+00:00",
  "remoteAddr": "",
  "user": "--",
  "app": "updater",
  "method": "",
  "url": "--",
  "message": "\\OC\\Updater::failure: Exception: Database error when running migration 5006Date20250927130132 for app mail\nAn exception occurred while executing a query: SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 3072 bytes",
  "userAgent": "--",
  "version": "31.0.9.1",
  "data": {
    "app": "updater"
  }
}

Mail app version

5.5.9

Nextcloud version

31.0.9

Mailserver or service

No response

Operating system

No response

PHP engine version

None

Nextcloud memory caching

No response

Web server

None

Database

MySQL 8.0.43 (yes, sorry)

Additional info

No response

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions