[GH-ISSUE #3767] Can't generate Admin-Token on Docker behind Traefik #18436

Closed
opened 2026-04-25 20:36:47 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @LucEast on GitHub (Aug 11, 2023).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/3767

Subject of the issue

Deployment environment

  • vaultwarden version: 1.25.2
  • Install method: Docker

  • Clients used: -

  • Reverse proxy and version: Traefik 2.10.3

  • MySQL/MariaDB or PostgreSQL version: -

  • Other relevant details: -

Steps to reproduce

I tried to generate a Admin-Token via docker exec -it {ContainerName} /vaultwarden hash and within the container itself(docker exec -it {ContainerName} /bin/bash ./vaultwarden hash)

As written above my vaultwarden container sits behind a Traefik reverse-proxy. I googled the error and saw that it needs port 80 to perform this action?! However port 80 is used by my Traefik. I also tried to use the docker-compose environment variable: - PORT=8080 and - PORT=8081 but that doesn't work either.

Expected behaviour

Prompt for user input

Actual behaviour

[INFO] No .env file found.

Error: Rocket.
[CAUSE] Bind(
    Os {
        code: 98,
        kind: AddrInUse,
        message: "Address already in use",
    },
)

Troubleshooting data

Originally created by @LucEast on GitHub (Aug 11, 2023). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/3767 <!-- # ### NOTE: Please update to the latest version of vaultwarden before reporting an issue! This saves you and us a lot of time and troubleshooting. See: * https://github.com/dani-garcia/vaultwarden/issues/1180 * https://github.com/dani-garcia/vaultwarden/wiki/Updating-the-vaultwarden-image # ### --> <!-- Please fill out the following template to make solving your problem easier and faster for us. This is only a guideline. If you think that parts are unnecessary for your issue, feel free to remove them. Remember to hide/redact personal or confidential information, such as passwords, IP addresses, and DNS names as appropriate. --> ### Subject of the issue <!-- Describe your issue here. --> ### Deployment environment <!-- ========================================================================================= Preferably, use the `Generate Support String` button on the admin page's Diagnostics tab. That will auto-generate most of the info requested in this section. ========================================================================================= --> <!-- The version number, obtained from the logs (at startup) or the admin diagnostics page --> <!-- This is NOT the version number shown on the web vault, which is versioned separately from vaultwarden --> <!-- Remember to check if your issue exists on the latest version first! --> * vaultwarden version: 1.25.2 <!-- How the server was installed: Docker image, OS package, built from source, etc. --> * Install method: Docker * Clients used: - * Reverse proxy and version: Traefik 2.10.3 * MySQL/MariaDB or PostgreSQL version: <!-- if applicable --> - * Other relevant details: - ### Steps to reproduce <!-- Tell us how to reproduce this issue. What parameters did you set (differently from the defaults) and how did you start vaultwarden? --> I tried to generate a Admin-Token via `docker exec -it {ContainerName} /vaultwarden hash` and within the container itself(`docker exec -it {ContainerName} /bin/bash` `./vaultwarden hash`) As written above my vaultwarden container sits behind a Traefik reverse-proxy. I googled the error and saw that it needs port 80 to perform this action?! However port 80 is used by my Traefik. I also tried to use the docker-compose environment variable: ` - PORT=8080` and ` - PORT=8081` but that doesn't work either. ### Expected behaviour <!-- Tell us what you expected to happen --> Prompt for user input ### Actual behaviour <!-- Tell us what actually happened --> ``` [INFO] No .env file found. Error: Rocket. [CAUSE] Bind( Os { code: 98, kind: AddrInUse, message: "Address already in use", }, ) ``` ### Troubleshooting data <!-- Share any log files, screenshots, or other relevant troubleshooting data -->
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#18436