@samjf opened this Pull Request on April 13th 2022 Contributor


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:

  • Create a report that can be generated
  • breakpoint if ($shouldExecuteTask) in Scheduler.php
  • Set $shouldExecuteTask to true.
  • if 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


This Pull Request was closed on April 13th 2022
Powered by GitHub Issue Mirror