# Opensearch Dashboard throws connection errors:

**URL:** <https://forum.opensearch.org/t/opensearch-dashboard-throws-connection-errors/19672>\
**Category:** OpenSearch Dashboards\
**Tags:** troubleshoot, configure, install\
**Created:** [June 3, 2024, 10:17am UTC](https://forum.opensearch.org/t/opensearch-dashboard-throws-connection-errors/19672 "2024-06-03T10:17:56Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tamilkumar](https://avatars.discourse-cdn.com/v4/letter/t/eb9ed0/32.png) [@Tamilkumar](https://forum.opensearch.org/u/Tamilkumar)\
**Post date:** [June 3, 2024, 10:17am UTC](https://forum.opensearch.org/t/opensearch-dashboard-throws-connection-errors/19672/1 "2024-06-03T10:17:56Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):  
Opensearch Dashboard Version:2.10.0

**Describe the issue** :

```auto
{"type":"log","@timestamp":"2024-06-03T07:06:52Z","tags":["error","opensearch","data"],"pid":1,"message":"[ConnectionError]: getaddrinfo ENOTFOUND my-cluster.opensearch.svc.cluster.local"}

```

**Configuration** :

```auto
apiVersion: opensearch.opster.io/v1
kind: OpenSearchCluster
metadata:
  name: my-cluster
  namespace: opensearch
spec:
  general:
    version: 2.10.0
    httpPort: 9200
    vendor: opensearch
    serviceName: my-cluster
  dashboards:
    additionalConfig:
      logging.verbose: "true"
      opensearch_security.auth.type: '["basicauth"]'
      opensearch_security.auth.multiple_auth_enabled: "True"
      opensearch.optimizedHealthcheckId: "os-cluster"
      opensearch_security.cookie.secure: "false"
      opensearch.requestHeadersWhitelist: |
        ["securitytenant","Authorization","security_tenant"]
      opensearch_security.readonly_mode.roles: '["kibana_user", "readall"]'
      opensearch.hosts: https://my-cluster.opensearc.svc.cluster.local:9200
    enable: true
    version: 2.10.0
    replicas: 1
    resources:
      requests:
         memory: "1Gi"
         cpu: "500m"
      limits:
         memory: "1Gi"
         cpu: "500m"
  confMgmt:
    smartScaler: true
  security:
    config:
      securityConfigSecret:
       name: securityconfig-secret
  nodePools:
    - component: masters
      replicas: 3
      diskSize: "30Gi"
      jvm: -Dopensearch.allow_insecure_settings=true
      nodeSelector:
      resources:
         requests:
            memory: "2Gi"
            cpu: "500m"
         limits:
            memory: "2Gi"
            cpu: "500m"
      roles:
        - "master"
        - "data"
        - "ingest"
      persistence:
        pvc:
          storageClass: nfs-csi
          accessModes: # You can change the accessMode
          - ReadWriteOnce

```

**Relevant Logs or Screenshots** :

```auto
{"type":"log","@timestamp":"2024-06-03T07:06:52Z","tags":["error","opensearch","data"],"pid":1,"message":"[ConnectionError]: getaddrinfo ENOTFOUND my-cluster.opensearch.svc.cluster.local"}

```

---

<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:** [June 4, 2024, 3:58pm UTC](https://forum.opensearch.org/t/opensearch-dashboard-throws-connection-errors/19672/2 "2024-06-04T15:58:05Z")

</div>

Hi @Tamilkumar,

have you tried adding `opensearch.username` and `opensearch.password` to your ` dashboards. additionalConfig`

```auto
      opensearch.username: "kibanaserver"
      opensearch.password: "kibanaserver"

```

Best,  
mj

---

<div class="post-metadata">

**Author:** ![pablo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/pablo/32/10363_2.png) [@pablo](https://forum.opensearch.org/u/pablo)\
**Post date:** [June 4, 2024, 4:40pm UTC](https://forum.opensearch.org/t/opensearch-dashboard-throws-connection-errors/19672/3 "2024-06-04T16:40:57Z")

</div>

> [@Tamilkumar](#):
>
> `https://my-cluster.opensearc.svc.cluster.local:9200`

> [@Tamilkumar](#):
>
> `namespace: opensearch`

You’re missing “h” in opensearch.hosts

---

<div class="post-metadata">

**Author:** ![Tamilkumar](https://avatars.discourse-cdn.com/v4/letter/t/eb9ed0/32.png) [@Tamilkumar](https://forum.opensearch.org/u/Tamilkumar)\
**Post date:** [June 5, 2024, 4:07am UTC](https://forum.opensearch.org/t/opensearch-dashboard-throws-connection-errors/19672/4 "2024-06-05T04:07:27Z")

</div>

Hi @pablo ,

I’ve made mistaken while pasting over here in forum. The config has correct name and its not working sir.

opensearch.username  
opensearch.password

parameters are also added in the config which is not helping out.

---

<div class="post-metadata">

**Author:** ![Tamilkumar](https://avatars.discourse-cdn.com/v4/letter/t/eb9ed0/32.png) [@Tamilkumar](https://forum.opensearch.org/u/Tamilkumar)\
**Post date:** [June 5, 2024, 4:07am UTC](https://forum.opensearch.org/t/opensearch-dashboard-throws-connection-errors/19672/5 "2024-06-05T04:07:53Z")

</div>

HI @Mantas  
opensearch.username  
opensearch.password

parameters are also added in the config which is not helping out. Please help

---

<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:** [June 5, 2024, 11:56am UTC](https://forum.opensearch.org/t/opensearch-dashboard-throws-connection-errors/19672/6 "2024-06-05T11:56:45Z")

</div>

@Tamilkumar, Could you run the below and share the output:

```auto
curl --insecure -u admin:admin https://my-cluster.opensearc.svc.cluster.local:9200

```

Thanks,  
mj

---

<div class="post-metadata">

**Author:** ![Tamilkumar](https://avatars.discourse-cdn.com/v4/letter/t/eb9ed0/32.png) [@Tamilkumar](https://forum.opensearch.org/u/Tamilkumar)\
**Post date:** [June 5, 2024, 12:52pm UTC](https://forum.opensearch.org/t/opensearch-dashboard-throws-connection-errors/19672/7 "2024-06-05T12:52:58Z")

</div>

Hi @Mantas

curl [https://my-cluster.opensearch.svc.cluster.local:9200](https://my-cluster.opensearch.svc.cluster.local:9200) -vvv -u “admin:admin” -k

- Could not resolve host: my-cluster.opensearch.svc.cluster.local
- Closing connection 0  
curl: (6) Could not resolve host: my-cluster.opensearch.svc.cluster.local

if i try this with service ip its reachable:

curl [https://10.233.54.110:9200](https://10.233.54.110:9200) -v -u “admin:admin” -k

- Trying 10.233.54.110:9200…
- Connected to 10.233.54.110 (10.233.54.110) port 9200 (#0)
- ALPN, offering h2
- ALPN, offering http/1.1
- TLSv1.0 (OUT), TLS header, Certificate Status (22):
- TLSv1.3 (OUT), TLS handshake, Client hello (1):
- TLSv1.2 (IN), TLS header, Certificate Status (22):
- TLSv1.3 (IN), TLS handshake, Server hello (2):
- TLSv1.2 (IN), TLS header, Finished (20):
- TLSv1.2 (IN), TLS header, Supplemental data (23):
- TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
- TLSv1.3 (IN), TLS handshake, Request CERT (13):
- TLSv1.3 (IN), TLS handshake, Certificate (11):
- TLSv1.3 (IN), TLS handshake, CERT verify (15):
- TLSv1.3 (IN), TLS handshake, Finished (20):
- TLSv1.2 (OUT), TLS header, Finished (20):
- TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
- TLSv1.2 (OUT), TLS header, Supplemental data (23):
- TLSv1.3 (OUT), TLS handshake, Certificate (11):
- TLSv1.2 (OUT), TLS header, Supplemental data (23):
- TLSv1.3 (OUT), TLS handshake, Finished (20):
- SSL connection using TLSv1.3 / TLS\_AES\_256\_GCM\_SHA384
- ALPN, server did not agree to a protocol
- Server certificate:
- subject: C=de; L=test; O=node; OU=node; [CN=node-0.example.com](http://CN=node-0.example.com)
- start date: Aug 29 04:23:12 2023 GMT
- expire date: Aug 26 04:23:12 2033 GMT
- issuer: DC=com; DC=example; O=Example Com Inc.; OU=Example Com Inc. Root CA; CN=Example Com Inc. Root CA
- SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.
- Server auth using Basic with user ‘admin’
- TLSv1.2 (OUT), TLS header, Supplemental data (23):

> GET / HTTP/1.1  
> Host: 10.233.54.110:9200  
> Authorization: Basic YWRtaW46YWRtaW4=  
> User-Agent: curl/7.81.0  
> Accept: _/_

- TLSv1.2 (IN), TLS header, Supplemental data (23):
- TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
- TLSv1.2 (IN), TLS header, Supplemental data (23):
- Mark bundle as not supporting multiuse  
\< HTTP/1.1 200 OK  
\< content-type: application/json; charset=UTF-8  
\< content-length: 571  
\<  
{  
“name” : “my-cluster-masters-2”,  
“cluster\_name” : “my-cluster”,  
“cluster\_uuid” : “QTg0SrF-R9Get7\_22a8QtQ”,  
“version” : {  
“distribution” : “opensearch”,  
“number” : “2.10.0”,  
“build\_type” : “tar”,  
“build\_hash” : “eee49cb340edc6c4d489bcd9324dda571fc8dc03”,  
“build\_date” : “2023-09-20T23:54:29.889267151Z”,  
“build\_snapshot” : false,  
“lucene\_version” : “9.7.0”,  
“minimum\_wire\_compatibility\_version” : “7.10.0”,  
“minimum\_index\_compatibility\_version” : “7.0.0”  
},

---

<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:** [June 5, 2024, 1:00pm UTC](https://forum.opensearch.org/t/opensearch-dashboard-throws-connection-errors/19672/8 "2024-06-05T13:00:49Z")

</div>

> [@Tamilkumar](#):
>
> Could not resolve host: my-cluster.opensearch.svc.cluster.local

You will need to fix the above (issues with DNS?) or use IP addresses in your configuration.

best,  
mj

---

<div class="post-metadata">

**Author:** ![Tamilkumar](https://avatars.discourse-cdn.com/v4/letter/t/eb9ed0/32.png) [@Tamilkumar](https://forum.opensearch.org/u/Tamilkumar)\
**Post date:** [June 6, 2024, 6:10am UTC](https://forum.opensearch.org/t/opensearch-dashboard-throws-connection-errors/19672/9 "2024-06-06T06:10:18Z")

</div>

Hi @Mantas

Even i tried giving the service ip of opensearch cluster but still the issue remains same.

---

<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:** [June 13, 2024, 2:19pm UTC](https://forum.opensearch.org/t/opensearch-dashboard-throws-connection-errors/19672/10 "2024-06-13T14:19:32Z")

</div>

Hi @Tamilkumar,

It looks like you will need to look at the networking between your pods, to find a reason why `"message":"[ConnectionError]` appears.

best,  
mj
