构建时 Elasticsearch 集成 Akeneo - “在您的集群中找不到活动节点”

问题描述

我的知识已经到了尽头。

我正在尝试在没有 Docker 的情况下设置 Akeneo。 在我的文件系统(Ubuntu 20)上获取文件并在每次构建设置时安装要求

NO_DOCKER=true make

最终出现此错误消息:

  [OK] Database schema updated successfully!


  Reset elasticsearch indexes

  In StaticnopingConnectionPool.PHP line 64:
  No alive nodes found in your cluster

我的 .env 文件

APP_ENV=prod
APP_DEBUG=1
APP_DATABASE_HOST=localhost
APP_DATABASE_PORT=3306
APP_DATABASE_NAME=akeneo_pim
APP_DATABASE_USER=akeneo_pim
APP_DATABASE_PASSWORD=akeneo_pim
APP_DEFAULT_LOCALE=en
APP_SECRET=ThisTokenIsNotSoSecretChangeIt
APP_INDEX_HOSTS=https://akeneo_pimee:akeneo_pimee@localhost:9200
APP_INDEX_SSL_CA=/home/ubuntu/es.ca.pem
APP_PRODUCT_AND_PRODUCT_MODEL_INDEX_NAME=akeneo_pim_product_and_product_model
APP_CONNECTION_ERROR_INDEX_NAME=akeneo_connectivity_connection_error
MAILER_URL=null://localhost?encryption=tls&auth_mode=login&username=foo&password=bar&sender_address=no-reply@example.com
AKENEO_PIM_URL=http://localhost:8080
APP_ELASTICSEARCH_TOTAL_FIELDS_LIMIT=10000
APP_ELASTICSEARCH_MAX_CHUNK_SIZE_CHaraCTERS=100000000
FLAG_QUANTIFIED_ASSOCIATION_ENABLED=1
COMM_PANEL_API_URL=https://pim-comm-panel.akeneo.com
FLAG_DATA_QUALITY_INSIGHTS_ENABLED=1
SRNT_GOOGLE_APPLICATION_CREDENTIALS=
GOOGLE_CLOUD_PROJECT=emulator-project
PUBSUB_EMULATOR_HOST=
PUBSUB_AUTO_SETUP=true
PUBSUB_TOPIC_BUSInesS_EVENT=
PUBSUB_TOPIC_JOB_QUEUE=
PUBSUB_SUBSCRIPTION_WEBHOOK=
PUBSUB_SUBSCRIPTION_JOB_QUEUE=
XDEBUG_MODE=off

这里是我的 elasticsearch.yml:

path.data: /var/lib/elasticsearch
#
# Path to log files:
#
path.logs: /var/log/elasticsearch

network.host: localhost
network.bind_host: 0
discovery.type: single-node



# This turns on SSL for the HTTP (Rest) interface
xpack.security.http.ssl.enabled: true

# This configures the keystore to use for SSL on HTTP
xpack.security.http.ssl.keystore.path: "http.p12"


# This tells xpack to ignore the differences in the SSL CA Certificate,so
# we can run elasticsearch-setup-passwords interactive after setting up ssl
xpack.security.http.ssl.verification_mode: certificate

# This adds the file authentication realm
xpack.security.authc.realms.file.users.order: 0
# This enables xpack
xpack.security.enabled: true

我尝试为 elasticsearch 安装证书。它没有帮助。我错过了什么?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)