# Error While PDF Reporting

**URL:** https://discuss.elastic.co/t/error-while-pdf-reporting/359907
**Category:** Kibana
**Tags:** elastic-stack-reporting
**Created:** [May 21, 2024, 10:06am UTC](https://discuss.elastic.co/t/error-while-pdf-reporting/359907 "2024-05-21T10:06:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![NikoCosmico01](https://avatars.discourse-cdn.com/v4/letter/n/90db22/32.png) [@NikoCosmico01](https://discuss.elastic.co/u/NikoCosmico01)
#### Post date: [May 21, 2024, 10:06am UTC](https://discuss.elastic.co/t/error-while-pdf-reporting/359907/1 "2024-05-21T10:06:42Z")

</div>

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

```auto
[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?

---

<div class="post-metadata">

### Author: ![yago82](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yago82/32/97755_2.png) [@yago82](https://discuss.elastic.co/u/yago82)
#### Post date: [May 22, 2024, 3:00pm UTC](https://discuss.elastic.co/t/error-while-pdf-reporting/359907/2 "2024-05-22T15:00:53Z")

</div>

> [@NikoCosmico01](#):
>
> While I click on Share -\> PDF Reports on kibana I see the following ERROR:
> 
> ```auto
> [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)
> 
> ```

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
