Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix "Failed to obtain lock" error in Endeca?

Tags:

bash

endeca

Endeca does not seems to be popular here, anyway

The problem:

Accidentally kill a running base line update process, and the lock is left-over somewhere.

I wish to find out where the left-over lock is, and to manually remove that.

Not so useful message returned by the base line update script:

INFO: Checking definition from AppConfig.xml against existing EAC provisioning.
INFO: Definition has not changed.
INFO: Starting baseline update script.
WARNING: Failed to obtain lock.

...ended

Alternatively, anyone can provide some links on endeca documentation (without login credential) will be helpful too.

like image 984
ajreal Avatar asked Jan 06 '11 11:01

ajreal


2 Answers

RTFM

If the running Deployment Template script breaks halfway through its execution due to an unhandled exception, or is manually interrupted by a user pressing Ctrl-C while it is running, the lock remains set within the EAC.

On Windows: .\runcommand.bat LockManager releaseLock update_lock

On UNIX: ./runcommand.sh LockManager releaseLock update_lock

Both the above will work if the default lock name is unchanged (update_lock)

like image 157
ajreal Avatar answered Sep 24 '22 07:09

ajreal


Assuming you're using their deployment template, I keep a .bat file in the "control" dir as it comes in handy sometimes.

e.g. on a windows machine create a .bat file w/ this as its contents:

rem runcommand.bat/sh LockManager releaseLock update_lock

call %~dp0..\config\script\set_environment.bat
call %~dp0runcommand.bat LockManager releaseLock update_lock

As far as their documentation goes... you have to register on their support site. I haven't seen it elsewhere.

like image 23
Brian Wells Avatar answered Sep 24 '22 07:09

Brian Wells