Error: Cannot read properties of undefined (reading 'includes')

When I am trying to access security from kibana dashboard I'm getting this error.

Error

Error: Cannot read properties of undefined (reading 'includes')
    at c (http://10.9.1.8:5601/50723/bundles/plugin/securitySolution/8.0.0/securitySolution.chunk.4.js:3:7169)
    at http://10.9.1.8:5601/50723/bundles/plugin/securitySolution/8.0.0/securitySolution.chunk.4.js:3:7599
    at Object.useMemo (http://10.9.1.8:5601/50723/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:451:65039)
    at useMemo (http://10.9.1.8:5601/50723/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:435:5229)
    at i (http://10.9.1.8:5601/50723/bundles/plugin/securitySolution/8.0.0/securitySolution.chunk.4.js:3:7554)
    at b (http://10.9.1.8:5601/50723/bundles/plugin/securitySolution/8.0.0/securitySolution.chunk.6.js:3:365702)
    at http://10.9.1.8:5601/50723/bundles/plugin/securitySolution/8.0.0/securitySolution.chunk.9.js:3:28473
    at Nt (http://10.9.1.8:5601/50723/bundles/plugin/securitySolution/8.0.0/securitySolution.chunk.9.js:3:29035)
    at http://10.9.1.8:5601/50723/bundles/plugin/securitySolution/8.0.0/securitySolution.chunk.9.js:3:30210
    at Lt (http://10.9.1.8:5601/50723/bundles/plugin/securitySolution/8.0.0/securitySolution.chunk.9.js:3:30353)```


![image|690x220](upload://n57tznb9APebcWUbQwBY5UXMaMV.png)

Hello, I'm having the same problem when accessing https://.../app/security/get_started . I'm using v8.2.0. Any idea anyone?

Error: Cannot read properties of undefined (reading 'includes')
    at c (https://elk.xwiki.org/52005/bundles/plugin/securitySolution/8.0.0/securitySolution.chunk.5.js:3:6185)
    at https://elk.xwiki.org/52005/bundles/plugin/securitySolution/8.0.0/securitySolution.chunk.5.js:3:6708
    at Object.useMemo (https://elk.xwiki.org/52005/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:451:64992)
    at useMemo (https://elk.xwiki.org/52005/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:435:5226)
    at o (https://elk.xwiki.org/52005/bundles/plugin/securitySolution/8.0.0/securitySolution.chunk.5.js:3:6663)
    at O (https://elk.xwiki.org/52005/bundles/plugin/securitySolution/8.0.0/securitySolution.chunk.5.js:3:9203)
    at ma (https://elk.xwiki.org/52005/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:451:59714)
    at ns (https://elk.xwiki.org/52005/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:451:68051)
    at Is (https://elk.xwiki.org/52005/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:451:108614)
    at ju (https://elk.xwiki.org/52005/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:451:97190)

thanks!

I am having the exact same problem! Is there a way to fix it please?

@Khalifa_Khalifi @vmassol @Amitesh_Gupta

Apologies for the very late response here. It took time for this error to make it to the right team.

After tracing the errors, we think this has to do with user roles. Can you provide details on the the roles and user configuration you have set up for the user you are logged in as when you try to access the page?

Go to "Stack Management > Users > your_user"

Example:

What roles do you have here?

In addition, if it's a custom role, what does the role look like? Go to "Stack Management > Roles > your_role"

Example:

Scroll a bit further down to see Kibana privileges:

My goal is to reproduce the problem by creating a similar user/role, so any details here will help. You can just post screenshots like I did above. If you don't want to post anything publicly, you can send the info to me directly.

Thanks for the reply. Indeed, after setting the right permissions the message disappeared. It just wasn't obvious that the error was caused by a security configuration. That could be something to improve :slight_smile:

Thanks!

I dont have these options:

@Khalifa_Khalifi do you have system admin in your instance with admin privileges? Whoever created your users and granted you access to your system should have access to these views.

You can also reference this documentation to ensure you have the proper permissions and roles set up which should work around the problem: Elastic Security system requirements | Elastic Security Solution [8.2] | Elastic

Hello Vincent! Did you manage to solve the problem?

@Kevin_Logan I installed ELK using the following instructions:

@Khalifa_Khalifi I saw from your screenshot earlier that you are running 8.2.3, however the instructions you used said it's specific to 7.7.1. I believe what has happened is that the installation you have doesn't have security properly configured.

I know this is confusing and there is certainly a bug on our side that we will address, but you should be able to work around the problem by configuring security. Note that "security" in this context doesn't refer to the Elastic Security product, rather general security settings such as TLS, users, and permissions.

First, take a look at this documentation: Start the Elastic Stack with security enabled | Elasticsearch Guide [8.2] | Elastic

You should have an elastic user created for you. The elastic user should have access to anything in the product, including managing Users and Roles that I referenced earlier. If you do not know the password for this user, you can update it following these steps and then try to log in as elastic/{password} . Setting passwords for native and built-in users | Elasticsearch Guide [8.2] | Elastic

If the above doesn't work, try following these steps to manually configure security which is specific to 8.2.x - Manually configure security | Elasticsearch Guide [8.2] | Elastic

It is not working, I don't understand what it is wrong. It was working properly before. Happened when upgrading to the last version.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.