ValueError "ca_certs parameter is not a path"

So im trying to set up a Sharepoint Online Connector in Docker and when i do Docker run, i get following Error and logs:

~/connectors-config$ docker run -v ~/connectors-config:/config --network "elastic" --tty --rm docker.elastic.co/enterprise-search/elastic-connectors:8.12.1.0 /app/bin/elastic-ingest -c /config/config.yml
[FMWK][09:43:21][INFO] Running connector service version 8.12.1.0
[FMWK][09:43:21][INFO] Loading config from /config/config.yml
[FMWK][09:43:21][INFO] Bye
Traceback (most recent call last):
  File "/app/bin/elastic-ingest", line 33, in <module>
    sys.exit(load_entry_point('elasticsearch-connectors', 'console_scripts', 'elastic-ingest')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/connectors/service_cli.py", line 255, in main
    return run(args)
           ^^^^^^^^^
  File "/app/connectors/service_cli.py", line 234, in run
    return loop.run_until_complete(coro)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/app/connectors/service_cli.py", line 119, in _start_service
    preflight = PreflightCheck(config)
                ^^^^^^^^^^^^^^^^^^^^^^
  File "/app/connectors/preflight_check.py", line 21, in __init__
    self.es_client = ESClient(self.elastic_config)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/connectors/es/client.py", line 87, in __init__
    self.client = AsyncElasticsearch(**options)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/lib/python3.11/site-packages/elasticsearch/_async/client/__init__.py", line 395, in __init__
    _transport = transport_class(
                 ^^^^^^^^^^^^^^^^
  File "/app/lib/python3.11/site-packages/elastic_transport/_async_transport.py", line 140, in __init__
    super().__init__(
  File "/app/lib/python3.11/site-packages/elastic_transport/_transport.py", line 229, in __init__
    self.node_pool: NodePool = node_pool_class(
                               ^^^^^^^^^^^^^^^^
  File "/app/lib/python3.11/site-packages/elastic_transport/_node_pool.py", line 188, in __init__
    self._all_nodes[node_config] = self._node_class(node_config)
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/lib/python3.11/site-packages/elastic_transport/_node/_http_aiohttp.py", line 107, in __init__
    raise ValueError("ca_certs parameter is not a path")
ValueError: ca_certs parameter is not a path

The following is my config.yml:

## ================= Elastic Connectors Configuration ==================
#
## NOTE: Elastic Connectors comes with reasonable defaults.
##       Before adjusting the configuration, make sure you understand what you
##       are trying to accomplish and the consequences.
#
#
## ------------------------------- Connectors -------------------------------
#
##  The list of connector clients/customized connectors configurations.
##    Each object in the list requires `connector_id` and `service_type`.
##    An example is:
##    connectors:
##      - connector_id: changeme # the ID of the connector.
##        service_type: changeme # The service type of the connector.
##        api_key: changeme # The Elasticsearch API key used to write data into the content index.
#connectors: []
#
#
##  The ID of the connector.
##    (Deprecated. Configure the connector client in an object in the `connectors` list)
connector_id: "HERE_IS_MY_CONNECTORS_ID"
#
#
##  The service type of the connector.
##    (Deprecated. Configure the connector client in an object in the `connectors` list)
service_type: "sharepoint_online"
#
#
## ------------------------------- Elasticsearch -------------------------------
#
## The host of the Elasticsearch deployment.
elasticsearch.host: "https://localhost:9200"
#
#
## The API key for Elasticsearch connection.
##    Using `api_key` is recommended instead of `username`/`password`.
elasticsearch.api_key: "HERE_IS_MY_API_KEY"
#
#
##  The username for the Elasticsearch connection.
##    Using `username` requires `password` to also be configured.
##    However, `elasticsearch.api_key` is the recommended configuration choice.
#elasticsearch.username: elastic
#
#
##  The password for the Elasticsearch connection.
##    Using `password` requires `username` to also be configured.
##    However, `elasticsearch.api_key` is the recommended configuration choice.
#elasticsearch.password: changeme
#
#
##  Whether SSL is used for the Elasticsearch connection.
elasticsearch.ssl: true
#
#
##  Path to a CA bundle
elasticsearch.ca_certs: "/home/tkruse/http_ca.crt"

I am new to Elastic and still trying out and learning. What am i doing wrong?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.