All, I've recently been encountering some frustrations with Solr 7.3 after configuring TLS; since the command-line tools (which are a breeze to use when you have a "toy" Solr installation) stop working when TLS is enabled, I'm finding myself having to perform the following tasks in order to get bin/post to work:
1. patch bin/post: 234,235c234,235 < echo "$JAVA" -classpath "${TOOL_JAR[0]}" "${PROPS[@]}" org.apache.solr.util.SimplePostTool "${PARAMS[@]}" < "$JAVA" -classpath "${TOOL_JAR[0]}" "${PROPS[@]}" org.apache.solr.util.SimplePostTool "${PARAMS[@]}" --- > echo "$JAVA" -classpath "${TOOL_JAR[0]}" "${PROPS[@]}" ${SOLR_POST_OPTS} org.apache.solr.util.SimplePostTool "${PARAMS[@]}" > "$JAVA" -classpath "${TOOL_JAR[0]}" "${PROPS[@]}" ${SOLR_POST_OPTS} org.apache.solr.util.SimplePostTool "${PARAMS[@]}" 2. Run the command with lots of manual options: $ SOLR_POST_OPTS="-Djavax.net.ssl.trustStore=/etc/solr/solr-client.p12 -Djavax.net.ssl.trustStorePassword=whatevs -Djavax.net.ssl.trustStoreType=PKCS12" /usr/local/solr/bin/post -c new_core https://localhost:8983/solr/new_core [time passes while bin/post uploads a very large file] SimplePostTool version 5.0.0 Posting files to [base] url https://localhost:8983/solr/new_core... Entering auto mode. File endings considered are xml,json,jsonl,csv,pdf,doc,docx,ppt,pptx,xls,xlsx,odt,odp,ods,ott,otp,ots,rtf,htm,html,txt,log POSTing file new_core.json (application/json) to [base]/json/docs SimplePostTool: WARNING: Solr returned an error #404 (Not Found) for url: https://localhost:8983/solr/new_core/json/docs SimplePostTool: WARNING: Response: <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <title>Error 404 Not Found</title> </head> <body><h2>HTTP ERROR 404</h2> <p>Problem accessing /solr/new_core/json/docs. Reason: <pre> Not Found</pre></p> </body> </html> SimplePostTool: WARNING: IOException while reading response: java.io.FileNotFoundException: https://localhost:8983/solr/new_core/json/docs 1 files indexed. COMMITting Solr index changes to https://localhost:8983/solr/new_core... SimplePostTool: WARNING: Solr returned an error #404 (Not Found) for url: https://localhost:8983/solr/new_core?commit=true SimplePostTool: WARNING: Response: <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <title>Error 404 Not Found</title> </head> <body><h2>HTTP ERROR 404</h2> <p>Problem accessing /solr/new_core. Reason: <pre> Not Found</pre></p> </body> </html> Time spent: 0:00:04.710 I'm guessing that I just don't know what the URL is supposed to be for that core. When browsing the web UI, I can examine the core here: https://localhost:8983/solr/#/~cores/new_core Solr reports: startTime: a day ago instanceDir: /var/solr/data/new_core dataDir: /var/solr/data/new_core/data/ Index lastModified: - version: 2 numDocs: 0 maxDoc: 0 deletedDocs: 0 current: [check-mark] So the core is there. I suspect I'm simply not addressing it correctly. How should I modify the URL I pass on the command-line so that bin/post can inject a new batch of data? Thanks, -chris