Unable to Load Page After Upgrade

I recently upgraded our ELK stack from v8.4.3 to v8.18.4 (single node for each product). The only issue we seem to have is that we're unable to open the Stack Management -> API keys page. We get an error stating "Unable to load page" with the below error details. Has anyone run across this or have any suggestions on things we can try to fix it? We've checked API key data from the REST API, and we haven't lost any keys. We just can't access the UI for them.

TypeError: Cannot read properties of null (reading 'indexOf')
    at render (https://<hostname>:5601/a7a6fa0ad7b0/bundles/plugin/security/1.0.0/security.chunk.728.js:3:34289)
    at t.value (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:9:65546)
    at https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:9:62976
    at Array.forEach (<anonymous>)
    at t.value (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:9:62785)
    at https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:9:61699
    at Array.map (<anonymous>)
    at t.value (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:9:61596)
    at t.value (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:9:57245)
    at t.value (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:9:56654)

The above error occurred in t:
    at t (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:9:52362)
    at Z (https://<hostname>:5601/a7a6fa0ad7b0/bundles/plugin/security/1.0.0/security.chunk.728.js:3:33410)
    at ne (https://<hostname>:5601/a7a6fa0ad7b0/bundles/plugin/security/1.0.0/security.chunk.728.js:3:41296)
    at div
    at https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:16:21740
    at section
    at https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:16:21740
    at d (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:9:1064248)
    at Section (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:9:1076016)
    at ce (https://<hostname>:5601/a7a6fa0ad7b0/bundles/plugin/security/1.0.0/security.chunk.728.js:3:43981)
    at u (https://<hostname>:5601/a7a6fa0ad7b0/bundles/plugin/security/1.0.0/security.plugin.js:2:7292)
    at o (https://<hostname>:5601/a7a6fa0ad7b0/bundles/plugin/security/1.0.0/security.plugin.js:2:6818)
    at l (https://<hostname>:5601/a7a6fa0ad7b0/bundles/plugin/security/1.0.0/security.plugin.js:2:6934)
    at R (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:408:4637)
    at re (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:408:10308)
    at ne (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:408:9685)
    at Z (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:397:12341)
    at t (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:408:19428)
    at _ (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:36:433147)
    at https://<hostname>:5601/a7a6fa0ad7b0/bundles/plugin/security/1.0.0/security.plugin.js:2:55837
    at Provider (https://<hostname>:5601/a7a6fa0ad7b0/bundles/plugin/kibanaReact/1.0.0/kibanaReact.plugin.js:1:5187)
    at d (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:36:425063)
    at h (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:36:425707)
    at u (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:36:424510)
    at l (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:9:268645)
    at t (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:1:352191)
    at J (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:1:352690)
    at Context (https://<hostname>:5601/a7a6fa0ad7b0/bundles/core/core.entry.js:1:184619)
    at u (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:9:1123645)
    at d (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:9:1491430)
    at y (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:16:22163)
    at i (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:9:1541607)
    at d (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:9:1548305)
    at S (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:9:1544820)
    at a (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:9:1126696)
    at i (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:9:1122587)
    at a (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:9:1124868)
    at h (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:9:1125190)
    at y (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:36:413591)
    at b (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:36:413896)
    at a (https://<hostname>:5601/a7a6fa0ad7b0/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:36:412660)
    at T (https://<hostname>:5601/a7a6fa0ad7b0/bundles/plugin/security/1.0.0/security.plugin.js:2:18257)

Hello @Jadorin

Welcome to the community.

Since the issue is observed only while accessing the "Stack Management > Security > API Keys" could you please try to inspect the browser under Network for which request do you see error & what is the response received for that request. Maybe it can help to us to see where is the issue?

Thanks!!

Here's the Network inspect, as well as the Console errors.

I believe I found the problem. It looks like one of our old API keys had a null name field. I believe that is causing the issue. Now to track down its owner and see if it's still in use.

Edit: In case anyone else has the same issue. I deleted the key with the null name, and it did, in fact, resolve the issue with the page no longer displaying. It would have been nice to be able to alter the name via the REST API, but alas. In any case, at least the issue is resolved. Thanks!

1 Like