Releasing locks in Endeca Deployment Template
When you work with Endeca Search Products, you might frequently come across this error "Failed to obtain lock" when you try to run baseline update script, report generator script or any other deployment template scripts. The reason behind this is whenever the deployment template script does not complete properly due to some exception or is manually interrupted, the lock that is obtained at the starting of the process is retained in the EAC(Endeca Application Controller). You need to release these locks to run the process that is interrupted once again.
To remove these locks use runcommand.bat script that is placed in the scripts directory of your application. Navigate to [installation-path]\Endeca\apps\appname\control\ directory and run the following command,
runcommand.bat LockManager releaseLock update_lock
runcommand.sh LockManager releaseLock update_lock
The lock will be released and now you are good to run the deployment template script once again.
Please leave your comments and queries about this post in the comment sections in order for me to improve my writing skills and to showcase more useful posts. Thanks for reading this!!