li-reset-admin-passwd.sh script. This indicates the account may need to be unlocked.api_audit.log logs that the IP address right before the lockout message is coming from a monitoring tool. Example of an extract below shows ###.###.###.### where the monitoring tool IP address is usually included.
[2024-09-23 09:33:10.976+0000] ["application-akka.actor.default-dispatcher-20"/###.###.###.### INFO] [controllers.AuthenticationController.api_audit] [###.###.###.### - POST /api/v1/sessions]
[2024-09-23 09:33:11.118+0000] ["application-akka.actor.default-dispatcher-20"/###.###.###.### INFO] [controllers.AuthenticationController.api_audit] [Authentication failed. Invalid credentials or account is locked.]
The issue has multiple contributing causes:
If the api_audit.log is showing that a monitoring tool is locking out the account, please check the monitoring tool and remove any test jobs that connect to Aria Operations for Logs. If you see that Aria Operations is locking out the account, please update the password in the integrations to the current password used. Then proceed to unlock the account following the appropriate steps below.
To reset and/or unlock the admin password/account in Aria Operations for Logs, follow the steps below:
If you have forgotten or lost the credentials to the local admin account, follow the steps below to reset the password. Aria Operations for Logs 8.12 and later contains the updated script by default, which will allow you to reset the password directly to your preferred password.
/usr/lib/loginsight/application/sbin/li-reset-admin-passwd.sh --resetAdminPassword
Note: Using the resetAdminPassword parameter will automatically generate a random password, which you can then change in the UI under the user's preferences in the top right.
/usr/lib/loginsight/application/sbin/li-reset-admin-passwd.sh --resetAdminPassword NewPassword
Note: Replace NewPassword in the above command with your desired password. If you are using special characters, please encapsulate the password with single quotes, for example 'Password1!'.
Note: Review Unable to login into Aria Operations for logs using a local or AD user, Error: Username/Password invalid error received on the UI even when the credentials are valid if you receive an 'Unable to get salt' or 'unable to get user data' error when running the above commands.
If you are unable to log in to the vRealize Log Insight UI with the local admin account, even after changing the password using the li-reset-admin-passwd.sh script mentioned above, proceed to the following to unlock the account:
/usr/lib/loginsight/application/sbin/li-reset-admin-passwd.sh --checkAdminStatus
/usr/lib/loginsight/application/sbin/li-reset-admin-passwd.sh --unlockAdmin
/usr/lib/loginsight/application/sbin/li-reset-admin-passwd.sh --checkAdminStatus
If you have forgotten or lost the credentials to the local admin account, follow the steps below to reset the password.
/usr/lib/loginsight/application/sbin/li-reset-admin-passwd.sh
Note: This command will reset your admin password to a randomly generated password.
mv /usr/lib/loginsight/application/sbin/li-reset-admin-passwd.sh /usr/lib/loginsight/application/sbin/li-reset-admin-passwd.sh.orig
li-reset-admin-passwd.sh script, and using a utility like WinSCP, copy it to the /usr/lib/loginsight/application/sbin/ directory on the same node as chosen for step 1.chmod 755 /usr/lib/loginsight/application/sbin/li-reset-admin-passwd.sh
/usr/lib/loginsight/application/sbin/li-reset-admin-passwd.sh --resetAdminPassword
Note: Using the resetAdminPassword parameter will automatically generate a random password, which you can then change in the UI under the user's preferences in the top right. Alternatively, you can use the following command to directly supply your desired password:
/usr/lib/loginsight/application/sbin/li-reset-admin-passwd.sh --resetAdminPassword NewPassword
Note: Replace NewPassword in the above command with your desired password.
If you are unable to log in to the Aria Operations for Logs (Log Insight) with the local admin account, even after changing the password using the li-reset-admin-passwd.sh script mentioned above, proceed to choose from one of the following options to unlock the account.
expand on;
use logdb;
select id,status from user where user_name='admin' allow filtering;
status for the admin account is 2, reset it back to 1 with the following command:
update user set status=1 where id=adminUserID;
Note: Replace adminUserID with the ID of the admin user observed in the output from step 4.
status value was set to 1:
select id,status from user where user_name='admin' allow filtering;
mv /usr/lib/loginsight/application/sbin/li-reset-admin-passwd.sh /usr/lib/loginsight/application/sbin/li-reset-admin-passwd.sh.orig
li-reset-admin-passwd.sh script, and using a utility like WinSCP, copy it to the /usr/lib/loginsight/application/sbin/ directory on the same node as chosen for step 1.chmod 755 /usr/lib/loginsight/application/sbin/li-reset-admin-passwd.sh
/usr/lib/loginsight/application/sbin/li-reset-admin-passwd.sh --checkAdminStatus
/usr/lib/loginsight/application/sbin/li-reset-admin-passwd.sh --unlockAdmin
/usr/lib/loginsight/application/sbin/li-reset-admin-passwd.sh --checkAdminStatus
If you do not have the root password to open an SSH session, please follow KB Reset and unlock the local admin account in VCF Operations for Logs.
If the API is disconnected within SDDC Manager on VMware Cloud Foundation and the admin password has been reset outside of SDDC Manager: