I am getting the following error while trying to generate PNG,PDF report from Kibana.
Kibana_Error
error 1
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.6.0"},"@timestamp":"2023-06-21T14:28:43.174+07:00","message":"Error in browser console: { message: \"Refused to execute inline script because it violates the following Content Security Policy directive: \"script-src 'self'\". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.\n\", url: \"https://localhost:5601/app/reportingRedirect?forceNow=2023-06-21T07%3A27%3A37.645Z\" }","log":{"level":"ERROR","logger":"plugins.screenshotting.browser-driver.headless-browser-console"},"process":{"pid":2027},"trace":{"id":"ff09da7d11ea955618523ad12e0bb1a1"},"transaction":{"id":"4a67fcdac5db64e8"}}
error 2
No report generated
ReportingError(code: browser_screenshot_error) "Protocol error (Emulation.setDeviceMetricsOverride): Target closed."
Environment
Elastic/Kibana version: 8.7.1
OS: CentOS Linux release 7.9.2009 (Core)
Have increased the timeout,loadDelay (kibana.yml):
xpack.reporting.queue.timeout: 600000
xpack.reporting.capture.loadDelay: 5000
xpack.screenshotting.capture.timeouts.waitForElements: 60000
xpack.screenshotting.capture.timeouts.openUrl: 120000
Other relevant configuration:
server.port: 5601
server.host: "0.0.0.0"
server.ssl.enabled: true
server.ssl.certificate: /home/elastic/server/server.crt
server.ssl.key: /home/elastic/server/server.key