Matomo archiving fails with three errors seen during archiving running: Matomo 3.14.1

INFO [2020-11-27 09:39:23] 133 - pre-processing segment 12/12 entryPageUrl==https%253A%252F%252Ffind-and-update.company-information.service.gov.uk%252Fclose-a-company%252F [date = last18]
WARNING [2020-11-27 09:40:23] 133 /var/www/html/core/Common.php(297): Notice - unserialize(): Error at offset 0 of 165 bytes - Matomo 3.14.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)

INFO [2020-11-27 09:55:26] 133 - pre-processing segment 13/13 referrerType==website,actions==;referrerUrl!@payments;actions== [date = last28]
WARNING [2020-11-27 09:56:26] 133 /var/www/html/core/Common.php(297): Notice - unserialize(): Error at offset 0 of 165 bytes - Matomo 3.14.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)

INFO [2020-11-27 10:07:30] 133 - pre-processing segment 6/6 referrerType==website [date = last25]
WARNING [2020-11-27 10:08:23] 133 /var/www/html/core/Common.php(297): Notice - unserialize(): Error at offset 0 of 165 bytes - Matomo 3.14.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)

These three errors are summarised at the end of archiving as:

ERROR [2020-11-30 08:13:17] 133 Error unserializing the following response from ?module=API&method=API.get&idSite=7&period=week&date=last21&format=php&trigger=archivephp: 504 Gateway Time-out

504 Gateway Time-out


nginx/1.17.8

ERROR [2020-11-30 08:29:20] 133 Error unserializing the following response from ?module=API&method=API.get&idSite=9&period=week&date=last31&format=php&trigger=archivephp: 504 Gateway Time-out

504 Gateway Time-out


nginx/1.17.8

ERROR [2020-11-30 08:42:07] 133 Error unserializing the following response from ?module=API&method=API.get&idSite=15&period=week&date=last28&format=php&trigger=archivephp: 504 Gateway Time-out

504 Gateway Time-out


nginx/1.17.8

Hi,

When archiving from the commandline, Matomo makes requests to the HTTP API and expects to get some data back. Instead, it receives a 504 Gateway Time-out from your nginx which seems to indicate that the maximum time your PHP scripts are allowed to run is too low.

Hi Lukas,

Thanks for the response - I am new Motamo. Is the time that the PHP scripts are allowed to run a configurable option and if so where is it set?

Many thanks

Steve

Hi,

You can change it for your PHP setup by editing the php.ini config.

The parameter is called max_execution_time (in seconds).