symfony 4.2.8:无法通过fos:elastica:populate命令

6tr1vspr  于 2021-06-13  发布在  ElasticSearch
关注(0)|答案(0)|浏览(233)

我在symfony 4.2.8中遇到了一个问题(是的,我知道……)。
当我尝试启动bin/控制台时fos:elastica:填充或bin/控制台fos:elastica:重置控制台崩溃(使用-vvv选项):

Exception trace:
 () at /var/www/current/vendor/ruflin/elastica/lib/Elastica/Transport/Http.php:190
 Elastica\Transport\Http->exec() at /var/www/current/vendor/ruflin/elastica/lib/Elastica/Request.php:194
 Elastica\Request->send() at /var/www/current/vendor/ruflin/elastica/lib/Elastica/Client.php:689
 Elastica\Client->request() at /var/www/current/vendor/friendsofsymfony/elastica-bundle/src/Elastica/Client.php:58
 FOS\ElasticaBundle\Elastica\Client->request() at /var/www/current/vendor/ruflin/elastica/lib/Elastica/Client.php:721
 Elastica\Client->requestEndpoint() at /var/www/current/vendor/ruflin/elastica/lib/Elastica/Index.php:586
 Elastica\Index->requestEndpoint() at /var/www/current/vendor/ruflin/elastica/lib/Elastica/Index.php:225
 Elastica\Index->delete() at /var/www/current/vendor/ruflin/elastica/lib/Elastica/Index.php:296
 Elastica\Index->create() at /var/www/current/vendor/friendsofsymfony/elastica-bundle/src/Index/Resetter.php:110
 FOS\ElasticaBundle\Index\Resetter->resetIndex() at /var/www/current/vendor/friendsofsymfony/elastica-bundle/src/Command/PopulateCommand.php:184
 FOS\ElasticaBundle\Command\PopulateCommand->populateIndex() at /var/www/current/vendor/friendsofsymfony/elastica-bundle/src/Command/PopulateCommand.php:164
 FOS\ElasticaBundle\Command\PopulateCommand->execute() at /var/www/current/vendor/symfony/console/Command/Command.php:255
 Symfony\Component\Console\Command\Command->run() at /var/www/current/vendor/symfony/console/Application.php:926
 Symfony\Component\Console\Application->doRunCommand() at /var/www/current/vendor/symfony/framework-bundle/Console/Application.php:89
 Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /var/www/current/vendor/symfony/console/Application.php:269
 Symfony\Component\Console\Application->doRun() at /var/www/current/vendor/symfony/framework-bundle/Console/Application.php:75
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /var/www/current/vendor/symfony/console/Application.php:145
 Symfony\Component\Console\Application->run() at /var/www/current/bin/console:39

In Http.php line 190:

 [Elastica\Exception\Connection\HttpException]  
 Couldn't connect to host, Elasticsearch down?

es服务器上的 curl 响应:

{
 "name" : "prod",
 "cluster_name" : "elasticsearch",
 "cluster_uuid" : "********",
 "version" : {
  "number" : "7.10.0",
  "build_flavor" : "default",
  "build_type" : "deb",
  "build_hash" : "51e9d6f22758d0374a0f3f5c6e8f3a7997850f96",
  "build_date" : "2020-11-09T21:30:33.964949Z",
  "build_snapshot" : false,
  "lucene_version" : "8.7.0",
  "minimum_wire_compatibility_version" : "6.8.0",
  "minimum_index_compatibility_version" : "6.0.0-beta1"
 },
 "tagline" : "You Know, for Search"
}

我创建了一个新的分支来升级所有的组件,但我需要一个线索来快速修复生产。。。如果有人有主意,请提前感谢。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题