【问题标题】:elasticsearch connection problems on windows (found.io)Windows 上的弹性搜索连接问题 (found.io)
【发布时间】:2019-10-13 06:19:57
【问题描述】:

在我的 Windows 上,我想将我的 python 程序连接到我在 found.io 上托管的 elasticsearch 集群(通过 heroku。)

到 elasticsearch 的连接超时并给我一个异常说“目标机器主动拒绝它”。

es = Elasticsearch(
      [elastic],
        # port=443,
        use_ssl=True,
        verify_certs=True,
        ca_certs=certifi.where(),
    )

我希望索引,但收到以下错误消息:

elasticsearch.exceptions.ConnectionError: ConnectionError(<urllib3.connection.HTTPConnection object at 0x03A0EC70>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it) caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x03A0EC70>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it)

【问题讨论】:

    标签: python elasticsearch github


    【解决方案1】:

    这可能是一个 PROXY 问题,如 heroku/legacy-cli issue 642,并记录在 using the CLI / using an HTTP proxy

    另一个原因仅仅是当远程弹性搜索集群没有启动时,如in this thread

    【讨论】:

      猜你喜欢
      • 2021-05-23
      • 1970-01-01
      • 2018-11-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-13
      • 2021-07-10
      • 1970-01-01
      相关资源
      最近更新 更多