0

Recently updated the solr version from 8.4.1 to 9.0.0 on EC2 Linux AMI 2.

I'm getting the result when i'm using the cli using the localhost domain-> curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET "http://localhost:8983/solr/core_name/select?q=(fieldname%3A\fieldvalue%20)&start=0".

But when I try to use the EC2's elastic IP it says the connection refused. It was working well with the previous version. I configured it locally before trying in EC2, it worked fine in local but not on EC2.Not sure what's missing.

Scrrenshot of browser response

Solr Status

Solr status screenshot

  • you could try a few things - if somewhere solr is running on 127.0.0.1, replace that with 0.0.0.0 & also check if some firewall is blocking the connections in the ec2. And check security groups – iArc13 Sep 22 '22 at 19:21
  • Please provide enough code so others can better understand or reproduce the problem. – Community Sep 23 '22 at 11:07
  • @IArc13 Thanks - I uncommented and changed the SOLR_JETTY_HOST in solr.in.sh ( linux ) from 127.0.0.1 to 0.0.0.0 (not recommended in production or pre-prod ). However EC2 security group is mapped only to my IP for port 8983 so it works. – Karthik Annamallai Sep 26 '22 at 12:57

1 Answers1

0

Uncommented and changed the SOLR_JETTY_HOST from 127.0.0.1 to 0.0.0.0 in solr.in.sh file. Deleted everything and reindexed the core after updating the jetty host.