cancel
Showing results for 
Search instead for 
Did you mean: 

Solr doesn't start when using NFS external storage

eradan
Champ in-the-making
Champ in-the-making
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
2 REPLIES 2

romschn
Star Collaborator
Star Collaborator
Some initial points I can think of are -
Check if lock daemon is running on NFS server or not.  ps aux | grep lockd.
Is it possible to unmount and remount again and check.

Hope this helps.

eradan
Champ in-the-making
Champ in-the-making
lockd deamon is active on server.