Skip to content

App upgrade triggered by upgrade to Nextcloud v27.0.2 fails with SQL ErrorΒ #8748

@tmlmt

Description

@tmlmt

Steps to reproduce

Well, don't know how reproducible that is but what happened is:

  1. Launched the updater from Nextcloud Administration Settings, to upgrade to v27.0.2
  2. Decided to go manual and ran occ upgrade locally: success
  3. Went back to my online instance, where it was still asking me to Launch the update from there, which I then did: failure
  4. Tried occ upgrade locally again, led to the same error
  5. Disabled the mail app with occ app:disable mail and Nextcloud magically loaded online again (but with the Mail app disabled)

Expected behavior

Nextcloud and apps should have updated succesfully

Actual behavior

Log from Step no. 2 above:

Setting log level to debug
Turned on maintenance mode
Updating database schema
Updated database
Disabled incompatible app: apporder
Update app calendar from App Store
Update app contacts from App Store
Update app deck from App Store
Update app mail from App Store
Update app passwords from App Store
Update app spreed from App Store
Starting code integrity check...
Finished code integrity check
Update successful
Turned off maintenance mode
Resetting log level

Shouldn't it be the end of the upgrade? Why did it still ask me online to Launch the update?

Log of any subsequent attempts (step no. 3 or 4 above, or trying to now re-enable Mail on Nextcloud v27.0.2)

Setting log level to debug
Turned on maintenance mode
Updating database schema
Updated database
Updating <mail> ...
Exception: Database error when running migration 3300Date20230801124717 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
Maintenance mode is kept active
Resetting log level

Mail app version

3.4.0-beta.2

Mailserver or service

N/A

Operating system

Ubuntu 20.04.6

PHP engine version

PHP 8.1

Web server

Nginx

Database

MySQL

Additional info

How can I re-enable the Mail in its latest version? Remove and re-install?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions