Hello Anurag,

The specific problem I faced when started solr in Geronimo 
(http://{server}:{port}/solr) is /solr/data/index could not be found, then solr 
tried to create that folder but failed, even permission is granted.

More detail got from the log: "Solr index directory > '/solr/data/index' 
doesn't exist. Creating new index...
2010-12-22 15:13:19,599 ERROR [SolrDispatchFilter] Could not start SOLR. Check 
solr/home property
java.lang.RuntimeException: java.io.IOException: Cannot create directory: 
/solr/data/index

You're right, I'm using solr is 1.4.1

Thanks indeed
Bac Hoang
 


-----Ursprüngliche Nachricht-----
Von: Anurag [mailto:anurag.it.jo...@gmail.com]
Gesendet: tư 12/22/2010 10:17 CH
An: solr-user@lucene.apache.org
Betreff: Re: Solr index directory '/solr/data/index' doesn't exist. Creating 
new index... on Geronimo
 

What you want to ask? When this problem arises.? Is it when you try to index
to solr? What are the commands that you are running? Which version of solr(
1.4.1?).
On Wed, Dec 22, 2010 at 5:49 PM, Bac Hoang [via Lucene] <
ml-node+2130906-265633473-146...@n3.nabble.com<ml-node%2b2130906-265633473-146...@n3.nabble.com>
> wrote:

> Hello Erick,
>
> Could you kindly give a hand on my problem. Any ideas, hints,
> suggestions are highly appreciated. Many thanks
>
> 1. The problem: Solr index directory '/solr/data/index' doesn't exist.
> Creating new index...
> 2. Some other info.:
>
> - use the solr example 1.4.1
> - Geronimo 2.1.6
> - solr home: /opt/dev/config/solr
> - dataDir: /opt/dev/config/solr/data/index. I set the read, write right
> to every and each folder, from opt, dev...to the last one, index (just
> for sure ;) )
> - <lockType>:
>      - single/ simple: Cannot create directory: /solr/data/index at
> org.apache.solr.core.SolrCore.initIndex(SolrCore.java:397)
>      - native: Cannot create directory: /solr/data/index at
> org.apache.lucene.store.NativeFSLockFactory.acquireTestLock
>
> - the Geronimo log:
> ===============
> 2010-12-22 15:13:03,001 INFO  [SupportedModesServiceImpl] Portlet mode
> 'edit' not found for portletId: '/console-base.WARModules!874780194|0'
> 2010-12-22 15:13:03,001 INFO  [SupportedModesServiceImpl] Portlet mode
> 'help' not found for portletId: '/console-base.WARModules!874780194|0'
> 2010-12-22 15:13:07,941 INFO  [DirectoryMonitor] Hot deployer notified
> that an artifact was removed: default/solr2/1293005281314/war
> 2010-12-22 15:13:09,148 INFO  [SupportedModesServiceImpl] Portlet mode
> 'edit' not found for portletId: '/console-base.WARModules!874780194|0'
> 2010-12-22 15:13:09,148 INFO  [SupportedModesServiceImpl] Portlet mode
> 'help' not found for portletId: '/console-base.WARModules!874780194|0'
> 2010-12-22 15:13:14,139 INFO  [SupportedModesServiceImpl] Portlet mode
> 'edit' not found for portletId: '/plugin.Deployment!227983155|0'
> 2010-12-22 15:13:18,795 WARN  [TomcatModuleBuilder] Web application .
> does not contain a WEB-INF/geronimo-web.xml deployment plan.  This may
> or may not be a problem, depending on whether you have things like
> resource references that need to be resolved.  You can also give the
> deployer a separate deployment plan file on the command line.
> 2010-12-22 15:13:19,040 INFO  [SolrResourceLoader] Using JNDI solr.home:
> /opt/dev/config/solr
> 2010-12-22 15:13:19,040 INFO  [SolrResourceLoader] Solr home set to
> '/opt/dev/config/solr/'
> 2010-12-22 15:13:19,051 INFO  [SolrDispatchFilter]
> SolrDispatchFilter.init()
> ....
> 2010-12-22 15:13:19,462 INFO  [IndexSchema] default search field is text
> 2010-12-22 15:13:19,463 INFO  [IndexSchema] query parser default
> operator is OR
> 2010-12-22 15:13:19,464 INFO  [IndexSchema] unique key field: id
> 2010-12-22 15:13:19,490 INFO  [JmxMonitoredMap] JMX monitoring is
> enabled. Adding Solr mbeans to JMX Server:
> com.sun.jmx.mbeanserver.jmxmbeanser...@144752d
> 2010-12-22 15:13:19,525 INFO  [SolrCore] Added SolrEventListener:
> org.apache.solr.core.QuerySenderListener{queries=[]}
> 2010-12-22 15:13:19,525 INFO  [SolrCore] Added SolrEventListener:
> org.apache.solr.core.QuerySenderListener{queries=[{q=solr
> rocks,start=0,rows=10}, {q=static firstSearcher warming query from
> solrconfig.xml}]}
> 2010-12-22 15:13:19,533 WARN  [SolrCore] Solr index directory
> '/solr/data/index' doesn't exist. Creating new index...
> 2010-12-22 15:13:19,599 ERROR [SolrDispatchFilter] Could not start SOLR.
> Check solr/home property
> java.lang.RuntimeException: java.io.IOException: Cannot create
> directory: /solr/data/index
>      at org.apache.solr.core.SolrCore.initIndex(SolrCore.java:397)
>      at org.apache.solr.core.SolrCore.<init>(SolrCore.java:545)
>      at
> org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:137)
>
>      at
> org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
>
> ...
> 2010-12-22 15:13:19,601 INFO  [SolrDispatchFilter]
> SolrDispatchFilter.init() done
> 2010-12-22 15:13:19,601 INFO  [SolrServlet] SolrServlet.init()
> 2010-12-22 15:13:19,602 INFO  [SolrResourceLoader] Using JNDI solr.home:
> /opt/dev/config/solr
> 2010-12-22 15:13:19,602 INFO  [SolrServlet] SolrServlet.init() done
> 2010-12-22 15:13:19,606 INFO  [SolrResourceLoader] Using JNDI solr.home:
> /opt/dev/config/solr
> 2010-12-22 15:13:19,606 INFO  [SolrUpdateServlet]
> SolrUpdateServlet.init() done
> 2010-12-22 15:13:19,721 INFO  [SupportedModesServiceImpl] Portlet mode
> 'edit' not found for portletId: '/plugin.Deployment!227983155|0'
>
> ===============
>
> With regards,
> Bac Hoang
>
>
>
>
> ------------------------------
>  View message @
> http://lucene.472066.n3.nabble.com/Dismax-score-maximu-of-any-one-field-tp2119563p2130906.html
> To start a new topic under Solr - User, email
> ml-node+472068-1941297125-146...@n3.nabble.com<ml-node%2b472068-1941297125-146...@n3.nabble.com>
> To unsubscribe from Solr - User, click 
> here<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=472068&code=YW51cmFnLml0LmpvbGx5QGdtYWlsLmNvbXw0NzIwNjh8LTIwOTgzNDQxOTY=>.
>
>



-- 
Kumar Anurag


-----
Kumar Anurag

-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/Dismax-score-maximu-of-any-one-field-tp2119563p2131762.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to