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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Adguard Password Change Issue

    AdGuard Home
    3
    9
    829
    Loading More Posts
    • 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.
    • M
      MichaelF last edited by

      So I have followed the instructions for setting up the password on a new install and if fails everytime. The initial password works but everytime I change it I get the following: Error: control/login | invalid username or password | 400

      I run the command I copy with encrypted password and paste it into the yaml file. I have tried with and without quotes. I restart the app and up pops that error.

      So any tips would be appreciated.

      Thanks!

      ? 1 Reply Last reply Reply Quote 0
      • ?
        A Former User @MichaelF last edited by

        @michaelf I used this to generate one: https://hostingcanada.org/htpasswd-generator/

        M 1 Reply Last reply Reply Quote 1
        • M
          MichaelF @Guest last edited by

          @atridad Thanks that worked!

          Would you know why the instructions about using htpasswd didnt?

          Your help was much appreciated!

          girish 1 Reply Last reply Reply Quote 0
          • girish
            girish Staff @MichaelF last edited by

            @michaelf I tried the instructions again and they do seem to work.

            root@e473a918-365d-4989-afb4-7358cdcc8768:/app/code# htpasswd -nbB admin newpass
            admin:$2y$05$On66DNnwebuYBJufvoKBF.7lD00Qlq9wtkbncXvbJiaFo3.wirBJ2
            

            I then pasted the above in the config file. I can then login with 'newpass' as the password. Just to double check, did you strip out the 'admin:' prefix in the output above before putting it into the yaml?

            users:
            - name: admin
              password: $2y$05$On66DNnwebuYBJufvoKBF.7lD00Qlq9wtkbncXvbJiaFo3.wirBJ2
            
            M ? 2 Replies Last reply Reply Quote 0
            • M
              MichaelF @girish last edited by

              @girish Using the Cloudron instructions for htpasswd did not work for me on several tries and yes I did not copy over admin.

              Using the tool that @atridad provided did work though so with that I was able to change the password.

              1 Reply Last reply Reply Quote 0
              • ?
                A Former User @girish last edited by

                @girish The guide in the docs works unless you have certain special characters in the password. For example, for me it broke on an exclamation mark.

                girish 1 Reply Last reply Reply Quote 2
                • girish
                  girish Staff @Guest last edited by

                  @atridad Oh, maybe that's what I was missing. Let me check. I don't like people putting in their password in external sites!

                  1 Reply Last reply Reply Quote 1
                  • girish
                    girish Staff last edited by girish

                    I updated the docs to quote the password - https://docs.cloudron.io/apps/adguard-home/#change-password

                    M 1 Reply Last reply Reply Quote 1
                    • M
                      MichaelF @girish last edited by

                      @girish I know I seen it somewhere about the quotes and I did try it but it also did not work.
                      Maybe I missed something but will keep that in mind.

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Powered by NodeBB