FriendsOfSymfony / FOSElasticaBundle

Elasticsearch PHP integration for your Symfony project using Elastica.
http://friendsofsymfony.github.io
MIT License
1.24k stars 793 forks source link

SQLSTATE[HY000] [2002] Connection refused #659

Closed xsmall closed 10 years ago

xsmall commented 10 years ago

Any ideas why this happens?

I woke up this morning, went to work and BAMM!! Can' t populate anymore.

1. I can save to my database 2. I can connect to elastic search. It is running 3. I can manually search

What I did: fos:elastica:populate

then I get: Resetting search

This actually removes all from elastic search

then I get:

SQLSTATE[HY000] [2002] Connection refused

Any ideas to get it working...again?

damienalexandre commented 10 years ago

Look likes your cli is not able to connect to the database anymore. Can you run commands like doctrine:schema:update --dump-sql? And are you sure the command is ok? (like, not forgetting the --env flag and such?).

merk commented 10 years ago

When using the symfony console, you can use the --verbose flag to get a stack trace.

This error is related to Doctrine, not to FOSElasticaBundle.