Error after todays update to 5.3.0

Hi,

after the update to 5.3.0 this morning i constantly get these errors:

Cron root@114 /opt/plesk/php/8.2/bin/php /var/www/vhosts/domain.tld/matomo.domain.tld/console core:archive --no-ansi >> /var/www/vhosts/domain.tld/logs/matomo. domain.tld/cron-matomo-archive.log

In Pdo.php line 236:

SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘processing_host’ in
‘field list’

In Pdo.php line 233:

SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘processing_host’ in
‘field list’

core:archive [–url URL] [–skip-idsites [SKIP-IDSITES]] [–skip-all-segments] [–force-idsites [FORCE-IDSITES]] [–skip-segments-today] [–force-periods [FORCE-PERIODS]] [–force-date-last-n [FORCE-DATE-LAST-N]] [–force-date-range [FORCE-DATE-RANGE]] [–force-idsegments FORCE-IDSEGMENTS] [–concurrent-requests-per-website [CONCURRENT-REQUESTS-PER-WEBSITE]] [–concurrent-archivers [CONCURRENT-ARCHIVERS]] [–max-websites-to-process MAX-WEBSITES-TO-PROCESS] [–max-archives-to-process MAX-ARCHIVES-TO-PROCESS] [–stop-processing-after [STOP-PROCESSING-AFTER]] [–disable-scheduled-tasks] [–accept-invalid-ssl-certificate] [–php-cli-options [PHP-CLI-OPTIONS]] [–force-all-websites] [–force-report [FORCE-REPORT]]

What can I do to get rid of this?

Any help will be appreciated :slight_smile:

Best wishes,

Joska

Also experiencing this error message immediately after upgrade from 5.2 to 5.3

Hi @JayKay , @Josch,
Can you try to manually update the database?

$ ./path/to/matomo/console core:update

See:

Hi @heurteph-ei I got the same error and running console core:update worked. Thanks!

Thanks for the reply.
Tried that, but it tells me “Everything is up to date”
Noticed that there was another update for Matomo to 5.3.1, so I ran that. Will see if that clears out the errors.

Not sure if it’s the same problem but while having updated Matomo I now have this screen after logging in


where the error message is "The string General_NewUpdatePiwikX was not loaded in javascript. Make sure it is added in the Translate.getClientSideTranslationKeys hook. "

Clicking on any button does nothing.

What should I do next?
Thank you.

We get the same archive Error, trying the console update command results in this error:

bash-4.4$ php console core:update
ERROR [2025-03-19 09:48:18] 2858714 Uncaught exception: /httpdocs/matomo/libs/Zend/Db/Adapter/Pdo/Abstract.php(144): SQLSTATE[HY000] [2002] No such file or directory [Query: , CLI mode: 1]

In Abstract.php line 144:

SQLSTATE[HY000] [2002] No such file or directory

In Abstract.php line 124:

SQLSTATE[HY000] [2002] No such file or directory

core:update [–yes] [–skip-cache-clear]

I didn’t update anything, but I got the same error today. Everything is exactly as shown in the screenshot. Strangely, it only happens with Firefox, and not even in private mode. Deleting cookies didn’t help.

Update: Figurerd out that the problem was caused by MetaMask Addon. It causes problems like this on several websites.

Same problem here, or nearly the same. All, or nearly all, strings that require translation are replaced by “The string (name of string here) was not loaded in javascript. Make sure it is added in the Translate.getClientSideTranslationKeys hook.” The main dashboard page shows the blue header at the top but below that just a “Loading data…” throbber that runs forever. As a result Matomo is unusable.

This started shortly after the 5.3.0 update, but not immediately upon the 5.3.0 update. The 5.3.1 update (which I was barely able to do, navigating through the error messages) had no effect on this problem. Running console core:update from the command line gives a message that everything is already up to date.

It happens only in LibreWolf (a Firefox fork) and only on one computer. Firefox on another machine does not show the problem. Much as Toru reported, for me it doesn’t even happen in a private window on the same browser where it happens in non-private mode, and clearing cookies has no effect. Storage Inspector claims that the Web site is storing nothing locally except cookies. Logging out and back in, and starting a new session of the same browser, have no effect. I have ad blocking disabled for the Matomo installation, and at least one of the browsers where it still works has ad blocking enabled. I’ve made no known configuration change at client or server end between when it worked and when it stopped working, although as I mentioned, it did stop working shortly after, not immediately upon, the 5.3.0 update.

I am experiencing the same problem that Josch described in the first message of this thread:

Uncaught exception: /my/install/path/libs/Zend/Db/Statement/Pdo.php(236): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'processing_host' in 'SELECT' [Query: , CLI mode: 1]

Running /path/to/php /path/to/matomo/console core:update returns Everything is already up to date.

I tried switching from PHP 8.2 to 8.1 but it made no difference.

The server runs MariaDB 10.11.11.

The system check page reports no problem besides the fact that the last archiving was 7 days ago.

Hi, I faced the same error this week.

After dig into the source code of matomo on Github, I found this file:
https://github.com/matomo-org/matomo/blob/f13f61faec48d2cf6151b62822259d6261064f8d/core/Db/Schema/Mysql.php#L335

Then I’m going to compare the table schema in matomo MySQL database, table name matomo_ archive_invalidations (the “matomo_” is the prefix of my table). I learned that the table lost 2 fields:
processing_host and process_id.

I don’t know why the Matomo upgrade didn’t upgrade the schema of this table correctlly, and the
php <path_of_matomo_dir>/console core:update not detected any issues, instead report everything is up to date.

Here’s my solution to resolve this problem.

USE <YOUR MATOMO DB NAME IN MYSQL>;

ALTER TABLE matomo_archive_invalidations RENAME matomo_archive_invalidations_bak;

CREATE TABLE matomo_archive_invalidations (
  idinvalidation BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
  idarchive INTEGER UNSIGNED NULL,
  name VARCHAR(255) NOT NULL,
  idsite INTEGER UNSIGNED NOT NULL,
  date1 DATE NOT NULL,
  date2 DATE NOT NULL,
  period TINYINT UNSIGNED NOT NULL,
  ts_invalidated DATETIME NULL,
  ts_started DATETIME NULL,
  status TINYINT(1) UNSIGNED DEFAULT 0,
  `report` VARCHAR(255) NULL,
  processing_host VARCHAR(100) NULL DEFAULT NULL,
  process_id VARCHAR(15) NULL DEFAULT NULL,
  PRIMARY KEY(idinvalidation),
  INDEX index_idsite_dates_period_name(idsite, date1, period)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

Then try to execute following matomo command

php <path_of_matomo_dir>/console core:archive

Good lock!

1 Like