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

    [Solved] create XO account from ssh

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    12 Posts 4 Posters 5.4k Views 1 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.
    • ronivayR Offline
      ronivay Top contributor @bxen
      last edited by ronivay

      Locate the packages/xo-server directory to your from sources built xen orchestra instance. There should be a file in dist/recover-account-cli.mjs, copy this file as dist/recover-account-cli.mjs and then run it from the dist directory ./recover-account-cli.mjs admin@something.tld, it'll ask password and either reset the existing users password or create a new one with admin privileges if there isn't one with the email address.

      B 1 Reply Last reply Reply Quote 1
      • B Offline
        bxen @gskger
        last edited by

        @gskger Thanks! Sounds like an idea. Then it's just the backups and other XO-related that needs to be setup again. It's something I could live with. I'll try @ronivay's idea first though. Maybe I'm lucky there 🙂

        1 Reply Last reply Reply Quote 0
        • B Offline
          bxen @ronivay
          last edited by

          @ronivay Thank you very much. I'll try this and get back here with the result! 🙂

          B gskgerG 2 Replies Last reply Reply Quote 0
          • B Offline
            bxen @bxen
            last edited by

            @ronivay Whoo whoo!! 🙂 Yes! It worked like a charm! Thank you very much! 👍

            ronivayR 1 Reply Last reply Reply Quote 1
            • ronivayR Offline
              ronivay Top contributor @bxen
              last edited by

              Nice 🙂 Happy to help.

              1 Reply Last reply Reply Quote 0
              • gskgerG Offline
                gskger Top contributor @bxen
                last edited by

                @bxen I tried the solution @ronivay suggested and it works on my playlabs XO from source. I did not even had to copy recover-account-cli.mjs because it was already in the /opt/xen-orchestra/packages/xo-server/distdirectory. An admin user was created and I was able to login.

                ronivayR 1 Reply Last reply Reply Quote 0
                • ronivayR Offline
                  ronivay Top contributor @gskger
                  last edited by

                  Yeah you're right, it indeed should be there already. I must have done something to it in my own lab 😄

                  gskgerG 1 Reply Last reply Reply Quote 0
                  • gskgerG Offline
                    gskger Top contributor @ronivay
                    last edited by

                    I completely missed that in the troubleshooting documentation but it is already there - nice 👍

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

                      As @gskger siad, this was already documented and visible by searching the term "recover" in the search bar 🙂

                      1 Reply Last reply Reply Quote 0
                      • olivierlambertO olivierlambert marked this topic as a question on
                      • olivierlambertO olivierlambert has marked this topic as solved on
                      • B Offline
                        bxen @gskger
                        last edited by

                        @gskger said in create XO account from ssh:

                        I completely missed that in the troubleshooting documentation but it is already there - nice 👍

                        @olivierlambert said in create XO account from ssh:

                        As @gskger siad, this was already documented and visible by searching the term "recover" in the search bar 🙂

                        Uh 😊 - I tried a lot of other search terms, just not recover. Anyway - I'm back on track, thank you very much for all your help.

                        1 Reply Last reply Reply Quote 2

                        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