【发布时间】: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)","request":{"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