Page MenuHomeMiraheze

MatomoAnalytics not working on any wikis
Closed, ResolvedPublic

Description

MatomoAnalytics isn't displaying any stats.

Error in exception.log is:

exec.log:2019-08-09 08:12:41 mw1 vukufwiki: MediaWiki\Shell\Command::execute: /bin/bash '/srv/mediawiki/w/includes/shell/limit.sh' 'GIT_DIR='\''/srv/mediawiki/w/.git/modules/extensions/MatomoAnalytics'\'' '\''/usr/bin/git'\'' '\''show'\'' '\''-s'\'' '\''--format=format:%ct'\'' '\''HEAD'\''' 'MW_INCLUDE_STDERR=;MW_CPU_LIMIT=180; MW_CGROUP='\'''\''; MW_MEM_LIMIT=2097152; MW_FILE_SIZE_LIMIT=102400; MW_WALL_CLOCK_LIMIT=180; MW_USE_LOG_PIPE=yes'

Related Objects

Event Timeline

Reception123 created this task.

and also this in the PHP error log:

2019-08-09 10:33:07 mw1 metawiki: [e855fd9e9530688a0d81bb6c] /wiki/Special:Analytics   ErrorException from line 40 of /srv/mediawiki/w/extensions/MatomoAnalytics/includes/MatomoAnalyticsWiki.php: PHP Warning: Invalid argument supplied for foreach()
#0 /srv/mediawiki/w/extensions/MatomoAnalytics/includes/MatomoAnalyticsWiki.php(40): MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/w/extensions/MatomoAnalytics/includes/MatomoAnalyticsWiki.php(131): MatomoAnalyticsWiki->getData(string)
#2 /srv/mediawiki/w/extensions/MatomoAnalytics/includes/MatomoAnalyticsViewer.php(29): MatomoAnalyticsWiki->getVisitDaysPassed()
#3 /srv/mediawiki/w/extensions/MatomoAnalytics/includes/MatomoAnalyticsViewer.php(50): MatomoAnalyticsViewer->getFormDescriptor(RequestContext)
#4 /srv/mediawiki/w/extensions/MatomoAnalytics/includes/SpecialAnalytics.php(17): MatomoAnalyticsViewer->getForm(RequestContext)
[09-Aug-2019 10:33:07 UTC] PHP Warning:  Invalid argument supplied for foreach() in /srv/mediawiki/w/extensions/MatomoAnalytics/includes/MatomoAnalyticsWiki.php on line 40

Similar to T4626; probably related to memory limits.

Accessing Matomo web UI also indicates

SQLSTATE[HY000] [2006] MySQL server has gone away

Accessing Matomo web UI also indicates

SQLSTATE[HY000] [2006] MySQL server has gone away

So this isn’t an extension issue?

Fixed by

paladox> !log usermod -a -G ssl-cert mysql - db5
Reception123 assigned this task to Paladox.