XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Recover Admin Password when XOA CLI is not installed

    Scheduled Pinned Locked Moved Xen Orchestra
    8 Posts 3 Posters 2.5k Views 3 Watching
    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.
    • P
      Pechkin000
      last edited by Pechkin000

      Hi,
      Something happened to my community edition install where LDAP plugin is not working. And now I am locked out. I was pretty excited when I found this:
      https://xen-orchestra.com/docs/troubleshooting.html#recover-web-login-password only to realize that I dont have XO-CLI installed and to install it I need to know the admin username and password.
      Is there any other way for me to create an admin user for the installation?
      Any help would be appreciated.

      julien-fJ 1 Reply Last reply
      Reply Quote 0
      • olivierlambertO
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        That's why XOA is great, all of it is bundled so no surprise 😄

        About your original problem, maybe @julien-f has an idea. Mine is a bit destructive so let's see first if he comes with better idea than mine.

        1 Reply Last reply
        Reply Quote 0
        • julien-fJ
          julien-f Vates 🪐 Co-Founder XO Team @Pechkin000
          last edited by

          @Pechkin000 xo-server-recover-account is not related to xo-cli, it's a small tool that is installed alongside xo-server.

          But ff you have no way to access the server XO is installed on you cannot recover an account.

          P 1 Reply Last reply
          Reply Quote 0
          • olivierlambertO
            olivierlambert Vates 🪐 Co-Founder CEO
            last edited by olivierlambert

            What about removing the Redis DB? (or the right record in the DB) so xo will recreate a default user?

            julien-fJ 1 Reply Last reply
            Reply Quote 0
            • julien-fJ
              julien-f Vates 🪐 Co-Founder XO Team @olivierlambert
              last edited by

              @olivierlambert Yes, flushing the Redis database will trigger the creation of a default user. But it needs CLI access to the machine too.

              1 Reply Last reply
              Reply Quote 0
              • olivierlambertO
                olivierlambert Vates 🪐 Co-Founder CEO
                last edited by

                I'm not sure it's an issue there. Let's see what @Pechkin000 says 🙂

                1 Reply Last reply
                Reply Quote 0
                • P
                  Pechkin000 @julien-f
                  last edited by

                  @julien-f said in Recover Admin Password when XOA CLI is not installed:

                  @Pechkin000 xo-server-recover-account is not related to xo-cli, it's a small tool that is installed alongside xo-server.

                  Hi,
                  Thanks for getting back to me guys. I do have root access to the server itself. However I am getting xo-server-recover-account: command not found when I try to run it, so I assumed it was part of the xo-cli.
                  Now I am guessing its just not in PATH so I would need to run it from the directory it resides in. Would you be able to tell me where it is?

                  julien-fJ 1 Reply Last reply
                  Reply Quote 0
                  • julien-fJ
                    julien-f Vates 🪐 Co-Founder XO Team @Pechkin000
                    last edited by

                    @Pechkin000 It should be installed alongside xo-server, it depends how you installed XO on this.

                    But still, it requires root access for security.

                    1 Reply Last reply
                    Reply Quote 0

                    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
                    • First post
                      Last post