[ https://issues.apache.org/jira/browse/SOLR-17073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17785211#comment-17785211 ]
Mikhail Khludnev commented on SOLR-17073: ----------------------------------------- okay. here's the small progress bq. bin/solr package add-repo ... should go like bq. bin/solr package -solrUrl=http://localhost:8983/solr add-repo ... first of all you'll pass either solr url or zk explicitly rather then rely on default url. Literally the issue is that [SolrCLI.getDefaultSolrUrl()|https://github.com/apache/solr/blame/3f96c45288e0aa72456f944a2e0520ecb222d1eb/solr/core/src/java/org/apache/solr/cli/SolrCLI.java#L204] should include {{/solr/}} at least for branch_9x. Not sure what to do here. > 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) > Components: Package Manager > Affects Versions: 9.4 > Reporter: Mikhail Khludnev > Priority: Major > Time Spent: 40m > Remaining Estimate: 0h > > 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: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org