Forgotten or lost local admin credentials necessitate a password reset.
Login to Aria Operations for Logs (formerly vRealize Log Insight) via the local admin account fails even after utilizing the li-reset-admin-passwd.sh script. This behavior indicates the account may require unlocking
[YYYY-MM-DD
HH:MM:SS.976+0000]
["application-akka.actor.default-dispatcher-20"/###.###.###.### INFO]
[controllers.AuthenticationController.api_audit] [###.###.###.### - POST
/api/v1/sessions] [YYYY-MM-DD HH:MM:SS.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:
Table of Contents
If api_audit.log indicates that a monitoring tool is causing the account lockout, verify the tool configuration and remove any test jobs connecting to Aria Operations for Logs. If the lockout originates from within Aria Operations, update the integration credentials to match the current password. Proceed to unlock the account by following the steps outlined below.
To reset and/or unlock the admin password/account in Aria Operations for Logs, follow the steps below:
Aria Operations for Logs 8.12 and later (formerly vRealize Log Insight 8.8 to 8.10.2):
Reset the admin password
In the event of forgotten or lost local admin credentials, follow the steps below to reset the password. Aria Operations for Logs 8.12 and later includes an updated script by default, which facilitates a direct password reset to a preferred value.
/usr/lib/loginsight/application/sbin/li-reset-admin-passwd.sh --resetAdminPasswordNote: Utilizing the resetAdminPassword parameter automatically generates a random password. This password can subsequently be updated within the UI by navigating to the user preferences in the top right corner.
/usr/lib/loginsight/application/sbin/li-reset-admin-passwd.sh --resetAdminPassword NewPasswordNote: Replace NewPassword in the command above with the desired password. If special characters are used, encapsulate the password in single quotes (e.g., 'Password1!').
Unlock the admin account
If login to the vRealize Log Insight UI via the local admin account remains unsuccessful following a password change with the li-reset-admin-passwd.sh script, proceed with the following steps 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 --checkAdminStatusvRealize Log Insight 8.1.1 - 8.6.2:
Reset the admin password
In the event of forgotten or lost local admin credentials, follow the steps below to perform a password reset.
Option 1
/usr/lib/loginsight/application/sbin/li-reset-admin-passwd.sh
Option 2
mv /usr/lib/loginsight/application/sbin/li-reset-admin-passwd.sh /usr/lib/loginsight/application/sbin/li-reset-admin-passwd.sh.origchmod 755 /usr/lib/loginsight/application/sbin/li-reset-admin-passwd.sh
/usr/lib/loginsight/application/sbin/li-reset-admin-passwd.sh --resetAdminPassword
Note: Utilizing the resetAdminPassword parameter automatically generates a random password. This password can subsequently be updated within the UI by navigating to the user preferences menu in the top right. Alternatively, the following command allows for a direct reset to a preferred password:
/usr/lib/loginsight/application/sbin/li-reset-admin-passwd.sh --resetAdminPassword NewPasswordNote: Replace NewPassword in the command above with the desired password.
Unlock the admin account
Should login to Aria Operations for Logs (Log Insight) via the local admin account remain unsuccessful following a password change with the li-reset-admin-passwd.sh script, utilize one of the following options to unlock the account.
Option 1
expand on;use logdb;select id,status from user where user_name='admin' allow filtering;update user set status=1 where id=adminUserID;adminUserID with the ID of the admin user observed in the output from step 4.select id,status from user where user_name='admin' allow filtering;
Option 2
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 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.
VMware Cloud Foundation Installations
If the API is disconnected within SDDC Manager on VMware Cloud Foundation and the admin password has been reset outside of SDDC Manager: