You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@solr.apache.org by "Heller, George A III CTR (USA)" <ge...@mail.mil.INVALID> on 2022/04/22 16:02:53 UTC

Error indexing documents in SolrCloud, but works fine in stand-alone mode

Using Solr in stand-alone mode , we created core called xlm_core_php

Using Solr in cloud mode,            , we created a collection with 2 shards called xlm_core_php and 2 cores called xlm_core_php_shard1_replica_n1 AND xlm_core_php_shard2_replica_n2

 

We use an ASP.NET application which uses SolrNet.dll to index and search the documents

 

In stand-alone mode, Solr indexes and searches the documents correctly.

 

In cloud mode, we get a file not found exception when trying to index the documents from our application.

 

Any ideas how to make indexing work under SolrCloud? Below is the log entry generated by our application.

 

Thanks,

George

 

Log Entry : 

04/22/2022 11:28:14

User: HELLER.GEORGE.A.III.1200869229

Exception Type: SolrConnectionException Error in: http://localhost:63408/ScanConsole/Index_Manager/index_manager.aspx?a=reindex&c=xlm_core_php&d=t:\xlm_data\php Error Message: <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>/solr/xlm_core_php/update/extract</td></tr>

<tr><th>STATUS:</th><td>404</td></tr>

<tr><th>MESSAGE:</th><td>Not Found</td></tr>

<tr><th>SERVLET:</th><td>default</td></tr>

</table>

 

</body>

</html>

 

Error Source: SolrNet

StackTrace:    at SolrNet.Impl.SolrConnection.PostStream(String relativeUrl, String contentType, Stream content, IEnumerable`1 parameters)

   at SolrNet.Commands.ExtractCommand.Execute(ISolrConnection connection)

   at SolrNet.Impl.SolrBasicServer`1.Send(ISolrCommand cmd)

   at SolrNet.Impl.SolrBasicServer`1.SendAndParseExtract(ISolrCommand cmd)

   at SolrNet.Impl.SolrBasicServer`1.Extract(ExtractParameters parameters)

   at SolrNet.Impl.SolrServer`1.Extract(ExtractParameters parameters)

   at ucm_app.ScanConsole.Index_Manager.index_manager.Page_Load(Object sender, EventArgs e) in C:\Users\gheller\source\Workspaces\XLM-V8.0.0\xlm_app_V8.0.0\xlm_app\ScanConsole\Index_Manager\index_manager.aspx.cs:line 138

Exception Type: WebException Error Message: The remote server returned an error: (404) Not Found.

Error Source: System

StackTrace:    at System.Net.HttpWebRequest.GetResponse()

   at HttpWebAdapters.Adapters.HttpWebRequestAdapter.GetResponse()

   at SolrNet.Impl.SolrConnection.GetResponse(IHttpWebRequest request)

   at SolrNet.Impl.SolrConnection.PostStream(String relativeUrl, String contentType, Stream content, IEnumerable`1 parameters)

Exception Type: WebException Error Message: The remote server returned an error: (404) Not Found.

Error Source: System

StackTrace:    at System.Net.HttpWebRequest.GetResponse()

   at HttpWebAdapters.Adapters.HttpWebRequestAdapter.GetResponse()

   at SolrNet.Impl.SolrConnection.GetResponse(IHttpWebRequest request)

   at SolrNet.Impl.SolrConnection.PostStream(String relativeUrl, String contentType, Stream content, IEnumerable`1 parameters)

Exception Type: WebException Error Message: The remote server returned an error: (404) Not Found.

Error Source: System

StackTrace:    at System.Net.HttpWebRequest.GetResponse()

   at HttpWebAdapters.Adapters.HttpWebRequestAdapter.GetResponse()

   at SolrNet.Impl.SolrConnection.GetResponse(IHttpWebRequest request)

   at SolrNet.Impl.SolrConnection.PostStream(String relativeUrl, String contentType, Stream content, IEnumerable`1 parameters)

Exception Type: WebException Error Message: The remote server returned an error: (404) Not Found.

Error Source: System

StackTrace:    at System.Net.HttpWebRequest.GetResponse()

   at HttpWebAdapters.Adapters.HttpWebRequestAdapter.GetResponse()

   at SolrNet.Impl.SolrConnection.GetResponse(IHttpWebRequest request)

   at SolrNet.Impl.SolrConnection.PostStream(String relativeUrl, String contentType, Stream content, IEnumerable`1 parameters)

 

----------------------------------------------------------


Re: Error indexing documents in SolrCloud, but works fine in stand-alone mode

Posted by Shawn Heisey <ap...@elyograg.org>.
On 4/22/2022 6:20 PM, Shawn Heisey wrote:
> I am redirecting this to the user's list.  The dev list is not the 
> right place for it.  The dev list is not for development of your code, 
> it is for development of Solr itself.

I managed to NOT do this redirect.  I thought I had updated the "To" 
address but apparently I imagined that. :)

Thanks,
Shawn


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@solr.apache.org
For additional commands, e-mail: dev-help@solr.apache.org


Re: Error indexing documents in SolrCloud, but works fine in stand-alone mode

Posted by Shawn Heisey <ap...@elyograg.org>.
On 4/22/2022 10:02 AM, Heller, George A III CTR (USA) wrote:
>
> In stand-alone mode, Solr indexes and searches the documents correctly.
>
> In cloud mode, we get a file not found exception when trying to index 
> the documents from our application.
>

I am redirecting this to the user's list.  The dev list is not the right 
place for it.  The dev list is not for development of your code, it is 
for development of Solr itself.

This is the URL path that returned the 404 error:

/solr/xlm_core_php/update/extract

This most likely means that the solrconfig.xml file found in zookeeper 
that the xlm_core_php collection is using is missing the configuration 
for the /update/extract handler ... and the solrconfig.xml used on the 
standalone Solr DOES have that handler configured.

Note that we strongly recommend that you NOT use that handler in 
production.  Tika (which is the technology used by the extracting 
request handler) can sometimes become unstable.  If Tika is running 
inside Solr and has a big problem, then Solr itself will suffer from 
that same problem.  Tika can even crash completely, and it would take 
Solr down with it if that happens while running inside Solr.

Thanks,
Shawn


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@solr.apache.org
For additional commands, e-mail: dev-help@solr.apache.org