Error While PDF Reporting

While I click on Share -> PDF Reports on kibana I see the following ERROR:

[2024-05-21T09:59:07.004+00:00][ERROR][plugins.reporting.runTask] Error: ReportingError(code: unknown_error) "Max attempts (3) reached for job lwg83g0f000753347b3o74jt. Failed with: EACCES: permission denied, mkdtemp '/usr/share/kibana/data/chromium-XXXXXX'"
    at mapToReportingError (/usr/share/kibana/node_modules/@kbn/reporting-plugin/common/errors/map_to_reporting_error.js:45:10)
    at Object.run (/usr/share/kibana/node_modules/@kbn/reporting-plugin/server/lib/tasks/execute_report.js:341:79)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at TaskManagerRunner.run (/usr/share/kibana/node_modules/@kbn/task-manager-plugin/server/task_running/task_runner.js:317:170)

What could be the issue?

Hi,

Kibana does not have the necessary permissions to create temporary files in the /usr/share/kibana/data directory

Check the permissions of the /usr/share/kibana/data directory.
Change the owner of the directory: If the owner is not the kibana user, you can change it by running the command chown -R kibana:kibana /usr/share/kibana/data

Regards

1 Like