# Mongodb-connector not syncing data

**URL:** <https://discuss.elastic.co/t/mongodb-connector-not-syncing-data/342677>\
**Category:** Elastic Search\
**Tags:** docker, elastic-app-search\
**Created:** [September 10, 2023, 9:35am UTC](https://discuss.elastic.co/t/mongodb-connector-not-syncing-data/342677 "2023-09-10T09:35:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pulsy](https://avatars.discourse-cdn.com/v4/letter/p/e0b2c6/32.png) [@pulsy](https://discuss.elastic.co/u/pulsy)\
**Post date:** [September 10, 2023, 9:35am UTC](https://discuss.elastic.co/t/mongodb-connector-not-syncing-data/342677/1 "2023-09-10T09:35:21Z")

</div>

I'd like to try out the enterprise search functionality on my mocal machine using the enterprise search mongodb connector. I've managed to get everything running locally using docker compose, but when i start to sync collections from mongodb, there are no documents in the index afterwards.

I can see in the connector-python logs that the connector is actually loading documents from mongodb, but for some reason they are not being inserted into the elastic index.

I have not setup any custome filters or anything, basically everything is left at defaults.

The image i'm using for the connector is [docker.elastic.co/enterprise-search/elastic-connectors:8.9.2.0](http://docker.elastic.co/enterprise-search/elastic-connectors:8.9.2.0)

Does anyone know how to debug this?

---

<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:** [September 11, 2023, 1:01pm UTC](https://discuss.elastic.co/t/mongodb-connector-not-syncing-data/342677/2 "2023-09-11T13:01:26Z")

</div>

Hi @pulsy - can you share any relevant logs and/or stack traces?

Also, are you also the author of [The connector fails to sync data from mongo with the following exception · Issue #1605 · elastic/connectors-python · GitHub](https://github.com/elastic/connectors-python/issues/1605)? If so, let's keep discussing in the github issue, so we aren't duplicating effort.

---

<div class="post-metadata">

**Author:** ![pulsy](https://avatars.discourse-cdn.com/v4/letter/p/e0b2c6/32.png) [@pulsy](https://discuss.elastic.co/u/pulsy)\
**Post date:** [September 11, 2023, 2:22pm UTC](https://discuss.elastic.co/t/mongodb-connector-not-syncing-data/342677/3 "2023-09-11T14:22:16Z")

</div>

yes, that's me on github. however the issue is a different one. i've tried the connector with a different collection that does not contain dbrefs and it's not syncing anything at all.

However, we're probably going with our own connector in java tbh, but i'll give that dbref fix you posted over on github a try and let you know if it fixes the deserialization issue.

---

<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:** [September 11, 2023, 2:37pm UTC](https://discuss.elastic.co/t/mongodb-connector-not-syncing-data/342677/4 "2023-09-11T14:37:07Z")

</div>

Ok thanks! If this post was asking about a separate issue, feel free to either share the relevant logs/errors here, or file a separate github issue for that.

I take no exception to you choosing to use another connector, but as long as you're willing to file issues on ours, we're happy to look into them. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 9, 2023, 2:37pm UTC](https://discuss.elastic.co/t/mongodb-connector-not-syncing-data/342677/5 "2023-10-09T14:37:12Z")

</div>

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