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

    Forgot password for the webgui

    Xen Orchestra
    4
    8
    301
    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.
    • I
      isener
      last edited by

      Hi,
      I forgot the password for the webui login
      it was
      login: admin@admin.net / password: admin
      but I changed, and I forgot the new password

      I read somewhere that yiu have to use this command in CLI
      xo-server-recover-account youremail@here.com

      but how to install CLI?
      I use tyhe opensource version

      I did "npm install -g xo-cli"
      after
      "xo-cli --register http://xo.my-company.net/api/admin@admin.net"

      but I get the next error:
      ✖ getaddrinfo ENOTFOUND xo.my-company.net
      Error: getaddrinfo ENOTFOUND xo.my-company.net
      at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)

      what I have to do?

      lawrencesystemsL 1 Reply Last reply Reply Quote 0
      • lawrencesystemsL
        lawrencesystems Ambassador 📣 @isener
        last edited by

        @isener

        I think the XO-CLI has to be registered with XO to get it working and seeing as you are locked out that is not an option. Maybe someone here will offer a way to edit the database if not I would just delete and rebuild XO.

        1 Reply Last reply Reply Quote 1
        • I
          isener
          last edited by isener

          I had a snapshot from some days ago, i used that, now I can login

          but:
          when I try to register with the:
          xo-cli --register http://xo.my-company.net/api/admin@admin.net
          with the right password, i het error:

          ✖ getaddrinfo ENOTFOUND xo.my-company.net
          Error: getaddrinfo ENOTFOUND xo.my-company.net
          at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26

          and when I ping, I get:
          ping: xo.my-company.net: Name or service not known

          what is wrong?
          xo.my-company.net -> which ip address should this be:
          of the xcp-neg server or the server where the xen-orchestar is installed?

          from where to run this command:
          xo-cli --register http://xo.my-company.net/api/admin@admin.net
          the xcp-neg server or the server where the xen-orchestar is installed?

          ronivayR 1 Reply Last reply Reply Quote 0
          • ronivayR
            ronivay Top contributor 💪 @isener
            last edited by ronivay

            @isener said in Forgot password for the webgui:

            and when I ping, I get:
            ping: xo.my-company.net: Name or service not known

            what is wrong?

            There is no DNS record for xo.my-company.net or you can’t resolve it from wherever you’re trying now.

            xo.my-company.net -> which ip address should this be:
            of the xcp-neg server or the server where the xen-orchestar is installed?

            from where to run this command:
            xo-cli --register http://xo.my-company.net/api/admin@admin.net
            the xcp-neg server or the server where the xen-orchestar is installed?

            Answer to both would be where XO is installed.

            @isener said in Forgot password for the webgui:

            I read somewhere that yiu have to use this command in CLI
            xo-server-recover-account youremail@here.com

            but how to install CLI?

            This does not mean you need xo-cli installed. CLI refers to just active shell to your XOA VM, via console or ssh. Just run the command in the shell. If you have XO from sources, there's no such command alias and you need to run the script directly from where your XO is installed, like <installdir>/packages/xo-server/dist/recover-account-cli.mjs

            I 1 Reply Last reply Reply Quote 1
            • I
              isener @ronivay
              last edited by

              @ronivay
              how to sun the script?
              when I run:
              locate recover-account-cli.mjs
              I get
              /opt/xo/xo-builds/xen-orchestra-202207101640/packages/xo-server/dist/recover-account-cli.mjs
              /opt/xo/xo-builds/xen-orchestra-202207101640/packages/xo-server/dist/recover-account-cli.mjs.map
              /opt/xo/xo-builds/xen-orchestra-202207101640/packages/xo-server/src/recover-account-cli.mjs
              /opt/xo/xo-builds/xen-orchestra-202207101726/packages/xo-server/dist/recover-account-cli.mjs
              /opt/xo/xo-builds/xen-orchestra-202207101726/packages/xo-server/dist/recover-account-cli.mjs.map
              /opt/xo/xo-builds/xen-orchestra-202207101726/packages/xo-server/src/recover-account-cli.mjs
              /opt/xo/xo-builds/xen-orchestra-202211262158/packages/xo-server/dist/recover-account-cli.mjs
              /opt/xo/xo-builds/xen-orchestra-202211262158/packages/xo-server/dist/recover-account-cli.mjs.map
              /opt/xo/xo-builds/xen-orchestra-202211262158/packages/xo-server/src/recover-account-cli.mjs
              /opt/xo/xo-src/xen-orchestra/packages/xo-server/src/recover-account-cli.mjs

              ronivayR 1 Reply Last reply Reply Quote 0
              • ronivayR
                ronivay Top contributor 💪 @isener
                last edited by

                @isener just run /opt/xo/xo-server/dist/recover-account-cli.mjs admin@admin.net

                I 1 Reply Last reply Reply Quote 2
                • I
                  isener @ronivay
                  last edited by

                  @ronivay said in Forgot password for the webgui:

                  /opt/xo/xo-server/dist/recover-account-cli.mjs admin@admin.net

                  Thanks, it works 🙂

                  DarkbeldinD 1 Reply Last reply Reply Quote 0
                  • DarkbeldinD
                    Darkbeldin Vates 🪐 Pro Support Team 💡 @isener
                    last edited by

                    @isener FYI you can register the xo-cli with the SSH account of the VM and if you don't have an SSH account you can create one.
                    Follow the doc here: https://xen-orchestra.com/docs/troubleshooting.html#set-or-recover-xoa-vm-password

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post