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
  • 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

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Vaultwarden
  3. Vaultwarden warnings

Vaultwarden warnings

Scheduled Pinned Locked Moved Solved Vaultwarden
12 Posts 5 Posters 3.6k Views 7 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.
  • necrevistonnezrN Offline
    necrevistonnezrN Offline
    necrevistonnezr
    wrote on last edited by
    #3

    Added some of this info to the Cloudron docs (i.e. merge request).
    Note (as I struggled to login): The token to enter in the admin login page is NOT the generated argon token but the password you used to generate the token.

    1 Reply Last reply
    2
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #4

      @necrevistonnezr thanks, its merged and public https://docs.cloudron.io/apps/vaultwarden/#admin

      jdaviescoatesJ 1 Reply Last reply
      1
      • nebulonN nebulon marked this topic as a question on
      • nebulonN nebulon has marked this topic as solved on
      • murgeroM Offline
        murgeroM Offline
        murgero
        App Dev
        wrote on last edited by
        #5

        It should be noted that inputting the data incorrectly (I did this on accident) will cause vaultwarden to completely delete the config.json contents in an error.

        --
        https://urgero.org
        ~ Professional Nerd. Freelance Programmer. ~

        girishG 1 Reply Last reply
        2
        • murgeroM murgero

          It should be noted that inputting the data incorrectly (I did this on accident) will cause vaultwarden to completely delete the config.json contents in an error.

          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #6

          @murgero whoa really, how can I reproduce this?

          murgeroM 1 Reply Last reply
          0
          • girishG girish

            @murgero whoa really, how can I reproduce this?

            murgeroM Offline
            murgeroM Offline
            murgero
            App Dev
            wrote on last edited by murgero
            #7

            @girish Maybe it was an issue I caused, but what I did was:

            • Login to my cloudron
            • Go to Vaultwarden app
            • Launch file explorer
            • edit config.json to put in hash, but left out all quotes (double and single) for the admin_token variable

            Like This:

            {
              ......
              "admin_token": PretendIAmAHash,
              "disable_admin_token": false,
              ......
            }
            
            • Restart the app
            • config.json was then COMPLETELY blank (as if Vaultwarden removed all the config due to a bad admin-hash??)

            I was able to recover from a previous backup, but others may not be so lucky.

            --
            https://urgero.org
            ~ Professional Nerd. Freelance Programmer. ~

            1 Reply Last reply
            1
            • nebulonN nebulon

              @necrevistonnezr thanks, its merged and public https://docs.cloudron.io/apps/vaultwarden/#admin

              jdaviescoatesJ Offline
              jdaviescoatesJ Offline
              jdaviescoates
              wrote on last edited by jdaviescoates
              #8

              @nebulon said in Vaultwarden warnings:

              @necrevistonnezr thanks, its merged and public https://docs.cloudron.io/apps/vaultwarden/#admin

              Thanks, but these instructions don't work for me 😞

              They say:

              Therefore, open a web terminal and run

              # app/code/vaultwarden hash
              Generate an Argon2id PHC string using the 'bitwarden' preset:
              
              Password:
              Confirm Password:
              

              But in my web terminal for my Vaultwarden I can't get to app/code/vaultwarden and running hash in app/code/ just results in hash: hash table empty

              I also tried typing app/code/vaultwarden hash but that didn't work either, just resulted in bash: app/code/vaultwarden: No such file or directory

              And after looking at https://github.com/dani-garcia/vaultwarden/wiki/Enabling-admin-page#secure-the-admin_token I also tried just typing vaultwarden hash but that just results in bash: vaultwarden: command not found

              Help!

              I use Cloudron with Gandi & Hetzner

              murgeroM 1 Reply Last reply
              0
              • jdaviescoatesJ jdaviescoates

                @nebulon said in Vaultwarden warnings:

                @necrevistonnezr thanks, its merged and public https://docs.cloudron.io/apps/vaultwarden/#admin

                Thanks, but these instructions don't work for me 😞

                They say:

                Therefore, open a web terminal and run

                # app/code/vaultwarden hash
                Generate an Argon2id PHC string using the 'bitwarden' preset:
                
                Password:
                Confirm Password:
                

                But in my web terminal for my Vaultwarden I can't get to app/code/vaultwarden and running hash in app/code/ just results in hash: hash table empty

                I also tried typing app/code/vaultwarden hash but that didn't work either, just resulted in bash: app/code/vaultwarden: No such file or directory

                And after looking at https://github.com/dani-garcia/vaultwarden/wiki/Enabling-admin-page#secure-the-admin_token I also tried just typing vaultwarden hash but that just results in bash: vaultwarden: command not found

                Help!

                murgeroM Offline
                murgeroM Offline
                murgero
                App Dev
                wrote on last edited by
                #9

                @jdaviescoates Just to confirm, cause it's not in your post, you need to run /app/code/vaultwarden not app/code/vaultwarden; Linux is VERY particular about file paths lol make sure you have the prefixed / as it is needed to produce a "full path" to the vaultwarden binary. 🙂

                --
                https://urgero.org
                ~ Professional Nerd. Freelance Programmer. ~

                jdaviescoatesJ 1 Reply Last reply
                3
                • murgeroM murgero

                  @jdaviescoates Just to confirm, cause it's not in your post, you need to run /app/code/vaultwarden not app/code/vaultwarden; Linux is VERY particular about file paths lol make sure you have the prefixed / as it is needed to produce a "full path" to the vaultwarden binary. 🙂

                  jdaviescoatesJ Offline
                  jdaviescoatesJ Offline
                  jdaviescoates
                  wrote on last edited by
                  #10

                  @murgero said in Vaultwarden warnings:

                  @jdaviescoates Just to confirm, cause it's not in your post, you need to run /app/code/vaultwarden not app/code/vaultwarden; Linux is VERY particular about file paths lol make sure you have the prefixed / as it is needed to produce a "full path" to the vaultwarden binary. 🙂

                  That was it, thank you! 🙏

                  @staff that all important / at the beginning is missing from the docs!

                  I use Cloudron with Gandi & Hetzner

                  1 Reply Last reply
                  2
                  • necrevistonnezrN Offline
                    necrevistonnezrN Offline
                    necrevistonnezr
                    wrote on last edited by
                    #11

                    Corrected: https://git.cloudron.io/necrevistonnezr/docs/-/compare/master...105912c6569b655649989167ad84594a412c8292?from_project_id=311

                    jdaviescoatesJ 1 Reply Last reply
                    3
                    • necrevistonnezrN necrevistonnezr

                      Corrected: https://git.cloudron.io/necrevistonnezr/docs/-/compare/master...105912c6569b655649989167ad84594a412c8292?from_project_id=311

                      jdaviescoatesJ Offline
                      jdaviescoatesJ Offline
                      jdaviescoates
                      wrote on last edited by
                      #12

                      @necrevistonnezr thanks! I would've submitted a PR myself but I had to dash out to collect my children from school 🙂

                      I use Cloudron with Gandi & Hetzner

                      1 Reply Last reply
                      1
                      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