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
4.7.0-b2 Update fails with MySQL 5.5 #18721
Comments
This issue has been mentioned on Matomo forums. There might be relevant details there: https://forum.matomo.org/t/4-7-0-b2-update-fails-with-mysql-5-5/44603/1 |
Hello , I am also facing issue when I try a fresh install of Matomo 4.7.0 on PHP 7.2, MYSQL 5.5, Apache 2.2. An error occurred : The same issue occurs when I tested on another server with MYSQL 5.6. However , script works fine on MYSQL 5.7. On further inspection found that https://dev.mysql.com/doc/refman/5.6/en/innodb-limits.html Could you please replicate this issue at your end and fix this? |
I also confirm this problem with the last update with MySQL 5.6:
I can't change the value of innodb_large_prefix to 1 (I don't have super privileges on this database) and I can't update to version 5.7 either. |
Thanks for the report. We will try to create a fix for this soon. |
This issue has been mentioned on Matomo forums. There might be relevant details there: |
This issue has been mentioned on Matomo forums. There might be relevant details there: |
The not working index can be ignored, if Matomo still works after the error |
This issue has been mentioned on Matomo forums. There might be relevant details there: https://forum.matomo.org/t/critical-error-while-upgrading-to-4-7-0/44607/8 |
Thanks for your feedback. It doesn't, it asks to update again. Should I execute the MySQL commands of this update (with the exception of the index command)? |
@EmbDclic Yes. Makes sense. We will fix that with another update later. |
As a temporary workaround for MySQL 5.5 I executed (reference): ALTER TABLE `piwik_changes` ADD UNIQUE KEY unique_plugin_version_title (plugin_name(128), `version`, title(128)); |
@mcguffin That will only work when not using utf8mb4. |
Chiming here in case you encountered the error.
This enable large prefixes as a global setting:
|
Hey guys, What is the best way to upgrade now from this point? |
@NicoHood did you try to enable support for large prefixes? |
I am on a shared hosting, I am not sure if I am allowed to do that. At least I don't know how to do that. |
@NicoHood Doesn't the database update work now? The files should have been adjusted so the incorrect db update shouldn't be included anymore. So if you update to Matomo 4.7.1 or 4.8.0 it should work without problems. |
This might be true, but I am stuck in the updater. The updater is in the process to update the db with 4.7.0 files. I am unable to access anything of the ui, it is a deadlock. |
In that case you can follow the steps to do a manual update https://matomo.org/faq/on-premise/update-matomo/#the-manual-three-step-update Or if you still want to use the automatic update you can remove this line from
|
Thanks! I've edited the file and it worked! |
Expected Behavior
Updating to 4.7.0-b2 via Webupdater shouldnt be a thing
Current Behavior
Fatal error:
matomo/core/Updates/4.7.0-b2.php: Error trying to execute the migration 'ALTER TABLE
matomo_changesADD UNIQUE KEY unique_plugin_version_title (
plugin_name,
version,
title);'. The error was: SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes
Possible Solution
I guess it works with MySQL 5.7, but as 5.5 is still supported in general, it should work
The text was updated successfully, but these errors were encountered: