[Bug]: Cannot log in after docker installation, "invalid credentials" #605

Closed
opened 2026-02-04 20:32:04 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @ivanix1 on GitHub (Nov 15, 2024).

Where is the problem occurring?

None

What browsers are you seeing the problem on?

No response

Current behaviour

Attempting to login after default install per documentation https://docs.planka.cloud/docs/installation/docker/production_version,

Always shows "invalid credentials"

I tried the default values for DEFAULT_ADMIN_ env variables in the docker-compose as well as using my own custom.
the docker containers come up including the postgres, the login page shows up at http://localhost:3000/
but any values result in "invalid credentials"

Something wrong with the docker-compse.yaml or the instructions.

Desired behaviour

Attempting to login after default install per documentation https://docs.planka.cloud/docs/installation/docker/production_version,

Always shows "invalid credentials"

I tried the default values for DEFAULT_ADMIN_ env variables in the docker-compose as well as using my own custom.
the docker containers come up including the postgres, the login page shows up at http://localhost:3000/
but any values result in "invalid credentials"

Something wrong with the docker-compse.yaml or the instructions.

Steps to reproduce

Attempting to login after default install per documentation https://docs.planka.cloud/docs/installation/docker/production_version,

Always shows "invalid credentials"

I tried the default values for DEFAULT_ADMIN_ env variables in the docker-compose as well as using my own custom.
the docker containers come up including the postgres, the login page shows up at http://localhost:3000/
but any values result in "invalid credentials"

Something wrong with the docker-compse.yaml or the instructions.

Other information

Attempting to login after default install per documentation https://docs.planka.cloud/docs/installation/docker/production_version,

Always shows "invalid credentials"

I tried the default values for DEFAULT_ADMIN_ env variables in the docker-compose as well as using my own custom.
the docker containers come up including the postgres, the login page shows up at http://localhost:3000/
but any values result in "invalid credentials"

Something wrong with the docker-compse.yaml or the instructions.

Originally created by @ivanix1 on GitHub (Nov 15, 2024). ### Where is the problem occurring? None ### What browsers are you seeing the problem on? _No response_ ### Current behaviour Attempting to login after default install per documentation https://docs.planka.cloud/docs/installation/docker/production_version, Always shows "invalid credentials" I tried the default values for DEFAULT_ADMIN_ env variables in the docker-compose as well as using my own custom. the docker containers come up including the postgres, the login page shows up at http://localhost:3000/ but any values result in "invalid credentials" Something wrong with the docker-compse.yaml or the instructions. ### Desired behaviour Attempting to login after default install per documentation https://docs.planka.cloud/docs/installation/docker/production_version, Always shows "invalid credentials" I tried the default values for DEFAULT_ADMIN_ env variables in the docker-compose as well as using my own custom. the docker containers come up including the postgres, the login page shows up at http://localhost:3000/ but any values result in "invalid credentials" Something wrong with the docker-compse.yaml or the instructions. ### Steps to reproduce Attempting to login after default install per documentation https://docs.planka.cloud/docs/installation/docker/production_version, Always shows "invalid credentials" I tried the default values for DEFAULT_ADMIN_ env variables in the docker-compose as well as using my own custom. the docker containers come up including the postgres, the login page shows up at http://localhost:3000/ but any values result in "invalid credentials" Something wrong with the docker-compse.yaml or the instructions. ### Other information Attempting to login after default install per documentation https://docs.planka.cloud/docs/installation/docker/production_version, Always shows "invalid credentials" I tried the default values for DEFAULT_ADMIN_ env variables in the docker-compose as well as using my own custom. the docker containers come up including the postgres, the login page shows up at http://localhost:3000/ but any values result in "invalid credentials" Something wrong with the docker-compse.yaml or the instructions.
Author
Owner

@meltyshev commented on GitHub (Nov 15, 2024):

Hi! I just tested this, and everything is working correctly for me. It's difficult to determine what the issue might be in your case without seeing your docker-compose.yml and startup logs. One possible cause could be that the DEFAULT_ADMIN_* variables have spaces before the equals sign, or perhaps the container wasn't restarted after changing these variables. However, this is just a guess.

@meltyshev commented on GitHub (Nov 15, 2024): Hi! I just tested this, and everything is working correctly for me. It's difficult to determine what the issue might be in your case without seeing your `docker-compose.yml` and startup logs. One possible cause could be that the `DEFAULT_ADMIN_*` variables have spaces before the equals sign, or perhaps the container wasn't restarted after changing these variables. However, this is just a guess.
Author
Owner

@Terrofont commented on GitHub (Dec 26, 2024):

I had a similar problem at first, you need to uncomment the DEFAULT_USER etc, environment variables to login. Those aren't actually default, you need to explicitly specify them

@Terrofont commented on GitHub (Dec 26, 2024): I had a similar problem at first, you need to uncomment the `DEFAULT_USER` etc, environment variables to login. Those aren't actually default, you need to explicitly specify them
Author
Owner

@Kaurin commented on GitHub (Jan 11, 2025):

I am using the helm chart and I can confirm that in the chart, alongside the username/password secret, it is also required to have these set as top-level chart values:

admin_email: 
admin_name: 

My admin user got provisioned after setting these two values

@Kaurin commented on GitHub (Jan 11, 2025): I am using the helm chart and I can confirm that in the chart, alongside the username/password secret, it is also required to have these set as top-level chart values: ``` admin_email: admin_name: ``` My admin user got provisioned after setting these two values
Author
Owner

@la0wei commented on GitHub (Jan 21, 2025):

https://docs.planka.cloud/docs/installation/docker/production_version/

Now you can browse to http://YOUR_DOMAIN_NAME:YOUR_PORT and login as YOUR_ADMIN_EMAIL with password YOUR_ADMIN_PASSWORD

try uncomment DEFAULT_ADMIN_EMAIL and DEFAULT_ADMIN_PASSWORD
Other values seem no effect.
Mine works after change these two values,though login page shows username/email, only email works.

@la0wei commented on GitHub (Jan 21, 2025): https://docs.planka.cloud/docs/installation/docker/production_version/ Now you can browse to http://YOUR_DOMAIN_NAME:YOUR_PORT and login as YOUR_ADMIN_EMAIL with password YOUR_ADMIN_PASSWORD try uncomment DEFAULT_ADMIN_EMAIL and DEFAULT_ADMIN_PASSWORD Other values seem no effect. Mine works after change these two values,though login page shows username/email, only email works.
Author
Owner

@tirrorex commented on GitHub (Mar 31, 2025):

Got the same error, logs indicate
2025-03-31 20:00:48 [W] Invalid password! (IP: 192.168.1.209)
no clue what this ip is though, cause it is not detected by my router
The password in the compose file is the same as the one i enter, i checked 15 times and even redid the paste multiple time aswell in the compose file

@tirrorex commented on GitHub (Mar 31, 2025): Got the same error, logs indicate `2025-03-31 20:00:48 [W] Invalid password! (IP: 192.168.1.209) ` no clue what this ip is though, cause it is not detected by my router The password in the compose file is the same as the one i enter, i checked 15 times and even redid the paste multiple time aswell in the compose file
Author
Owner

@meltyshev commented on GitHub (May 15, 2025):

Now an admin user can be created via the db:create-admin-user npm script: https://docs.planka.cloud/docs/configuration/admin-user#by-running-the-script.

@meltyshev commented on GitHub (May 15, 2025): Now an admin user can be created via the `db:create-admin-user` npm script: https://docs.planka.cloud/docs/configuration/admin-user#by-running-the-script.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#605