Kibana Reporting issue

Hi,

I am facing this issue when I try to create a Kibana dashboard report.

No report generated
ReportingError(code: browser_screenshot_error) "Protocol error (Emulation.setTouchEmulationEnabled): Target closed"

Hi @Mahmoud0x,

Which version of Kibana are you using? Are there any errors listed in the Kibana logs?

Hey @Mahmoud0x also:

  • What is your xpack.reporting.queue.timeout setting set to?
  • How's our RAM and CPU looking when you attempt to generate the report?

Hi @iamjustjordyn

xpack.reporting.queue.timeout has been edited to 30 Minutes and same problem,

Kibana Specs

image

Hi @carly.richmond

i use kibana VERSION: 8.14.3

kibana errors

{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.11.0"},"@timestamp":"2025-03-04T11:05:04.518+03:00","message":"Failed to decrypt attribute \"secrets\" of saved object \"action,20e2a670-a76d-42b4-88a2-4fd64abaf5d7\": Unsupported state or unable to authenticate data","log":{"level":"ERROR","logger":"plugins.encryptedSavedObjects"},"process":{"pid":1600948,"uptime":76311.240377142},"trace":{"id":"b2006106046a9d2da734199db5f68538"},"transaction":{"id":"b90a9172eb34b9fa"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.11.0"},"@timestamp":"2025-03-04T11:05:04.519+03:00","message":"Action '20e2a670-a76d-42b4-88a2-4fd64abaf5d7' failed: Unable to decrypt attribute \"secrets\" of saved object \"action,20e2a670-a76d-42b4-88a2-4fd64abaf5d7\"","log":{"level":"ERROR","logger":"plugins.actions"},"process":{"pid":1600948,"uptime":76311.240821019},"trace":{"id":"b2006106046a9d2da734199db5f68538"},"transaction":{"id":"b90a9172eb34b9fa"}}
{"tags":["actions:.server-log","a26c3078-77f8-4b37-965a-07389794e819","task-run-failed"],"error":{"stack_trace":"Error: Unable to decrypt attribute \"secrets\" of saved object \"action,20e2a670-a76d-42b4-88a2-4fd64abaf5d7\"\n    at EncryptedSavedObjectsService.attributesToDecryptIterator (/usr/share/kibana/node_modules/@kbn/encrypted-saved-objects-plugin/server/crypto/encrypted_saved_objects_service.js:411:15)\n    at attributesToDecryptIterator.throw (<anonymous>)\n    at EncryptedSavedObjectsService.decryptAttributes (/usr/share/kibana/node_modules/@kbn/encrypted-saved-objects-plugin/server/crypto/encrypted_saved_objects_service.js:324:23)\n    at Object.getDecryptedAsInternalUser (/usr/share/kibana/node_modules/@kbn/encrypted-saved-objects-plugin/server/saved_objects/index.js:56:23)\n    at ActionExecutor.getActionInfoInternal (/usr/share/kibana/node_modules/@kbn/actions-plugin/server/lib/action_executor.js:233:25)\n    at /usr/share/kibana/node_modules/@kbn/actions-plugin/server/lib/action_executor.js:291:26\n    at ActionExecutor.execute (/usr/share/kibana/node_modules/@kbn/actions-plugin/server/lib/action_executor.js:74:12)\n    at Object.run (/usr/share/kibana/node_modules/@kbn/actions-plugin/server/lib/task_runner_factory.js:90:28)\n    at TaskManagerRunner.run (/usr/share/kibana/node_modules/@kbn/task-manager-plugin/server/task_running/task_runner.js:308:22)"},"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.11.0"},"@timestamp":"2025-03-04T11:05:04.519+03:00","message":"Task actions:.server-log \"a26c3078-77f8-4b37-965a-07389794e819\" failed: Error: Unable to decrypt attribute \"secrets\" of saved object \"action,20e2a670-a76d-42b4-88a2-4fd64abaf5d7\"","log":{"level":"ERROR","logger":"plugins.taskManager"},"process":{"pid":1600948,"uptime":76311.241218964},"trace":{"id":"b2006106046a9d2da734199db5f68538"},"transaction":{"id":"b90a9172eb34b9fa"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.11.0"},"@timestamp":"2025-03-04T11:05:19.495+03:00","message":"Failed to decrypt attribute \"secrets\" of saved object \"action,20e2a670-a76d-42b4-88a2-4fd64abaf5d7\": Unsupported state or unable to authenticate data","log":{"level":"ERROR","logger":"plugins.encryptedSavedObjects"},"process":{"pid":1600948,"uptime":76326.216951239},"span":{"id":"624ed4ed40414b16"},"trace":{"id":"9b4766a60e4a0a72a8dc79d00a43a2e9"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.11.0"},"@timestamp":"2025-03-04T11:05:19.495+03:00","message":"Action '20e2a670-a76d-42b4-88a2-4fd64abaf5d7' failed: Unable to decrypt attribute \"secrets\" of saved object \"action,20e2a670-a76d-42b4-88a2-4fd64abaf5d7\"","log":{"level":"ERROR","logger":"plugins.actions"},"process":{"pid":1600948,"uptime":76326.217414007},"span":{"id":"b89e5a2db331dafd"},"trace":{"id":"9b4766a60e4a0a72a8dc79d00a43a2e9"}}
{"tags":["actions:.server-log","ac0cd097-96d6-4f52-bb03-a663c259bfd7","task-run-failed"],"error":{"stack_trace":"Error: Unable to decrypt attribute \"secrets\" of saved object \"action,20e2a670-a76d-42b4-88a2-4fd64abaf5d7\"\n    at EncryptedSavedObjectsService.attributesToDecryptIterator (/usr/share/kibana/node_modules/@kbn/encrypted-saved-objects-plugin/server/crypto/encrypted_saved_objects_service.js:411:15)\n    at attributesToDecryptIterator.throw (<anonymous>)\n    at EncryptedSavedObjectsService.decryptAttributes (/usr/share/kibana/node_modules/@kbn/encrypted-saved-objects-plugin/server/crypto/encrypted_saved_objects_service.js:324:23)\n    at Object.getDecryptedAsInternalUser (/usr/share/kibana/node_modules/@kbn/encrypted-saved-objects-plugin/server/saved_objects/index.js:56:23)\n    at ActionExecutor.getActionInfoInternal (/usr/share/kibana/node_modules/@kbn/actions-plugin/server/lib/action_executor.js:233:25)\n    at /usr/share/kibana/node_modules/@kbn/actions-plugin/server/lib/action_executor.js:291:26\n    at ActionExecutor.execute (/usr/share/kibana/node_modules/@kbn/actions-plugin/server/lib/action_executor.js:74:12)\n    at Object.run (/usr/share/kibana/node_modules/@kbn/actions-plugin/server/lib/task_runner_factory.js:90:28)\n    at TaskManagerRunner.run (/usr/share/kibana/node_modules/@kbn/task-manager-plugin/server/task_running/task_runner.js:308:22)"},"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.11.0"},"@timestamp":"2025-03-04T11:05:19.496+03:00","message":"Task actions:.server-log \"ac0cd097-96d6-4f52-bb03-a663c259bfd7\" failed: Error: Unable to decrypt attribute \"secrets\" of saved object \"action,20e2a670-a76d-42b4-88a2-4fd64abaf5d7\"","log":{"level":"ERROR","logger":"plugins.taskManager"},"process":{"pid":1600948,"uptime":76326.217775908},"trace":{"id":"9b4766a60e4a0a72a8dc79d00a43a2e9"},"transaction":{"id":"c36c627b1ae55842"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.11.0"},"@timestamp":"2025-03-04T11:05:31.547+03:00","message":"Failed to decrypt attribute \"secrets\" of saved object \"action,20e2a670-a76d-42b4-88a2-4fd64abaf5d7\": Unsupported state or unable to authenticate data","log":{"level":"ERROR","logger":"plugins.encryptedSavedObjects"},"process":{"pid":1600948,"uptime":76338.268875611},"trace":{"id":"cb40b9088c4c8d5aa682a084ea9e45e5"},"transaction":{"id":"edb6c7b0c3eca7b6"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.11.0"},"@timestamp":"2025-03-04T11:05:31.547+03:00","message":"Action '20e2a670-a76d-42b4-88a2-4fd64abaf5d7' failed: Unable to decrypt attribute \"secrets\" of saved object \"action,20e2a670-a76d-42b4-88a2-4fd64abaf5d7\"","log":{"level":"ERROR","logger":"plugins.actions"},"process":{"pid":1600948,"uptime":76338.269230972},"trace":{"id":"cb40b9088c4c8d5aa682a084ea9e45e5"},"transaction":{"id":"edb6c7b0c3eca7b6"}}
{"tags":["actions:.server-log","dc7ffb64-8800-45a0-862c-4a681681ddeb","task-run-failed"],"error":{"stack_trace":"Error: Unable to decrypt attribute \"secrets\" of saved object \"action,20e2a670-a76d-42b4-88a2-4fd64abaf5d7\"\n    at EncryptedSavedObjectsService.attributesToDecryptIterator (/usr/share/kibana/node_modules/@kbn/encrypted-saved-objects-plugin/server/crypto/encrypted_saved_objects_service.js:411:15)\n    at attributesToDecryptIterator.throw (<anonymous>)\n    at EncryptedSavedObjectsService.decryptAttributes (/usr/share/kibana/node_modules/@kbn/encrypted-saved-objects-plugin/server/crypto/encrypted_saved_objects_service.js:324:23)\n    at Object.getDecryptedAsInternalUser (/usr/share/kibana/node_modules/@kbn/encrypted-saved-objects-plugin/server/saved_objects/index.js:56:23)\n    at ActionExecutor.getActionInfoInternal (/usr/share/kibana/node_modules/@kbn/actions-plugin/server/lib/action_executor.js:233:25)\n    at /usr/share/kibana/node_modules/@kbn/actions-plugin/server/lib/action_executor.js:291:26\n    at ActionExecutor.execute (/usr/share/kibana/node_modules/@kbn/actions-plugin/server/lib/action_executor.js:74:12)\n    at Object.run (/usr/share/kibana/node_modules/@kbn/actions-plugin/server/lib/task_runner_factory.js:90:28)\n    at TaskManagerRunner.run (/usr/share/kibana/node_modules/@kbn/task-manager-plugin/server/task_running/task_runner.js:308:22)"},"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.11.0"},"@timestamp":"2025-03-04T11:05:31.548+03:00","message":"Task actions:.server-log \"dc7ffb64-8800-45a0-862c-4a681681ddeb\" failed: Error: Unable to decrypt attribute \"secrets\" of saved object \"action,20e2a670-a76d-42b4-88a2-4fd64abaf5d7\"","log":{"level":"ERROR","logger":"plugins.taskManager"},"process":{"pid":1600948,"uptime":76338.269635522},"trace":{"id":"cb40b9088c4c8d5aa682a084ea9e45e5"},"transaction":{"id":"edb6c7b0c3eca7b6"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.11.0"},"@timestamp":"2025-03-04T11:06:13.490+03:00","message":"Error occurred while publishing Fleet metrics: RequestAbortedError: Request has been aborted by the user","log":{"level":"WARN","logger":"plugins.fleet"},"process":{"pid":1600948,"uptime":76380.212163756},"trace":{"id":"90cac291c2166c40597ce44e623088cf"},"transaction":{"id":"24f0f3b91ca3fef7"}}

Thanks for sharing @Mahmoud0x. I believe you have a decryption issue justing by the below in the logs:

Are you configuring the reporting.encryptionKey property, or have you changed it recently? Have you trying to access a report in a different space? I would check these things as per the below threads:

  1. Error: Unsupported state or unable to authenticate data
  2. Kibana errors after changing encryptionKey - Failed to decrypt "apiKey" attribute: Unsupported state or unable to authenticate data

Let us know!

Thanks @carly.richmond for your quick response
i faced this issue before: Cannot read existing Message Signing Key pair
so i changed the encryptionKey long time ago according this article, Saving Agent Policy fails with "Cannot read existing Message Signing Key pair" · Issue #176528 · elastic/kibana · GitHub

Ok, did you follow the Resolution steps and the key rotation guide as listed in the issue?

Did you also set the decryptionOnlyKeys setting to have the old key?

If the encryptionKey was changed manually, make sure that the old key is set as decryptionOnlyKeys , e.g.

Thanks @carly.richmond for your support

but its not clear for me how i can set decryptionOnlyKeys,

It can be set in the kibana.yml as covered here in the documentation.

Hi @carly.richmond

Kibana service not working after we set decryptionOnlyKeys

Hi @Mahmoud0x,

What do you mean by "Kibana is not working"? Can you share the error message?