Mikhail Khludnev created SOLR-17073:
---------------------------------------

             Summary: solr.cmd package add-repo error
                 Key: SOLR-17073
                 URL: https://issues.apache.org/jira/browse/SOLR-17073
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
            Reporter: Mikhail Khludnev


I'm checking 
https://github.com/SearchScale/dataimporthandler#installing-and-running with 
Solr 9.4-slim on windows. 
It fails on the first step:
{code}
solr-9.4.0-slim>bin\solr package add-repo data-import-handler 
https://raw.githubusercontent.com/searchscale/dataimporthandler/master/repo/
org.apache.solr.client.solrj.impl.BaseHttpSolrClient$RemoteSolrException: Error 
from server at http://localhost:8983/admin/info/system?wt=javabin&version=2: 
Expected mime type in [application/octet-stream, 
application/vnd.apache.solr.javabin] but got text/html. <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404 Not Found</h2>
<table>
<tr><th>URI:</th><td>/admin/info/system</td></tr>
<tr><th>STATUS:</th><td>404</td></tr>
<tr><th>MESSAGE:</th><td>Not Found</td></tr>
<tr><th>SERVLET:</th><td>-</td></tr>
</table>

</body>
</html>

        at 
org.apache.solr.client.solrj.impl.Http2SolrClient.checkContentType(Http2SolrClient.java:974)
        at 
org.apache.solr.client.solrj.impl.Http2SolrClient.processErrorsAndResponse(Http2SolrClient.java:863)
        at 
org.apache.solr.client.solrj.impl.Http2SolrClient.processErrorsAndResponse(Http2SolrClient.java:576)
        at 
org.apache.solr.client.solrj.impl.Http2SolrClient.request(Http2SolrClient.java:533)
        at org.apache.solr.client.solrj.SolrClient.request(SolrClient.java:1192)
        at org.apache.solr.cli.PackageTool.getZkHost(PackageTool.java:372)
        at org.apache.solr.cli.PackageTool.runImpl(PackageTool.java:90)
        at org.apache.solr.cli.ToolBase.runTool(ToolBase.java:52)
        at org.apache.solr.cli.SolrCLI.main(SolrCLI.java:153)

ERROR: Error from server at 
http://localhost:8983/admin/info/system?wt=javabin&version=2: Expected mime 
type in [application/octet-stream, application/vnd.apache.solr.javabin] but got 
text/html. <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404 Not Found</h2>
<table>
<tr><th>URI:</th><td>/admin/info/system</td></tr>
<tr><th>STATUS:</th><td>404</td></tr>
<tr><th>MESSAGE:</th><td>Not Found</td></tr>
<tr><th>SERVLET:</th><td>-</td></tr>
</table>

</body>
</html>

{code}

It seems like the issue is the absence of {{/solr/}} path prefix in request 
http://localhost:8983/admin/info/system?wt=javabin&version=2. 

I believe if I change it to 
http://localhost:8983/solr/admin/info/system?wt=javabin&version=2 it will go 
through fine. 

WDYT, [~epugh]?   



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to