# Your connector has not connected to Search

**URL:** <https://discuss.elastic.co/t/your-connector-has-not-connected-to-search/364499>\
**Category:** Elasticsearch\
**Tags:** docker, connectors\
**Created:** [August 6, 2024, 9:07pm UTC](https://discuss.elastic.co/t/your-connector-has-not-connected-to-search/364499 "2024-08-06T21:07:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dedicated\_Server](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dedicated_server/32/135606_2.png) [@Dedicated\_Server](https://discuss.elastic.co/u/Dedicated_Server)\
**Post date:** [August 6, 2024, 9:07pm UTC](https://discuss.elastic.co/t/your-connector-has-not-connected-to-search/364499/1 "2024-08-06T21:07:28Z")

</div>

I am running mongo, elastic, kibana, and elastic-connectors in docker containers with docker-compose.

I setup the connector and config, and it even connects in docker logs.

```auto
[FMWK][21:01:02][INFO] Running connector service version 8.14.3.0
elastic-connectors-1 | [FMWK][21:01:02][INFO] Loading config from /config/config.yml
elastic-connectors-1 | [FMWK][21:01:02][INFO] Running preflight checks
elastic-connectors-1 | [FMWK][21:01:02][INFO] Waiting for Elasticsearch at https://es01:9200 (so far: 0 secs)
elastic-connectors-1 | [FMWK][21:01:02][INFO] Extraction service is not configured, skipping its preflight check.
elastic-connectors-1 | [FMWK][21:01:02][INFO] [job_scheduling_service] Job Scheduling Service started, listening to events from https://es01:9200
elastic-connectors-1 | [FMWK][21:01:02][INFO] [content_sync_job_execution_service] Content sync job execution service started, listening to events from https://es01:9200
elastic-connectors-1 | [FMWK][21:01:02][INFO] [access_control_sync_job_execution_service] Access control sync job execution service started, listening to events from https://es01:9200

```

However, in kibana UI no matter what I do all I see is:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/0/5081d1bb14afe501e186f7acc3d16e9928011381.png)

---

<div class="post-metadata">

**Author:** ![Sean\_Story](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sean_story/32/69987_2.png) [@Sean\_Story](https://discuss.elastic.co/u/Sean_Story)\
**Post date:** [August 6, 2024, 9:18pm UTC](https://discuss.elastic.co/t/your-connector-has-not-connected-to-search/364499/2 "2024-08-06T21:18:35Z")

</div>

@Dedicated_Server what are the contents of the `config.yml` you're using when you run the connector service? Please redact all credentials before sharing.

My guess is that you haven't added

```auto
connectors:
  -
    connector_id: "<connector ID>"
    service_type: "mongodb"
    api_key: "<optional, generated API key>"

```

This UI is not saying that the connectors _process_ isn't running, but that no process that is eligible to manage this specific connector is running.

See step 2 here: [Running from a Docker container | Enterprise Search documentation [8.14] | Elastic](https://www.elastic.co/guide/en/enterprise-search/current/connectors-run-from-docker.html)

---

<div class="post-metadata">

**Author:** ![Dedicated\_Server](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dedicated_server/32/135606_2.png) [@Dedicated\_Server](https://discuss.elastic.co/u/Dedicated_Server)\
**Post date:** [August 6, 2024, 9:19pm UTC](https://discuss.elastic.co/t/your-connector-has-not-connected-to-search/364499/3 "2024-08-06T21:19:48Z")

</div>

It is working now, `service_type` in the config.yml needed to be "mongodb" not "mongo".

I did "mongo" because in the docs

> **[Elastic MongoDB connector reference | Enterprise Search documentation \[8.14\]...](https://www.elastic.co/guide/en/enterprise-search/current/connectors-mongodb.html)**

it is "mongo" for the api, but not config, my mistake.

---

<div class="post-metadata">

**Author:** ![Sean\_Story](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sean_story/32/69987_2.png) [@Sean\_Story](https://discuss.elastic.co/u/Sean_Story)\
**Post date:** [August 6, 2024, 9:21pm UTC](https://discuss.elastic.co/t/your-connector-has-not-connected-to-search/364499/4 "2024-08-06T21:21:13Z")

</div>

Ah sorry about that. Are you using Kibana? It should have given you a code block to copy-paste directly. I'd love to have any feedback you can provide on why this wasn't straightforward, or where you would have liked to see more/different information.

Also, thanks for flagging. I bet those API examples are typoed. It should be `mongodb`.

---

<div class="post-metadata">

**Author:** ![Dedicated\_Server](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dedicated_server/32/135606_2.png) [@Dedicated\_Server](https://discuss.elastic.co/u/Dedicated_Server)\
**Post date:** [August 6, 2024, 9:28pm UTC](https://discuss.elastic.co/t/your-connector-has-not-connected-to-search/364499/5 "2024-08-06T21:28:55Z")

</div>

The Kibana example config also has mongo as service type

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/d/3d6146fef346d600846098ca7b5922193eada4f5.png)

---

<div class="post-metadata">

**Author:** ![Sean\_Story](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sean_story/32/69987_2.png) [@Sean\_Story](https://discuss.elastic.co/u/Sean_Story)\
**Post date:** [August 6, 2024, 9:32pm UTC](https://discuss.elastic.co/t/your-connector-has-not-connected-to-search/364499/6 "2024-08-06T21:32:18Z")

</div>

Oh now that hurts. 😭  
Thank you. We'll get all these fixed. Sorry for the inconvenience.

---

<div class="post-metadata">

**Author:** ![Jedr\_Blaszyk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jedr_blaszyk/32/127637_2.png) [@Jedr\_Blaszyk](https://discuss.elastic.co/u/Jedr_Blaszyk)\
**Post date:** [August 7, 2024, 7:24am UTC](https://discuss.elastic.co/t/your-connector-has-not-connected-to-search/364499/7 "2024-08-07T07:24:13Z")

</div>

> The Kibana example config also has mongo as service type

This Kibana example config uses the `service_type` that was provided in the create connector API call. When creating a MongoDB connector entirely via the UI, the service type is correctly set to `mongodb`.

Just clarifying that the bug is limited to the documentation and not the logic in Kibana. Fix incoming 🙂
