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 config.json is empty (0 B)

Vaultwarden config.json is empty (0 B)

Scheduled Pinned Locked Moved Solved Vaultwarden
5 Posts 3 Posters 1.0k Views 3 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.
    • K Offline
      K Offline
      kk_cloudron
      wrote on last edited by
      #1

      I was about to enable the Vaultwarden admin panel when I noticed that the config.json file is empty (0 bytes in size).
      At first I thought it was the last update. But that was not the case (a restore didn't change anything).
      Now I'm wondering if it's just a display error or if I've somehow got a mistake in thinking. - the config.json is the right place for these setting parameters, isn't it?
      I'm worried that the settings are totally lost. Can they be read, edited and/or exported in other ways?

      Does anyone else have this problem too? I hope someone may have a solution.

      Screenshot 2022-12-12 at 11-35-38 fu.userfreun.de - File Manager.png
      (The file change time is set to 10 minutes caused by the restored backup)

      jdaviescoatesJ 1 Reply Last reply
      0
      • K kk_cloudron

        I was about to enable the Vaultwarden admin panel when I noticed that the config.json file is empty (0 bytes in size).
        At first I thought it was the last update. But that was not the case (a restore didn't change anything).
        Now I'm wondering if it's just a display error or if I've somehow got a mistake in thinking. - the config.json is the right place for these setting parameters, isn't it?
        I'm worried that the settings are totally lost. Can they be read, edited and/or exported in other ways?

        Does anyone else have this problem too? I hope someone may have a solution.

        Screenshot 2022-12-12 at 11-35-38 fu.userfreun.de - File Manager.png
        (The file change time is set to 10 minutes caused by the restored backup)

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

        @kk_cloudron not sure, but mine isn't 0 B

        I have this:

        {
          "domain": "xxx",
          "ip_header": "X-Forwarded-For",
          "_enable_smtp": true,
          "smtp_host": "mail",
          "smtp_ssl": false,
          "smtp_explicit_tls": false,
          "smtp_port": 2525,
          "smtp_from": "xxx",
          "smtp_from_name": "Vaultwarden",
          "smtp_username": "xxx",
          "smtp_password": "xxx",
          "smtp_auth_mechanism": "Plain",
          "smtp_timeout": 15,
          "smtp_accept_invalid_certs": true,
          "smtp_accept_invalid_hostnames": true,
          "admin_token": "xxx",
          "disable_admin_token": false,
          "signups_domains_whitelist": "",
          "signups_allowed": true,
          "invitations_allowed": true,
          "invitation_org_name": "Vaultwarden",
          "smtp_security": "off"
        }
        

        Obviously where I've put xxx there are actual values.

        I use Cloudron with Gandi & Hetzner

        1 Reply Last reply
        0
        • nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by
          #3

          Hm the file should not be empty. If restoring to the previous versions also has an empty file, then can you try to restore the one before?

          Generally you could remove the file and restart the app, then it will generate a new one. Not sure where the admin_token is used, since it will also recreate that one then.

          jdaviescoatesJ K 2 Replies Last reply
          1
          • nebulonN nebulon

            Hm the file should not be empty. If restoring to the previous versions also has an empty file, then can you try to restore the one before?

            Generally you could remove the file and restart the app, then it will generate a new one. Not sure where the admin_token is used, since it will also recreate that one then.

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

            @nebulon said in Vaultwarden config.json is empty (0 B):

            Not sure where the admin_token is used

            I'm not certain, but I think it is only used to login to the admin at /admin as per https://docs.cloudron.io/apps/vaultwarden/#admin

            I use Cloudron with Gandi & Hetzner

            1 Reply Last reply
            0
            • nebulonN nebulon

              Hm the file should not be empty. If restoring to the previous versions also has an empty file, then can you try to restore the one before?

              Generally you could remove the file and restart the app, then it will generate a new one. Not sure where the admin_token is used, since it will also recreate that one then.

              K Offline
              K Offline
              kk_cloudron
              wrote on last edited by
              #5

              @nebulon That worked. I had to re-enter my settings/variables, but that's better than an empty file 😉 Thanks to you

              1 Reply Last reply
              1
              • K kk_cloudron marked this topic as a question on
              • K kk_cloudron has marked this topic as solved on
              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