OpensearchDashboard failed to fetch

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
2.9.0

Describe the issue:
OpensearchDashboard failed to fetch when I disable security plugin.
How can I fix it?

Configuration:
I followed this. I removed all security plugins and configurations.

Relevant Logs or Screenshots:

Hi @Sunju,

Have you cleared your session data after disabling the security plugin?
Have you rebooted your nodes after configuration changes?

Could you please share your opensearch.yml and opensearch_dashboards.yml

best,
mj

How can I clear the session data?

opensearch-dashboard.yml

logging.dest: /var/log/opensearch-dashboard/opensearch_dashboard.log
opensearch.hosts: ['http://localhost:9200']
opensearch.ssl.verificationMode: none
server.host: 0.0.0.0
server.port: 5601

opensearch.yml

action.destructive_requires_name: true
bootstrap.memory_lock: true
bootstrap.system_call_filter: false
cluster.initial_cluster_manager_nodes: ['myhost']
cluster.name: opensearch
compatibility.override_main_response_version: true
discovery.seed_hosts: ['myhost']
http.port: 9200
network.host: 0.0.0.0
node.attr.rack: r1
node.name: myhost
path.data: ['/var/data/opensearch']
path.logs: /var/log/opensearch

You can use a different browser or start a private (incognito) session.

@Sunju, I do not see you disabling the security plugin:

plugins.security.disabled: true

I removed security plugins. So, I got this error when I add that props.

java.lang.IllegalArgumentException: unknown setting [plugins.security.disabled] please check that any required plugins are installed, or check the breaking changes documentation for removed settings

Session clear does not work.

Can you add plugins.security.disabled: true to your opensearch.yml and test once more.

I just did it, and I got that error.

I see, you have removed the plugin itself, I’ll run some tests in my lab and get back if Ill find a fix/reason for you.

I saw the guide that I need to remove plugin in the linked opensearch docs.
Thanks.

@Sunju, I have successfully removed the security plugin from Opensearch v2.9.0 using the instructions here:
https://opensearch.org/docs/2.9/security/configuration/disable/ (these are for v2.9 rather than 2.16)

The cluster seems to be fine:

How did you deploy your cluster?

Best,
mj

I deploy tar.gz.
Did you just disable security or Remove plugins as well?

I`ve removed it as per the instructions. Have you removed anything using:

sudo bin/opensearch-dashboards-plugin remove <plugin-name>

best,
mj

Remove OpenSearch Dashboards plugin

The Security plugin is actually two plugins: one for OpenSearch and one for OpenSearch Dashboards. You can use the OpenSearch plugin independently, but the OpenSearch Dashboards plugin depends on a secured OpenSearch cluster.

If you disable the Security plugin in opensearch.yml (or delete the plugin entirely) and still want to use OpenSearch Dashboards, you must remove the corresponding OpenSearch Dashboards plugin. For more information, see OpenSearch Dashboards remove plugins.


I Remove securityDashboards as above guide.
I think I always have the issue with capabilities api.
Should I configure anything about capabilities.