# Self-hosted : Invalid credentials

**URL:** https://community.nocodb.com/t/self-hosted-invalid-credentials/1285
**Category:** Uncategorized
**Created:** [July 23, 2024, 10:09pm UTC](https://community.nocodb.com/t/self-hosted-invalid-credentials/1285 "2024-07-23T22:09:59Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![LAG](https://avatars.discourse-cdn.com/v4/letter/l/53a042/32.png) [@LAG](https://community.nocodb.com/u/LAG)
#### Post date: [July 23, 2024, 10:09pm UTC](https://community.nocodb.com/t/self-hosted-invalid-credentials/1285/1 "2024-07-23T22:09:59Z")

</div>

new to the app.  
docker install, did a test install just to verify as I have done with most of my apps before adding too one off my established stacks. it worked, lookedd like it was just what i was looking for. added same info to an existing stack, did the docker compose and it loaeded up, i went to login and it gave me invaslid credentials. i then clicked the forgot my password link and got the error Message: Request failed with status code 400. how do i get this rectified?

---

<div class="post-metadata">

### Author: ![Navi](https://avatars.discourse-cdn.com/v4/letter/n/3be4f8/32.png) [@Navi](https://community.nocodb.com/u/Navi)
#### Post date: [July 24, 2024, 6:33pm UTC](https://community.nocodb.com/t/self-hosted-invalid-credentials/1285/2 "2024-07-24T18:33:41Z")

</div>

Since you have [SMTP env variables](https://docs.nocodb.com/getting-started/self-hosted/environment-variables/#email-notifications) are not set, you cannot recover the password.

However, setting [NC\_ADMIN\_EMAIL and NC\_ADMIN\_PASSWORD](https://docs.nocodb.com/getting-started/self-hosted/environment-variables/#authentication) you should be able to get in.

---

<div class="post-metadata">

### Author: ![LAG](https://avatars.discourse-cdn.com/v4/letter/l/53a042/32.png) [@LAG](https://community.nocodb.com/u/LAG)
#### Post date: [July 26, 2024, 7:26pm UTC](https://community.nocodb.com/t/self-hosted-invalid-credentials/1285/3 "2024-07-26T19:26:39Z")

</div>

which docker compose should i use? or can i input those lines into the environment sections and it work?

---

<div class="post-metadata">

### Author: ![Navi](https://avatars.discourse-cdn.com/v4/letter/n/3be4f8/32.png) [@Navi](https://community.nocodb.com/u/Navi)
#### Post date: [July 26, 2024, 7:28pm UTC](https://community.nocodb.com/t/self-hosted-invalid-credentials/1285/4 "2024-07-26T19:28:11Z")

</div>

Using those env variables in your current docker / docker-compose should work

---

<div class="post-metadata">

### Author: ![LAG](https://avatars.discourse-cdn.com/v4/letter/l/53a042/32.png) [@LAG](https://community.nocodb.com/u/LAG)
#### Post date: [July 26, 2024, 7:57pm UTC](https://community.nocodb.com/t/self-hosted-invalid-credentials/1285/5 "2024-07-26T19:57:50Z")

</div>

ok just to make sure here is what i plan to input… let me know if you see any issues. i am still a noob with docker and ubuntu, but im tryin to learn…

nocodb:  
depends\_on:  
root\_db:  
condition: service\_healthy  
environment:  
NC\_DB: “mysql2://root\_db:3306?u=noco&p=password&d=root\_db”  
- NC\_ADMIN\_EMAIL: [email@hotmail.com](mailto:email@hotmail.com)  
- NC\_ADMIN\_PASSWORD: abcD1234#  
image: “nocodb/nocodb:latest”  
ports:  
- “8585:8080”  
restart: always  
volumes:  
- /Nocodb\_Config/nocodb/nc\_data:/usr/app/data  
root\_db:  
environment:  
MYSQL\_DATABASE: root\_db  
MYSQL\_PASSWORD: password  
MYSQL\_ROOT\_PASSWORD: password  
MYSQL\_USER: noco  
healthcheck:  
retries: 10  
test:  
- CMD  
- mysqladmin  
- ping  
- “-h”  
- localhost  
timeout: 20s  
image: “mysql:5.7”  
restart: always  
volumes:  
- /portainer/Files/AppData/Config/nocodb/db\_data:/var/lib/mysql

# below line shows how to change charset and collation

# uncomment it if necessary

# command: --character-set-server=utf8mb4 --collation-server=utf8mb4\_unicode\_ci

---

<div class="post-metadata">

### Author: ![Navi](https://avatars.discourse-cdn.com/v4/letter/n/3be4f8/32.png) [@Navi](https://community.nocodb.com/u/Navi)
#### Post date: [July 26, 2024, 8:29pm UTC](https://community.nocodb.com/t/self-hosted-invalid-credentials/1285/6 "2024-07-26T20:29:58Z")

</div>

Input is fine, hard to tell from the formatting perspective. Please ask chatgpt these things 🙂

---

<div class="post-metadata">

### Author: ![LAG](https://avatars.discourse-cdn.com/v4/letter/l/53a042/32.png) [@LAG](https://community.nocodb.com/u/LAG)
#### Post date: [July 26, 2024, 9:45pm UTC](https://community.nocodb.com/t/self-hosted-invalid-credentials/1285/7 "2024-07-26T21:45:36Z")

</div>

i dont use any ai software. where else can i check it?

---

<div class="post-metadata">

### Author: ![LAG](https://avatars.discourse-cdn.com/v4/letter/l/53a042/32.png) [@LAG](https://community.nocodb.com/u/LAG)
#### Post date: [July 26, 2024, 9:49pm UTC](https://community.nocodb.com/t/self-hosted-invalid-credentials/1285/8 "2024-07-26T21:49:04Z")

</div>

when i tried it i got this error

yaml: line 102: did not find expected key

which pertains to the environment line…

condition: service\_healthy  
environment:  
NC\_DB: “mysql2://root\_db:3306?u=noco&p=password&d=root\_db”

---

<div class="post-metadata">

### Author: ![LAG](https://avatars.discourse-cdn.com/v4/letter/l/53a042/32.png) [@LAG](https://community.nocodb.com/u/LAG)
#### Post date: [July 27, 2024, 5:20pm UTC](https://community.nocodb.com/t/self-hosted-invalid-credentials/1285/9 "2024-07-27T17:20:58Z")

</div>

> [@LAG](#):
>
> NC\_ADMIN\_PASSWORD: abcD1234#

ok so when i attempted to add the new nocodb compose info onto an existing docker.yml file it would give me errors. so i just created a new folder and a new docker.yml file just for nocodb and its up and running and i am abe to login. tyvm for your assistance.
