# Trouble logging into Opensearch Dashboards for the first time with Default Credentials

**URL:** <https://forum.opensearch.org/t/trouble-logging-into-opensearch-dashboards-for-the-first-time-with-default-credentials/10926>\
**Category:** Reporting Plugin\
**Tags:** troubleshoot\
**Created:** [September 14, 2022, 3:30pm UTC](https://forum.opensearch.org/t/trouble-logging-into-opensearch-dashboards-for-the-first-time-with-default-credentials/10926 "2022-09-14T15:30:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![danny.mccaslin](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@danny.mccaslin](https://forum.opensearch.org/u/danny.mccaslin)\
**Post date:** [September 14, 2022, 3:30pm UTC](https://forum.opensearch.org/t/trouble-logging-into-opensearch-dashboards-for-the-first-time-with-default-credentials/10926/1 "2022-09-14T15:30:40Z")

</div>

I switched from Elasticsearch to Opensearch yesterday to support Graylog. I was curious about Dashboards so I installed opensource-dashboards 1.3 via yum repo. I modified the yml file and started it up. I get the login page, but the default first login found [here](https://opensearch.org/docs/1.3/dashboards/index/) doesn’t work. Is there a new default password that hasn’t been updated in the documentation, or is there a way to set the default login through the yml file?

Thanks in advance.  
Danny

---

<div class="post-metadata">

**Author:** ![Saidose](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/saidose/32/4196_2.png) [@Saidose](https://forum.opensearch.org/u/Saidose)\
**Post date:** [September 15, 2022, 7:53am UTC](https://forum.opensearch.org/t/trouble-logging-into-opensearch-dashboards-for-the-first-time-with-default-credentials/10926/2 "2022-09-15T07:53:47Z")

</div>

Hey there,

Are you running opensearch as a service or through docker?  
I couldn’t use default password either so I recommend you generate new password through:

```auto
chmod +x /<<path-to-opensearch>>/opensearch/plugins/opensearch-security/tools/hash.sh
/<<path-to-opensearch>>/opensearch/plugins/opensearch-security/tools/hash.sh -p <<your new password>>

```

Place it in internal users for admin user:

```auto
/<<path-to-opensearch>>/opensearch/config/opensearch-security/internal_users.yml

```

```auto
admin:
  hash: "<<your password's hash goes here>>"
  reserved: true
  backend_roles:
  - "admin"

```

Hope this helps,  
Tag me in any case,  
Yours,  
Sam

---

<div class="post-metadata">

**Author:** ![danny.mccaslin](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@danny.mccaslin](https://forum.opensearch.org/u/danny.mccaslin)\
**Post date:** [September 15, 2022, 12:37pm UTC](https://forum.opensearch.org/t/trouble-logging-into-opensearch-dashboards-for-the-first-time-with-default-credentials/10926/3 "2022-09-15T12:37:31Z")

</div>

I’m running both opensearch and opensearch-dashboards as a service.

Can you link me to any other documentation on this issue? I don’t have a config directory under my opensearch directory and I just want to verify that I need to create one.

EDIT: I did some google-fu and found reference to the internal\_users.yml file at /usr/share/opensearch/config/opensearch-security/ and changed the hash there. After restarting opensearch and opensearch-dashboards I still can’t log into opensearch-dashboards with the new password.

Thanks!

---

<div class="post-metadata">

**Author:** ![Saidose](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/saidose/32/4196_2.png) [@Saidose](https://forum.opensearch.org/u/Saidose)\
**Post date:** [September 15, 2022, 1:15pm UTC](https://forum.opensearch.org/t/trouble-logging-into-opensearch-dashboards-for-the-first-time-with-default-credentials/10926/4 "2022-09-15T13:15:41Z")

</div>

Hey again,  
Did you change the internal\_users.yml?  
If so, you have to apply the configuration in your case it will be:  
first go to /usr/share/opensearch/config/opensearch-security/  
Then:

```auto
/usr/share/opensearch/plugins/opensearch-security/tools/securityadmin.sh -icl -nhnv -cacert /path/to/your/root-cetificate -cert /path/to/your/certificate -key /path/to/your/root-key/cetificate

```

The doc reference:  
[Apply changes with securityadmin.sh - OpenSearch documentation](https://opensearch.org/docs/latest/security-plugin/configuration/security-admin/)

Tag me in any case,  
Yours,  
Sam

---

<div class="post-metadata">

**Author:** ![misra.kapildev](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@misra.kapildev](https://forum.opensearch.org/u/misra.kapildev)\
**Post date:** [October 26, 2022, 11:35am UTC](https://forum.opensearch.org/t/trouble-logging-into-opensearch-dashboards-for-the-first-time-with-default-credentials/10926/5 "2022-10-26T11:35:11Z")

</div>

Hi All,

We are not able to access opensearch-dasboard through browser though it shows running.

We too are facing similar issue of opensearch-dashboard showing log [09:08:57.732] [info][server][OpenSearchDashboards][http] http server running at [http://localhost:5601](http://localhost:5601). But we don’t see any UI when we access [http://localhost:5601](http://localhost:5601) in browser chrome. While starting opensearch-dashboard we see some error as below before the above message.

log [09:08:57.496] [error][plugins][securityDashboards] StatusCodeError: no handler found for uri [/\_plugins/\_security/tenantinfo] and method [GET]  
at respond (/home/mwcuser/opensearch-dashboards-2.3.0/node\_modules/elasticsearch/src/lib/transport.js:349:15)  
at checkRespForFailure (/home/mwcuser/opensearch-dashboards-2.3.0/node\_modules/elasticsearch/src/lib/transport.js:306:7)  
at HttpConnector. (/home/mwcuser/opensearch-dashboards-2.3.0/node\_modules/elasticsearch/src/lib/connectors/http.js:173:7)  
at IncomingMessage.wrapper (/home/mwcuser/opensearch-dashboards-2.3.0/node\_modules/lodash/lodash.js:4991:19)  
at IncomingMessage.emit (events.js:412:35)  
at endReadableNT (internal/streams/readable.js:1333:12)  
at processTicksAndRejections (internal/process/task\_queues.js:82:21) {  
status: 400,  
displayName: ‘BadRequest’,  
path: ‘/\_plugins/\_security/tenantinfo’,  
query: {},  
body: {  
error: ‘no handler found for uri [/\_plugins/\_security/tenantinfo] and method [GET]’  
},  
statusCode: 400,  
response: ‘{“error”:“no handler found for uri [/\_plugins/\_security/tenantinfo] and method [GET]”}’,  
toString: [Function (anonymous)],  
toJSON: [Function (anonymous)]  
}  
log [09:08:57.502] [warning][environment] Detected an unhandled Promise rejection.  
no handler found for uri [/\_plugins/\_security/tenantinfo] and method [GET] :: {“path”:“/\_plugins/\_security/tenantinfo”,“query”:{},“statusCode”:400,“response”:“{"error":"no handler found for uri [/\_plugins/\_security/tenantinfo] and method [GET]"}”}

We are running under non ssl both opensearch & opensearch-dashboard & default config file only.

Please suggest.
