1

I have solr 7.5 working and am able to hit secured admin panel https://solr75:8983.

My connection string settings in index worker and site root are set to https://solr75:8983, my hosts file has an entry for solr -127.0.0.1 solr75 - but I still get this error:

An error occurred. System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:8983

I am able to hit my xconnect instance with no errors, SSL thumbprints match. The SSL certificates when I hit https://solr75:8983 are valid and trusted. I don't see 127.0.0.1:8983 entry anywhere. Why is it looking for 127.0.0.1:8983?

6
  • What version of Sitecore?
    – Chris Auer
    Apr 15, 2020 at 19:04
  • sitecore 9.2 and solr 7.5 Apr 15, 2020 at 19:04
  • Is your Solr certificate trusted? you can check from chrome browser as it should say connection is secure Apr 15, 2020 at 21:03
  • Yes, solr75:8983 is secured and the certificate is trusted Apr 15, 2020 at 23:32
  • Is the xconnect service running? Do you see any errors in the xconnect and sitecore logs?
    – rpatwari
    Apr 20, 2020 at 19:03

1 Answer 1

1

"Actively refused it" means that the host sent a reset instead of an ack when you tried to connect. It is therefore not a problem in your code. Either there is a firewall blocking the connection or the process that is hosting the service is not listening on that port. This may be because it is not running at all or because it is listening on a different port.

6
  • Solr75 is set to the default port; 8983. It looks like the domain name is the issue, not the port, right? Apr 16, 2020 at 13:49
  • is there any duplicate entry in your host file Apr 16, 2020 at 14:17
  • no. Again, I am able to hit solr75:8983 with no issues. I have my connectionstring values all pointed to solr75 so the error message is confusing. Apr 16, 2020 at 14:19
  • Yes, is confusing issue. When this issue occur ? try to add any core admin in solr Apr 16, 2020 at 14:21
  • Check any default proxy in your web. Config file. Apr 16, 2020 at 14:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.