-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Update to NC16, database update failed <Solved> #15602
Comments
+1 for the report. Config Debian9,
Same done with occ update :
|
It seems to be associated with 4 bytes utf8. I've modfied the nextcloud config with 👍
|
+1 Confirmed, this works enable the install to continue. However, something is still not right. After updating, I get this message on the admin/settings page:
Plus, the above command is the opposite from which is stated on the official docs page: Which states this as being the default setting:
I would like to fix it properly and move beyond this bug. |
UPDATE: So far all is working well. I will know if it is fixed correctly at the next update. |
Is it ok for you to close this issue as Duplicate of #15058? |
Sure is. Will mark it as closed. Thanks for the notice. |
I just tried to update from NC15.0.7 to 16 and when I tried to use the web updater, all was well until the attempt was made to update the database. The error message on the bottom said to notify NC, so I am.
The update was unsuccessful. Please report this issue to the Nextcloud community.
This is the error message received when using the web updater:
Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'CREATE TABLE oc_login_flow_v2 (id BIGINT UNSIGNED AUTO_INCREMENT NOT NULL, timestamp BIGINT UNSIGNED NOT NULL, started SMALLINT UNSIGNED DEFAULT 0 NOT NULL, poll_token VARCHAR(255) NOT NULL, login_token VARCHAR(255) NOT NULL, public_key TEXT NOT NULL, private_key TEXT NOT NULL, client_name VARCHAR(255) NOT NULL, login_name VARCHAR(255) DEFAULT NULL, server VARCHAR(255) DEFAULT NULL, app_password VARCHAR(1024) DEFAULT NULL, UNIQUE INDEX poll_token (poll_token), UNIQUE INDEX login_token (login_token), INDEX timestamp (timestamp), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin ENGINE = InnoDB ROW_FORMAT = compressed': SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes
I then tried the manual update method from the command line, and I got this message. It is essentially the same, but it has more information:
Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'CREATE TABLE oc_login_flow_v2 (id BIGINT UNSIGNED AUTO_INCREMENT NOT NULL, timestamp BIGINT UNSIGNED NOT NULL, started SMALLINT UNSIGNED DEFAULT 0 NOT NULL, poll_token VARCHAR(255) NOT NULL, login_token VARCHAR(255) NOT NULL, public_key TEXT NOT NULL, private_key TEXT NOT NULL, client_name VARCHAR(255) NOT NULL, login_name VARCHAR(255) DEFAULT NULL, server VARCHAR(255) DEFAULT NULL, app_password VARCHAR(1024) DEFAULT NULL, UNIQUE INDEX poll_token (poll_token), UNIQUE INDEX login_token (login_token), INDEX timestamp (timestamp), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin ENGINE = InnoDB ROW_FORMAT = compressed':
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes
Update failed
Anyone else seen this? Any ideas for a fix?
Server configuration
Operating system:
Devuan Ascii, debian 9 without systemd
Web server:
Apache
Database:
mariadb
PHP version:
PHP Version 7.2.18-1+0
20190503103213.21+stretch1.gbp101320Nextcloud version: (see Nextcloud admin page)
NC16
Updated from an older Nextcloud/ownCloud or fresh install:
updated from NC15.0.7
The text was updated successfully, but these errors were encountered: