Open LJojo opened 1 year ago
experienced same error following upgrade to 25.0.2
2023-01-15T14:42:26+00:00 Setting log level to debug
2023-01-15T14:42:26+00:00 Repair step: Repair MySQL collation
2023-01-15T14:42:27+00:00 Repair info: All tables already have the correct collation -> nothing to do
2023-01-15T14:42:27+00:00 Repair step: Repair SQLite autoincrement
2023-01-15T14:42:27+00:00 Repair step: Copy data from accounts table when migrating from ownCloud
2023-01-15T14:42:27+00:00 Repair step: Drop account terms table when migrating from ownCloud
2023-01-15T14:42:27+00:00 Updating database schema
2023-01-15T14:42:27+00:00 Updated database
2023-01-15T14:42:27+00:00 Updating
Hi,
your database should allow dynamic row sizes, otherwise you might also run into problems when for example adding missing indices using the occ db:add-missing-indices
command.
This requires innodb_default_row_format=dynamic
in your DB configuration (https://mariadb.com/kb/en/innodb-row-formats-overview/) or an ALTER TABLE oc_tablename ROW_FORMAT=DYNAMIC;
on existing tables.
Best, /S
Same problem here, all my tables are already in dynamic row format. The problem is on the index column size that is still fixed on 767b. Had to comment (L66) the index creation in this migration apps/photos/lib/Migration/Version20000Date20220727125801.php
#$table->addIndex(['user'], 'pa_user');
Don't see any drawback and my nextcloud is back now.
⚠️ This issue respects the following points: ⚠️
Bug description
I did the update to Nextcloud 25.0.2 When following error occures:
Exception: Database error when running migration 20000Date20220727125801 for app photos An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1709 Index column size too large. The maximum column size is 767 bytes.
Update vorbereiten Log-Level auf "debug" gesetzt Wartungsmodus eingeschaltet Reparaturschritt: Repair MySQL collation Reparaturinformation: All tables already have the correct collation -> nothing to do Reparaturschritt: Repair SQLite autoincrement Reparaturschritt: Copy data from accounts table when migrating from ownCloud Reparaturschritt: Drop account terms table when migrating from ownCloud Das Datenbankschema wird aktualisiert Datenbank aktualisiert Exception: Database error when running migration 20000Date20220727125801 for app photos An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1709 Index column size too large. The maximum column size is 767 bytes.
I searched the Internet, found that some people had some similar problems in the past. But the descriped fixis won't help. What can I doo?
Steps to reproduce
I just press the "actualice" button on the web page.
Expected behavior
Installation will work.
Installation method
None
Operating system
Debian/Ubuntu
PHP engine version
PHP 7.4
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Updated to a major version (ex. 22.2.3 to 23.0.1)
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response