mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
After hasing admin password unable to login into the /admin page. #1567
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sebasdt on GitHub (Apr 16, 2023).
Subject of the issue
After I changed my admin password to a more secure password, my vaultwarden instance is still saying I need to secure it.
This also resulted in me not able to log into the admin page.
Deployment environment
I'm using portainer and vaultwarden has its own bind volume for saving everything persitantly.
Latest stable version: 1.28.1
Install method:
portainer (docker stack)
Clients used:
Reverse proxy and version:
MySQL/MariaDB or PostgreSQL version:
Other relevant details:
Looking into the vaultwarden volume I dont see a config.json that could conflict with the docker env's
Steps to reproduce
Expected behaviour
Im able to log into the admin page and that the logs dont show I need to switch to a more secure password
Actual behaviour
The /admin page is saying: "Error: Invalid admin token, please try again." and not letting me log in.
Troubleshooting data
Logs
[NOTICE] You are using a plain textADMIN_TOKEN` which is insecure.Please generate a secure Argon2 PHC string by using
vaultwarden hashorargon2.See: https://github.com/dani-garcia/vaultwarden/wiki/Enabling-admin-page#secure-the-admin_token
`
docker-compose yml admin env:
NOTE THIS IS NOT MY TOKEN BUT IT DOES LOOK LIKE THIS!
environment: ADMIN_TOKEN: $$argon2id$$v=19$$m=19456,t=2,p=1$$UUZxK1FZMkZoRHFQRlVrTXZvS0E3bHpNQW55c2dBN2NORzdsa0Nxd1JhND0$$cUoId+JBUsJutlG4rfDZayExfjq4TCt48aBc9qsc3UI@BlackDex commented on GitHub (Apr 16, 2023):
Try to put single quotes around it
'.Also, make sure you have run
docker compose up -d, and that you do not have aconfig.jsonfile in your data folder. That will override all environment variables.