We are receiving errors such as:
Scheduler: Error Unable to create output file
Scheduler: Error ReportRenderer: Could not write to file
This appears to happen when the assets
directory doesn't exist in the tmp
folder when the Scheduled reports task is run via ./console core:run-scheduled-task
. This has been observed for pdf
and csv
.
It appears you can recreate this as such:
if ($shouldExecuteTask)
in Scheduler.php
$shouldExecuteTask
to true.tmp/assets
is missing at \Piwik\ReportRenderer::writeFile
then the error will occur. This will also occur at $this->Error('Unable to create output file: '.$name);
in tcpdf