elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.63k stars 8.22k forks source link

[Dashboard/Reporting] Problems with rendering visualization panels into print_layout PDF #99120

Closed tsullivan closed 3 years ago

tsullivan commented 3 years ago

Kibana version: 7.x (7.14.0-SNAPSHOT)

Original install method (e.g. download page, yum, from source, etc.): Running from source

Describe the bug: When you create a PDF export of a dashboard using the "Print layout" option, some visualization types are corrupting pages of the PDF.

Steps to reproduce:

  1. Use a trial or platinum license
  2. Install Sample E-Commerce data
  3. Open the dashboard, and choose Share > PDF Reports > (Check "Optimize for printing") > Generate PDF
  4. Wait for the PDF to finish
  5. View the result PDF (attached)

Expected behavior: This feature is working OK in 7.13

Screenshots (if relevant): PDF file: [eCommerce] Revenue Dashboard.pdf

Errors in browser console (if relevant):

yarn run v1.22.5
$ node scripts/kibana --dev --config config/kibana.xpack.dev.yml
Marking config path as handled: dev
Marking config path as handled: plugins
Marking config path as handled: server
basepath proxy server running at http://localhost:5601/mcv
 watching for changes  (8940 files)
 np bld    log   [13:22:20.286] [info][@kbn/optimizer] initialized, 97 bundles cached
 np bld    log   [13:22:20.288] [warning][@kbn/optimizer] only building [v7light] themes, customize with the KBN_OPTIMIZER_THEMES environment variable
 np bld    log   [13:22:22.634] [info][@kbn/optimizer] starting worker [4 bundles]
 np bld    log   [13:22:22.635] [info][@kbn/optimizer] starting worker [5 bundles]
 np bld    log   [13:22:22.635] [info][@kbn/optimizer] starting worker [5 bundles]
 np bld    log   [13:22:22.636] [info][@kbn/optimizer] starting worker [1 bundle]
 np bld    log   [13:24:03.490] [success][@kbn/optimizer] 15 bundles compiled successfully after 105.3 sec, watching for changes
server    log   [13:24:13.008] [info][plugins-service] Plugin "metricsEntities" is disabled.
server    log   [13:24:13.008] [info][plugins-service] Plugin "timelines" is disabled.
server    log   [13:24:13.085] [warning][config][deprecation] "logging.json" has been deprecated and will be removed in 8.0. To specify log message format moving forward, you can configure the "appender.layout" property for every custom appender in your logging configuration. There is currently no default layout for custom appenders and each one must be declared explicitly. For more details, see https://github.com/elastic/kibana/blob/master/src/core/server/logging/README.mdx
server    log   [13:24:13.085] [warning][config][deprecation] plugins.scanDirs is deprecated and is no longer used
server    log   [13:24:13.085] [warning][config][deprecation] Config key [monitoring.cluster_alerts.email_notifications.email_address] will be required for email notifications to work in 8.0."
server    log   [13:24:13.085] [warning][config][deprecation] "xpack.reporting.roles" is deprecated. Granting reporting privilege through a "reporting_user" role will not be supported starting in 8.0. Please set 'xpack.reporting.roles.enabled' to 'false' and grant reporting privilege to users through feature controls in Management > Security > Roles
server    log   [13:24:13.189] [info][server][NotReady][http] http server running at http://localhost:5601/mcv
server    log   [13:24:13.433] [info][plugins-system] Setting up [106] plugins: [usageCollection,xpackLegacy,telemetryCollectionManager,telemetry,telemetryCollectionXpack,kibanaUsageCollection,taskManager,licensing,globalSearch,globalSearchProviders,banners,code,securityOss,share,newsfeed,mapsEms,mapsLegacy,kibanaLegacy,translations,licenseApiGuard,legacyExport,embeddable,uiActionsEnhanced,expressions,charts,esUiShared,bfetch,data,home,console,consoleExtensions,apmOss,searchprofiler,painlessLab,grokdebugger,management,advancedSettings,savedObjects,visualizations,visTypeVislib,visTypeVega,visTypeTimelion,features,licenseManagement,watcher,visTypeTagcloud,visTypeTable,visTypeMetric,visTypeMarkdown,visTypeXy,tileMap,regionMap,presentationUtil,graph,timelion,dashboard,dashboardEnhanced,visualize,visTypeTimeseries,inputControlVis,indexPatternManagement,discover,discoverEnhanced,savedObjectsManagement,spaces,security,savedObjectsTagging,lens,reporting,canvas,lists,encryptedSavedObjects,dataEnhanced,dashboardMode,cloud,upgradeAssistant,snapshotRestore,fleet,indexManagement,rollup,remoteClusters,crossClusterReplication,indexLifecycleManagement,enterpriseSearch,beatsManagement,transform,ingestPipelines,fileUpload,maps,fileDataVisualizer,eventLog,actions,alerting,triggersActionsUi,stackAlerts,ruleRegistry,observability,osquery,cases,ml,securitySolution,infra,monitoring,logstash,apm,uptime]
server    log   [13:24:13.448] [info][plugins][taskManager] TaskManager is identified by the Kibana UUID: 5b2de169-2785-441b-ae8c-186a1936b17d
server    log   [13:24:13.457] [warning][plugins-system] Plugin code is using asynchronous setup lifecycle. Asynchronous plugins support will be removed in a later version.
server    log   [13:24:14.061] [warning][config][plugins][security] Session cookies will be transmitted over insecure connections. This is not recommended.
[2021-05-03T13:24:14.089-07:00][DEBUG][plugins.reporting] Initializing plugin
server    log   [13:24:14.115] [warning][plugins-system] Plugin lists is using asynchronous setup lifecycle. Asynchronous plugins support will be removed in a later version.
[2021-05-03T13:24:14.116-07:00][DEBUG][plugins.reporting.config] Running on OS: 'Linux Ubuntu 20.04'
[2021-05-03T13:24:14.117-07:00][INFO ][plugins.reporting.config] Chromium sandbox provides an additional layer of protection, and is supported for Linux Ubuntu 20.04 OS. Automatically enabling Chromium sandbox.
server    log   [13:24:14.131] [warning][plugins-system] Plugin fleet is using asynchronous setup lifecycle. Asynchronous plugins support will be removed in a later version.
[2021-05-03T13:24:14.131-07:00][DEBUG][plugins.reporting] Setup complete
server    log   [13:24:14.209] [warning][plugins-system] Plugin fileUpload is using asynchronous setup lifecycle. Asynchronous plugins support will be removed in a later version.
server    log   [13:24:14.243] [warning][plugins-system] Plugin cases is using asynchronous setup lifecycle. Asynchronous plugins support will be removed in a later version.
server    log   [13:24:14.352] [info][monitoring][monitoring][plugins] config sourced from: production cluster
server    log   [13:24:14.719] [info][savedobjects-service] Waiting until all Elasticsearch nodes are compatible with Kibana before starting saved objects migrations...
server    log   [13:24:14.904] [info][savedobjects-service] Starting saved objects migrations
server    log   [13:24:14.936] [info][savedobjects-service] [.kibana] INIT -> CREATE_NEW_TARGET. took: 12ms.
server    log   [13:24:14.939] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET. took: 14ms.
server    log   [13:24:15.106] [info][savedobjects-service] [.kibana] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY. took: 170ms.
server    log   [13:24:15.119] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY. took: 180ms.
server    log   [13:24:15.192] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE. took: 86ms.
server    log   [13:24:15.192] [info][savedobjects-service] [.kibana] Migration completed after 268ms
server    log   [13:24:15.212] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 93ms.
server    log   [13:24:15.213] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 288ms
server    log   [13:24:15.251] [info][plugins-system] Starting [106] plugins: [usageCollection,xpackLegacy,telemetryCollectionManager,telemetry,telemetryCollectionXpack,kibanaUsageCollection,taskManager,licensing,globalSearch,globalSearchProviders,banners,code,securityOss,share,newsfeed,mapsEms,mapsLegacy,kibanaLegacy,translations,licenseApiGuard,legacyExport,embeddable,uiActionsEnhanced,expressions,charts,esUiShared,bfetch,data,home,console,consoleExtensions,apmOss,searchprofiler,painlessLab,grokdebugger,management,advancedSettings,savedObjects,visualizations,visTypeVislib,visTypeVega,visTypeTimelion,features,licenseManagement,watcher,visTypeTagcloud,visTypeTable,visTypeMetric,visTypeMarkdown,visTypeXy,tileMap,regionMap,presentationUtil,graph,timelion,dashboard,dashboardEnhanced,visualize,visTypeTimeseries,inputControlVis,indexPatternManagement,discover,discoverEnhanced,savedObjectsManagement,spaces,security,savedObjectsTagging,lens,reporting,canvas,lists,encryptedSavedObjects,dataEnhanced,dashboardMode,cloud,upgradeAssistant,snapshotRestore,fleet,indexManagement,rollup,remoteClusters,crossClusterReplication,indexLifecycleManagement,enterpriseSearch,beatsManagement,transform,ingestPipelines,fileUpload,maps,fileDataVisualizer,eventLog,actions,alerting,triggersActionsUi,stackAlerts,ruleRegistry,observability,osquery,cases,ml,securitySolution,infra,monitoring,logstash,apm,uptime]
server    log   [13:24:15.462] [warning][plugins-system] Plugin fleet is using asynchronous start lifecycle. Asynchronous plugins support will be removed in a later version.
server    log   [13:24:15.657] [warning][plugins-system] Plugin monitoring is using asynchronous start lifecycle. Asynchronous plugins support will be removed in a later version.
[BABEL] Note: The code generator has deoptimised the styling of /home/tsullivan/elastic/kibana7/x-pack/plugins/security_solution/server/utils/beat_schema/fields.ts as it exceeds the max of 500KB.
server    log   [13:24:18.319] [info][server][Kibana][http] http server running at http://localhost:5601/mcv
[BABEL] Note: The code generator has deoptimised the styling of /home/tsullivan/elastic/kibana7/x-pack/plugins/canvas/server/templates/pitch_presentation.ts as it exceeds the max of 500KB.
server    log   [13:24:18.763] [info][kibana-monitoring][monitoring][monitoring][plugins] Starting monitoring stats collection
server    log   [13:24:18.850] [info][plugins][securitySolution] Dependent plugin setup complete - Starting ManifestTask
[2021-05-03T13:24:19.488-07:00][DEBUG][plugins.reporting] Browser executable: /home/tsullivan/elastic/kibana7/x-pack/plugins/reporting/chromium/headless_shell-linux_x64/headless_shell
[2021-05-03T13:24:19.491-07:00][DEBUG][plugins.reporting.esqueue.queue-worker] ko91wppf62hb0763b566xr3b - Created worker for reporting jobs
[2021-05-03T13:24:19.492-07:00][DEBUG][plugins.reporting] Start complete
server    log   [13:25:46.679] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[2021-05-03T13:26:17.595-07:00][DEBUG][plugins.reporting.queue-job.printablePdf.printable_pdf.create-job] Request uses default Space
[2021-05-03T13:26:17.700-07:00][DEBUG][plugins.reporting] Successfully stored pending job: .reporting-2021-05-02/ko91z8u462hb0763b57xsy7q
[2021-05-03T13:26:17.701-07:00][INFO ][plugins.reporting.queue-job] Queued PDF report: ko91z8u462hb0763b57xsy7q
[2021-05-03T13:26:18.339-07:00][DEBUG][plugins.reporting.esqueue.queue-worker] ko91wppf62hb0763b566xr3b - 1 outstanding jobs returned
[2021-05-03T13:26:18.364-07:00][INFO ][plugins.reporting.esqueue.queue-worker] ko91wppf62hb0763b566xr3b - Job marked as claimed: /.reporting-2021-05-02/_doc/ko91z8u462hb0763b57xsy7q
[2021-05-03T13:26:18.364-07:00][INFO ][plugins.reporting.esqueue.queue-worker] ko91wppf62hb0763b566xr3b - Starting job
[2021-05-03T13:26:18.376-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Request uses default Space
[2021-05-03T13:26:18.393-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Layout: width=undefined height=undefined
[2021-05-03T13:26:18.394-07:00][INFO ][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver] Creating browser page driver
[2021-05-03T13:26:18.394-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver] Chromium launch args set to: --disable-translate,--disable-extensions,--disable-background-networking,--safebrowsing-disable-auto-update,--disable-sync,--metrics-recording-only,--disable-default-apps,--mute-audio,--no-first-run,--user-data-dir=/tmp/chromium-P4iCJM,--disable-gpu,--headless,--hide-scrollbars,--window-size=1950,1200,--disable-setuid-sandbox,about:blank
[2021-05-03T13:26:18.474-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver] Browser version: {"protocolVersion":"1.3","product":"HeadlessChrome/87.0.4272.0","revision":"@ef768c94bcb42dca4c27048615d07efadbb1c1c2","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/87.0.4272.0 Safari/537.36","jsVersion":"8.7.170"}
[2021-05-03T13:26:18.475-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver] Browser page driver created
[2021-05-03T13:26:18.477-07:00][INFO ][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] opening url http://localhost:5601/mcv/app/dashboards#/view/722b74f0-b882-11e8-a6d9-e546fe2bba5f?_g=(filters%3A!()%2CrefreshInterval%3A(pause%3A!f%2Cvalue%3A900000)%2Ctime%3A(from%3Anow-7d%2Cto%3Anow))&_a=(description%3A'Analyze%20mock%20eCommerce%20orders%20and%20revenue'%2Cfilters%3A!()%2CfullScreenMode%3A!f%2Coptions%3A(hidePanelTitles%3A!f%2CuseMargins%3A!t)%2Cpanels%3A!((embeddableConfig%3A(enhancements%3A()%2Cvis%3A(colors%3A('Men!'s%20Accessories'%3A%2382B5D8%2C'Men!'s%20Clothing'%3A%23F9BA8F%2C'Men!'s%20Shoes'%3A%23F29191%2C'Women!'s%20Accessories'%3A%23F4D598%2C'Women!'s%20Clothing'%3A%2370DBED%2C'Women!'s%20Shoes'%3A%23B7DBAB)))%2CgridData%3A(h%3A10%2Ci%3A'1'%2Cw%3A36%2Cx%3A12%2Cy%3A18)%2Cid%3A'37cc8650-b882-11e8-a6d9-e546fe2bba5f'%2CpanelIndex%3A'1'%2Ctype%3Avisualization%2Cversion%3A'7.14.0')%2C(embeddableConfig%3A(enhancements%3A()%2Cvis%3A(colors%3A(FEMALE%3A%236ED0E0%2CMALE%3A%23447EBC)%2ClegendOpen%3A!f))%2CgridData%3A(h%3A11%2Ci%3A'2'%2Cw%3A12%2Cx%3A12%2Cy%3A7)%2Cid%3Aed8436b0-b88b-11e8-a6d9-e546fe2bba5f%2CpanelIndex%3A'2'%2Ctype%3Avisualization%2Cversion%3A'7.14.0')%2C(embeddableConfig%3A(enhancements%3A())%2CgridData%3A(h%3A7%2Ci%3A'3'%2Cw%3A18%2Cx%3A0%2Cy%3A0)%2Cid%3A'09ffee60-b88c-11e8-a6d9-e546fe2bba5f'%2CpanelIndex%3A'3'%2Ctype%3Avisualization%2Cversion%3A'7.14.0')%2C(embeddableConfig%3A(enhancements%3A())%2CgridData%3A(h%3A7%2Ci%3A'4'%2Cw%3A30%2Cx%3A18%2Cy%3A0)%2Cid%3A'1c389590-b88d-11e8-a6d9-e546fe2bba5f'%2CpanelIndex%3A'4'%2Ctype%3Avisualization%2Cversion%3A'7.14.0')%2C(embeddableConfig%3A(enhancements%3A())%2CgridData%3A(h%3A11%2Ci%3A'5'%2Cw%3A48%2Cx%3A0%2Cy%3A28)%2Cid%3A'45e07720-b890-11e8-a6d9-e546fe2bba5f'%2CpanelIndex%3A'5'%2Ctype%3Avisualization%2Cversion%3A'7.14.0')%2C(embeddableConfig%3A(enhancements%3A())%2CgridData%3A(h%3A10%2Ci%3A'6'%2Cw%3A12%2Cx%3A0%2Cy%3A18)%2Cid%3A'10f1a240-b891-11e8-a6d9-e546fe2bba5f'%2CpanelIndex%3A'6'%2Ctype%3Avisualization%2Cversion%3A'7.14.0')%2C(embeddableConfig%3A(enhancements%3A())%2CgridData%3A(h%3A11%2Ci%3A'7'%2Cw%3A12%2Cx%3A0%2Cy%3A7)%2Cid%3Ab80e6540-b891-11e8-a6d9-e546fe2bba5f%2CpanelIndex%3A'7'%2Ctype%3Avisualization%2Cversion%3A'7.14.0')%2C(embeddableConfig%3A(enhancements%3A()%2Cvis%3A(colors%3A('0%20-%2050'%3A%23E24D42%2C'50%20-%2075'%3A%23EAB839%2C'75%20-%20100'%3A%237EB26D)%2CdefaultColors%3A('0%20-%2050'%3A'rgb(165%2C0%2C38)'%2C'50%20-%2075'%3A'rgb(255%2C255%2C190)'%2C'75%20-%20100'%3A'rgb(0%2C104%2C55)')%2ClegendOpen%3A!f))%2CgridData%3A(h%3A11%2Ci%3A'8'%2Cw%3A12%2Cx%3A24%2Cy%3A7)%2Cid%3A'4b3ec120-b892-11e8-a6d9-e546fe2bba5f'%2CpanelIndex%3A'8'%2Ctype%3Avisualization%2Cversion%3A'7.14.0')%2C(embeddableConfig%3A(enhancements%3A()%2Cvis%3A(colors%3A('0%20-%202'%3A%23E24D42%2C'2%20-%203'%3A%23F2C96D%2C'3%20-%204'%3A%239AC48A)%2CdefaultColors%3A('0%20-%202'%3A'rgb(165%2C0%2C38)'%2C'2%20-%203'%3A'rgb(255%2C255%2C190)'%2C'3%20-%204'%3A'rgb(0%2C104%2C55)')%2ClegendOpen%3A!f))%2CgridData%3A(h%3A11%2Ci%3A'9'%2Cw%3A12%2Cx%3A36%2Cy%3A7)%2Cid%3A'9ca7aa90-b892-11e8-a6d9-e546fe2bba5f'%2CpanelIndex%3A'9'%2Ctype%3Avisualization%2Cversion%3A'7.14.0')%2C(embeddableConfig%3A(enhancements%3A())%2CgridData%3A(h%3A18%2Ci%3A'10'%2Cw%3A48%2Cx%3A0%2Cy%3A54)%2Cid%3A'3ba638e0-b894-11e8-a6d9-e546fe2bba5f'%2CpanelIndex%3A'10'%2Ctype%3Asearch%2Cversion%3A'7.14.0')%2C(embeddableConfig%3A(enhancements%3A()%2ChiddenLayers%3A!()%2CisLayerTOCOpen%3A!f%2CmapBuffer%3A(maxLat%3A85.51845%2CmaxLon%3A102.52100999999999%2CminLat%3A-1.9556700000000014%2CminLon%3A-132.67311)%2CmapCenter%3A(lat%3A45.88578%2Clon%3A-15.07605%2Czoom%3A2.11)%2CopenTOCDetails%3A!())%2CgridData%3A(h%3A15%2Ci%3A'11'%2Cw%3A24%2Cx%3A0%2Cy%3A39)%2Cid%3A'2c9c1f60-1909-11e9-919b-ffe5949a18d2'%2CpanelIndex%3A'11'%2Ctype%3Amap%2Cversion%3A'7.14.0')%2C(embeddableConfig%3A(enhancements%3A())%2CgridData%3A(h%3A15%2Ci%3A'12'%2Cw%3A24%2Cx%3A24%2Cy%3A39)%2Cid%3Ab72dd430-bb4d-11e8-9c84-77068524bcab%2CpanelIndex%3A'12'%2Ctype%3Avisualization%2Cversion%3A'7.14.0'))%2Cquery%3A(language%3Akuery%2Cquery%3A'')%2Ctags%3A!()%2CtimeRestore%3A!t%2Ctitle%3A'%5BeCommerce%5D%20Revenue%20Dashboard'%2CviewMode%3Aview)&forceNow=2021-05-03T20%3A26%3A17.596Z
[2021-05-03T13:26:18.569-07:00][ERROR][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console] Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.

[2021-05-03T13:26:18.631-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:log] ^ A single error about an inline script not firing due to content security policy is expected!
[2021-05-03T13:26:18.632-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] waitForSelector .kbnAppWrapper
[2021-05-03T13:26:19.915-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:info] %cDownload the React DevTools for a better development experience: https://fb.me/react-devtools font-weight:bold
[2021-05-03T13:26:20.526-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:log] Plugin visTypeTable is using asynchronous setup lifecycle. Asynchronous plugins support will be removed in a later version.
[2021-05-03T13:26:20.643-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:log] Plugin globalSearchBar is using asynchronous setup lifecycle. Asynchronous plugins support will be removed in a later version.
[2021-05-03T13:26:21.056-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] Reporting user-agent.
[2021-05-03T13:26:21.486-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] waitForSelector .kbnAppWrapper resolved
[2021-05-03T13:26:21.486-07:00][INFO ][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] handled 146 page requests
[2021-05-03T13:26:21.488-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] waiting for elements or items count attribute; or not found to interrupt
[2021-05-03T13:26:21.488-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] waitForSelector [data-shared-item],[data-shared-items-count]
[2021-05-03T13:26:21.631-07:00][WARN ][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Chromium received a non-OK response (404) for request https://feeds-staging.elastic.co/kibana/v7.14.0.json
[2021-05-03T13:26:21.631-07:00][ERROR][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console] Failed to load resource: the server responded with a status of 404 ()
[2021-05-03T13:26:21.631-07:00][ERROR][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console] JSHandle@error
[2021-05-03T13:26:21.742-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] loaded Metric -> (DashboardPanelVersionInUrl:7.0.0-alpha1):
[2021-05-03T13:26:21.743-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] JSHandle@object
[2021-05-03T13:26:21.756-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] loaded Metric -> (DashboardPanelVersionInUrl:7.0.0-alpha1):
[2021-05-03T13:26:21.756-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] JSHandle@object
[2021-05-03T13:26:21.756-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] loaded Metric -> (DashboardPanelVersionInUrl:7.0.0-alpha1):
[2021-05-03T13:26:21.757-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] JSHandle@object
[2021-05-03T13:26:21.757-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] loaded Metric -> (DashboardPanelVersionInUrl:7.0.0-alpha1):
[2021-05-03T13:26:21.757-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] JSHandle@object
[2021-05-03T13:26:21.758-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] loaded Metric -> (DashboardPanelVersionInUrl:7.0.0-alpha1):
[2021-05-03T13:26:21.758-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] JSHandle@object
[2021-05-03T13:26:21.758-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] loaded Metric -> (DashboardPanelVersionInUrl:7.0.0-alpha1):
[2021-05-03T13:26:21.758-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] JSHandle@object
[2021-05-03T13:26:21.759-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] loaded Metric -> (DashboardPanelVersionInUrl:7.0.0-alpha1):
[2021-05-03T13:26:21.759-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] JSHandle@object
[2021-05-03T13:26:21.759-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] loaded Metric -> (DashboardPanelVersionInUrl:7.0.0-alpha1):
[2021-05-03T13:26:21.760-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] JSHandle@object
[2021-05-03T13:26:21.760-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] loaded Metric -> (DashboardPanelVersionInUrl:7.0.0-alpha1):
[2021-05-03T13:26:21.761-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] JSHandle@object
[2021-05-03T13:26:21.762-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] loaded Metric -> (DashboardPanelVersionInUrl:7.0.0-alpha1):
[2021-05-03T13:26:21.763-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] JSHandle@object
[2021-05-03T13:26:21.763-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] loaded Metric -> (DashboardPanelVersionInUrl:7.0.0-alpha1):
[2021-05-03T13:26:21.764-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] JSHandle@object
[2021-05-03T13:26:21.764-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] loaded Metric -> (DashboardPanelVersionInUrl:7.0.0-alpha1):
[2021-05-03T13:26:21.765-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] JSHandle@object
[2021-05-03T13:26:21.766-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] loaded Metric -> (DashboardPanelVersionInUrl:7.14.0):
[2021-05-03T13:26:21.779-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] JSHandle@object
[2021-05-03T13:26:21.780-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] loaded Metric -> (DashboardPanelVersionInUrl:7.14.0):
[2021-05-03T13:26:21.780-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] JSHandle@object
[2021-05-03T13:26:21.780-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] loaded Metric -> (DashboardPanelVersionInUrl:7.14.0):
[2021-05-03T13:26:21.781-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] JSHandle@object
[2021-05-03T13:26:21.781-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] loaded Metric -> (DashboardPanelVersionInUrl:7.14.0):
[2021-05-03T13:26:21.781-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] JSHandle@object
[2021-05-03T13:26:21.781-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] loaded Metric -> (DashboardPanelVersionInUrl:7.14.0):
[2021-05-03T13:26:21.782-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] JSHandle@object
[2021-05-03T13:26:21.782-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] loaded Metric -> (DashboardPanelVersionInUrl:7.14.0):
[2021-05-03T13:26:21.782-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] JSHandle@object
[2021-05-03T13:26:21.782-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] loaded Metric -> (DashboardPanelVersionInUrl:7.14.0):
[2021-05-03T13:26:21.783-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] JSHandle@object
[2021-05-03T13:26:21.783-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] loaded Metric -> (DashboardPanelVersionInUrl:7.14.0):
[2021-05-03T13:26:21.783-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] JSHandle@object
[2021-05-03T13:26:21.783-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] loaded Metric -> (DashboardPanelVersionInUrl:7.14.0):
[2021-05-03T13:26:21.784-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] JSHandle@object
[2021-05-03T13:26:21.784-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] loaded Metric -> (DashboardPanelVersionInUrl:7.14.0):
[2021-05-03T13:26:21.784-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] JSHandle@object
[2021-05-03T13:26:21.784-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] loaded Metric -> (DashboardPanelVersionInUrl:7.14.0):
[2021-05-03T13:26:21.784-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] JSHandle@object
[2021-05-03T13:26:21.785-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] loaded Metric -> (DashboardPanelVersionInUrl:7.14.0):
[2021-05-03T13:26:21.785-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:debug] JSHandle@object
[2021-05-03T13:26:21.849-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:warning] Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments:
[0] _isAMomentObject: true, _isUTC: false, _useUTC: false, _l: undefined, _i: now-7d, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (http://localhost:5601/mcv/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:185377:25)
    at configFromString (http://localhost:5601/mcv/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:187594:19)
    at configFromInput (http://localhost:5601/mcv/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:188036:13)
    at prepareConfig (http://localhost:5601/mcv/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:188019:13)
    at createFromConfig (http://localhost:5601/mcv/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:187986:44)
    at createLocalOrUTC (http://localhost:5601/mcv/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:188080:16)
    at createLocal (http://localhost:5601/mcv/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:188084:16)
    at hooks (http://localhost:5601/mcv/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:185074:29)
    at Function.convertTimeToUTCString (http://localhost:5601/mcv/9007199254740991/bundles/plugin/dashboard/kibana/dashboard.chunk.0.js:3133:54)
    at Function.areTimesEqual (http://localhost:5601/mcv/9007199254740991/bundles/plugin/dashboard/kibana/dashboard.chunk.0.js:3152:17)
[2021-05-03T13:26:21.881-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:warning] Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details.

* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.

Please update the following components: SizeMe(ResponsiveGrid)
[2021-05-03T13:26:21.937-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-console:warning] Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details.

* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.

Please update the following components: ReactGridLayout, Resizable
[2021-05-03T13:26:22.282-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] waitForSelector [data-shared-item],[data-shared-items-count] resolved
[2021-05-03T13:26:22.282-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] evaluate GetNumberOfItems
[2021-05-03T13:26:22.290-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Setting viewport to: width=1950 height=14400 zoom=2
[2021-05-03T13:26:22.292-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] waiting for 12 rendered elements to be in the DOM
[2021-05-03T13:26:22.292-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] evaluate WaitForElementsToBeInDOM
[2021-05-03T13:26:22.479-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] evaluate WaitForElementsToBeInDOM
[2021-05-03T13:26:22.592-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] evaluate WaitForElementsToBeInDOM
[2021-05-03T13:26:22.777-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] evaluate WaitForElementsToBeInDOM
[2021-05-03T13:26:22.886-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] evaluate WaitForElementsToBeInDOM
[2021-05-03T13:26:23.197-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] evaluate WaitForElementsToBeInDOM
[2021-05-03T13:26:23.391-07:00][WARN ][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver] Request to [http://localhost:5601/mcv/internal/bsearch] failed! [net::ERR_ABORTED]. This error will be ignored.
[2021-05-03T13:26:23.394-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] found 12 rendered elements in the DOM
[2021-05-03T13:26:23.395-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] injecting custom css
[2021-05-03T13:26:23.452-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] evaluate InjectCss
[2021-05-03T13:26:23.656-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] positioning elements
[2021-05-03T13:26:23.657-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] evaluate PositionElements
[2021-05-03T13:26:23.859-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] waiting for rendering to complete
[2021-05-03T13:26:23.859-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] evaluate WaitForRender
[2021-05-03T13:26:32.420-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] rendering is complete
[2021-05-03T13:26:32.421-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] getting timeRange
[2021-05-03T13:26:32.421-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] evaluate GetTimeRange
[2021-05-03T13:26:32.421-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] evaluate ElementPositionAndAttributes
[2021-05-03T13:26:32.422-07:00][INFO ][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] timeRange: Apr 26, 2021 @ 13:26:22.704 to May 3, 2021 @ 13:26:22.704
[2021-05-03T13:26:32.424-07:00][INFO ][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] taking screenshots
[2021-05-03T13:26:32.424-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] evaluate GetBrowserDimensions
[2021-05-03T13:26:32.425-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Browser viewport: width=1950 height=14400
[2021-05-03T13:26:32.425-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Capturing item: width=975 height=600 left=0 top=0
[2021-05-03T13:26:32.566-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] evaluate GetBrowserDimensions
[2021-05-03T13:26:32.567-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Browser viewport: width=1950 height=14400
[2021-05-03T13:26:32.567-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Capturing item: width=975 height=600 left=0 top=600
[2021-05-03T13:26:32.720-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] evaluate GetBrowserDimensions
[2021-05-03T13:26:32.722-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Browser viewport: width=1950 height=14400
[2021-05-03T13:26:32.722-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Capturing item: width=975 height=600 left=0 top=1200
[2021-05-03T13:26:32.881-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] evaluate GetBrowserDimensions
[2021-05-03T13:26:32.882-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Browser viewport: width=1950 height=14400
[2021-05-03T13:26:32.882-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Capturing item: width=975 height=600 left=0 top=1800
[2021-05-03T13:26:33.040-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] evaluate GetBrowserDimensions
[2021-05-03T13:26:33.042-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Browser viewport: width=1950 height=14400
[2021-05-03T13:26:33.042-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Capturing item: width=975 height=600 left=0 top=2400
[2021-05-03T13:26:33.188-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] evaluate GetBrowserDimensions
[2021-05-03T13:26:33.190-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Browser viewport: width=1950 height=14400
[2021-05-03T13:26:33.190-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Capturing item: width=975 height=600 left=0 top=3000
[2021-05-03T13:26:33.338-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] evaluate GetBrowserDimensions
[2021-05-03T13:26:33.339-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Browser viewport: width=1950 height=14400
[2021-05-03T13:26:33.339-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Capturing item: width=975 height=600 left=0 top=3600
[2021-05-03T13:26:33.488-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] evaluate GetBrowserDimensions
[2021-05-03T13:26:33.489-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Browser viewport: width=1950 height=14400
[2021-05-03T13:26:33.490-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Capturing item: width=975 height=600 left=0 top=4200
[2021-05-03T13:26:33.692-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] evaluate GetBrowserDimensions
[2021-05-03T13:26:33.693-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Browser viewport: width=1950 height=14400
[2021-05-03T13:26:33.694-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Capturing item: width=975 height=600 left=0 top=4800
[2021-05-03T13:26:33.874-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] evaluate GetBrowserDimensions
[2021-05-03T13:26:33.875-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Browser viewport: width=1950 height=14400
[2021-05-03T13:26:33.875-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Capturing item: width=975 height=600 left=0 top=5400
[2021-05-03T13:26:34.123-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] evaluate GetBrowserDimensions
[2021-05-03T13:26:34.124-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Browser viewport: width=1950 height=14400
[2021-05-03T13:26:34.124-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Capturing item: width=975 height=600 left=0 top=6000
[2021-05-03T13:26:34.265-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] evaluate GetBrowserDimensions
[2021-05-03T13:26:34.266-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Browser viewport: width=1950 height=14400
[2021-05-03T13:26:34.266-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Capturing item: width=975 height=600 left=0 top=6600
[2021-05-03T13:26:34.426-07:00][INFO ][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] screenshots taken: 12
[2021-05-03T13:26:34.427-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Adding image to PDF. Image base64 size: 110692
[2021-05-03T13:26:34.428-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Adding image to PDF. Image base64 size: 85188
[2021-05-03T13:26:34.429-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Adding image to PDF. Image base64 size: 117028
[2021-05-03T13:26:34.429-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Adding image to PDF. Image base64 size: 76480
[2021-05-03T13:26:34.429-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Adding image to PDF. Image base64 size: 95928
[2021-05-03T13:26:34.429-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Adding image to PDF. Image base64 size: 86276
[2021-05-03T13:26:34.429-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Adding image to PDF. Image base64 size: 33360
[2021-05-03T13:26:34.430-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Adding image to PDF. Image base64 size: 722764
[2021-05-03T13:26:34.430-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Adding image to PDF. Image base64 size: 407896
[2021-05-03T13:26:34.430-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Adding image to PDF. Image base64 size: 950572
[2021-05-03T13:26:34.430-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Adding image to PDF. Image base64 size: 129968
[2021-05-03T13:26:34.430-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Adding image to PDF. Image base64 size: 343480
[2021-05-03T13:26:34.431-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Compiling PDF using "print" layout...
[2021-05-03T13:26:34.848-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] Generating PDF Buffer...
[2021-05-03T13:26:34.857-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver] The browser process observer has unsubscribed. Closing the browser...
[2021-05-03T13:26:34.858-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver] deleting chromium user data directory at [/tmp/chromium-P4iCJM]
[2021-05-03T13:26:34.879-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q.browser-driver.headless-browser-process] child process closed
[2021-05-03T13:26:37.488-07:00][DEBUG][plugins.reporting.printable_pdf.execute-job.ko91z8u462hb0763b57xsy7q] PDF buffer byte length: 1978995
[2021-05-03T13:26:37.493-07:00][INFO ][plugins.reporting.esqueue.queue-worker] ko91wppf62hb0763b566xr3b - Job execution completed successfully
[2021-05-03T13:26:37.699-07:00][DEBUG][plugins.reporting] Worker completed: (ko91z8u462hb0763b57xsy7q)
[2021-05-03T13:26:37.700-07:00][INFO ][plugins.reporting.esqueue.queue-worker] ko91wppf62hb0763b566xr3b - Job data saved successfully: /.reporting-2021-05-02/_doc/ko91z8u462hb0763b57xsy7q
elasticmachine commented 3 years ago

Pinging @elastic/kibana-app (Team:KibanaApp)

elasticmachine commented 3 years ago

Pinging @elastic/kibana-presentation (Team:Presentation)

tsullivan commented 3 years ago

Context info about this bug:

When the user selects "Optimize for printing," it changes the layout field of the report job params from preserve to print. This gets used later, when the report job is running async on the server. The screenshot capture pipeline detects the layout type, and injects CSS into the page to force a change of layout.

I think an acceptable bug fix for this issue would be to update the print.css file so that the injected styles work better with the new visualization CSS code.

For longer term, the Reporting plugin should not inject CSS into the page:

tsullivan commented 3 years ago

Duplicate of https://github.com/elastic/kibana/issues/23289

jloleysens commented 3 years ago

@tsullivan I'm not certain this is a duplicate of that old issue, this is possibly something that was introduced recently. It looks like our injected reporting styles no longer have an effect on the dashboard since the wrapping dshAppContainer class was removed. Looks like this was the commit:

https://github.com/elastic/kibana/pull/97017/files#diff-e6d71f1aedc83d64a30ff42aea89dfd2831b067abeaab88999aff57f223899ddL306

~Might be mistaken though!~ Tested this locally and it looks like adding that wrapping element + class back fixes dashboard pdfs. Although we should probably consider a different approach to re-applying injected styles.

tsullivan commented 3 years ago

https://github.com/elastic/kibana/pull/97017/files#diff-e6d71f1aedc83d64a30ff42aea89dfd2831b067abeaab88999aff57f223899ddL306

I agree, it looks like this change introduced the issue that I found, but the bug I linked to is a bit older.