XCP-ng

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

    Solved [Solved] create XO account from ssh

    Xen Orchestra
    4
    12
    298
    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.
    • R
      ronivay @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
        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
          bxen @ronivay last edited by

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

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

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

            R 1 Reply Last reply Reply Quote 1
            • R
              ronivay @bxen last edited by

              Nice 🙂 Happy to help.

              1 Reply Last reply Reply Quote 0
              • gskger
                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.

                R 1 Reply Last reply Reply Quote 0
                • R
                  ronivay @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 😄

                  gskger 1 Reply Last reply Reply Quote 0
                  • gskger
                    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
                    • olivierlambert
                      olivierlambert Vates 🪐 Admin 🧑‍💻 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
                      • Topic has been marked as a question  olivierlambert olivierlambert 
                      • Topic has been marked as solved  olivierlambert olivierlambert 
                      • B
                        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
                        • First post
                          Last post