elastic / kibana

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

[Fleet] Cannot read properties of null #155064

Closed florianl closed 2 weeks ago

florianl commented 1 year ago

Kibana version:

VERSION: 8.7.0
BUILD: 61109
COMMIT: 05f12599523732051b84dde0b8d5610e0db2b06d

from https://localhost:5601/app/status

Elasticsearch version:

8.7.0

Server OS version:

Fedora release 37 (Thirty Seven) - 6.2.9-200.fc37.x86_64

Browser version:

Google Chrome Version 112.0.5615.49 (Official Build) (64-bit)

Describe the bug:

Error: Cannot read properties of null (reading 'pf-elastic-symbolizer')
    at https://localhost:5601/61109/bundles/plugin/fleet/kibana/fleet.chunk.0.js:3:122567
    at Array.map (<anonymous>)
    at https://localhost:5601/61109/bundles/plugin/fleet/kibana/fleet.chunk.0.js:3:122041
    at Array.map (<anonymous>)
    at z (https://localhost:5601/61109/bundles/plugin/fleet/kibana/fleet.chunk.0.js:3:122018)
    at ua (https://localhost:5601/61109/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:398:59210)
    at Js (https://localhost:5601/61109/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:398:115077)
    at Fc (https://localhost:5601/61109/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:398:99860)
    at Rc (https://localhost:5601/61109/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:398:99682)
    at Pc (https://localhost:5601/61109/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:398:99515)

Steps to reproduce:

  1. $ elastic-package stack up --version 8.7 -v
  2. build and install https://github.com/elastic/integrations/pull/5879/
  3. open https://localhost:5601/app/integrations/detail/profiler_symbolizer-8.7.0-preview/overview
  4. click on Add Universal Profiling Symbolizer

Expected behavior:

Generate a valid policy to install the integration

Screenshots (if relevant): 20230417-180153

20230417-175943

CC: @sboomsma

elasticmachine commented 1 year ago

Pinging @elastic/fleet (Team:Fleet)

florianl commented 1 year ago

I have to reopen this issue, as we can still reproduce the problem.

Error: Cannot read properties of null (reading 'pf-elastic-collector')
    at https://localhost:5601/60616/bundles/plugin/fleet/kibana/fleet.chunk.0.js:3:120646
    at Array.map (<anonymous>)
    at https://localhost:5601/60616/bundles/plugin/fleet/kibana/fleet.chunk.0.js:3:120120
    at Array.map (<anonymous>)
    at N (https://localhost:5601/60616/bundles/plugin/fleet/kibana/fleet.chunk.0.js:3:120097)
    at ca (https://localhost:5601/60616/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:398:59210)
    at Js (https://localhost:5601/60616/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:398:115077)
    at Fu (https://localhost:5601/60616/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:398:99860)
    at Ru (https://localhost:5601/60616/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:398:99682)
    at Pu (https://localhost:5601/60616/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:398:99515)

This is from a current 8.8.0-SNAPSHOT with kibana on commit e5a9fc30dda7cd48c3505c7f77fc591994e109f0.

Options I have tested:

A

policy_templates:
  - name: Single Input
    title: Single Input
    description: Single Input
    inputs:
      - title: Single Input
        description: Single input
        type: single_input

elastic-package build is fine, but it creates the above issue.

B

policy_templates:
  - name: Single Input
    title: Single Input
    description: Single Input
    inputs:
      - title: Single Input
        description: Single input
        type: single_input
        vars:

C

policy_templates:
  - name: Single Input
    title: Single Input
    description: Single Input
    inputs:
      - title: Single Input
        description: Single input
        type: single_input
        vars: []

D

policy_templates:
  - name: Single Input
    title: Single Input
    description: Single Input
    inputs:
      - title: Single Input
        description: Single input
        type: single_input
        vars: {}

For B, C and D elastic-package build fails with field policy_templates.0.inputs.0.vars: Invalid type. Expected: array, [..]

FYI: @jen-huang

jlind23 commented 1 year ago

Unassigning Kyle as he is out for a few months.