# ADMIN\_TOKEN not configured correctly?

**URL:** <https://vaultwarden.discourse.group/t/admin-token-not-configured-correctly/4684>\
**Category:** Help\
**Created:** [May 28, 2025, 4:22pm UTC](https://vaultwarden.discourse.group/t/admin-token-not-configured-correctly/4684 "2025-05-28T16:22:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![misosoup7](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@misosoup7](https://vaultwarden.discourse.group/u/misosoup7)\
**Post date:** [May 28, 2025, 4:22pm UTC](https://vaultwarden.discourse.group/t/admin-token-not-configured-correctly/4684/1 "2025-05-28T16:22:25Z")

</div>

Hi I’m relatively new to self hosting and still learning. I’ve read some of the similar topics and am still confused.

I set my docker-compose.yml to the following:

```auto
services:
  vaultwarden:
    image: vaultwarden/server:latest
    container_name: vaultwarden
    restart: unless-stopped
    environment:
      DOMAIN: "https://vw.example.com"
      SIGNUPS_ALLOWED: "true" # deactivate this with "false" after creating all accounts
      ADMIN_TOKEN: RANDOMLYGENERATEDLONGSTRINGWITHALPHANUMERICS
    volumes:
      - /vw-data/:/data/

  caddy:
    image: caddy:2
    container_name: caddy
    restart: always
    ports:
      - 80:80
      - 443:443
      - 443:443/udp # Needed for HTTP/3
    volumes:
      #- ./caddy:/usr/bin/caddy
      - ./Caddyfile:/etc/caddy/Caddyfile:ro
      - ./caddy-config:/config
      - ./caddy-data:/data
    environment:
      DOMAIN: "https://vw.example.com"
      EMAIL: "myemail@email.com"
      LOG_FILE: "/data/access.log"

```

I restarted the containers with `sudo docker compose restart`  
But when I got to [vw.example.com/admin](http://vw.example.com/admin) it says

```auto
The admin panel is disabled, please configure the 'ADMIN_TOKEN' variable to enable it

```

What am I missing?

Thanks!

---

<div class="post-metadata">

**Author:** ![misosoup7](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@misosoup7](https://vaultwarden.discourse.group/u/misosoup7)\
**Post date:** [May 28, 2025, 4:37pm UTC](https://vaultwarden.discourse.group/t/admin-token-not-configured-correctly/4684/2 "2025-05-28T16:37:13Z")

</div>

Figured it out. Needed to destroy the containers with `sudo docker compose down` and bring them back up.

---

<div class="post-metadata">

**Author:** ![BlackDex](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/blackdex/32/8_2.png) [@BlackDex](https://vaultwarden.discourse.group/u/BlackDex)\
**Post date:** [May 29, 2025, 9:28am UTC](https://vaultwarden.discourse.group/t/admin-token-not-configured-correctly/4684/3 "2025-05-29T09:28:06Z")

</div>

`docker compose up` should be enough.  
Restarting doesn’t work btw.

---

<div class="post-metadata">

**Author:** ![chandrashekhar](https://avatars.discourse-cdn.com/v4/letter/c/85f322/32.png) [@chandrashekhar](https://vaultwarden.discourse.group/u/chandrashekhar)\
**Post date:** [June 3, 2025, 8:32am UTC](https://vaultwarden.discourse.group/t/admin-token-not-configured-correctly/4684/4 "2025-06-03T08:32:42Z")

</div>

Your _ADMIN\_TOKEN_ need to be in hashed format generated from agron2 or opessl. Also, you need to put it in ‘single\_quotes’ or “double\_inverted\_comma”. Then the hash contains some _$uajdx_ value you need to skip every $ by adding $$ in it.

please let me know, if you have any doubts

---

<div class="post-metadata">

**Author:** ![misosoup7](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@misosoup7](https://vaultwarden.discourse.group/u/misosoup7)\
**Post date:** [June 3, 2025, 12:20pm UTC](https://vaultwarden.discourse.group/t/admin-token-not-configured-correctly/4684/5 "2025-06-03T12:20:04Z")

</div>

So the plain text worked when I did a down then up as I mentioned on my reply.

I did also change it to the argon2 encrypted configuration 4 days ago. I used sed ‘s/$/$$/g’ to escape the $ with an additional $.

---

<div class="post-metadata">

**Author:** ![chandrashekhar](https://avatars.discourse-cdn.com/v4/letter/c/85f322/32.png) [@chandrashekhar](https://vaultwarden.discourse.group/u/chandrashekhar)\
**Post date:** [June 3, 2025, 1:10pm UTC](https://vaultwarden.discourse.group/t/admin-token-not-configured-correctly/4684/6 "2025-06-03T13:10:09Z")

</div>

Still It’s not working ??

---

<div class="post-metadata">

**Author:** ![misosoup7](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@misosoup7](https://vaultwarden.discourse.group/u/misosoup7)\
**Post date:** [June 3, 2025, 6:30pm UTC](https://vaultwarden.discourse.group/t/admin-token-not-configured-correctly/4684/7 "2025-06-03T18:30:52Z")

</div>

It is working just fine. Was I not clear in my two previous replies?

---

<div class="post-metadata">

**Author:** ![chandrashekhar](https://avatars.discourse-cdn.com/v4/letter/c/85f322/32.png) [@chandrashekhar](https://vaultwarden.discourse.group/u/chandrashekhar)\
**Post date:** [June 5, 2025, 10:06am UTC](https://vaultwarden.discourse.group/t/admin-token-not-configured-correctly/4684/8 "2025-06-05T10:06:21Z")

</div>

Yes you were, just asking if you have any other problems.
