Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ML] Fixing licensing after server NP cutover #58853

Conversation

jgowdyelastic
Copy link
Member

@jgowdyelastic jgowdyelastic commented Feb 28, 2020

THIS WAS REVERTED.

The PR you're looking for is #59275

Reenables the license checking for server and client sides after server side cutover (#58680)

A shared common mlLicense class has been added which listens to the licensing updates from the licensing plugin.
The server and client then have specialised derived classes which add on checks specific to their needs
Server side

  • API guards for basic and full (trial, platinum or enterprise) license types.
    Basic enabled endpoints:
    /api/ml/fields_service/time_field_range
    /api/ml/file_data_visualizer/analyze_file
    /api/ml/file_data_visualizer/import
    /api/ml/_has_privileges
    /api/ml/ml_capabilities
    /api/ml/ml_node_count
    /api/ml/info
    /api/ml/data_visualizer/get_field_stats/{indexPatternTitle}
    /api/ml/data_visualizer/get_overall_stats/{indexPatternTitle}

Client side:

  • Router resolver checks which are called when rendering each page. All pages related to the file and index datavisualizers require a minimum of a basic license.
  • hasLicenseExpired and isFullLicense general functions which are used in a few places throughout our UI.

Also fixes the management plugin which was being disabled due to its licensing check.

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@jgowdyelastic jgowdyelastic added non-issue Indicates to automation that a pull request should not appear in the release notes release_note:skip Skip the PR/issue when compiling release notes v7.7.0 v8.0.0 labels Mar 2, 2020
@jgowdyelastic jgowdyelastic marked this pull request as ready for review March 2, 2020 16:40
@jgowdyelastic jgowdyelastic requested a review from a team as a code owner March 2, 2020 16:40
@jgowdyelastic
Copy link
Member Author

retest

Copy link
Contributor

@walterra walterra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good overall, just added some question regarding licensing for data visualizer.

x-pack/legacy/plugins/ml/common/license/ml_license.ts Outdated Show resolved Hide resolved
x-pack/plugins/ml/server/routes/data_visualizer.ts Outdated Show resolved Hide resolved
x-pack/plugins/ml/server/routes/data_visualizer.ts Outdated Show resolved Hide resolved
@jgowdyelastic jgowdyelastic force-pushed the fixing-licensing-after-server-cutover branch from 756a443 to 4687504 Compare March 3, 2020 07:56
@jgowdyelastic
Copy link
Member Author

retest

@jgowdyelastic jgowdyelastic force-pushed the fixing-licensing-after-server-cutover branch from 4687504 to e9fdc8c Compare March 3, 2020 11:55
Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with a range of licenses and security settings and LGTM.

@jgowdyelastic
Copy link
Member Author

@elasticmachine merge upstream

Copy link
Contributor

@alvarezmelissa87 alvarezmelissa87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Latest edits LGTM ⚡️

@jgowdyelastic jgowdyelastic merged commit fd5c6c1 into elastic:master Mar 3, 2020
@jgowdyelastic jgowdyelastic deleted the fixing-licensing-after-server-cutover branch March 3, 2020 18:57
jgowdyelastic added a commit to jgowdyelastic/kibana that referenced this pull request Mar 3, 2020
* [ML] Fixing licensing after server NP cutover

* client side refactor

* management refactor

* moving management license check

* adding server side license class

* added common license class

* client sides using license class

* updating server api guards

* fix privileges tests

* updating translations

* fixing disabled tabs on basic license

* refactoring client side license checks

* setting license initialized flag

* fixing license check on index data viz

Co-authored-by: Elastic Machine <[email protected]>
jbudz added a commit to jbudz/kibana that referenced this pull request Mar 3, 2020
jbudz added a commit that referenced this pull request Mar 3, 2020
@kibanamachine
Copy link
Contributor

💔 Build Failed


Test Failures

Kibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/lens/lens_reporting·ts.lens app lens reporting should not cause PDF reports to fail

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 3 times on tracked branches: https://github.com/elastic/kibana/issues/59229

[00:00:00]       │
[00:22:26]         └-: lens app
[00:22:26]           └-> "before all" hook
[00:22:26]           └-> "before all" hook
[00:22:26]             │ debg Starting lens before method
[00:22:26]             │ info [logstash_functional] Loading "mappings.json"
[00:22:26]             │ info [logstash_functional] Loading "data.json.gz"
[00:22:26]             │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.22"
[00:22:26]             │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.20"
[00:22:26]             │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.21"
[00:22:27]             │ info [lens/basic] Loading "mappings.json"
[00:22:27]             │ info [lens/basic] Loading "data.json.gz"
[00:22:27]             │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_1/qG7sMUAqQ4WDh_T6F587hw] deleting index
[00:22:27]             │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_2/BTS24T3aTc654rWtWdtn_A] deleting index
[00:22:27]             │ info [lens/basic] Deleted existing index [".kibana_2",".kibana_1"]
[00:22:27]             │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:22:27]             │ info [lens/basic] Created index ".kibana_1"
[00:22:27]             │ debg [lens/basic] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:22:27]             │ info [lens/basic] Indexed 9 docs into ".kibana_1"
[00:22:27]             │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_1/NTGW-8KYQq-DpDfnfCLGIg] update_mapping [_doc]
[00:22:27]             │ debg Migrating saved objects
[00:22:28]             │ proc [kibana]   log   [14:05:10.287] [info][savedobjects-service] Creating index .kibana_2.
[00:22:28]             │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:22:28]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] updating number_of_replicas to [0] for indices [.kibana_2]
[00:22:28]             │ proc [kibana]   log   [14:05:10.376] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:22:28]             │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_2/1k6W3pIxS-WMvoInlJy6hA] update_mapping [_doc]
[00:22:28]             │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_2/1k6W3pIxS-WMvoInlJy6hA] update_mapping [_doc]
[00:22:28]             │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_2/1k6W3pIxS-WMvoInlJy6hA] update_mapping [_doc]
[00:22:28]             │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_2/1k6W3pIxS-WMvoInlJy6hA] update_mapping [_doc]
[00:22:28]             │ proc [kibana]   log   [14:05:10.582] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:22:28]             │ proc [kibana]   log   [14:05:10.658] [info][savedobjects-service] Finished in 372ms.
[00:22:28]           └-: 
[00:22:28]             └-> "before all" hook
[00:24:23]             └-: lens reporting
[00:24:23]               └-> "before all" hook
[00:24:23]               └-> "before all" hook
[00:24:23]                 │ info [lens/reporting] Loading "mappings.json"
[00:24:23]                 │ info [lens/reporting] Loading "data.json.gz"
[00:24:23]                 │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_1/NTGW-8KYQq-DpDfnfCLGIg] deleting index
[00:24:23]                 │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_2/1k6W3pIxS-WMvoInlJy6hA] deleting index
[00:24:23]                 │ info [lens/reporting] Deleted existing index [".kibana_2",".kibana_1"]
[00:24:23]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:24:23]                 │ info [lens/reporting] Created index ".kibana_1"
[00:24:23]                 │ debg [lens/reporting] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:24:23]                 │ info [lens/reporting] Indexed 13 docs into ".kibana_1"
[00:24:23]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_1/iQtVhLd8S-6g5ilUkzulhQ] update_mapping [_doc]
[00:24:23]                 │ debg Migrating saved objects
[00:24:24]                 │ proc [kibana]   log   [14:07:06.268] [info][savedobjects-service] Creating index .kibana_2.
[00:24:24]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:24:24]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] updating number_of_replicas to [0] for indices [.kibana_2]
[00:24:24]                 │ proc [kibana]   log   [14:07:06.374] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:24:24]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_2/3CM3blk-SWO_fcYvTXGBUQ] update_mapping [_doc]
[00:24:24]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_2/3CM3blk-SWO_fcYvTXGBUQ] update_mapping [_doc]
[00:24:24]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_2/3CM3blk-SWO_fcYvTXGBUQ] update_mapping [_doc]
[00:24:24]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_2/3CM3blk-SWO_fcYvTXGBUQ] update_mapping [_doc]
[00:24:24]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_2/3CM3blk-SWO_fcYvTXGBUQ] update_mapping [_doc]
[00:24:24]                 │ proc [kibana]   log   [14:07:06.647] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:24:25]                 │ proc [kibana]   log   [14:07:06.732] [info][savedobjects-service] Finished in 465ms.
[00:24:25]               └-> should not cause PDF reports to fail
[00:24:25]                 └-> "before each" hook: global before each
[00:24:25]                 │ debg navigating to dashboard url: http://localhost:6141/app/kibana#/dashboards
[00:24:25]                 │ debg Navigate to: http://localhost:6141/app/kibana#/dashboards
[00:24:25]                 │ debg ... sleep(700) start
[00:24:25]                 │ debg browser[INFO] http://localhost:6141/app/kibana?_t=1583330826738#/dashboards 350 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.
[00:24:25]                 │
[00:24:25]                 │ debg browser[INFO] http://localhost:6141/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:26]                 │ debg ... sleep(700) end
[00:24:26]                 │ debg returned from get, calling refresh
[00:24:26]                 │ debg browser[INFO] http://localhost:6141/app/kibana?_t=1583330826738#/dashboards 350 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.
[00:24:26]                 │
[00:24:26]                 │ debg browser[INFO] http://localhost:6141/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:26]                 │ debg currentUrl = http://localhost:6141/app/kibana#/dashboards
[00:24:26]                 │          appUrl = http://localhost:6141/app/kibana#/dashboards
[00:24:26]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:24:29]                 │ debg TestSubjects.find(kibanaChrome)
[00:24:29]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:24:29]                 │ debg browser[INFO] http://localhost:6141/bundles/plugin/data/data.plugin.js 62:139970 "INFO: 2020-03-04T14:07:10Z
[00:24:29]                 │        Adding connection to http://localhost:6141/elasticsearch
[00:24:29]                 │
[00:24:29]                 │      "
[00:24:29]                 │ debg ... sleep(501) start
[00:24:30]                 │ debg ... sleep(501) end
[00:24:30]                 │ debg in navigateTo url = http://localhost:6141/app/kibana#/dashboards?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))
[00:24:30]                 │ debg --- retry.try error: URL changed, waiting for it to settle
[00:24:30]                 │ debg ... sleep(501) start
[00:24:31]                 │ debg ... sleep(501) end
[00:24:31]                 │ debg in navigateTo url = http://localhost:6141/app/kibana#/dashboards?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))
[00:24:31]                 │ debg TestSubjects.exists(statusPageContainer)
[00:24:31]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:24:33]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:24:34]                 │ debg TestSubjects.click(dashboardListingTitleLink-Lens-reportz)
[00:24:34]                 │ debg Find.clickByCssSelector('[data-test-subj="dashboardListingTitleLink-Lens-reportz"]') with timeout=10000
[00:24:34]                 │ debg Find.findByCssSelector('[data-test-subj="dashboardListingTitleLink-Lens-reportz"]') with timeout=10000
[00:24:34]                 │ debg openPdfReportingPanel
[00:24:34]                 │ debg openShareMenuItem title:PDF Reports
[00:24:34]                 │ debg TestSubjects.exists(shareContextMenu)
[00:24:34]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="shareContextMenu"]') with timeout=2500
[00:24:37]                 │ debg --- retry.tryForTime error: [data-test-subj="shareContextMenu"] is not displayed
[00:24:37]                 │ debg TestSubjects.click(shareTopNavButton)
[00:24:37]                 │ debg Find.clickByCssSelector('[data-test-subj="shareTopNavButton"]') with timeout=10000
[00:24:37]                 │ debg Find.findByCssSelector('[data-test-subj="shareTopNavButton"]') with timeout=10000
[00:24:37]                 │ debg Find.findByCssSelector('div.euiContextMenuPanel') with timeout=10000
[00:24:37]                 │ debg TestSubjects.click(sharePanel-PDFReports)
[00:24:37]                 │ debg Find.clickByCssSelector('[data-test-subj="sharePanel-PDFReports"]') with timeout=10000
[00:24:37]                 │ debg Find.findByCssSelector('[data-test-subj="sharePanel-PDFReports"]') with timeout=10000
[00:24:38]                 │ debg Find.waitForElementStale with timeout=10000
[00:24:38]                 │ debg TestSubjects.click(generateReportButton)
[00:24:38]                 │ debg Find.clickByCssSelector('[data-test-subj="generateReportButton"]') with timeout=10000
[00:24:38]                 │ debg Find.findByCssSelector('[data-test-subj="generateReportButton"]') with timeout=10000
[00:24:38]                 │ debg getReportURL
[00:24:38]                 │ debg TestSubjects.getAttribute(downloadCompletedReportButton, href)
[00:24:38]                 │ debg TestSubjects.find(downloadCompletedReportButton)
[00:24:38]                 │ debg Find.findByCssSelector('[data-test-subj="downloadCompletedReportButton"]') with timeout=60000
[00:24:38]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.reporting-2020.03.01] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:24:38]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] updating number_of_replicas to [0] for indices [.reporting-2020.03.01]
[00:24:38]                 │ proc [kibana]   log   [14:07:20.408] [info][queue-job][reporting] Successfully queued job: k7deav9j1c9le62c183hd4yb
[00:24:41]                 │ proc [kibana]   log   [14:07:22.861] [info][esqueue][queue-worker][reporting] k7ddf4k01c9le62c184a31qh - Job marked as claimed: /.reporting-2020.03.01/k7deav9j1c9le62c183hd4yb
[00:24:41]                 │ proc [kibana]   log   [14:07:22.862] [info][esqueue][queue-worker][reporting] k7ddf4k01c9le62c184a31qh - Starting job
[00:24:41]                 │ proc [kibana]   log   [14:07:22.891] [info][browser-driver][execute][k7deav9j1c9le62c183hd4yb][printable_pdf][reporting] Creating browser page driver
[00:24:41]                 │ proc [kibana]   log   [14:07:23.011] [info][execute][k7deav9j1c9le62c183hd4yb][printable_pdf][reporting] opening url http://localhost:6141/app/kibana?_t=1583330826738#/dashboard/c27849f0-e523-11e9-9af5-2b261e1eb063?_g=(filters%3A!()%2CrefreshInterval%3A(pause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3Anow-15m%2Cto%3Anow))&_a=(description%3A''%2Cfilters%3A!()%2CfullScreenMode%3A!f%2Coptions%3A(hidePanelTitles%3A!f%2CuseMargins%3A!t)%2Cpanels%3A!((embeddableConfig%3A()%2CgridData%3A(h%3A15%2Ci%3Ae5966143-f050-40eb-b4e7-f94469c1426c%2Cw%3A24%2Cx%3A0%2Cy%3A0)%2Cid%3A'74b0f140-e523-11e9-9af5-2b261e1eb063'%2CpanelIndex%3Ae5966143-f050-40eb-b4e7-f94469c1426c%2Ctype%3Alens%2Cversion%3A'8.0.0-SNAPSHOT')%2C(embeddableConfig%3A()%2CgridData%3A(h%3A15%2Ci%3Af9ff2513-2de9-4944-a8d1-a9fead4b020d%2Cw%3A24%2Cx%3A24%2Cy%3A0)%2Cid%3A'84320f00-e523-11e9-9af5-2b261e1eb063'%2CpanelIndex%3Af9ff2513-2de9-4944-a8d1-a9fead4b020d%2Ctype%3Alens%2Cversion%3A'8.0.0-SNAPSHOT')%2C(embeddableConfig%3A()%2CgridData%3A(h%3A15%2Ci%3Ab62d7d36-83ca-415b-8971-34d891b09a1a%2Cw%3A24%2Cx%3A0%2Cy%3A15)%2Cid%3A'9325b9d0-e523-11e9-9af5-2b261e1eb063'%2CpanelIndex%3Ab62d7d36-83ca-415b-8971-34d891b09a1a%2Ctype%3Alens%2Cversion%3A'8.0.0-SNAPSHOT'))%2Cquery%3A(language%3Akuery%2Cquery%3A'')%2CtimeRestore%3A!f%2Ctitle%3A'Lens%20reportz'%2CviewMode%3Aview)&forceNow=2020-03-04T14%3A07%3A20.262Z
[00:24:41]                 │ proc [kibana]   log   [14:07:23.124] [error][browser-driver][execute][headless-browser-console][k7deav9j1c9le62c183hd4yb][printable_pdf][reporting] 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.
[00:24:41]                 │ proc [kibana] 
[00:24:49]                 │ proc [kibana]   log   [14:07:30.745] [error][execute][k7deav9j1c9le62c183hd4yb][printable_pdf][reporting] Error: TypeError: Cannot read property 'unsubscribe' of undefined
[00:24:49]                 │ proc [kibana]     at SafeSubscriber._next (http://localhost:6141/bundles/kibana.bundle.js:2:2008458)
[00:24:49]                 │ proc [kibana]     at SafeSubscriber.__tryOrUnsub (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:11563)
[00:24:49]                 │ proc [kibana]     at SafeSubscriber.next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:10003)
[00:24:49]                 │ proc [kibana]     at Subscriber._next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:8392)
[00:24:49]                 │ proc [kibana]     at Subscriber.next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:7989)
[00:24:49]                 │ proc [kibana]     at MapSubscriber._next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:27303)
[00:24:49]                 │ proc [kibana]     at MapSubscriber.Subscriber.next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:7989)
[00:24:49]                 │ proc [kibana]     at FilterSubscriber._next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:32187)
[00:24:49]                 │ proc [kibana]     at FilterSubscriber.Subscriber.next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:7989)
[00:24:49]                 │ proc [kibana]     at PairwiseSubscriber._next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:245063)
[00:24:49]                 │ proc [kibana]   log   [14:07:30.756] [error][error][esqueue][queue-worker][reporting] k7ddf4k01c9le62c184a31qh - Failure occurred on job k7deav9j1c9le62c183hd4yb: Error: TypeError: Cannot read property 'unsubscribe' of undefined
[00:24:49]                 │ proc [kibana]     at SafeSubscriber._next (http://localhost:6141/bundles/kibana.bundle.js:2:2008458)
[00:24:49]                 │ proc [kibana]     at SafeSubscriber.__tryOrUnsub (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:11563)
[00:24:49]                 │ proc [kibana]     at SafeSubscriber.next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:10003)
[00:24:49]                 │ proc [kibana]     at Subscriber._next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:8392)
[00:24:49]                 │ proc [kibana]     at Subscriber.next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:7989)
[00:24:49]                 │ proc [kibana]     at MapSubscriber._next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:27303)
[00:24:49]                 │ proc [kibana]     at MapSubscriber.Subscriber.next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:7989)
[00:24:49]                 │ proc [kibana]     at FilterSubscriber._next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:32187)
[00:24:49]                 │ proc [kibana]     at FilterSubscriber.Subscriber.next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:7989)
[00:24:49]                 │ proc [kibana]     at PairwiseSubscriber._next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:245063)
[00:24:49]                 │ proc [kibana]   log   [14:07:30.757] [warning][esqueue][queue-worker][reporting] k7ddf4k01c9le62c184a31qh - Failing job k7deav9j1c9le62c183hd4yb
[00:24:49]                 │ proc [kibana]   log   [14:07:30.806] [error][execute][k7deav9j1c9le62c183hd4yb][printable_pdf][reporting] waitForSelector .application failed on http://localhost:6141/app/kibana?_t=1583330826738#/dashboard/c27849f0-e523-11e9-9af5-2b261e1eb063?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(description:'',filters:!(),fullScreenMode:!f,options:(hidePanelTitles:!f,useMargins:!t),panels:!((embeddableConfig:(),gridData:(h:15,i:e5966143-f050-40eb-b4e7-f94469c1426c,w:24,x:0,y:0),id:'74b0f140-e523-11e9-9af5-2b261e1eb063',panelIndex:e5966143-f050-40eb-b4e7-f94469c1426c,type:lens,version:'8.0.0-SNAPSHOT'),(embeddableConfig:(),gridData:(h:15,i:f9ff2513-2de9-4944-a8d1-a9fead4b020d,w:24,x:24,y:0),id:'84320f00-e523-11e9-9af5-2b261e1eb063',panelIndex:f9ff2513-2de9-4944-a8d1-a9fead4b020d,type:lens,version:'8.0.0-SNAPSHOT'),(embeddableConfig:(),gridData:(h:15,i:b62d7d36-83ca-415b-8971-34d891b09a1a,w:24,x:0,y:15),id:'9325b9d0-e523-11e9-9af5-2b261e1eb063',panelIndex:b62d7d36-83ca-415b-8971-34d891b09a1a,type:lens,version:'8.0.0-SNAPSHOT')),query:(language:kuery,query:''),timeRestore:!f,title:'Lens%20reportz',viewMode:view)&forceNow=2020-03-04T14:07:20.262Z
[00:24:49]                 │ proc [kibana]   log   [14:07:30.809] [error][browser-driver][execute][k7deav9j1c9le62c183hd4yb][printable_pdf][reporting] error deleting user data directory at [/tmp/chromium-zHMjEh]: [Error: Cannot delete files/directories outside the current working directory. Can be overridden with the `force` option.]
[00:24:49]                 │ proc [kibana]   log   [14:07:30.811] [info][esqueue][queue-worker][reporting] k7ddf4k01c9le62c184a31qh - Job marked as failed: /.reporting-2020.03.01/k7deav9j1c9le62c183hd4yb
[00:25:39]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="downloadCompletedReportButton"])
[00:25:39]                 │      Wait timed out after 61203ms
[00:25:40]                 │ debg TestSubjects.getAttribute(downloadCompletedReportButton, href)
[00:25:40]                 │ debg TestSubjects.find(downloadCompletedReportButton)
[00:25:40]                 │ debg Find.findByCssSelector('[data-test-subj="downloadCompletedReportButton"]') with timeout=60000
[00:26:41]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="downloadCompletedReportButton"])
[00:26:41]                 │      Wait timed out after 61167ms
[00:26:41]                 │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/lens app  lens reporting should not cause PDF reports to fail.png"
[00:26:42]                 │ info Current URL is: http://localhost:6141/app/kibana#/dashboard/c27849f0-e523-11e9-9af5-2b261e1eb063?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(description:%27%27,filters:!(),fullScreenMode:!f,options:(hidePanelTitles:!f,useMargins:!t),panels:!((embeddableConfig:(),gridData:(h:15,i:e5966143-f050-40eb-b4e7-f94469c1426c,w:24,x:0,y:0),id:%2774b0f140-e523-11e9-9af5-2b261e1eb063%27,panelIndex:e5966143-f050-40eb-b4e7-f94469c1426c,type:lens,version:%278.0.0-SNAPSHOT%27),(embeddableConfig:(),gridData:(h:15,i:f9ff2513-2de9-4944-a8d1-a9fead4b020d,w:24,x:24,y:0),id:%2784320f00-e523-11e9-9af5-2b261e1eb063%27,panelIndex:f9ff2513-2de9-4944-a8d1-a9fead4b020d,type:lens,version:%278.0.0-SNAPSHOT%27),(embeddableConfig:(),gridData:(h:15,i:b62d7d36-83ca-415b-8971-34d891b09a1a,w:24,x:0,y:15),id:%279325b9d0-e523-11e9-9af5-2b261e1eb063%27,panelIndex:b62d7d36-83ca-415b-8971-34d891b09a1a,type:lens,version:%278.0.0-SNAPSHOT%27)),query:(language:kuery,query:%27%27),timeRestore:!f,title:%27Lens%20reportz%27,viewMode:view)
[00:26:42]                 │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/lens app  lens reporting should not cause PDF reports to fail.html
[00:26:42]                 └- ✖ fail: "lens app  lens reporting should not cause PDF reports to fail"
[00:26:42]                 │

Stack Trace

Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="downloadCompletedReportButton"])
Wait timed out after 61167ms
    at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:841:17
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at onFailure (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:28:9)
    at retryForSuccess (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:68:13)

Kibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/lens/lens_reporting·ts.lens app lens reporting should not cause PDF reports to fail

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 3 times on tracked branches: https://github.com/elastic/kibana/issues/59229

[00:00:00]       │
[00:24:30]         └-: lens app
[00:24:30]           └-> "before all" hook
[00:24:30]           └-> "before all" hook
[00:24:30]             │ debg Starting lens before method
[00:24:30]             │ info [logstash_functional] Loading "mappings.json"
[00:24:30]             │ info [logstash_functional] Loading "data.json.gz"
[00:24:30]             │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.22"
[00:24:30]             │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.20"
[00:24:30]             │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.21"
[00:24:32]             │ info [lens/basic] Loading "mappings.json"
[00:24:32]             │ info [lens/basic] Loading "data.json.gz"
[00:24:32]             │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_2/aek_GtO2R0aeF4pvfrr4PA] deleting index
[00:24:32]             │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_1/IbA1s8A0QCe7-T5P8wIv1Q] deleting index
[00:24:32]             │ info [lens/basic] Deleted existing index [".kibana_2",".kibana_1"]
[00:24:32]             │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:24:32]             │ info [lens/basic] Created index ".kibana_1"
[00:24:32]             │ debg [lens/basic] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:24:32]             │ info [lens/basic] Indexed 9 docs into ".kibana_1"
[00:24:32]             │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_1/FsqaZCq2QUyVadX9frVDZg] update_mapping [_doc]
[00:24:32]             │ debg Migrating saved objects
[00:24:33]             │ proc [kibana]   log   [13:36:11.948] [info][savedobjects-service] Creating index .kibana_2.
[00:24:33]             │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:24:33]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] updating number_of_replicas to [0] for indices [.kibana_2]
[00:24:33]             │ proc [kibana]   log   [13:36:12.053] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:24:33]             │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_2/EMpyqgggTFqDzDcpGrBFRg] update_mapping [_doc]
[00:24:33]             │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_2/EMpyqgggTFqDzDcpGrBFRg] update_mapping [_doc]
[00:24:33]             │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_2/EMpyqgggTFqDzDcpGrBFRg] update_mapping [_doc]
[00:24:33]             │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_2/EMpyqgggTFqDzDcpGrBFRg] update_mapping [_doc]
[00:24:33]             │ proc [kibana]   log   [13:36:12.274] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:24:33]             │ proc [kibana]   log   [13:36:12.330] [info][savedobjects-service] Finished in 384ms.
[00:24:33]           └-: 
[00:24:33]             └-> "before all" hook
[00:26:41]             └-: lens reporting
[00:26:41]               └-> "before all" hook
[00:26:41]               └-> "before all" hook
[00:26:41]                 │ info [lens/reporting] Loading "mappings.json"
[00:26:41]                 │ info [lens/reporting] Loading "data.json.gz"
[00:26:41]                 │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_1/FsqaZCq2QUyVadX9frVDZg] deleting index
[00:26:41]                 │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_2/EMpyqgggTFqDzDcpGrBFRg] deleting index
[00:26:41]                 │ info [lens/reporting] Deleted existing index [".kibana_2",".kibana_1"]
[00:26:41]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:26:41]                 │ info [lens/reporting] Created index ".kibana_1"
[00:26:41]                 │ debg [lens/reporting] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:26:41]                 │ info [lens/reporting] Indexed 13 docs into ".kibana_1"
[00:26:41]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_1/8n7TyiziSlyCjPZU9oLBNg] update_mapping [_doc]
[00:26:41]                 │ debg Migrating saved objects
[00:26:42]                 │ proc [kibana]   log   [13:38:21.570] [info][savedobjects-service] Creating index .kibana_2.
[00:26:42]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:26:42]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] updating number_of_replicas to [0] for indices [.kibana_2]
[00:26:42]                 │ proc [kibana]   log   [13:38:21.644] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:26:42]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_2/0fAzWBo8SriOiDzA1ZgddA] update_mapping [_doc]
[00:26:43]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_2/0fAzWBo8SriOiDzA1ZgddA] update_mapping [_doc]
[00:26:43]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_2/0fAzWBo8SriOiDzA1ZgddA] update_mapping [_doc]
[00:26:43]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_2/0fAzWBo8SriOiDzA1ZgddA] update_mapping [_doc]
[00:26:43]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.kibana_2/0fAzWBo8SriOiDzA1ZgddA] update_mapping [_doc]
[00:26:43]                 │ proc [kibana]   log   [13:38:21.871] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:26:43]                 │ proc [kibana]   log   [13:38:21.934] [info][savedobjects-service] Finished in 365ms.
[00:26:43]               └-> should not cause PDF reports to fail
[00:26:43]                 └-> "before each" hook: global before each
[00:26:43]                 │ debg navigating to dashboard url: http://localhost:6141/app/kibana#/dashboards
[00:26:43]                 │ debg Navigate to: http://localhost:6141/app/kibana#/dashboards
[00:26:43]                 │ debg ... sleep(700) start
[00:26:43]                 │ debg browser[INFO] http://localhost:6141/app/kibana?_t=1583329101941#/dashboards 350 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.
[00:26:43]                 │
[00:26:43]                 │ debg browser[INFO] http://localhost:6141/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:26:44]                 │ debg ... sleep(700) end
[00:26:44]                 │ debg returned from get, calling refresh
[00:26:44]                 │ debg browser[INFO] http://localhost:6141/app/kibana?_t=1583329101941#/dashboards 350 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.
[00:26:44]                 │
[00:26:44]                 │ debg browser[INFO] http://localhost:6141/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:26:45]                 │ debg currentUrl = http://localhost:6141/app/kibana#/dashboards
[00:26:45]                 │          appUrl = http://localhost:6141/app/kibana#/dashboards
[00:26:45]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:26:48]                 │ debg TestSubjects.find(kibanaChrome)
[00:26:48]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:26:48]                 │ debg browser[INFO] http://localhost:6141/bundles/plugin/data/data.plugin.js 62:139970 "INFO: 2020-03-04T13:38:26Z
[00:26:48]                 │        Adding connection to http://localhost:6141/elasticsearch
[00:26:48]                 │
[00:26:48]                 │      "
[00:26:48]                 │ debg ... sleep(501) start
[00:26:49]                 │ debg ... sleep(501) end
[00:26:49]                 │ debg in navigateTo url = http://localhost:6141/app/kibana#/dashboards?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))
[00:26:49]                 │ debg --- retry.try error: URL changed, waiting for it to settle
[00:26:49]                 │ debg ... sleep(501) start
[00:26:50]                 │ debg ... sleep(501) end
[00:26:50]                 │ debg in navigateTo url = http://localhost:6141/app/kibana#/dashboards?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))
[00:26:50]                 │ debg TestSubjects.exists(statusPageContainer)
[00:26:50]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:26:53]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:26:53]                 │ debg TestSubjects.click(dashboardListingTitleLink-Lens-reportz)
[00:26:53]                 │ debg Find.clickByCssSelector('[data-test-subj="dashboardListingTitleLink-Lens-reportz"]') with timeout=10000
[00:26:53]                 │ debg Find.findByCssSelector('[data-test-subj="dashboardListingTitleLink-Lens-reportz"]') with timeout=10000
[00:26:53]                 │ debg openPdfReportingPanel
[00:26:53]                 │ debg openShareMenuItem title:PDF Reports
[00:26:53]                 │ debg TestSubjects.exists(shareContextMenu)
[00:26:53]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="shareContextMenu"]') with timeout=2500
[00:26:56]                 │ debg --- retry.tryForTime error: [data-test-subj="shareContextMenu"] is not displayed
[00:26:56]                 │ debg TestSubjects.click(shareTopNavButton)
[00:26:56]                 │ debg Find.clickByCssSelector('[data-test-subj="shareTopNavButton"]') with timeout=10000
[00:26:56]                 │ debg Find.findByCssSelector('[data-test-subj="shareTopNavButton"]') with timeout=10000
[00:26:56]                 │ debg Find.findByCssSelector('div.euiContextMenuPanel') with timeout=10000
[00:26:57]                 │ debg TestSubjects.click(sharePanel-PDFReports)
[00:26:57]                 │ debg Find.clickByCssSelector('[data-test-subj="sharePanel-PDFReports"]') with timeout=10000
[00:26:57]                 │ debg Find.findByCssSelector('[data-test-subj="sharePanel-PDFReports"]') with timeout=10000
[00:26:57]                 │ debg Find.waitForElementStale with timeout=10000
[00:26:57]                 │ debg TestSubjects.click(generateReportButton)
[00:26:57]                 │ debg Find.clickByCssSelector('[data-test-subj="generateReportButton"]') with timeout=10000
[00:26:57]                 │ debg Find.findByCssSelector('[data-test-subj="generateReportButton"]') with timeout=10000
[00:26:57]                 │ debg getReportURL
[00:26:57]                 │ debg TestSubjects.getAttribute(downloadCompletedReportButton, href)
[00:26:57]                 │ debg TestSubjects.find(downloadCompletedReportButton)
[00:26:57]                 │ debg Find.findByCssSelector('[data-test-subj="downloadCompletedReportButton"]') with timeout=60000
[00:26:57]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] [.reporting-2020.03.01] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:26:57]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1583325505613138610] updating number_of_replicas to [0] for indices [.reporting-2020.03.01]
[00:26:57]                 │ proc [kibana]   log   [13:38:36.218] [info][queue-job][reporting] Successfully queued job: k7dd9wx10btve62c181bvomq
[00:26:59]                 │ proc [kibana]   log   [13:38:38.101] [info][esqueue][queue-worker][reporting] k7dcb6y50btve62c181zfln3 - Job marked as claimed: /.reporting-2020.03.01/k7dd9wx10btve62c181bvomq
[00:26:59]                 │ proc [kibana]   log   [13:38:38.102] [info][esqueue][queue-worker][reporting] k7dcb6y50btve62c181zfln3 - Starting job
[00:26:59]                 │ proc [kibana]   log   [13:38:38.134] [info][browser-driver][execute][k7dd9wx10btve62c181bvomq][printable_pdf][reporting] Creating browser page driver
[00:26:59]                 │ proc [kibana]   log   [13:38:38.252] [info][execute][k7dd9wx10btve62c181bvomq][printable_pdf][reporting] opening url http://localhost:6141/app/kibana?_t=1583329101941#/dashboard/c27849f0-e523-11e9-9af5-2b261e1eb063?_g=(filters%3A!()%2CrefreshInterval%3A(pause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3Anow-15m%2Cto%3Anow))&_a=(description%3A''%2Cfilters%3A!()%2CfullScreenMode%3A!f%2Coptions%3A(hidePanelTitles%3A!f%2CuseMargins%3A!t)%2Cpanels%3A!((embeddableConfig%3A()%2CgridData%3A(h%3A15%2Ci%3Ae5966143-f050-40eb-b4e7-f94469c1426c%2Cw%3A24%2Cx%3A0%2Cy%3A0)%2Cid%3A'74b0f140-e523-11e9-9af5-2b261e1eb063'%2CpanelIndex%3Ae5966143-f050-40eb-b4e7-f94469c1426c%2Ctype%3Alens%2Cversion%3A'8.0.0-SNAPSHOT')%2C(embeddableConfig%3A()%2CgridData%3A(h%3A15%2Ci%3Af9ff2513-2de9-4944-a8d1-a9fead4b020d%2Cw%3A24%2Cx%3A24%2Cy%3A0)%2Cid%3A'84320f00-e523-11e9-9af5-2b261e1eb063'%2CpanelIndex%3Af9ff2513-2de9-4944-a8d1-a9fead4b020d%2Ctype%3Alens%2Cversion%3A'8.0.0-SNAPSHOT')%2C(embeddableConfig%3A()%2CgridData%3A(h%3A15%2Ci%3Ab62d7d36-83ca-415b-8971-34d891b09a1a%2Cw%3A24%2Cx%3A0%2Cy%3A15)%2Cid%3A'9325b9d0-e523-11e9-9af5-2b261e1eb063'%2CpanelIndex%3Ab62d7d36-83ca-415b-8971-34d891b09a1a%2Ctype%3Alens%2Cversion%3A'8.0.0-SNAPSHOT'))%2Cquery%3A(language%3Akuery%2Cquery%3A'')%2CtimeRestore%3A!f%2Ctitle%3A'Lens%20reportz'%2CviewMode%3Aview)&forceNow=2020-03-04T13%3A38%3A36.132Z
[00:26:59]                 │ proc [kibana]   log   [13:38:38.364] [error][browser-driver][execute][headless-browser-console][k7dd9wx10btve62c181bvomq][printable_pdf][reporting] 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.
[00:26:59]                 │ proc [kibana] 
[00:27:08]                 │ proc [kibana]   log   [13:38:46.717] [error][execute][k7dd9wx10btve62c181bvomq][printable_pdf][reporting] Error: TypeError: Cannot read property 'unsubscribe' of undefined
[00:27:08]                 │ proc [kibana]     at SafeSubscriber._next (http://localhost:6141/bundles/kibana.bundle.js:2:2008458)
[00:27:08]                 │ proc [kibana]     at SafeSubscriber.__tryOrUnsub (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:11563)
[00:27:08]                 │ proc [kibana]     at SafeSubscriber.next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:10003)
[00:27:08]                 │ proc [kibana]     at Subscriber._next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:8392)
[00:27:08]                 │ proc [kibana]     at Subscriber.next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:7989)
[00:27:08]                 │ proc [kibana]     at MapSubscriber._next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:27303)
[00:27:08]                 │ proc [kibana]     at MapSubscriber.Subscriber.next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:7989)
[00:27:08]                 │ proc [kibana]     at FilterSubscriber._next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:32187)
[00:27:08]                 │ proc [kibana]     at FilterSubscriber.Subscriber.next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:7989)
[00:27:08]                 │ proc [kibana]     at PairwiseSubscriber._next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:245063)
[00:27:08]                 │ proc [kibana]   log   [13:38:46.722] [error][error][esqueue][queue-worker][reporting] k7dcb6y50btve62c181zfln3 - Failure occurred on job k7dd9wx10btve62c181bvomq: Error: TypeError: Cannot read property 'unsubscribe' of undefined
[00:27:08]                 │ proc [kibana]     at SafeSubscriber._next (http://localhost:6141/bundles/kibana.bundle.js:2:2008458)
[00:27:08]                 │ proc [kibana]     at SafeSubscriber.__tryOrUnsub (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:11563)
[00:27:08]                 │ proc [kibana]     at SafeSubscriber.next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:10003)
[00:27:08]                 │ proc [kibana]     at Subscriber._next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:8392)
[00:27:08]                 │ proc [kibana]     at Subscriber.next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:7989)
[00:27:08]                 │ proc [kibana]     at MapSubscriber._next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:27303)
[00:27:08]                 │ proc [kibana]     at MapSubscriber.Subscriber.next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:7989)
[00:27:08]                 │ proc [kibana]     at FilterSubscriber._next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:32187)
[00:27:08]                 │ proc [kibana]     at FilterSubscriber.Subscriber.next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:7989)
[00:27:08]                 │ proc [kibana]     at PairwiseSubscriber._next (http://localhost:6141/bundles/plugin/licensing/licensing.plugin.js:15:245063)
[00:27:08]                 │ proc [kibana]   log   [13:38:46.723] [warning][esqueue][queue-worker][reporting] k7dcb6y50btve62c181zfln3 - Failing job k7dd9wx10btve62c181bvomq
[00:27:08]                 │ proc [kibana]   log   [13:38:46.752] [error][execute][k7dd9wx10btve62c181bvomq][printable_pdf][reporting] waitForSelector .application failed on http://localhost:6141/app/kibana?_t=1583329101941#/dashboard/c27849f0-e523-11e9-9af5-2b261e1eb063?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(description:'',filters:!(),fullScreenMode:!f,options:(hidePanelTitles:!f,useMargins:!t),panels:!((embeddableConfig:(),gridData:(h:15,i:e5966143-f050-40eb-b4e7-f94469c1426c,w:24,x:0,y:0),id:'74b0f140-e523-11e9-9af5-2b261e1eb063',panelIndex:e5966143-f050-40eb-b4e7-f94469c1426c,type:lens,version:'8.0.0-SNAPSHOT'),(embeddableConfig:(),gridData:(h:15,i:f9ff2513-2de9-4944-a8d1-a9fead4b020d,w:24,x:24,y:0),id:'84320f00-e523-11e9-9af5-2b261e1eb063',panelIndex:f9ff2513-2de9-4944-a8d1-a9fead4b020d,type:lens,version:'8.0.0-SNAPSHOT'),(embeddableConfig:(),gridData:(h:15,i:b62d7d36-83ca-415b-8971-34d891b09a1a,w:24,x:0,y:15),id:'9325b9d0-e523-11e9-9af5-2b261e1eb063',panelIndex:b62d7d36-83ca-415b-8971-34d891b09a1a,type:lens,version:'8.0.0-SNAPSHOT')),query:(language:kuery,query:''),timeRestore:!f,title:'Lens%20reportz',viewMode:view)&forceNow=2020-03-04T13:38:36.132Z
[00:27:08]                 │ proc [kibana]   log   [13:38:46.757] [error][browser-driver][execute][k7dd9wx10btve62c181bvomq][printable_pdf][reporting] error deleting user data directory at [/tmp/chromium-o7Qm5C]: [Error: Cannot delete files/directories outside the current working directory. Can be overridden with the `force` option.]
[00:27:08]                 │ proc [kibana]   log   [13:38:46.759] [info][esqueue][queue-worker][reporting] k7dcb6y50btve62c181zfln3 - Job marked as failed: /.reporting-2020.03.01/k7dd9wx10btve62c181bvomq
[00:27:58]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="downloadCompletedReportButton"])
[00:27:58]                 │      Wait timed out after 61167ms
[00:27:59]                 │ debg TestSubjects.getAttribute(downloadCompletedReportButton, href)
[00:27:59]                 │ debg TestSubjects.find(downloadCompletedReportButton)
[00:27:59]                 │ debg Find.findByCssSelector('[data-test-subj="downloadCompletedReportButton"]') with timeout=60000
[00:29:00]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="downloadCompletedReportButton"])
[00:29:00]                 │      Wait timed out after 61158ms
[00:29:00]                 │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/lens app  lens reporting should not cause PDF reports to fail.png"
[00:29:00]                 │ info Current URL is: http://localhost:6141/app/kibana#/dashboard/c27849f0-e523-11e9-9af5-2b261e1eb063?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(description:%27%27,filters:!(),fullScreenMode:!f,options:(hidePanelTitles:!f,useMargins:!t),panels:!((embeddableConfig:(),gridData:(h:15,i:e5966143-f050-40eb-b4e7-f94469c1426c,w:24,x:0,y:0),id:%2774b0f140-e523-11e9-9af5-2b261e1eb063%27,panelIndex:e5966143-f050-40eb-b4e7-f94469c1426c,type:lens,version:%278.0.0-SNAPSHOT%27),(embeddableConfig:(),gridData:(h:15,i:f9ff2513-2de9-4944-a8d1-a9fead4b020d,w:24,x:24,y:0),id:%2784320f00-e523-11e9-9af5-2b261e1eb063%27,panelIndex:f9ff2513-2de9-4944-a8d1-a9fead4b020d,type:lens,version:%278.0.0-SNAPSHOT%27),(embeddableConfig:(),gridData:(h:15,i:b62d7d36-83ca-415b-8971-34d891b09a1a,w:24,x:0,y:15),id:%279325b9d0-e523-11e9-9af5-2b261e1eb063%27,panelIndex:b62d7d36-83ca-415b-8971-34d891b09a1a,type:lens,version:%278.0.0-SNAPSHOT%27)),query:(language:kuery,query:%27%27),timeRestore:!f,title:%27Lens%20reportz%27,viewMode:view)
[00:29:00]                 │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/lens app  lens reporting should not cause PDF reports to fail.html
[00:29:00]                 └- ✖ fail: "lens app  lens reporting should not cause PDF reports to fail"
[00:29:00]                 │

Stack Trace

Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="downloadCompletedReportButton"])
Wait timed out after 61158ms
    at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:841:17
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at onFailure (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:28:9)
    at retryForSuccess (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:68:13)

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Mar 4, 2020
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create backports run node scripts/backport --pr 58853 or prevent reminders by adding the backport:skip label.

@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:ml non-issue Indicates to automation that a pull request should not appear in the release notes release_note:skip Skip the PR/issue when compiling release notes reverted review v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants