Invalid Admin Token after updating to vaultwarden/server #1391

Closed
opened 2025-10-09 17:13:44 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @bmols on GitHub.

After seeing the post about changing to vaultwarden I logged into portainer, changed my image to vaultwarden/server:latest without changing anything else. I can access my vault, but I'm unable to get into the admin page now. I had been able to get into the admin panel until I changed the image. I had an environment variable set but it was overriden by config.json. I tried to change the variable in my config.json file but it made no difference. As a test I changed the 'signups_allowed' variable to confirm it was being read which denied me from creating any users as it should. 'disable_admin_token' is set to false. No special characters in my admin token. Nothing interesting in the logs:
`/--------------------------------------------------------------------
| Starting Vaultwarden |

Version 1.21.0
This is an unofficial Bitwarden implementation, DO NOT use the
official channels to report bugs/features, regardless of client.
Send usage/configuration questions or feature requests to:
https://bitwardenrs.discourse.group/
Report suspected bugs/issues in the software itself at:
https://github.com/dani-garcia/vaultwarden/issues/new
--------------------------------------------------------------------/
FO] No .env file found.
[WARNING] The following environment variables are being overriden by the config file,
[WARNING] please use the admin panel to make changes to them:
[WARNING] ADMIN_TOKEN
[2021-04-30 19:48:31.514][start][INFO] Rocket has launched from http://0.0.0.0:80
[2021-04-30 19:50:03.841][request][INFO] POST /api/accounts/register
2021-04-30 19:50:03.843][vaultwarden::api::core::accounts][ERROR] Registration not allowed or user already exists
[2021-04-30 19:50:03.843][response][INFO] POST /api/accounts/register (register) => 400 Bad Request`
Originally created by @bmols on GitHub. After seeing the post about changing to vaultwarden I logged into portainer, changed my image to vaultwarden/server:latest without changing anything else. I can access my vault, but I'm unable to get into the admin page now. I had been able to get into the admin panel until I changed the image. I had an environment variable set but it was overriden by config.json. I tried to change the variable in my config.json file but it made no difference. As a test I changed the 'signups_allowed' variable to confirm it was being read which denied me from creating any users as it should. 'disable_admin_token' is set to false. No special characters in my admin token. Nothing interesting in the logs: `/--------------------------------------------------------------------\ | Starting Vaultwarden | | Version 1.21.0 | |--------------------------------------------------------------------| | This is an *unofficial* Bitwarden implementation, DO NOT use the | | official channels to report bugs/features, regardless of client. | | Send usage/configuration questions or feature requests to: | | https://bitwardenrs.discourse.group/ | | Report suspected bugs/issues in the software itself at: | | https://github.com/dani-garcia/vaultwarden/issues/new | \--------------------------------------------------------------------/ FO] No .env file found. [WARNING] The following environment variables are being overriden by the config file, [WARNING] please use the admin panel to make changes to them: [WARNING] ADMIN_TOKEN [2021-04-30 19:48:31.514][start][INFO] Rocket has launched from http://0.0.0.0:80 [2021-04-30 19:50:03.841][request][INFO] POST /api/accounts/register 2021-04-30 19:50:03.843][vaultwarden::api::core::accounts][ERROR] Registration not allowed or user already exists [2021-04-30 19:50:03.843][response][INFO] POST /api/accounts/register (register) => 400 Bad Request`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#1391