Hello,
I’m having problems updating the version of the Matomo installation I have on a server. I perform the procedure that is documented step by step:
-
Make backup of the database and files
-
Put in maintenance mode and disable the log tracker
-
Copy the Matomo 4.1.1 files in the path
-
Launch Matomo update by command line: php console core: update
In this step, I get the error that I have to correct as the screenshot shows. I delete that file and run the update process again.
After finishing the update process, it throws me the following message with the following error:[X] Error during plugin updates:
-
/var/www/educacion/cau_ce/estadisticasweb/core/Columns/Updater.php:
Error trying to execute the migration ‘ALTER TABLEpiwik_log_visit
MODIFY COLUMNvisitor_count_visits
INT(11) UNSIGNED NOT NULL DEFAULT 0, MODIFY COLUMNvisit_total_interactions
MEDIUMINT UNSIGNED DEFAULT 0, MODIFY COLUMNreferer_name
VARCHAR(255) NULL, MODIFY COLUMNreferer_url
VARCHAR(1500) NULL, MODIFY COLUMNconfig_browser_name
VARCHAR(40) NULL, ADD COLUMNconfig_client_type
TINYINT( 1 ) NULL DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL;’.
The error was: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘location_region’ in ‘piwik_log_visit’ -
/var/www/educacion/cau_ce/estadisticasweb/core/Columns/Updater.php:
Error trying to execute the migration ‘ALTER TABLEpiwik_log_visit
MODIFY COLUMNvisitor_count_visits
INT(11) UNSIGNED NOT NULL DEFAULT 0, MODIFY COLUMNvisit_total_interactions
MEDIUMINT UNSIGNED DEFAULT 0, MODIFY COLUMNreferer_name
VARCHAR(255) NULL, MODIFY COLUMNreferer_url
VARCHAR(1500) NULL, MODIFY COLUMNconfig_browser_name
VARCHAR(40) NULL, ADD COLUMNconfig_client_type
TINYINT( 1 ) NULL DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL;’.
The error was: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘location_region’ in ‘piwik_log_visit’ -
/var/www/educacion/cau_ce/estadisticasweb/core/Columns/Updater.php:
Error trying to execute the migration ‘ALTER TABLEpiwik_log_visit
MODIFY COLUMNvisitor_count_visits
INT(11) UNSIGNED NOT NULL DEFAULT 0, MODIFY COLUMNvisit_total_interactions
MEDIUMINT UNSIGNED DEFAULT 0, MODIFY COLUMNreferer_name
VARCHAR(255) NULL, MODIFY COLUMNreferer_url
VARCHAR(1500) NULL, MODIFY COLUMNconfig_browser_name
VARCHAR(40) NULL, ADD COLUMNconfig_client_type
TINYINT( 1 ) NULL DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL;’.
The error was: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘location_region’ in ‘piwik_log_visit’ -
/var/www/educacion/cau_ce/estadisticasweb/core/Columns/Updater.php:
Error trying to execute the migration ‘ALTER TABLEpiwik_log_visit
MODIFY COLUMNvisitor_count_visits
INT(11) UNSIGNED NOT NULL DEFAULT 0, MODIFY COLUMNvisit_total_interactions
MEDIUMINT UNSIGNED DEFAULT 0, MODIFY COLUMNreferer_name
VARCHAR(255) NULL, MODIFY COLUMNreferer_url
VARCHAR(1500) NULL, MODIFY COLUMNconfig_browser_name
VARCHAR(40) NULL, ADD COLUMNconfig_client_type
TINYINT( 1 ) NULL DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL;’.
The error was: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘location_region’ in ‘piwik_log_visit’ -
/var/www/educacion/cau_ce/estadisticasweb/core/Columns/Updater.php:
Error trying to execute the migration ‘ALTER TABLEpiwik_log_visit
MODIFY COLUMNvisitor_count_visits
INT(11) UNSIGNED NOT NULL DEFAULT 0, MODIFY COLUMNvisit_total_interactions
MEDIUMINT UNSIGNED DEFAULT 0, MODIFY COLUMNreferer_name
VARCHAR(255) NULL, MODIFY COLUMNreferer_url
VARCHAR(1500) NULL, MODIFY COLUMNconfig_browser_name
VARCHAR(40) NULL, ADD COLUMNconfig_client_type
TINYINT( 1 ) NULL DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL;’.
The error was: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘location_region’ in ‘piwik_log_visit’ -
/var/www/educacion/cau_ce/estadisticasweb/core/Columns/Updater.php:
Error trying to execute the migration ‘ALTER TABLEpiwik_log_visit
MODIFY COLUMNvisitor_count_visits
INT(11) UNSIGNED NOT NULL DEFAULT 0, MODIFY COLUMNvisit_total_interactions
MEDIUMINT UNSIGNED DEFAULT 0, MODIFY COLUMNreferer_name
VARCHAR(255) NULL, MODIFY COLUMNreferer_url
VARCHAR(1500) NULL, MODIFY COLUMNconfig_browser_name
VARCHAR(40) NULL, ADD COLUMNconfig_client_type
TINYINT( 1 ) NULL DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL;’.
The error was: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘location_region’ in ‘piwik_log_visit’ -
/var/www/educacion/cau_ce/estadisticasweb/core/Columns/Updater.php:
Error trying to execute the migration ‘ALTER TABLEpiwik_log_visit
MODIFY COLUMNvisitor_count_visits
INT(11) UNSIGNED NOT NULL DEFAULT 0, MODIFY COLUMNvisit_total_interactions
MEDIUMINT UNSIGNED DEFAULT 0, MODIFY COLUMNreferer_name
VARCHAR(255) NULL, MODIFY COLUMNreferer_url
VARCHAR(1500) NULL, MODIFY COLUMNconfig_browser_name
VARCHAR(40) NULL, ADD COLUMNconfig_client_type
TINYINT( 1 ) NULL DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL;’.
The error was: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘location_region’ in ‘piwik_log_visit’ -
/var/www/educacion/cau_ce/estadisticasweb/core/Columns/Updater.php:
Error trying to execute the migration ‘ALTER TABLEpiwik_log_visit
MODIFY COLUMNvisitor_count_visits
INT(11) UNSIGNED NOT NULL DEFAULT 0, MODIFY COLUMNvisit_total_interactions
MEDIUMINT UNSIGNED DEFAULT 0, MODIFY COLUMNreferer_name
VARCHAR(255) NULL, MODIFY COLUMNreferer_url
VARCHAR(1500) NULL, MODIFY COLUMNconfig_browser_name
VARCHAR(40) NULL, ADD COLUMNconfig_client_type
TINYINT( 1 ) NULL DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL;’.
The error was: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘location_region’ in ‘piwik_log_visit’ -
/var/www/educacion/cau_ce/estadisticasweb/core/Columns/Updater.php:
Error trying to execute the migration ‘ALTER TABLEpiwik_log_visit
MODIFY COLUMNvisitor_count_visits
INT(11) UNSIGNED NOT NULL DEFAULT 0, MODIFY COLUMNvisit_total_interactions
MEDIUMINT UNSIGNED DEFAULT 0, MODIFY COLUMNreferer_name
VARCHAR(255) NULL, MODIFY COLUMNreferer_url
VARCHAR(1500) NULL, MODIFY COLUMNconfig_browser_name
VARCHAR(40) NULL, ADD COLUMNconfig_client_type
TINYINT( 1 ) NULL DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL;’.
The error was: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘location_region’ in ‘piwik_log_visit’ -
/var/www/educacion/cau_ce/estadisticasweb/core/Columns/Updater.php:
Error trying to execute the migration ‘ALTER TABLEpiwik_log_visit
MODIFY COLUMNvisitor_count_visits
INT(11) UNSIGNED NOT NULL DEFAULT 0, MODIFY COLUMNvisit_total_interactions
MEDIUMINT UNSIGNED DEFAULT 0, MODIFY COLUMNreferer_name
VARCHAR(255) NULL, MODIFY COLUMNreferer_url
VARCHAR(1500) NULL, MODIFY COLUMNconfig_browser_name
VARCHAR(40) NULL, ADD COLUMNconfig_client_type
TINYINT( 1 ) NULL DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL;’.
The error was: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘location_region’ in ‘piwik_log_visit’ -
/var/www/educacion/cau_ce/estadisticasweb/core/Columns/Updater.php:
Error trying to execute the migration ‘ALTER TABLEpiwik_log_visit
MODIFY COLUMNvisitor_count_visits
INT(11) UNSIGNED NOT NULL DEFAULT 0, MODIFY COLUMNvisit_total_interactions
MEDIUMINT UNSIGNED DEFAULT 0, MODIFY COLUMNreferer_name
VARCHAR(255) NULL, MODIFY COLUMNreferer_url
VARCHAR(1500) NULL, MODIFY COLUMNconfig_browser_name
VARCHAR(40) NULL, ADD COLUMNconfig_client_type
TINYINT( 1 ) NULL DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL;’.
The error was: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘location_region’ in ‘piwik_log_visit’ -
/var/www/educacion/cau_ce/estadisticasweb/core/Columns/Updater.php:
Error trying to execute the migration ‘ALTER TABLEpiwik_log_visit
MODIFY COLUMNvisitor_count_visits
INT(11) UNSIGNED NOT NULL DEFAULT 0, MODIFY COLUMNvisit_total_interactions
MEDIUMINT UNSIGNED DEFAULT 0, MODIFY COLUMNreferer_name
VARCHAR(255) NULL, MODIFY COLUMNreferer_url
VARCHAR(1500) NULL, MODIFY COLUMNconfig_browser_name
VARCHAR(40) NULL, ADD COLUMNconfig_client_type
TINYINT( 1 ) NULL DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL;’.
The error was: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘location_region’ in ‘piwik_log_visit’ -
/var/www/educacion/cau_ce/estadisticasweb/core/Columns/Updater.php:
Error trying to execute the migration ‘ALTER TABLEpiwik_log_visit
MODIFY COLUMNvisitor_count_visits
INT(11) UNSIGNED NOT NULL DEFAULT 0, MODIFY COLUMNvisit_total_interactions
MEDIUMINT UNSIGNED DEFAULT 0, MODIFY COLUMNreferer_name
VARCHAR(255) NULL, MODIFY COLUMNreferer_url
VARCHAR(1500) NULL, MODIFY COLUMNconfig_browser_name
VARCHAR(40) NULL, ADD COLUMNconfig_client_type
TINYINT( 1 ) NULL DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL;’.
The error was: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘location_region’ in ‘piwik_log_visit’ -
/var/www/educacion/cau_ce/estadisticasweb/core/Columns/Updater.php:
Error trying to execute the migration ‘ALTER TABLEpiwik_log_visit
MODIFY COLUMNvisitor_count_visits
INT(11) UNSIGNED NOT NULL DEFAULT 0, MODIFY COLUMNvisit_total_interactions
MEDIUMINT UNSIGNED DEFAULT 0, MODIFY COLUMNreferer_name
VARCHAR(255) NULL, MODIFY COLUMNreferer_url
VARCHAR(1500) NULL, MODIFY COLUMNconfig_browser_name
VARCHAR(40) NULL, ADD COLUMNconfig_client_type
TINYINT( 1 ) NULL DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL;’.
The error was: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘location_region’ in ‘piwik_log_visit’ -
/var/www/educacion/cau_ce/estadisticasweb/core/Columns/Updater.php:
Error trying to execute the migration ‘ALTER TABLEpiwik_log_visit
MODIFY COLUMNvisitor_count_visits
INT(11) UNSIGNED NOT NULL DEFAULT 0, MODIFY COLUMNvisit_total_interactions
MEDIUMINT UNSIGNED DEFAULT 0, MODIFY COLUMNreferer_name
VARCHAR(255) NULL, MODIFY COLUMNreferer_url
VARCHAR(1500) NULL, MODIFY COLUMNconfig_browser_name
VARCHAR(40) NULL, ADD COLUMNconfig_client_type
TINYINT( 1 ) NULL DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL, MODIFY COLUMNlocation_region
char(3) DEFAULT NULL;’.
The error was: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘location_region’ in ‘piwik_log_visit’
The update completed successfuly, however there were issues during the process. Please read the above descriptions for details. For further help: -
Check the [ Matomo FAQ ] which explains most common errors during update.
-
Ask your system administrator - they may be able to help you with the error which is most likely related to your server or MySQL setup.
-
Matomo has been successfully updated!
It appears you have executed this update with user root:root, while your Matomo files are owned by apache:apache.
To ensure that the Matomo files are readable by the correct user, you may need to run the following command (or a similar command depending on your server configuration):
I can’t continue and it stays on that page that is still waiting for updates in the database.
I had to revert to the previous version to detect why it is giving that failure in the update.
Any idea why this bug?
Kind regards
1 post - 1 participant