o19s / relevant-search-book

Code and Examples for Relevant Search
303 stars 109 forks source link

Can't connect to Elasticsearch on port 9200 - get "connection refused" #19

Closed xormazabal closed 4 years ago

xormazabal commented 4 years ago

Hello, I followed the setup instructions on Readme, installing Elasticsearch on vagrant and using VirtualBox (all on a MacBook). When going through the setup instructions, I did the following (from command line):

vagrant up --provision

[I can see the VirtualBox virtual machine start up]

curl -XGET http://localhost:9200

I get: curl: (7) Failed to connect to localhost port 9200: Connection refused

This used to work for me (as well as going to localhost:9200 in Chrome).

Any tips for troubleshooting this error? Thanks

xormazabal commented 4 years ago

Uninstalled everything, re-installed and it worked. I think one issue may have been that I wasn't nesting the folder "relevant-search-book" within "elasticsearch-vagrant"