There is an error obtained while creating a core in the application. The error is seen in the securonix.log. The error is similar to the one below.

05:18:26,435 DEBUG [ConfigController] saveTPICore - [corecriticality:0.2, mentry:, token_val:a27ff44b-a30e-4d00-87ba-a07348a2c06a, org.codehaus.groovy.grails.SYNCHRONIZER_TOKEN:a27ff44b-a30e-4d00-87ba-a07348a2c06a, org:[codehaus.groovy.grails.SYNCHRONIZER_TOKEN=a27ff44b-a30e-4d00-87ba-a07348a2c06a, codehaus=["groovy.grails.SYNCHRONIZER_TOKEN":"a27ff44b-a30e-4d00-87ba-a07348a2c06a", "groovy":["grails.SYNCHRONIZER_TOKEN":"a27ff44b-a30e-4d00-87ba-a07348a2c06a", "grails":["SYNCHRONIZER_TOKEN":"a27ff44b-a30e-4d00-87ba-a07348a2c06a"]]]], corecategory:Malware, msource:, corename:tpiGECorp, action:saveTPICore, controller:config] 05:18:26,453 DEBUG [SolrUtil] Creating TPI core - tpiGECorp 05:23:47,305 DEBUG [JobStoreTX] MisfireHandler: scanning for misfires... 05:23:47,307 DEBUG [JobStoreTX] Found 0 triggers that missed their scheduled fire-time. 05:24:07,319 ERROR [CoreContainer] Unable to create core: tpiGECorp org.apache.solr.common.SolrException: Lock obtain timed out: NativeFSLock@/data/securonix/securonix_home/solr/tpiGECorp/data/index/write.lock: java.io.IOException: No locks available at org.apache.solr.core.SolrCore.<init>(SolrCore.java:835) at org.apache.solr.core.SolrCore.<init>(SolrCore.java:629) at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:622) at org.apache.solr.core.CoreContainer.create(CoreContainer.java:657) at org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(CoreAdminHandler.java:523) at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:145) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135) at org.apache.solr.servlet.SolrDispatchFilter.handleAdminRequest(SolrDispatchFilter.java:611) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:209) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:158) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@/data/securonix/securonix_home/solr/tpiGECorp/data/index/write.lock: java.io.IOException: No locks available at org.apache.lucene.store.Lock.obtain(Lock.java:84) at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:672) at org.apache.solr.update.SolrIndexWriter.<init>(SolrIndexWriter.java:77) at org.apache.solr.update.SolrIndexWriter.create(SolrIndexWriter.java:64) at org.apache.solr.core.SolrCore.initIndex(SolrCore.java:510) at org.apache.solr.core.SolrCore.<init>(SolrCore.java:759) ... 25 more Caused by: java.io.IOException: No locks available at sun.nio.ch.FileDispatcherImpl.lock0(Native Method) at sun.nio.ch.FileDispatcherImpl.lock(FileDispatcherImpl.java:90) at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:1063) at java.nio.channels.FileChannel.tryLock(FileChannel.java:1154) at org.apache.lucene.store.NativeFSLock.obtain(NativeFSLockFactory.java:217) at org.apache.lucene.store.Lock.obtain(Lock.java:95) ... 30 more 05:24:07,321 ERROR [SolrCore] org.apache.solr.common.SolrException: Error CREATEing SolrCore 'tpiGECorp': Unable to create core: tpiGECorp Caused by: No locks available at org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(CoreAdminHandler.java:554) at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:145) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135) at org.apache.solr.servlet.SolrDispatchFilter.handleAdminRequest(SolrDispatchFilter.java:611) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:209) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:158) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.solr.common.SolrException: Unable to create core: tpiGECorp at org.apache.solr.core.CoreContainer.recordAndThrow(CoreContainer.java:1150) at org.apache.solr.core.CoreContainer.create(CoreContainer.java:666) at org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(CoreAdminHandler.java:523) ... 21 more Caused by: org.apache.solr.common.SolrException: Lock obtain timed out: NativeFSLock@/data/securonix/securonix_home/solr/tpiGECorp/data/index/write.lock: java.io.IOException: No locks available at org.apache.solr.core.SolrCore.<init>(SolrCore.java:835) at org.apache.solr.core.SolrCore.<init>(SolrCore.java:629) at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:622) at org.apache.solr.core.CoreContainer.create(CoreContainer.java:657) ... 22 more Caused by: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@/data/securonix/securonix_home/solr/tpiGECorp/data/index/write.lock: java.io.IOException: No locks available at org.apache.lucene.store.Lock.obtain(Lock.java:84) at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:672) at org.apache.solr.update.SolrIndexWriter.<init>(SolrIndexWriter.java:77) at org.apache.solr.update.SolrIndexWriter.create(SolrIndexWriter.java:64) at org.apache.solr.core.SolrCore.initIndex(SolrCore.java:510) at org.apache.solr.core.SolrCore.<init>(SolrCore.java:759) ... 25 more Caused by: java.io.IOException: No locks available at sun.nio.ch.FileDispatcherImpl.lock0(Native Method) at sun.nio.ch.FileDispatcherImpl.lock(FileDispatcherImpl.java:90) at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:1063) at java.nio.channels.FileChannel.tryLock(FileChannel.java:1154) at org.apache.lucene.store.NativeFSLock.obtain(NativeFSLockFactory.java:217) at org.apache.lucene.store.Lock.obtain(Lock.java:95) ... 30 more

05:24:07,461 ERROR [ConfigController] saveTPICore error - null 05:24:07,937 DEBUG [ConfigController] showTpiSearch - [org.codehaus.groovy.grails.SYNCHRONIZER_TOKEN:a27ff44b-a30e-4d00-87ba-a07348a2c06a, org:[codehaus.groovy.grails.SYNCHRONIZER_TOKEN=a27ff44b-a30e-4d00-87ba-a07348a2c06a, codehaus=["groovy.grails.SYNCHRONIZER_TOKEN":"a27ff44b-a30e-4d00-87ba-a07348a2c06a", "groovy":["grails.SYNCHRONIZER_TOKEN":"a27ff44b-a30e-4d00-87ba-a07348a2c06a", "grails":["SYNCHRONIZER_TOKEN":"a27ff44b-a30e-4d00-87ba-a07348a2c06a"]]]], type:post, action:showTpiSearch, controller:config]

how do i solve this ?

asked 31 Oct '14, 02:42

mnair's gravatar image

mnair
71149
accept rate: 9%


Please make the following changes to solve the error - Kill the application - Remove the lock file created in the index directory of the solr core recently created - Proceed to the securonix_home/solr/tpi/conf directory - Make changes to the solrconfig.xml - uncomment the following tags <locktype>simple</locktype> and <unlockonstartup>true</unlockonstartup>

link

answered 31 Oct '14, 02:49

mnair's gravatar image

mnair
71149
accept rate: 9%

We have seen these in specific environments. the way recommended to resolve it to make sure to add/edit the below tags in the Securonix_home/solr/tpi/conf/solrconfig.xml file. The tag to be noted is below

< indexDefaults >

    < lockType >simple< /lockType >

    < unlockOnStartup >true< /unlockOnStartup >

< /indexDefaults >

refer to this link for more details

Solr Locking reference

link

answered 31 Oct '14, 02:50

anjan's gravatar image

anjan ♦♦
1112311
accept rate: 22%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×1

Asked: 31 Oct '14, 02:42

Seen: 5,766 times

Last updated: 31 Oct '14, 02:50

Related questions