HttpException: Solr HTTP error: HTTP request failed, Failed to connect to 127.0.0.1 port 8983: Connection refused

泪湿孤枕 提交于 2020-01-03 04:36:19

问题


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

回答1:


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.



来源:https://stackoverflow.com/questions/25597255/httpexception-solr-http-error-http-request-failed-failed-to-connect-to-127-0

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!