[ 
https://issues.apache.org/jira/browse/SOLR-8073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14902925#comment-14902925
 ] 

Alexandre Rafalovitch commented on SOLR-8073:
---------------------------------------------

Looks like relative vs. absolute value to **-s** params resolves several 
directories under the server instead of under the current path. This ends up 
picking up different configuration files and probably causing this error:

Here are the differences in the command line (common elements removed).

With relative path:
bq. -Xloggc:"C:\Projects\solr-5.3.1\server\logs"/solr_gc.log 
-Dlog4j.configuration="file:C:\Projects\solr-5.3.1\server\resources\log4j.properties"
 -Dsolr.solr.home="example\techproducts\solr"

With absolute path:
bq. 
-Xloggc:"c:\Projects\solr-5.3.1\example\techproducts\solr\..\logs"/solr_gc.log 
-Dlog4j.configuration="file:C:\Projects\solr-5.3.1\example\resources\log4j.properties"
 -Dsolr.solr.home="c:\Projects\solr-5.3.1\example\techproducts\solr"

The relative path file access tracing shows:
{quote}
"12:01:28.7091929 
PM","java.exe","8816","IRP_MJ_CREATE","C:\Projects\solr-5.3.1\server\example\techproducts\solr\","PATH
 NOT FOUND","Desired Access: Read Data/List Directory, Synchronize, 
Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: 
n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a"
"12:01:29.6735187 
PM","java.exe","4496","FASTIO_NETWORK_QUERY_OPEN","C:\Projects\solr-5.3.1\server\example\techproducts\solr\lib","FAST
 IO DISALLOWED",""
"12:01:29.6735466 
PM","java.exe","4496","IRP_MJ_CREATE","C:\Projects\solr-5.3.1\server\example\techproducts\solr\lib","PATH
 NOT FOUND","Desired Access: Read Attributes, Disposition: Open, Options: Open 
Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: 
n/a"
"12:01:29.8164747 
PM","java.exe","4496","FASTIO_NETWORK_QUERY_OPEN","C:\Projects\solr-5.3.1\server\example\techproducts\solr\solr.xml","FAST
 IO DISALLOWED",""
"12:01:29.8165034 
PM","java.exe","4496","IRP_MJ_CREATE","C:\Projects\solr-5.3.1\server\example\techproducts\solr\solr.xml","PATH
 NOT FOUND","Desired Access: Read Attributes, Disposition: Open, Options: Open 
Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: 
n/a"
{quote}

Notice, it resolves to under the **server** directory, incorrectly.

> Solr fails to start on Windows with obscure errors when using relative path
> ---------------------------------------------------------------------------
>
>                 Key: SOLR-8073
>                 URL: https://issues.apache.org/jira/browse/SOLR-8073
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 5.3
>         Environment: Windows 7
>            Reporter: Alexandre Rafalovitch
>            Priority: Critical
>
> Clean 5.3  (and 5.3.1 RC3) on Windows:
> * bin\solr start -e techproducts
> * Visit Admin UI - all works
> * bin\solr stop -all
> * bin\solr start -s example\techproducts\solr
> * ERROR: Solr at http://localhost:8983/solr did not come online within 30 
> seconds!
> * Visit Admin UI - get an error:
> {quote}
> HTTP ERROR 500
> Problem accessing /solr/. Reason:
>     Server Error
> Caused by:
> java.lang.NullPointerException
>       at 
> org.apache.solr.servlet.SolrDispatchFilter.authenticateRequest(SolrDispatchFilter.java:237)
>       at 
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:186)
>       at 
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:179)
>       at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
>       at 
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
>       at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
>       at 
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
>       at 
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
>       at 
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
>       at 
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
>       at 
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
>       at 
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
>       at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
>       at 
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
>       at 
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
>       at 
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
>       at org.eclipse.jetty.server.Server.handle(Server.java:499)
>       at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
>       at 
> org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
>       at 
> org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
>       at 
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
>       at 
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
>       at java.lang.Thread.run(Thread.java:745)
> {quote}
> Possibly related to SOLR-8068? 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to