Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Offical apps | Community apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Vaultwarden
  3. Vaultwarden Won’t Connect After Domain Migration (“Connecting… Reconnecting…”)

Vaultwarden Won’t Connect After Domain Migration (“Connecting… Reconnecting…”)

Scheduled Pinned Locked Moved Vaultwarden
5 Posts 2 Posters 53 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    oauth2-tmp-cloudron-1784273754379-im6vnh
    wrote last edited by
    #1

    Hello everyone,
    I migrated Vaultwarden from another Cloudron instance to my own instance (my server has an new Cloudron domain). Since then, the web UI hasn’t been connecting properly and constantly displays “Connecting… Reconnecting…”. Organizations and vaults aren’t loading.

    I suspect that SSO was not enabled on the old instance, but SSO/proxy auth is now enabled on the new instance, and Vaultwarden doesn’t support it.

    I created a final backup in the old environment and migrated the domain to another server. I then imported the entire configuration from the backups.

    --> Current status in the Cloudron app's configuration overview: Not responding

    Could someone help me and check whether my Vaultwarden app on Cloudron currently has SSO/proxy auth enabled and tell me how to disable it correctly? I have the feeling, that this problem happend since the last big update with SSO topics

    Thanks for your support and feedback.

    Greetings Wolfgang

    1 Reply Last reply
    1
    • jamesJ Offline
      jamesJ Offline
      james
      Staff
      wrote last edited by
      #2

      Hello @oauth2-tmp-cloudron-1784273754379-im6vnh and welcome to the Cloudron forum

      I see you did not chose a good username when logging in for the first time.
      If you want me to change your username in the forum, please let me know.

      @oauth2-tmp-cloudron-1784273754379-im6vnh said:

      I suspect that SSO was not enabled on the old instance, but SSO/proxy auth is now enabled on the new instance, and Vaultwarden doesn’t support it.

      When you installed the Vaultwarden app you had to chose between:

      • Leave user management to the app (1)
      • Allow all users on this Cloudron (2)
      • Only allow selected users (3)

      Only when you chose option 1 SSO is not enabled.

      The Vaultwarden package is configuring the OIDC configuration dynamically on every app start up.
      I don't think this is the issue.

      @oauth2-tmp-cloudron-1784273754379-im6vnh said:

      Could someone help me and check whether my Vaultwarden app on Cloudron currently has SSO/proxy auth enabled and tell me how to disable it correctly? I have the feeling, that this problem happend since the last big update with SSO topics

      This can only be "enabled" and "disabled" when installing the Vaultwarden app.

      Check the Log Viewer of the failing Vaultwarden installation and report any error here.
      Or donwload the log file and upload it to https://paste.cloudron.io/ and provide the paste URL here so we can analyse the logs.

      1 Reply Last reply
      0
      • J joseph moved this topic from Support
      • O Offline
        O Offline
        oauth2-tmp-cloudron-1784273754379-im6vnh
        wrote last edited by
        #3

        Hi James,

        thanks for the clarification. I checked the Vaultwarden logs and I’m seeing several errors that seem related to the domain migration and the OIDC/SSO initialization that happens during app startup.

        Here are the relevant log entries:
        WebSocket connection failed: Error during WebSocket handshake
        WebSocket URL mismatch: expected wss://<old-domain>, got wss://<new-domain>

        OIDC: failed to initialize provider
        OIDC: discovery failed
        OIDC: invalid issuer URL
        Failed to load OIDC settings from database

        Error: Unauthorized: missing or invalid authentication header

        startTask: installationState: pending_restart
        startTask: runState: running

        The symptoms match these errors:

        UI stuck on “Connecting… Reconnecting…”

        Organizations and vaults not loading

        App status in Cloudron: “Not responding”

        Vaultwarden was originally installed with Option 1 – Leave user management to the app, so SSO should not be active. The issue only appeared after the recent Cloudron update.

        I restored the app from a backup of the old instance and then changed the domain. Since then, the WebSocket connection breaks immediately and the UI never loads.

        Any guidance on how to resolve this would be appreciated.

        Thanks for your help,
        Wolfgang

        1 Reply Last reply
        0
        • O Offline
          O Offline
          oauth2-tmp-cloudron-1784273754379-im6vnh
          wrote last edited by
          #4

          @james I sent you a direct message
          with for the uploaded logsfiles under: https://paste.cloudron.io

          1 Reply Last reply
          0
          • jamesJ Offline
            jamesJ Offline
            james
            Staff
            wrote last edited by james
            #5

            Hello @oauth2-tmp-cloudron-1784273754379-im6vnh
            Please see https://forum.cloudron.io/topic/14812/vaultwarden-fails-to-start-after-update-db-migration-error-sso and apply the fix.

            1 Reply Last reply
            0
            • J joseph marked this topic as a regular topic

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Bookmarks
            • Search