[ https://issues.apache.org/jira/browse/SOLR-17073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17785180#comment-17785180 ]
Mikhail Khludnev commented on SOLR-17073: ----------------------------------------- I've checked {{main}}. At least {{package add-repo passed}} However, in {{branch_9x}} I've got (echo on, -V) {code} REM now wait to see Solr come online ... "C:\Program Files\Eclipse Adoptium\jdk-17.0.7.7-hotspot\bin\java" -Dsolr.install.dir="C:\Users\Mikhail_Khludnev\git\solr\solr\packaging\build\dev-slim" -Dsolr.default.confdir="C:\Users\Mikhail_Khludnev\git\solr\solr\packaging\build\dev-slim\server\solr\configsets\_default\conf" -Dlog4j.configurationFile="file:///C:\Users\Mikhail_Khludnev\git\solr\solr\packaging\build\dev-slim\server\resources\log4j2-console.xml" -classpath "C:\Users\Mikhail_Khludnev\git\solr\solr\packaging\build\dev-slim\server\solr-webapp\webapp\WEB-INF\lib\*;C:\Users\Mikhail_Khludnev\git\solr\solr\packaging\build\dev-slim\server\lib\ext\*" org.apache.solr.cli.SolrCLI status -maxWaitSecs !SOLR_START_WAIT! -solr !SOLR_URL_SCHEME!://localhost:8983/solr IF NOT "!ERRORLEVEL!" == "0" ( set "SCRIPT_ERROR=Solr did not start or was not reachable. Check the logs for errors." goto err ) ) OpenJDK 64-Bit Server VM warning: JVM cannot use large page memory because it does not have enough privilege to lock pages in memory. WARNING: A command line option has enabled the Security Manager WARNING: The Security Manager is deprecated and will be removed in a future release Failed to parse command-line arguments due to: Unrecognized option: -solr ERROR: Solr did not start or was not reachable. Check the logs for errors. {code} Why {{SolrCli status}} can't recognize {{-solr}} option ? > 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 > > 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