Recover Admin Password when XOA CLI is not installed
-
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. -
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.
-
@Pechkin000
xo-server-recover-account
is not related toxo-cli
, it's a small tool that is installed alongsidexo-server
.But ff you have no way to access the server XO is installed on you cannot recover an account.
-
What about removing the Redis DB? (or the right record in the DB) so xo will recreate a default user?
-
@olivierlambert Yes, flushing the Redis database will trigger the creation of a default user. But it needs CLI access to the machine too.
-
I'm not sure it's an issue there. Let's see what @Pechkin000 says
-
@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? -
@Pechkin000 It should be installed alongside
xo-server
, it depends how you installed XO on this.But still, it requires root access for security.