Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-17073

solr.cmd package add-repo error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 9.4
    • None
    • Package Manager
    • None

    Description

      I'm checking https://github.com/SearchScale/dataimporthandler#installing-and-running with Solr 9.4-slim on windows.
      It fails on the first step:

      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>
      
      

      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?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mkhl Mikhail Khludnev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m