Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5712

"Got an error reading communication packets"

$
0
0

Hello,

I have a fresh installation of Matomo 4.11.0 running on a Apache2 server with PHP 7.4 FPM behind a reverseproxy.
I was able to add a website and see real time events but opening most of the pages of Matomo (for example Visitors > Overview) gives me the following error: (Translated with Google from German to English)

Oops… there was a problem during the request. The server may have been temporarily overloaded, or you may have requested a report with too much data. Please try again.

PHP log:
[Tue Aug 30 12:42:35.720154 2022] [proxy_fcgi:error] [pid 3193125] [client 10.254.9.4:39936] AH01071: Got error 'PHP message: [analytics] Error in Matomo: Mysqli prepare error: MySQL server has gone awayPHP message: PHP Fatal error: Uncaught Zend_Db_Statement_Mysqli_Exception: Mysqli prepare error: MySQL server has gone away in /var/www/analytics/libs/Zend/Db/Statement/Mysqli.php:77\nStack trace:\n#0 /var/www/analytics/libs/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare()\n#1 /var/www/analytics/libs/Zend/Db/Adapter/Mysqli.php(423): Zend_Db_Statement->__construct()\n#2 /var/www/analytics/libs/Zend/Db/Adapter/Abstract.php(478): Zend_Db_Adapter_Mysqli->prepare()\n#3 /var/www/analytics/core/Session/SaveHandler/DbTable.php(124): Zend_Db_Adapter_Abstract->query()\n#4 /var/www/analytics/core/Session/SaveHandler/DbTable.php(158): Piwik\\Session\\SaveHandler\\DbTable->query()\n#5 [internal function]: Piwik\\Session\\SaveHandler\\DbTable->write()\n#6 /var/www/analytics/libs/Zend/Session.php(731): session_write_close()\n#7 [internal function]: Zend_Session::writeClose()\n#8 {main}\n thrown in /var/www/analytics/...', referer: https://analytics/index.php?module=CoreHome&action=index&idSite=1&period=day&date=yesterday

MariaDB log:
2022-08-30 12:42:21 906 [Warning] Aborted connection 906 to db: 'matomo_analytics' user: 'matomo' host: '10.254.9.5' (Got an error reading communication packets)

MariaDB config (relevant settings only):

max_allowed_packet     = 1G
max_connections        = 500
interactive_timeout     = 6000
innodb_log_buffer_size = 1G
innodb_log_file_size = 4G
wait_timeout          = 28800

These values are currently set very high for testing. The values from the FAQ entry also didn’t help.

When I enable the mysql general log , i can see that matomo is sending queries to the sql server but there don’t seem to be any errors or anything that indicates that somethings wrong.

PHP modules are all up and running:

apc, apcu, bcmath, calendar, Core, ctype, curl, date, dom, exif, FFI, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, intl, json, libxml, mbstring, mcrypt, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, readline, Reflection, session, shmop, SimpleXML, sockets, sodium, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlwriter, xsl, Zend OPcache, zip, zlib

I tried using the PDO\MYSQL and the MYSQLI adapter, but that changed nothing.

What should i do now?

Thank you.

6 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5712

Trending Articles