@mattab opened this Issue on March 10th 2021 Member

This is not a new issue and is an edge case.

Seen for example at the bottom of secure.helpscout.net/conversation/1447774828/1347025?folderId=1624867

But also other occurrences recently: secure.helpscout.net/search/?query=%22Warning%20-%20unlink%22

Full error message:

[2021-03-09 00:31:25] piwik.WARNING: /var/www/html/core/Db/BatchInsert.php(119): Warning - unlink(/var/www/html/tmp/example.innocraft.cloud/assets/archive_blob_2021_01-example.innocraft.cloud42c8197295a8072807157d3157c0898c.csv): No such file or directory - Matomo 4.2.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) {"trace":[{"function":"errorHandler","class":"Piwik\ErrorHandler","type":"::"},{"file":"/var/www/html/core/Db/BatchInsert.php","line":119,"function":"unlink"},{"file":"/var/www/html/core/DataAccess/ArchiveWriter.php","line":238,"function":"tableInsertBatch","class":"Piwik\Db\BatchInsert","type":"::"},{"file":"/var/www/html/core/DataAccess/ArchiveWriter.php","line":282,"function":"batchInsertSpool","class":"Piwik\DataAccess\ArchiveWriter","type":"->"},{"file":"/var/www/html/core/DataAccess/ArchiveWriter.php","line":265,"function":"flushSpool","class":"Piwik
DataAcce
ss\ArchiveWriter","type":">"},{"file":"/var/www/html/core/DataAccess/ArchiveWriter.php","line":135,"function":"insertRecord","class":"Piwik\DataAccess
ArchiveWriter","type":">"},{"file":"/var/www/html/core/ArchiveProcessor.php","line":323,"function":"insertBlobRecord","class":"Piwik\DataAccess\ArchiveWriter","type":">"},{"file":"/var/www/html/core/ArchiveProcessor.php","line":217,"function":"insertBlobRecord","class":"Piwik
ArchiveProcessor","type":">"},{"file":"/var/www/html/plugins/MediaAnalytics/Archiver.php","line":609,"function":"aggregateDataTableRecords","class":"Piwik\ArchiveProcessor","type":">"},{"file":"/var/www/html/core/Plugin/Archiver.php","line":103,"function":"aggregateMultipleReports","class":"Piwik\Plugins\MediaAnalytics
Archiver","type":">"},{"file":"/var/www/html/core/ArchiveProcessor/PluginsArchiver.php","line":168,"function":"callAggregateMultipleReports","class":"Piwik\Plugin
Archiver","type":"->"},{"file":"/var/www/html/core/ArchiveProcessor
/Loader.php","line":211,"function":"callAggregateAllPlugins","class":"Piwik\ArchiveProcessor\PluginsArchiver","type":">"},{"file":"/var/www/html/core/ArchiveProcessor/Loader.php","line":152,"function":"prepareAllPluginsArchive","class":"Piwik\ArchiveProcessor
Loader","type":">"},{"file":"/var/www/html/core/ArchiveProcessor/Loader.php","line":98,"function":"prepareArchiveImpl","class":"Piwik\ArchiveProcessor\Loader","type":">"},{"file":"/var/www/html/core/Context.php","line":75,"function":"Piwik\ArchiveProcessor\{closure}","class":"Piwik\ArchiveProcessor
Loader","type":">"}]} {"class":"MediaAnalytics","request_id":"23572 example.innocraft.cloud"}

@tsteur suggested

when a cache clear is called to ideally not clear the archive files. or to put them into a different directory that we avoid but this can always be tricky introducing like tmp/archive/.

Powered by GitHub Issue Mirror