Reputation: 85
I try to configure NelmioSolariumBundle in symfony2 but i have this error:
HttpException: Solr HTTP error: HTTP request failed, Failed to connect to 127.0.0.1 port 8983: Connection refused
I added this section in the file config.yml :
nelmio_solarium:
endpoints:
default:
host: %solr_host%
port: %solr_port%
path: %solr_path%
core: %solr_core%
timeout: %solr_timeout%
clients:
default:
endpoints: [default]
and this in parametre.yml:
solr_host: 127.0.0.1
solr_port: 8983
solr_path: /solr/
solr_core: allTest
solr_timeout: 5
Upvotes: 2
Views: 7819
Reputation: 13107
Apparently, your Solr server is down. Please check the Solr logs if the startup has failed.
tail -n 200 /tmp/solr.log # or wherever Solr writes its logs
This can happen if you have an error in your schema.xml, your solrconfig.xml, or when a file should be included which doesn't exist.
Upvotes: 1