Hello!
I just started working at a company and they are using Episerver for their website. I am new to episerver, so I am learning a lot at the moment but it seems that I can not figure this one out.
The search (not find) stopped working some time ago. I does work when I search for an id.
Current situation:
- Episerver.CMS v9.8.2
- Episerver.search v8.0.0
- Windows Server 2012 R2
- IIS v8.5
- Site is using a SSL certificate
- App_Data folder is outside the site folder
An idea is to update episerver, but this is not on the priority list at the moment, but fixing the search in the current CMS version is.
At this point I have tried all the solutions I could find here, for example:
- changing the hosts file
- changing the baseURI for "/indexingservice/indexingservice.svc"
- removing the content of the Index folder
- renaming the Index folder in Web.config
- removing the folders from the Index folder
- clearing the db table "tblIndexRequestLog"
- restarting App Pool and IIS site
- running https://[domain]/episerver/cms/admin/indexcontent.aspx
- SSL related changes
All ended up with the same errormessage in EPiServerErrors.log. What I did not tried yet is to create a seperate site for just the search index to see if it might have something to do with a https redirect.
EPiServerErrors.log
2020-02-12 12:27:50,749 [43] DEBUG EPiServer.Search.RequestQueueHandler: Start dequeue unprocessed items
2020-02-12 12:27:50,785 [43] DEBUG EPiServer.Search.RequestQueueHandler: Start processing batch for indexing service 'serviceName'
2020-02-12 12:27:50,789 [43] ERROR EPiServer.Search.RequestHandler: Update batch could not be sent to service uri 'https://[domain]/IndexingService/IndexingService.svc/update/?accesskey=local'. Message: 'The underlying connection was closed: An unexpected error occurred on a receive. at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
at System.Net.HttpWebRequest.GetRequestStream()
at EPiServer.Search.RequestHandler.MakeHttpRequest(String url, NamedIndexingServiceElement namedIndexingServiceElement, String method, Stream postData, Action`1 responseHandler)
at EPiServer.Search.RequestHandler.SendRequest(SyndicationFeed feed, String namedIndexingService, Collection`1 ids)'
2020-02-12 12:27:50,790 [43] ERROR EPiServer.Search.RequestQueueHandler: Send batch for named index 'serviceName' failed. Items are left in queue.
2020-02-12 12:27:50,790 [43] DEBUG EPiServer.Search.RequestQueueHandler: End dequeue unprocessed items
Web.config
<episerver.search active="true"><namedIndexingServices defaultService="serviceName"><services><add name="serviceName" baseUri="https://[domain]/IndexingService/IndexingService.svc" accessKey="local" /></services></namedIndexingServices><searchResultFilter defaultInclude="true"><providers /></searchResultFilter></episerver.search>
<system.serviceModel><serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /><bindings><webHttpBinding><binding name="IndexingServiceCustomBinding" maxBufferPoolSize="1073741824" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647"><security mode="Transport"><transport clientCredentialType="None"></transport></security><readerQuotas maxStringContentLength="10000000" /></binding></webHttpBinding></bindings></system.serviceModel>
<episerver.search.indexingservice><clients><add name="local" description="local" allowLocal="true" readonly="false" /></clients><namedIndexes defaultIndex="default"><indexes><add name="default" directoryPath="[appDataPath]\Index" readonly="false" /></indexes></namedIndexes></episerver.search.indexingservice><location path="IndexingService/IndexingService.svc"><system.web><authorization><allow users="*" /></authorization><httpRuntime maxQueryStringLength="65536" /></system.web><system.webServer><security><requestFiltering><requestLimits maxQueryString="65536" /></requestFiltering></security><httpErrors existingResponse="PassThrough" /></system.webServer></location>
Is there anyone that could help me?