You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2014/08/23 01:12:13 UTC

[jira] [Reopened] (SOLR-5322) Permisions didn't check when call discoverUnder

     [ https://issues.apache.org/jira/browse/SOLR-5322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hoss Man reopened SOLR-5322:
----------------------------


bq.  If any subdirectory of the home directory isn't readable, Solr fails as indicated above.

Yeah ... that part really wasn't clear from the initial bug report.
 
The issue here is that in core-discover mode, solr really can't tell if a non-readable directory is a sign of a problem or not.  The flip side of ignoring non-readable directories is that it would mean solr might happily startup w/o some core you are expecting to be there if the permissions are set wrong.

bq. ...Despite this otherwise being an otherwise healthy Solr home directory, Solr fails because it can't read lost+found. 

The specific situation you show is a great example of why i would argue that the presense of a non-readable directory like {{lost+found}} is in fact a serious problem and you might not want thi solr node to startup because of it.  what if lost+found contains your entire collection?

-----

regardless of wether we think solr should ignore non-readbale files, we should at least generate a better error message then NullPointerException




> Permisions didn't check when call discoverUnder
> -----------------------------------------------
>
>                 Key: SOLR-5322
>                 URL: https://issues.apache.org/jira/browse/SOLR-5322
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - Clustering
>    Affects Versions: 4.5
>         Environment: Centos 6.4
> tomcat6
>            Reporter: Said Chavkin
>
> Hello.
> When in solr/home directory exists directory to which solr do not have rights, then solr failed to start with exception
> 2108 [main] INFO org.apache.solr.core.CoresLocator - Looking for core definitions underneath /var/lib/solr
> 2109 [main] ERROR org.apache.solr.servlet.SolrDispatchFilter - Could not start Solr. Check solr/home property and the logs
> 2138 [main] ERROR org.apache.solr.core.SolrCore - null:java.lang.NullPointerException
>         at org.apache.solr.core.CorePropertiesLocator.discoverUnder(CorePropertiesLocator.java:121)
>         at org.apache.solr.core.CorePropertiesLocator.discoverUnder(CorePropertiesLocator.java:130)
>         at org.apache.solr.core.CorePropertiesLocator.discover(CorePropertiesLocator.java:113)
>         at org.apache.solr.core.CoreContainer.load(CoreContainer.java:226)
>         at org.apache.solr.servlet.SolrDispatchFilter.createCoreContainer(SolrDispatchFilter.java:177)
>         at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:127)
>         at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
>         at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
>         at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)
>         at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3838)
>         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4488)
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
>         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
>         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
>         at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
>         at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
>         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
>         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
>         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
>         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>         at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
>         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>         at org.apache.catalina.core.StandardService.start(StandardService.java:516)
>         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
> 2138 [main] INFO org.apache.solr.servlet.SolrDispatchFilter - SolrDispatchFilter.init() done
> For example:
> solr home located on /var/lib/solr
> /var/lib/solr is another file system, it has lost+found directory.
> As result solr can't to star.
> Yours faithfully.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org