I am unable to do Search in Telligent after securing the SOLR i am getting below error

SearchUnknownError
Error retrieving response for Solr POST request.InnerException: System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size[trunca

CSException: Failed in Telligent.Evolution.Components.TemporaryRssFeed.Populate() during RssFeed processing url http://wmdata.wettermail.de/wetter/current/wettermail.rss ---> System.Net.WebException: The operation has timed out
 at Rss.RssFeed.read(String url, HttpWebRequest request, RssFeed oldFeed)
 at Telligent.Evolution.Components.TemporaryRssFeed.Populate()
 --- End of inner exception stack trace ---
 at Telligent.Evolution.Components.CSException.()
 at Telligent.Evolution.Components.CSException.Unknown(CSExceptionType type, String internalMessage, Exception innerException)
 at Telligent.Evolution.Components.TemporaryRssFeed.Populate()
 at Telligent.Evolution.Components.TemporaryRssFeed.EnsurePopulated()
 at Telligent.Evolution.Api.Services.RssFeedItemService.GetRssFeedItems(String url, Nullable`1 pageIndex, Nullable`1 pageSize)
 at Telligent.Evolution.Extensibility.Api.Version1.RssFeedItems.List(String feedUrl, RssFeedItemsListOptions options)
 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
 at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
 at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
 at NVelocity.Runtime.Parser.Node.ASTMethod.Execute(Object o, IInternalContextAdapter context)
 at NVelocity.Runtime.Parser.Node.ASTReference.Execute(Object o, IInternalContextAdapter context)
 at NVelocity.Runtime.Parser.Node.ASTSetDirective.Render(IInternalContextAdapter context, TextWriter writer)
 at NVelocity.Runtime.Parser.Node.SimpleNode.Render(IInternalContextAdapter context, TextWriter writer)
 at NVelocity.Template.Merge(IContext context, TextWriter writer)
 at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentRenderingService..()
 at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentOutputCachingService.Get(IContentFragment fragment, Control context, String cacheKey, Boolean cacheable, Func`1 getRenderedOutput)
 at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentRenderingService.Ÿ(ScriptedContentFragment , NameValueCollection ™, String ™, Control , Boolean , String š)
 at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentFileExecutionService.”(HttpContextBase , ScriptedContentFragment , ConfiguredContentFragment , String , Guid , Guid €, String , String )
 at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentFileExecutionService.“(HttpContextBase , IContentFragmentContainer ƒ, String , Guid , Guid €, String , Int32 , String )
 at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentFileExecutionService.HandleRequest()
 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
 at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
 at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
 at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
 at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
 at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

In Tomcat Log i am getting 401 also but am able to open Solr on browser with Credentials
[31/Jan/2018:20:18:58 +0530] GET /solr/admin/info/logging?wt=json&_=1517410132919 HTTP/1.1" 200 9375
[31/Jan/2018:20:18:54 +0530] "GET /solr/content/select/?rows=10&q=%7B!boost%20b=sum(contentscore,1)%20defType=edismax%7D%20ehs&hl=true&group=true&group.ngroups=true&group.facet=true&group.field=collapse&fq=%2Broles%3A%281%20OR%202%20OR%204%20OR%2026%20OR%2078%20OR%2081%20OR%20659%20OR%20777%20OR%202020%20OR%202039%20OR%202049%29 HTTP/1.1" 401 1033

I had follow the below Link for the same
https://community.telligent.com/community/9/w/user-documentation/51756/securing-solr-on-tomcat










Parents
  • That exception looks more like an invalid host/url. Can you share the URL you have configured in the communityserver.config (or communityserver_override.config) file *without* sharing the actual username and password Slight smile 

    It should look something like: http://solr-user:solr-password@your-server:8080/solr/content

  • Kavin, I have entry this line

    <Override xpath="/CommunityServer/Search/Solr"
                  mode="change"
                  name="host"
                  value="http://username:password@ipaddress:8080/solr"   (not localhost)
                  />

    In  communityserver_override.config on both Job Server and Main root folder

  • You are missing the core name, "content", at the end of the URL. Add "/content" to the end.

  • Thanks For Notify, Somehow searching is working with very strange behavior i Show you here

    #Secure Solr (Assume Username as Admin) I am getting 200 in log and Searching is working. 

    When I am getting 401 searching is not working and it is not picking username (admin) also.

    But i did noting/no change In configuration file and no where. Why this happening ?? Any Idea ?

    127.0.0.1 - admin [01/Feb/2018:21:38:19 +0530] "GET /solr/content/select/?rows=10&q=%7B!boost%20b=sum(contentscore,1)%20defType=edismax%7D%20ehs&hl=true&group=true&group.ngroups=true&group.facet=true&group.field=collapse&fq=%2Broles%3A%281%20OR%202%20OR%204%20OR%2026%20OR%2078%20OR%2081%20OR%20659%20OR%20777%20OR%202020%20OR%202039%20OR%202049%29 HTTP/1.1" 200 41784

    127.0.0.1 - - [01/Feb/2018:21:38:34 +0530] "GET /solr/content/select/?rows=10&q=%7B!boost%20b=sum(contentscore,1)%20defType=edismax%7D%20ehs&hl=true&group=true&group.ngroups=true&group.facet=true&group.field=collapse&fq=%2Broles%3A%281%20OR%202%20OR%204%20OR%2026%20OR%2078%20OR%2081%20OR%20659%20OR%20777%20OR%202020%20OR%202039%20OR%202049%29 HTTP/1.1" 401 1033

    127.0.0.1 - admin [01/Feb/2018:21:38:34 +0530] "GET /solr/content/select/?rows=10&q=%7B!boost%20b=sum(contentscore,1)%20defType=edismax%7D%20ehs&hl=true&group=true&group.ngroups=true&group.facet=true&group.field=collapse&fq=%2Broles%3A%281%20OR%202%20OR%204%20OR%2026%20OR%2078%20OR%2081%20OR%20659%20OR%20777%20OR%202020%20OR%202039%20OR%202049%29 HTTP/1.1" 200 41776

    127.0.0.1 - - [01/Feb/2018:21:38:38 +0530] "GET /solr/content/select/?rows=10&q=%7B!boost%20b=sum(contentscore,1)%20defType=edismax%7D%20Nitin&hl=true&group=true&group.ngroups=true&group.facet=true&group.field=collapse&fq=%2Broles%3A%281%20OR%202%20OR%204%20OR%2026%20OR%2078%20OR%2081%20OR%20659%20OR%20777%20OR%202020%20OR%202039%20OR%202049%29 HTTP/1.1" 401 1033

    127.0.0.1 - admin [01/Feb/2018:21:38:38 +0530] "GET /solr/content/select/?rows=10&q=%7B!boost%20b=sum(contentscore,1)%20defType=edismax%7D%20Nitin&hl=true&group=true&group.ngroups=true&group.facet=true&group.field=collapse&fq=%2Broles%3A%281%20OR%202%20OR%204%20OR%2026%20OR%2078%20OR%2081%20OR%20659%20OR%20777%20OR%202020%20OR%202039%20OR%202049%29 HTTP/1.1" 200 692

    127.0.0.1 - - [01/Feb/2018:21:38:45 +0530] "GET /solr/content/select/?rows=10&q=%7B!boost%20b=sum(contentscore,1)%20defType=edismax%7D%20Nitin%20&hl=true&group=true&group.ngroups=true&group.facet=true&group.field=collapse&fq=%2Broles%3A%281%20OR%202%20OR%204%20OR%2026%20OR%2078%20OR%2081%20OR%20659%20OR%20777%20OR%202020%20OR%202039%20OR%202049%29 HTTP/1.1" 401 1033

    127.0.0.1 - admin [01/Feb/2018:21:38:45 +0530] "GET /solr/content/select/?rows=10&q=%7B!boost%20b=sum(contentscore,1)%20defType=edismax%7D%20Nitin%20&hl=true&group=true&group.ngroups=true&group.facet=true&group.field=collapse&fq=%2Broles%3A%281%20OR%202%20OR%204%20OR%2026%20OR%2078%20OR%2081%20OR%20659%20OR%20777%20OR%202020%20OR%202039%20OR%202049%29 HTTP/1.1" 200 693

  • value="http://username:password@ipaddress:8080/solr/content" Still i am getting same error

    Error retrieving response for Solr POST request.InnerException: System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size[trunca

Reply
  • value="http://username:password@ipaddress:8080/solr/content" Still i am getting same error

    Error retrieving response for Solr POST request.InnerException: System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size[trunca

Children
No Data