0

I use the Solr version 9.1.0. And I try to use the Postlogs tool. My command that I run in the Solr folder is

bin/postlogs https://admin:my-password@myurl/solr/collection /path-to-logs/ 

The Postlogs tool works fine without authentification. But if I set up security.json and have an admin user with password than I can't run Postlogs and I get an error:

Batch sending failed: IOException occurred when talking to server at: *my-url*
org.apache.solr.client.solrj.SolrServerException: IOException occurred when talking to server at: *my-url*
        at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:727)
        at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:233)
        at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:214)
        at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:234)
        at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:249)
        at org.apache.solr.util.SolrLogPostTool.sendBatch(SolrLogPostTool.java:124)
        at org.apache.solr.util.SolrLogPostTool.main(SolrLogPostTool.java:113)
Caused by: org.apache.http.client.ClientProtocolException
        at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:187)
        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
        at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:576)
        ... 6 more
Caused by: org.apache.http.client.NonRepeatableRequestException: Cannot retry request with a non-repeatable request entity.
        at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:225)
        at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
        at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
        at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
        at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)

I have also tried to set up PreemptiveBasicAuthClientBuilderFactory in solr.in.sh with Basic Authentification. But that didn't help. Please does anyone have a solution for this?

Bill Hileman
  • 2,798
  • 2
  • 17
  • 24
Elena
  • 26
  • 4

0 Answers0