ERROR on Mobile Client push notification with env variable with docker compose secrets #1857

Closed
opened 2026-02-05 02:02:12 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @Barnoux on GitHub (Feb 17, 2024).

Subject of the issue

Deployment environment

  • vaultwarden version: 1.30.3
  • Install method: docker compose

  • Clients used: iOS, webvault and desktop

  • Reverse proxy and version: Caddy 2.7.6

  • MySQL/MariaDB or PostgreSQL version: SQLite

  • Other relevant details:

services:
    vaultwarden:
      image: vaultwarden/server:latest
      container_name: vaultwarden
      user: 24784:24784
      environment:
        # env definition => https://github.com/dani-garcia/vaultwarden/blob/main/.env.template
        PUSH_ENABLED: "true"
        PUSH_INSTALLATION_KEY: /run/secrets/push-key
        PUSH_INSTALLATION_ID: /run/secrets/push-id
        PUSH_RELAY_URI: "https://push.bitwarden.eu"
        PUSH_IDENTITY_URI: "https://identity.bitwarden.eu"

        SIGNUPS_ALLOWED: "false"

        ADMIN_TOKEN_FILE: /run/secrets/admin-token

        DOMAIN: "https://vaultwarden.one4all.icu"
        ROCKET_PORT: "60278"

        SMTP_FROM: "vaultwarden@one4all.icu"
        SMTP_HOST: "smtp.gmail.com"
        SMTP_PORT: "587"
        SMTP_SECURITY: "starttls"
        SMTP_USERNAME: "bbarnoux@gmail.com"
        SMTP_PASSWORD_FILE: /run/secrets/smtp-password

        LOG_FILE: "/var/log/vaultwarden/vaultwarden.log" 
        LOG_LEVEL: "warn"
        EXTENDED_LOGGING: "true"
        IP_HEADER: "X-Forwarded-For"

        TZ: "Europe/Paris"
      networks:
          - reverse-proxy
      volumes:
        - vaultwarden-data:/data
        - /var/log/vaultwarden:/var/log/vaultwarden
      secrets:
          - source: admin-token
          - source: smtp-password
          - source: push-id
          - source: push-key
          - 
secrets:
  admin-token:
     file: ../secrets/admin-token.txt
  smtp-password:
     file: ../secrets/smtp-password.txt
  push-id:
     file: ../secrets/push-id.txt
  push-key:
     file: ../secrets/push-key.txt

volumes:
  vaultwarden-data:
    external: true
    name: one4all-vaultwarden-data

Steps to reproduce

Expected behaviour

renaming a folder in the web vault should change after a few seconds in the mobile app.

Actual behaviour

i'm having the path of the secrets variables instead of having the actual push-id and push-key. i don't have this behavior for admin_token and smtp_password.

Troubleshooting data

Capture d’écran du 2024-02-17 15-11-40

[2024-02-17 15:00:12.907][vaultwarden::api::push][ERROR] Unexpected push token received from bitwarden server: error decoding response body: missing field `access_token` at line 1 column 26
Originally created by @Barnoux on GitHub (Feb 17, 2024). ### 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.30.3 <!-- How the server was installed: Docker image, OS package, built from source, etc. --> * Install method: docker compose * Clients used: <!-- web vault, desktop, Android, iOS, etc. (if applicable) --> iOS, webvault and desktop * Reverse proxy and version: <!-- if applicable --> Caddy 2.7.6 * MySQL/MariaDB or PostgreSQL version: <!-- if applicable --> SQLite * Other relevant details: ``` services: vaultwarden: image: vaultwarden/server:latest container_name: vaultwarden user: 24784:24784 environment: # env definition => https://github.com/dani-garcia/vaultwarden/blob/main/.env.template PUSH_ENABLED: "true" PUSH_INSTALLATION_KEY: /run/secrets/push-key PUSH_INSTALLATION_ID: /run/secrets/push-id PUSH_RELAY_URI: "https://push.bitwarden.eu" PUSH_IDENTITY_URI: "https://identity.bitwarden.eu" SIGNUPS_ALLOWED: "false" ADMIN_TOKEN_FILE: /run/secrets/admin-token DOMAIN: "https://vaultwarden.one4all.icu" ROCKET_PORT: "60278" SMTP_FROM: "vaultwarden@one4all.icu" SMTP_HOST: "smtp.gmail.com" SMTP_PORT: "587" SMTP_SECURITY: "starttls" SMTP_USERNAME: "bbarnoux@gmail.com" SMTP_PASSWORD_FILE: /run/secrets/smtp-password LOG_FILE: "/var/log/vaultwarden/vaultwarden.log" LOG_LEVEL: "warn" EXTENDED_LOGGING: "true" IP_HEADER: "X-Forwarded-For" TZ: "Europe/Paris" networks: - reverse-proxy volumes: - vaultwarden-data:/data - /var/log/vaultwarden:/var/log/vaultwarden secrets: - source: admin-token - source: smtp-password - source: push-id - source: push-key - secrets: admin-token: file: ../secrets/admin-token.txt smtp-password: file: ../secrets/smtp-password.txt push-id: file: ../secrets/push-id.txt push-key: file: ../secrets/push-key.txt volumes: vaultwarden-data: external: true name: one4all-vaultwarden-data ``` ### 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? --> ### Expected behaviour <!-- Tell us what you expected to happen --> renaming a folder in the web vault should change after a few seconds in the mobile app. ### Actual behaviour <!-- Tell us what actually happened --> i'm having the path of the secrets variables instead of having the actual push-id and push-key. i don't have this behavior for admin_token and smtp_password. ### Troubleshooting data <!-- Share any log files, screenshots, or other relevant troubleshooting data --> ![Capture d’écran du 2024-02-17 15-11-40](https://github.com/dani-garcia/vaultwarden/assets/47791676/7c776613-b162-4daa-a312-33e330753925) ``` [2024-02-17 15:00:12.907][vaultwarden::api::push][ERROR] Unexpected push token received from bitwarden server: error decoding response body: missing field `access_token` at line 1 column 26 ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#1857