AnsweredAssumed Answered

Solr doesn't start when using NFS external storage

Question asked by eradan on Feb 24, 2016
Latest reply on Feb 26, 2016 by eradan
Hello,

using an external storage mounted using nfs Solr won't start.
The problem seems to be related to a locking issue:


2016-02-24 16:28:14,564  ERROR [solr.core.CoreContainer] [coreLoadExecutor-5-thread-1] Unable to create core: archive
org.apache.solr.common.SolrException: Lock obtain timed out: NativeFSLock@/mnt/storage/RT-EDOC-P1/alfresco/alf_data/solr4/index/archive/SpacesStore/index/write.lock: java.io.IOException: No locks available
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:868)
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:643)
        at org.apache.solr.core.CoreContainer.create(CoreContainer.java:556)
        at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:261)
        at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:253)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)


The storage is mounted as follows in the fs-tab:


10.10.21.138:/mnt/edoc-vg01/edoc-lv01/edoc-share   /mnt/storage   nfs   defaults   1 2


The storage permissions are correct and I'm able to read/write on the storage using same user used by Alfresco.

Any ideas?

Thanks,
Ivan

Outcomes