The host crashed, after that the site stopped working, I restored a couple of classes that were damaged, the site started working, but the sections where ElasticSearch is being used stopped working, this error occurs:

CouldNotConnectToHost in AbstractConnection.php line 323: Failed to connect to 127.0.0.1 port 9200: Connection refused

It turns out I cannot connect to the database to display the page.

I found the following line in the hhvm logs:

Fatal error: Invalid operand type is not available in /home/uzbek/uzbek. Rf

What to do?

  • one
    I suppose these logs are a little connected. Sure that 127.0.0.1:9200 is really available? - Gedweb
  • @Gedweb Yes, because under my profile I can get to the site, i.e. The data from the database is loaded, namely the sections where elasticsearch is used, such an error comes out :(
  • one
    what interface does elasticsearch look at? - ExileeD
  • The site database and elasticsearch are different things. In elasticsearch, this is a search engine with its own database, and judging by the errors, the problem is precisely in connecting to elasticsearch . The truth is, how much can I judge by the site the problem is already solved? - Yuriy

1 answer 1

ElasticSearch is a separate full-text search server. Apparently, he simply did not get up after a failure, and the site is waiting for his responses on the local host on port 9200. You can make sure whether it is running or not, with the help of

ps aux | grep elasticsearch 
  • Thank you very much :) - akim157