introduction

2011年6月17日 星期五

Failure to update clients' profile due to locked indexing

One morning, I tried to edit a client but the system failed to save the changes, namely "submission failed". So were all other edits. The stdout_(date) log file (path: CMS3\Tomcat\Log\) revealed:

errors.GrailsExceptionResolver org.compass.core.engine.SearchEngineException: Failed to delete alias [Patient] and ids [[stored/uncompressed,indexed<pid:15958>]]; nested exception is org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@C:\.grails\projects\CMS3\searchable-index\production\index\patient\write.lock

In short, the searchable-index folder was locked. I was told that the lock up might have resulted from the conflict between the system's indexing function with that of Windows. The solution is disabling the latter's application on the searchable index: Right click C:\.grails\projects\CMS3\searchable-index, select properties, click "advanced" and un-check "indexing". Restart the server afterward. Problem solved. This modification is recommended at the beginning.

沒有留言:

張貼留言