Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edge case: archiving fails with "Warning - unlink(/tmp/assets/archive_blob_2021_01.csv): No such file or directory" #17328

Open
mattab opened this issue Mar 10, 2021 · 0 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.

Comments

@mattab
Copy link
Member

mattab commented Mar 10, 2021

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/.

@mattab mattab added Bug For errors / faults / flaws / inconsistencies etc. Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. labels Mar 10, 2021
@mattab mattab added this to the Backlog (Help wanted) milestone Mar 10, 2021
@tsteur tsteur removed the Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. label Mar 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

2 participants