# OpensearchDashboard failed to fetch

**URL:** https://forum.opensearch.org/t/opensearchdashboard-failed-to-fetch/21278
**Category:** Security
**Tags:** troubleshoot, security-issue
**Created:** [September 11, 2024, 7:41am UTC](https://forum.opensearch.org/t/opensearchdashboard-failed-to-fetch/21278 "2024-09-11T07:41:13Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![Sunju](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@Sunju](https://forum.opensearch.org/u/Sunju)
#### Post date: [September 11, 2024, 7:41am UTC](https://forum.opensearch.org/t/opensearchdashboard-failed-to-fetch/21278/1 "2024-09-11T07:41:13Z")

</div>

**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.

> **[Disabling and enabling the Security plugin](https://opensearch.org/docs/latest/security/configuration/disable-enable-security/)**
>
> Disabling and enabling the Security plugin

**Relevant Logs or Screenshots** :

 ![스크린샷 2024-09-11 오후 4.44.23](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/f/f142d66f056d164c74eccb68bd0bf003fc8f5746.jpeg)

---

<div class="post-metadata">

### Author: ![Mantas](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@Mantas](https://forum.opensearch.org/u/Mantas)
#### Post date: [September 11, 2024, 9:35am UTC](https://forum.opensearch.org/t/opensearchdashboard-failed-to-fetch/21278/2 "2024-09-11T09:35:20Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Sunju](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@Sunju](https://forum.opensearch.org/u/Sunju)
#### Post date: [September 11, 2024, 10:22am UTC](https://forum.opensearch.org/t/opensearchdashboard-failed-to-fetch/21278/3 "2024-09-11T10:22:54Z")

</div>

How can I clear the session data?

---

<div class="post-metadata">

### Author: ![Sunju](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@Sunju](https://forum.opensearch.org/u/Sunju)
#### Post date: [September 11, 2024, 10:25am UTC](https://forum.opensearch.org/t/opensearchdashboard-failed-to-fetch/21278/4 "2024-09-11T10:25:20Z")

</div>

opensearch-dashboard.yml

```auto
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

```auto
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

```

---

<div class="post-metadata">

### Author: ![Mantas](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@Mantas](https://forum.opensearch.org/u/Mantas)
#### Post date: [September 11, 2024, 10:27am UTC](https://forum.opensearch.org/t/opensearchdashboard-failed-to-fetch/21278/5 "2024-09-11T10:27:18Z")

</div>

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

> [@Sunju](#):
>
> How can I clear the session data?

---

<div class="post-metadata">

### Author: ![Mantas](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@Mantas](https://forum.opensearch.org/u/Mantas)
#### Post date: [September 11, 2024, 10:32am UTC](https://forum.opensearch.org/t/opensearchdashboard-failed-to-fetch/21278/6 "2024-09-11T10:32:13Z")

</div>

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

```auto
plugins.security.disabled: true

```

---

<div class="post-metadata">

### Author: ![Sunju](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@Sunju](https://forum.opensearch.org/u/Sunju)
#### Post date: [September 11, 2024, 10:38am UTC](https://forum.opensearch.org/t/opensearchdashboard-failed-to-fetch/21278/7 "2024-09-11T10:38:58Z")

</div>

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

```auto
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

```

---

<div class="post-metadata">

### Author: ![Sunju](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@Sunju](https://forum.opensearch.org/u/Sunju)
#### Post date: [September 11, 2024, 10:39am UTC](https://forum.opensearch.org/t/opensearchdashboard-failed-to-fetch/21278/8 "2024-09-11T10:39:52Z")

</div>

Session clear does not work.

---

<div class="post-metadata">

### Author: ![Mantas](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@Mantas](https://forum.opensearch.org/u/Mantas)
#### Post date: [September 11, 2024, 10:41am UTC](https://forum.opensearch.org/t/opensearchdashboard-failed-to-fetch/21278/9 "2024-09-11T10:41:01Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Sunju](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@Sunju](https://forum.opensearch.org/u/Sunju)
#### Post date: [September 11, 2024, 10:45am UTC](https://forum.opensearch.org/t/opensearchdashboard-failed-to-fetch/21278/10 "2024-09-11T10:45:18Z")

</div>

I just did it, and I got that error.

---

<div class="post-metadata">

### Author: ![Mantas](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@Mantas](https://forum.opensearch.org/u/Mantas)
#### Post date: [September 11, 2024, 11:01am UTC](https://forum.opensearch.org/t/opensearchdashboard-failed-to-fetch/21278/11 "2024-09-11T11:01:26Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Sunju](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@Sunju](https://forum.opensearch.org/u/Sunju)
#### Post date: [September 11, 2024, 11:05am UTC](https://forum.opensearch.org/t/opensearchdashboard-failed-to-fetch/21278/12 "2024-09-11T11:05:33Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Mantas](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@Mantas](https://forum.opensearch.org/u/Mantas)
#### Post date: [September 12, 2024, 12:08pm UTC](https://forum.opensearch.org/t/opensearchdashboard-failed-to-fetch/21278/13 "2024-09-12T12:08:30Z")

</div>

@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/](https://opensearch.org/docs/2.9/security/configuration/disable/) (these are for v2.9 rather than 2.16)

The cluster seems to be fine:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/8/84e09bb40746a73e898b6421198494e0623142a3.png)

How did you deploy your cluster?

Best,  
mj

---

<div class="post-metadata">

### Author: ![Sunju](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@Sunju](https://forum.opensearch.org/u/Sunju)
#### Post date: [September 13, 2024, 8:57am UTC](https://forum.opensearch.org/t/opensearchdashboard-failed-to-fetch/21278/14 "2024-09-13T08:57:07Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Mantas](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@Mantas](https://forum.opensearch.org/u/Mantas)
#### Post date: [September 13, 2024, 12:53pm UTC](https://forum.opensearch.org/t/opensearchdashboard-failed-to-fetch/21278/15 "2024-09-13T12:53:53Z")

</div>

> [@Sunju](#):
>
> Did you just disable security or Remove plugins as well?

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

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

```

best,  
mj

---

<div class="post-metadata">

### Author: ![Sunju](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@Sunju](https://forum.opensearch.org/u/Sunju)
#### Post date: [September 24, 2024, 12:24am UTC](https://forum.opensearch.org/t/opensearchdashboard-failed-to-fetch/21278/16 "2024-09-24T00:24:39Z")

</div>

## 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](https://opensearch.org/docs/2.9/install-and-configure/install-dashboards/plugins/#remove-plugins).

* * *

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