Elasticsearch return connection refused after initialization SearchGuard

Hi,

After we install and initialize Search Guard with demo scripts

install_demo_configuration.sh

and

sgadmin_demo.sh

we try to connect Elasticsearch, and get error

curl: (7) Failed to connect to hostname port 9200: Connection refused

  • Search Guard and Elasticsearch version: 6.3.1

  • operating system: ubuntu 14.04.5

  • Search Guard configuration files

  • Other installed Elasticsearch or Kibana plugins, if any: x-pack

Best regards,

Oleh Kayda

What is the curl command you are using? The demo installer will a) enable HTTPS and b) will install self-signed demo certificates.

So make sure you connect with HTTPS and provide the --insecure flag to curl to accept self-signed certificates.

···

On Thursday, July 19, 2018 at 4:00:08 PM UTC+2, Олег Кайда wrote:

Hi,

After we install and initialize Search Guard with demo scripts

install_demo_configuration.sh

and

sgadmin_demo.sh

we try to connect Elasticsearch, and get error

curl: (7) Failed to connect to hostname port 9200: Connection refused

  • Search Guard and Elasticsearch version: 6.3.1
  • operating system: ubuntu 14.04.5
  • Search Guard configuration files
  • Other installed Elasticsearch or Kibana plugins, if any: x-pack

Best regards,

Oleh Kayda