【问题标题】:Elasticsearch Error 56弹性搜索错误 56
【发布时间】:2019-01-22 04:46:24
【问题描述】:

我终于从 Ubuntu 切换到 MacOS High Sierra,但遇到了问题。

我已经在本地安装了 Elasticsearch,并且收到了回复。

不幸的是,执行 bin/console fos:elastica:populate 时出现以下错误

[2018-08-15 08:07:53] elastica.ERROR: Elastica Request Failure {"exception":"[object] (Elastica\Exception\Connection\HttpException(code: 0): Unknown error:56 at /srv/www/litedesk/vendor/ruflin/elastica/lib/Elastica/Transport/Http.php:180)","re​​quest":{"path":"_bulk","method":"POST","data ":"{\"index\":{\"_index\":\"******\",\"_type\":\"******\",\"_id\" :\"1\"}}\n{\"名称\":\"*******\",\"快捷方式\":\"\"}\n{\"索引\ ":{\"_index\":\"*******\",\"_type\":\"*********\",\"_id\":\"2 \"}}\n{\"名称\":\"********\",\"快捷方式\":\"****\"}\n{\"索引\": {\"_index\":\"******\",\"_type\":\"*****\",\"_id\":\"3\"}}\n{ \"name\":\"*****\",\"快捷方式\":\"\"}\n{\"index\":{\"_index\":\"* *******\",\"_type\":\"*********\",\"_id\":\"4\"}}\n{\"名称\ ":\"******\",\"快捷方式\":\"****\"}\n","query":[],"connection":{"config":{" headers":[]},"host":"localhost","port":9200,"logger":"fos_elastica.logger","compression":false,"retryOnConflict":0,"enabled":false}} "重试":false}

[弹性\异常\连接\HttpException] 未知错误:56

我的 Symfony 项目中的 Elastic 设置是

fos_elastica: 客户: 默认值:{ 主机:本地主机,端口:9200 }

提前谢谢你 最好的问候,安德里亚

【问题讨论】:

    标签: elasticsearch


    【解决方案1】:

    这只是我必须在 elasticsearch.yml 中设置为 9200 的 http.port - 就是这样! :-)

    【讨论】:

      【解决方案2】:

      elasticsearch.yml

      中配置你希望运行elasticsearch的端口

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-05-30
        • 2016-03-09
        • 1970-01-01
        相关资源
        最近更新 更多