Re: solr on third party hosting account throws java.lang.RuntimeException: Cannot create directory: /usr/local/tomcat/a
Ok got it The problem was very simple, thanks to post i just have to comment the following line in solrconfig.xml ${solr.data.dir:./solr/data} and that seems to do the trick Thanks guys -- View this message in context: http://lucene.472066.n3.nabble.com/solr-on-third-party-hosting-account-throws-java-lang-RuntimeException-Cannot-create-directory-usr-loa-tp2204009p2207265.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: solr on third party hosting account throws java.lang.RuntimeException: Cannot create directory: /usr/local/tomcat/a
Thanks thats the bottle neck i am strugging with. i have configured the jndi lookup for solr home many times on my pc no issues, but just a bit clueless on how to go with a remote machine. here is te exact snipped i have in my web.xml please have a look and tell me is there something wrong with the way i declare. solr/home /home/myaccount/solr-home java.lang.String then i also treid this java:comp/env/solr/home /home/myaccount/solr-home java.lang.String but still no luck -- View this message in context: http://lucene.472066.n3.nabble.com/solr-on-third-party-hosting-account-throws-java-lang-RuntimeException-Cannot-create-directory-usr-loa-tp2204009p2207211.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: solr on third party hosting account throws java.lang.RuntimeException: Cannot create directory: /usr/local/tomcat/a
/usr/local/tomcat/apache-tomcat-6.0.26/bin/./solr/data/index Thats showing that solr is getting as solr/home as /usr/local/tomcat/apache-tomcat-6.0.26/bin/ either your solr/home settings in web.xml is not working Or You have the default solrconfig.xml settings ,either you have to modify the "data-directory" setting or comment out data-directory setting in solrconfig.xml - Grijesh -- View this message in context: http://lucene.472066.n3.nabble.com/solr-on-third-party-hosting-account-throws-java-lang-RuntimeException-Cannot-create-directory-usr-loa-tp2204009p2204298.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: solr on third party hosting account throws java.lang.RuntimeException: Cannot create directory: /usr/local/tomcat/a
The only Tomcat configuration I know about is in Catalina/localhost. This is documented in the Solr wiki. On Wed, Jan 5, 2011 at 10:40 PM, Darniz wrote: > > Hi Guys, > I am using third party hosting i uploaded the solr war file. Stopped my > tomcat, changed the web.xml and set the solr home manually there to > /usr/myaccountname/solr-home > > As said in doc, i copied the entire contents under solr_dist/example/solr > under my solr-home folder. i bounced the server and when i try to access > solr, i get the following error, does this has something to do with my > hosting account permission or i have set some environment variable using > export command. Any help will be appreciated. > > HTTP Status 500 - Severe errors in solr configuration. Check your log files > for more detailed information on what may be wrong. If you want solr to > continue after configuration errors, change: > false in null > - > java.lang.RuntimeException: Cannot create directory: > /usr/local/tomcat/apache-tomcat-6.0.26/bin/./solr/data/index at > org.apache.lucene.store.NativeFSLockFactory.acquireTestLock(NativeFSLockFactory.java:74) > at > org.apache.lucene.store.NativeFSLockFactory.makeLock(NativeFSLockFactory.java:137) > at org.apache.lucene.store.Directory.makeLock(Directory.java:131) at > org.apache.lucene.index.IndexWriter.init(IndexWriter.java:1563) at > org.apache.lucene.index.IndexWriter.(IndexWriter.java:1421) at > org.apache.solr.update.SolrIndexWriter.(SolrIndexWriter.java:191) at > org.apache.solr.core.SolrCore.initIndex(SolrCore.java:392) at > org.apache.solr.core.SolrCore.(SolrCore.java:545) at > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:137) > at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83) > at > org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295) > at > -- > View this message in context: > http://lucene.472066.n3.nabble.com/solr-on-third-party-hosting-account-throws-java-lang-RuntimeException-Cannot-create-directory-usr-loa-tp2204009p2204009.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- Lance Norskog goks...@gmail.com
solr on third party hosting account throws java.lang.RuntimeException: Cannot create directory: /usr/local/tomcat/a
Hi Guys, I am using third party hosting i uploaded the solr war file. Stopped my tomcat, changed the web.xml and set the solr home manually there to /usr/myaccountname/solr-home As said in doc, i copied the entire contents under solr_dist/example/solr under my solr-home folder. i bounced the server and when i try to access solr, i get the following error, does this has something to do with my hosting account permission or i have set some environment variable using export command. Any help will be appreciated. HTTP Status 500 - Severe errors in solr configuration. Check your log files for more detailed information on what may be wrong. If you want solr to continue after configuration errors, change: false in null - java.lang.RuntimeException: Cannot create directory: /usr/local/tomcat/apache-tomcat-6.0.26/bin/./solr/data/index at org.apache.lucene.store.NativeFSLockFactory.acquireTestLock(NativeFSLockFactory.java:74) at org.apache.lucene.store.NativeFSLockFactory.makeLock(NativeFSLockFactory.java:137) at org.apache.lucene.store.Directory.makeLock(Directory.java:131) at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:1563) at org.apache.lucene.index.IndexWriter.(IndexWriter.java:1421) at org.apache.solr.update.SolrIndexWriter.(SolrIndexWriter.java:191) at org.apache.solr.core.SolrCore.initIndex(SolrCore.java:392) at org.apache.solr.core.SolrCore.(SolrCore.java:545) at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:137) at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295) at -- View this message in context: http://lucene.472066.n3.nabble.com/solr-on-third-party-hosting-account-throws-java-lang-RuntimeException-Cannot-create-directory-usr-loa-tp2204009p2204009.html Sent from the Solr - User mailing list archive at Nabble.com.