Hi,
In the middle of indexing solrcore gets reloaded and causing 503
error. Here is the stack trace of the issue.
[main] ERROR org.apache.solr.client.solrj.impl.CloudSolrClient - Request
to collection product failed due to (503)
org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:
Error from server at http://x.x.x.x:8983/solr/product_shard3_replica1:
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 503
{metadata={error-class=org.apache.solr.common.SolrException,root-error-class=org.apache.solr.common.SolrException},msg=SolrCore
is loading,code=503}</title>
</head>
<body><h2>HTTP ERROR 503</h2>
<p>Problem accessing /solr/product_shard3_replica1/update. Reason:
<pre>
{metadata={error-class=org.apache.solr.common.SolrException,root-error-class=org.apache.solr.common.SolrException},msg=SolrCore
is loading,code=503}</pre></p>
</body>
</html>
, retry? 0
[main] ERROR com.igp.solrindex.ProductIndex - Exception is
org.apache.solr.client.solrj.impl.CloudSolrClient$RouteException: Error
from server at http://10.0.2.6:8983/solr/product_shard3_replica1:
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 503
{metadata={error-class=org.apache.solr.common.SolrException,root-error-class=org.apache.solr.common.SolrException},msg=SolrCore
is loading,code=503}</title>
</head>
<body><h2>HTTP ERROR 503</h2>
<p>Problem accessing /solr/product_shard3_replica1/update. Reason:
<pre>
{metadata={error-class=org.apache.solr.common.SolrException,root-error-class=org.apache.solr.common.SolrException},msg=SolrCore
is loading,code=503}</pre></p>
</body>
</html>
at
org.apache.solr.client.solrj.impl.CloudSolrClient.directUpdate(CloudSolrClient.java:697)
~[solrindex-1.0-SNAPSHOT.jar:?]
at
org.apache.solr.client.solrj.impl.CloudSolrClient.sendRequest(CloudSolrClient.java:1109)
~[solrindex-1.0-SNAPSHOT.jar:?]
at
org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:998)
~[solrindex-1.0-SNAPSHOT.jar:?]
at
org.apache.solr.client.solrj.impl.CloudSolrClient.request(CloudSolrClient.java:934)
~[solrindex-1.0-SNAPSHOT.jar:?]
at
org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:149)
~[solrindex-1.0-SNAPSHOT.jar:?]
at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:106)
~[solrindex-1.0-SNAPSHOT.jar:?]
at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:71)
~[solrindex-1.0-SNAPSHOT.jar:?]
at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:85)
~[solrindex-1.0-SNAPSHOT.jar:?]
at com.igp.solrindex.ProductIndex.index(ProductIndex.java:225)
[solrindex-1.0-SNAPSHOT.jar:?]
at com.igp.solrindex.App.main(App.java:17)
[solrindex-1.0-SNAPSHOT.jar:?]
Caused by:
org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:
Error from server at http://x.x.x.x:8983/solr/product_shard3_replica1:
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 503
{metadata={error-class=org.apache.solr.common.SolrException,root-error-class=org.apache.solr.common.SolrException},msg=SolrCore
is loading,code=503}</title>
</head>
<body><h2>HTTP ERROR 503</h2>
<p>Problem accessing /solr/product_shard3_replica1/update. Reason:
<pre>
{metadata={error-class=org.apache.solr.common.SolrException,root-error-class=org.apache.solr.common.SolrException},msg=SolrCore
is loading,code=503}</pre></p>
</body>
</html>
at
org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:558)
~[solrindex-1.0-SNAPSHOT.jar:?]
at
org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:259)
~[solrindex-1.0-SNAPSHOT.jar:?]
at
org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:248)
~[solrindex-1.0-SNAPSHOT.jar:?]
at
org.apache.solr.client.solrj.impl.LBHttpSolrClient.doRequest(LBHttpSolrClient.java:404)
~[solrindex-1.0-SNAPSHOT.jar:?]
at
org.apache.solr.client.solrj.impl.LBHttpSolrClient.request(LBHttpSolrClient.java:357)
~[solrindex-1.0-SNAPSHOT.jar:?]
at
org.apache.solr.client.solrj.impl.CloudSolrClient.lambda$directUpdate$14(CloudSolrClient.java:674)
~[solrindex-1.0-SNAPSHOT.jar:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
~[?:1.8.0_91]
at
org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$22(ExecutorUtil.java:229)
~[solrindex-1.0-SNAPSHOT.jar:?]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
~[?:1.8.0_91]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
~[?:1.8.0_91]
at java.lang.Thread.run(Thread.java:745) ~[?:1.8.0_91]
By raising this issue the indexing never completes.
What could be the issue here for the mime type and the core loading.
I am using 6.1.0 with sorlcloud in 3 instances with 3 zookeeper in each
instance.