Hi Shawn,
below is the full entry from the Solr log. I actually also found the
list of implicit request handlers later on. But that does make it even
more strange that Solr complains about a missing handler.
2018-03-22 18:19:25.583 ERROR
(zkCallback-7-thread-2-processing-n:search-agent3:9007_solr)
[c:collection-0005 s:shard1 r:core_node4
x:collection-0005_shard1_replica_n2] o.a.s.c.SyncStrategy Sync request
error:
org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:
Error from server at
http://search-agent3:9007/solr/collection-0005_shard1_replica_n1:
Expected mime type application/octet-stream but got text/html. <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/collection-0005_shard1_replica_n1/get. Reason:
<pre> Not Found</pre></p>
</body>
</html>
2018-03-22 18:19:25.599 ERROR
(updateExecutor-3-thread-7-processing-n:search-agent3:9007_solr
x:collection-0005_shard1_replica_n2 s:shard1 c:collection-0005
r:core_node4) [c:collection-0005 s:shard1 r:core_node4
x:collection-0005_shard1_replica_n2] o.a.s.c.SyncStrategy
http://search-agent3:9007/solr/collection-0005_shard1_replica_n2/: Could
not tell a replica to
recover:org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:
Error from server at http://search-agent3:9007/solr: Unable to locate
core collection-0005_shard1_replica_n1
at
org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:643)
at
org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:255)
at
org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:244)
at
org.apache.solr.client.solrj.SolrClient.request(SolrClient.java:1219)
at org.apache.solr.cloud.SyncStrategy$1.run(SyncStrategy.java:300)
at
com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:176)
at
org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:188)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
On 24.03.2018 03:52, Shawn Heisey wrote:
On 3/23/2018 4:08 AM, Hendrik Haddorp wrote:
I did not define a /get request handler but I also don't see one
being default in the solrconfig.xml files that come with Solr 7.2.1.
Do I need to add that as described in
https://www.garysieling.com/blog/fixing-solrj-error-expected-mime-type-applicationoctet-stream-got-texthtml
or is there something wrong in Solr? Is Solr doing those /get calls?
My program is not doing any, unless SolrJ does them under the covers,
and is actually not showing any error.
Your error message looks like it was only the *end* of the message and
was missing all the bits at the beginning that would tell us what the
error was. The whole error message is needed.
A number of the well-known request handlers are created *implicitly*
when the config for them is not found in solrconfig.xml.
https://lucene.apache.org/solr/guide/7_2/implicit-requesthandlers.html
Thanks,
Shawn