Forgot password for the webgui
-
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 passwordI read somewhere that yiu have to use this command in CLI
xo-server-recover-account youremail@here.combut how to install CLI?
I use tyhe opensource versionI 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?
-
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.
-
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:26and when I ping, I get:
ping: xo.my-company.net: Name or service not knownwhat 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? -
@isener said in Forgot password for the webgui:
and when I ping, I get:
ping: xo.my-company.net: Name or service not knownwhat 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.combut 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
-
@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 -
@isener just run
/opt/xo/xo-server/dist/recover-account-cli.mjs admin@admin.net
-
@ronivay said in Forgot password for the webgui:
/opt/xo/xo-server/dist/recover-account-cli.mjs admin@admin.net
Thanks, it works
-
@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