Solr
  1. Solr
  2. SOLR-8073

Solr fails to start on Windows with obscure errors when using relative path

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 5.3
    • Fix Version/s: 5.4, 6.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      Windows 7

      Description

      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:

        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)

      Possibly related to SOLR-8068?

      1. SOLR-8073.patch
        0.6 kB
        Ishan Chattopadhyaya

        Activity

        Hide
        Alexandre Rafalovitch added a comment -

        Works in 5.2.1

        Show
        Alexandre Rafalovitch added a comment - Works in 5.2.1
        Hide
        Anshum Gupta added a comment -

        Not sure if this is related. It certainly looks like something similar but I can't reproduce this on my mac.

        Show
        Anshum Gupta added a comment - Not sure if this is related. It certainly looks like something similar but I can't reproduce this on my mac.
        Hide
        Alexandre Rafalovitch added a comment -

        This happens because Solr cannot resolve the cores when using relative path to *-s* parameter.

        When using relative path:

        INFO - 2015-09-18 16:11:47.281; [ ] org.apache.solr.core.SolrResourceLoader; using system property solr.solr.home: c:\Projects\solr-5.3.1\example\techproducts\solr
        INFO - 2015-09-18 16:11:47.281; [ ] org.apache.solr.core.SolrResourceLoader; new SolrResourceLoader for directory: 'c:\Projects\solr-5.3.1\example\techproducts\solr\'
        INFO - 2015-09-18 16:11:47.411; [ ] org.apache.solr.core.SolrXmlConfig; Loading container configuration from c:\Projects\solr-5.3.1\example\techproducts\solr\solr.xml
        INFO - 2015-09-18 16:11:47.471; [ ] org.apache.solr.core.CorePropertiesLocator; Config-defined core root directory: c:\Projects\solr-5.3.1\example\techproducts\solr
        INFO - 2015-09-18 16:11:47.491; [ ] org.apache.solr.core.CoreContainer; New CoreContainer 807657332
        INFO - 2015-09-18 16:11:47.491; [ ] org.apache.solr.core.CoreContainer; Loading cores into CoreContainer [instanceDir=c:\Projects\solr-5.3.1\example\techproducts\solr]
        INFO - 2015-09-18 16:11:47.491; [ ] org.apache.solr.core.CoreContainer; loading shared library: c:\Projects\solr-5.3.1\example\techproducts\solr\lib
        WARN - 2015-09-18 16:11:47.491; [ ] org.apache.solr.core.SolrResourceLoader; Can't find (or read) directory to add to classloader: lib (resolved as: c:\Projects\solr-5.3.1\example\techproducts\solr\lib).
        INFO - 2015-09-18 16:11:47.511; [ ] org.apache.solr.handler.component.HttpShardHandlerFactory; created with socketTimeout : 600000,connTimeout : 60000,maxConnectionsPerHost : 20,maxConnections : 10000,corePoolSize : 0,maximumPoolSize : 2147483647,maxThreadIdleTime : 5,sizeOfQueue : -1,fairnessPolicy : false,useRetries : false,
        INFO - 2015-09-18 16:11:47.641; [ ] org.apache.solr.update.UpdateShardHandler; Creating UpdateShardHandler HTTP client with params: socketTimeout=600000&connTimeout=60000&retry=true
        INFO - 2015-09-18 16:11:47.641; [ ] org.apache.solr.logging.LogWatcher; SLF4J impl is org.slf4j.impl.Log4jLoggerFactory
        INFO - 2015-09-18 16:11:47.641; [ ] org.apache.solr.logging.LogWatcher; Registering Log Listener [Log4j (org.slf4j.impl.Log4jLoggerFactory)]
        INFO - 2015-09-18 16:11:47.641; [ ] org.apache.solr.core.CoreContainer; Security conf doesn't exist. Skipping setup for authorization module.
        INFO - 2015-09-18 16:11:47.641; [ ] org.apache.solr.core.CoreContainer; No authentication plugin used.
        INFO - 2015-09-18 16:11:47.681; [ ] org.apache.solr.core.CorePropertiesLocator; Looking for core definitions underneath c:\Projects\solr-5.3.1\example\techproducts\solr
        INFO - 2015-09-18 16:11:47.681; [ ] org.apache.solr.core.CorePropertiesLocator; Found 0 core definitions
        INFO - 2015-09-18 16:11:47.681; [ ] org.apache.solr.servlet.SolrDispatchFilter; user.dir=c:\Projects\solr-5.3.1\server

        When using absolute path:

        INFO - 2015-09-18 18:49:06.548; [ ] org.apache.solr.core.SolrResourceLoader; using system property solr.solr.home: c:\Projects\solr-5.3.1\example\techproducts\solr
        INFO - 2015-09-18 18:49:06.550; [ ] org.apache.solr.core.SolrResourceLoader; new SolrResourceLoader for directory: 'c:\Projects\solr-5.3.1\example\techproducts\solr\'
        INFO - 2015-09-18 18:49:06.693; [ ] org.apache.solr.core.SolrXmlConfig; Loading container configuration from c:\Projects\solr-5.3.1\example\techproducts\solr\solr.xml
        INFO - 2015-09-18 18:49:06.771; [ ] org.apache.solr.core.CorePropertiesLocator; Config-defined core root directory: c:\Projects\solr-5.3.1\example\techproducts\solr
        INFO - 2015-09-18 18:49:06.796; [ ] org.apache.solr.core.CoreContainer; New CoreContainer 807657332
        INFO - 2015-09-18 18:49:06.796; [ ] org.apache.solr.core.CoreContainer; Loading cores into CoreContainer [instanceDir=c:\Projects\solr-5.3.1\example\techproducts\solr]
        INFO - 2015-09-18 18:49:06.796; [ ] org.apache.solr.core.CoreContainer; loading shared library: c:\Projects\solr-5.3.1\example\techproducts\solr\lib
        WARN - 2015-09-18 18:49:06.797; [ ] org.apache.solr.core.SolrResourceLoader; Can't find (or read) directory to add to classloader: lib (resolved as: c:\Projects\solr-5.3.1\example\techproducts\solr\lib).
        INFO - 2015-09-18 18:49:06.817; [ ] org.apache.solr.handler.component.HttpShardHandlerFactory; created with socketTimeout : 600000,connTimeout : 60000,maxConnectionsPerHost : 20,maxConnections : 10000,corePoolSize : 0,maximumPoolSize : 2147483647,maxThreadIdleTime : 5,sizeOfQueue : -1,fairnessPolicy : false,useRetries : false,
        INFO - 2015-09-18 18:49:06.974; [ ] org.apache.solr.update.UpdateShardHandler; Creating UpdateShardHandler HTTP client with params: socketTimeout=600000&connTimeout=60000&retry=true
        INFO - 2015-09-18 18:49:06.977; [ ] org.apache.solr.logging.LogWatcher; SLF4J impl is org.slf4j.impl.Log4jLoggerFactory
        INFO - 2015-09-18 18:49:06.978; [ ] org.apache.solr.logging.LogWatcher; Registering Log Listener [Log4j (org.slf4j.impl.Log4jLoggerFactory)]
        INFO - 2015-09-18 18:49:06.979; [ ] org.apache.solr.core.CoreContainer; Security conf doesn't exist. Skipping setup for authorization module.
        INFO - 2015-09-18 18:49:06.980; [ ] org.apache.solr.core.CoreContainer; No authentication plugin used.
        INFO - 2015-09-18 18:49:07.021; [ ] org.apache.solr.core.CorePropertiesLocator; Looking for core definitions underneath c:\Projects\solr-5.3.1\example\techproducts\solr
        INFO - 2015-09-18 18:49:07.045; [ ] org.apache.solr.core.CoreDescriptor; Created CoreDescriptor: {name=techproducts, config=solrconfig.xml, transient=false, schema=schema.xml, loadOnStartup=true, configSetProperties=configsetprops.json, instanceDir=c:\Projects\solr-5.3.1\example\techproducts\solr\techproducts, absoluteInstDir=c:\Projects\solr-5.3.1\example\techproducts\solr\techproducts\, dataDir=data}
        INFO - 2015-09-18 18:49:07.046; [ ] org.apache.solr.core.CorePropertiesLocator; Found core techproducts in c:\Projects\solr-5.3.1\example\techproducts\solr\techproducts\
        INFO - 2015-09-18 18:49:07.046; [ ] org.apache.solr.core.CorePropertiesLocator; Found 1 core definitions
        INFO - 2015-09-18 18:49:07.050; [ ] org.apache.solr.core.SolrResourceLoader; new SolrResourceLoader for directory: 'c:\Projects\solr-5.3.1\example\techproducts\solr\techproducts\'
        INFO - 2015-09-18 18:49:07.051; [ ] org.apache.solr.servlet.SolrDispatchFilter; user.dir=c:\Projects\solr-5.3.1\server

        Notice how all the paths are the same in the logs, yet the effects are different. This means something somewhere is not resolving a directory correctly. The exception in the description then shadows the real problem of - mistakenly - not finding a core (NPE is at cores.X method).

        Show
        Alexandre Rafalovitch added a comment - This happens because Solr cannot resolve the cores when using relative path to * -s * parameter. When using relative path: INFO - 2015-09-18 16:11:47.281; [ ] org.apache.solr.core.SolrResourceLoader; using system property solr.solr.home: c:\Projects\solr-5.3.1\example\techproducts\solr INFO - 2015-09-18 16:11:47.281; [ ] org.apache.solr.core.SolrResourceLoader; new SolrResourceLoader for directory: 'c:\Projects\solr-5.3.1\example\techproducts\solr\' INFO - 2015-09-18 16:11:47.411; [ ] org.apache.solr.core.SolrXmlConfig; Loading container configuration from c:\Projects\solr-5.3.1\example\techproducts\solr\solr.xml INFO - 2015-09-18 16:11:47.471; [ ] org.apache.solr.core.CorePropertiesLocator; Config-defined core root directory: c:\Projects\solr-5.3.1\example\techproducts\solr INFO - 2015-09-18 16:11:47.491; [ ] org.apache.solr.core.CoreContainer; New CoreContainer 807657332 INFO - 2015-09-18 16:11:47.491; [ ] org.apache.solr.core.CoreContainer; Loading cores into CoreContainer [instanceDir=c:\Projects\solr-5.3.1\example\techproducts\solr] INFO - 2015-09-18 16:11:47.491; [ ] org.apache.solr.core.CoreContainer; loading shared library: c:\Projects\solr-5.3.1\example\techproducts\solr\lib WARN - 2015-09-18 16:11:47.491; [ ] org.apache.solr.core.SolrResourceLoader; Can't find (or read) directory to add to classloader: lib (resolved as: c:\Projects\solr-5.3.1\example\techproducts\solr\lib). INFO - 2015-09-18 16:11:47.511; [ ] org.apache.solr.handler.component.HttpShardHandlerFactory; created with socketTimeout : 600000,connTimeout : 60000,maxConnectionsPerHost : 20,maxConnections : 10000,corePoolSize : 0,maximumPoolSize : 2147483647,maxThreadIdleTime : 5,sizeOfQueue : -1,fairnessPolicy : false,useRetries : false, INFO - 2015-09-18 16:11:47.641; [ ] org.apache.solr.update.UpdateShardHandler; Creating UpdateShardHandler HTTP client with params: socketTimeout=600000&connTimeout=60000&retry=true INFO - 2015-09-18 16:11:47.641; [ ] org.apache.solr.logging.LogWatcher; SLF4J impl is org.slf4j.impl.Log4jLoggerFactory INFO - 2015-09-18 16:11:47.641; [ ] org.apache.solr.logging.LogWatcher; Registering Log Listener [Log4j (org.slf4j.impl.Log4jLoggerFactory)] INFO - 2015-09-18 16:11:47.641; [ ] org.apache.solr.core.CoreContainer; Security conf doesn't exist. Skipping setup for authorization module. INFO - 2015-09-18 16:11:47.641; [ ] org.apache.solr.core.CoreContainer; No authentication plugin used. INFO - 2015-09-18 16:11:47.681; [ ] org.apache.solr.core.CorePropertiesLocator; Looking for core definitions underneath c:\Projects\solr-5.3.1\example\techproducts\solr INFO - 2015-09-18 16:11:47.681; [ ] org.apache.solr.core.CorePropertiesLocator; Found 0 core definitions INFO - 2015-09-18 16:11:47.681; [ ] org.apache.solr.servlet.SolrDispatchFilter; user.dir=c:\Projects\solr-5.3.1\server When using absolute path: INFO - 2015-09-18 18:49:06.548; [ ] org.apache.solr.core.SolrResourceLoader; using system property solr.solr.home: c:\Projects\solr-5.3.1\example\techproducts\solr INFO - 2015-09-18 18:49:06.550; [ ] org.apache.solr.core.SolrResourceLoader; new SolrResourceLoader for directory: 'c:\Projects\solr-5.3.1\example\techproducts\solr\' INFO - 2015-09-18 18:49:06.693; [ ] org.apache.solr.core.SolrXmlConfig; Loading container configuration from c:\Projects\solr-5.3.1\example\techproducts\solr\solr.xml INFO - 2015-09-18 18:49:06.771; [ ] org.apache.solr.core.CorePropertiesLocator; Config-defined core root directory: c:\Projects\solr-5.3.1\example\techproducts\solr INFO - 2015-09-18 18:49:06.796; [ ] org.apache.solr.core.CoreContainer; New CoreContainer 807657332 INFO - 2015-09-18 18:49:06.796; [ ] org.apache.solr.core.CoreContainer; Loading cores into CoreContainer [instanceDir=c:\Projects\solr-5.3.1\example\techproducts\solr] INFO - 2015-09-18 18:49:06.796; [ ] org.apache.solr.core.CoreContainer; loading shared library: c:\Projects\solr-5.3.1\example\techproducts\solr\lib WARN - 2015-09-18 18:49:06.797; [ ] org.apache.solr.core.SolrResourceLoader; Can't find (or read) directory to add to classloader: lib (resolved as: c:\Projects\solr-5.3.1\example\techproducts\solr\lib). INFO - 2015-09-18 18:49:06.817; [ ] org.apache.solr.handler.component.HttpShardHandlerFactory; created with socketTimeout : 600000,connTimeout : 60000,maxConnectionsPerHost : 20,maxConnections : 10000,corePoolSize : 0,maximumPoolSize : 2147483647,maxThreadIdleTime : 5,sizeOfQueue : -1,fairnessPolicy : false,useRetries : false, INFO - 2015-09-18 18:49:06.974; [ ] org.apache.solr.update.UpdateShardHandler; Creating UpdateShardHandler HTTP client with params: socketTimeout=600000&connTimeout=60000&retry=true INFO - 2015-09-18 18:49:06.977; [ ] org.apache.solr.logging.LogWatcher; SLF4J impl is org.slf4j.impl.Log4jLoggerFactory INFO - 2015-09-18 18:49:06.978; [ ] org.apache.solr.logging.LogWatcher; Registering Log Listener [Log4j (org.slf4j.impl.Log4jLoggerFactory)] INFO - 2015-09-18 18:49:06.979; [ ] org.apache.solr.core.CoreContainer; Security conf doesn't exist. Skipping setup for authorization module. INFO - 2015-09-18 18:49:06.980; [ ] org.apache.solr.core.CoreContainer; No authentication plugin used. INFO - 2015-09-18 18:49:07.021; [ ] org.apache.solr.core.CorePropertiesLocator; Looking for core definitions underneath c:\Projects\solr-5.3.1\example\techproducts\solr INFO - 2015-09-18 18:49:07.045; [ ] org.apache.solr.core.CoreDescriptor; Created CoreDescriptor: {name=techproducts, config=solrconfig.xml, transient=false, schema=schema.xml, loadOnStartup=true, configSetProperties=configsetprops.json, instanceDir=c:\Projects\solr-5.3.1\example\techproducts\solr\techproducts, absoluteInstDir=c:\Projects\solr-5.3.1\example\techproducts\solr\techproducts\, dataDir=data} INFO - 2015-09-18 18:49:07.046; [ ] org.apache.solr.core.CorePropertiesLocator; Found core techproducts in c:\Projects\solr-5.3.1\example\techproducts\solr\techproducts\ INFO - 2015-09-18 18:49:07.046; [ ] org.apache.solr.core.CorePropertiesLocator; Found 1 core definitions INFO - 2015-09-18 18:49:07.050; [ ] org.apache.solr.core.SolrResourceLoader; new SolrResourceLoader for directory: 'c:\Projects\solr-5.3.1\example\techproducts\solr\techproducts\' INFO - 2015-09-18 18:49:07.051; [ ] org.apache.solr.servlet.SolrDispatchFilter; user.dir=c:\Projects\solr-5.3.1\server Notice how all the paths are the same in the logs, yet the effects are different. This means something somewhere is not resolving a directory correctly. The exception in the description then shadows the real problem of - mistakenly - not finding a core (NPE is at cores.X method).
        Hide
        Alexandre Rafalovitch added a comment -

        This also happens - with a different error - when using relative path to the example-DIH.

        Show
        Alexandre Rafalovitch added a comment - This also happens - with a different error - when using relative path to the example-DIH.
        Hide
        Alexandre Rafalovitch added a comment -

        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:

        -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:

        -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:

        "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"

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

        Show
        Alexandre Rafalovitch added a comment - 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: -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: -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: "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" Notice, it resolves to under the * server * directory, incorrectly.
        Hide
        Ishan Chattopadhyaya added a comment -

        I have been able to reproduce and working on it right now. Looks like a start script issue than an authentication issue (though authentication's error reporting should be improved here).
        However, since a workaround exists, I am wondering if this is really a blocker?

        Show
        Ishan Chattopadhyaya added a comment - I have been able to reproduce and working on it right now. Looks like a start script issue than an authentication issue (though authentication's error reporting should be improved here). However, since a workaround exists, I am wondering if this is really a blocker?
        Hide
        Ishan Chattopadhyaya added a comment -

        Here's a patch that fixes the issue. The fix here is to convert the relative path to absolute path first (if it exists).

        In the unix script, the checks are similar: if absolute path, use it; else if relative path (doesn't start with /), then make it absolute:

          if [[ $SOLR_HOME != /* ]] && [[ -d "$SOLR_SERVER_DIR/$SOLR_HOME" ]]; then
            SOLR_HOME="$SOLR_SERVER_DIR/$SOLR_HOME"
            SOLR_PID_DIR="$SOLR_HOME"
          elif [[ $SOLR_HOME != /* ]] && [[ -d "`pwd`/$SOLR_HOME" ]]; then
            SOLR_HOME="$(pwd)/$SOLR_HOME"
          fi
        

        For the null pointer exception (which is ugly, since it masks the real problem that the core container is not loaded), I suggest we also commit my patch for SOLR-8068, which checks cores for null right at the beginning of SDF's doFilter() call.

        Show
        Ishan Chattopadhyaya added a comment - Here's a patch that fixes the issue. The fix here is to convert the relative path to absolute path first (if it exists). In the unix script, the checks are similar: if absolute path, use it; else if relative path (doesn't start with /), then make it absolute: if [[ $SOLR_HOME != /* ]] && [[ -d "$SOLR_SERVER_DIR/$SOLR_HOME" ]]; then SOLR_HOME="$SOLR_SERVER_DIR/$SOLR_HOME" SOLR_PID_DIR="$SOLR_HOME" elif [[ $SOLR_HOME != /* ]] && [[ -d "`pwd`/$SOLR_HOME" ]]; then SOLR_HOME="$(pwd)/$SOLR_HOME" fi For the null pointer exception (which is ugly, since it masks the real problem that the core container is not loaded), I suggest we also commit my patch for SOLR-8068 , which checks cores for null right at the beginning of SDF's doFilter() call.
        Hide
        Ishan Chattopadhyaya added a comment -

        Alexandre Rafalovitch Can you please test the patch?

        Show
        Ishan Chattopadhyaya added a comment - Alexandre Rafalovitch Can you please test the patch?
        Hide
        Alexandre Rafalovitch added a comment -

        It works for me. Thank you.

        Show
        Alexandre Rafalovitch added a comment - It works for me. Thank you.
        Hide
        Ishan Chattopadhyaya added a comment -

        Can we mark this and commit/resolve it for 5.4?

        Show
        Ishan Chattopadhyaya added a comment - Can we mark this and commit/resolve it for 5.4?
        Hide
        Alexandre Rafalovitch added a comment -

        Fine by me.

        Show
        Alexandre Rafalovitch added a comment - Fine by me.
        Hide
        ASF subversion and git services added a comment -

        Commit 1716446 from shalin@apache.org in branch 'dev/trunk'
        [ https://svn.apache.org/r1716446 ]

        SOLR-8073: Solr fails to start on Windows with obscure errors when using relative path

        Show
        ASF subversion and git services added a comment - Commit 1716446 from shalin@apache.org in branch 'dev/trunk' [ https://svn.apache.org/r1716446 ] SOLR-8073 : Solr fails to start on Windows with obscure errors when using relative path
        Hide
        ASF subversion and git services added a comment -

        Commit 1716447 from shalin@apache.org in branch 'dev/branches/branch_5x'
        [ https://svn.apache.org/r1716447 ]

        SOLR-8073: Solr fails to start on Windows with obscure errors when using relative path

        Show
        ASF subversion and git services added a comment - Commit 1716447 from shalin@apache.org in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1716447 ] SOLR-8073 : Solr fails to start on Windows with obscure errors when using relative path
        Hide
        ASF subversion and git services added a comment -

        Commit 1716448 from shalin@apache.org in branch 'dev/branches/lucene_solr_5_4'
        [ https://svn.apache.org/r1716448 ]

        SOLR-8073: Solr fails to start on Windows with obscure errors when using relative path

        Show
        ASF subversion and git services added a comment - Commit 1716448 from shalin@apache.org in branch 'dev/branches/lucene_solr_5_4' [ https://svn.apache.org/r1716448 ] SOLR-8073 : Solr fails to start on Windows with obscure errors when using relative path
        Hide
        Shalin Shekhar Mangar added a comment -

        Thanks Alexandre and Ishan!

        Show
        Shalin Shekhar Mangar added a comment - Thanks Alexandre and Ishan!

          People

          • Assignee:
            Shalin Shekhar Mangar
            Reporter:
            Alexandre Rafalovitch
          • Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development