# Impossible to connect my Altas mongodb

**URL:** <https://community.forestadmin.com/t/impossible-to-connect-my-altas-mongodb/85>\
**Category:** Help me!\
**Created:** [May 6, 2020, 4:50pm UTC](https://community.forestadmin.com/t/impossible-to-connect-my-altas-mongodb/85 "2020-05-06T16:50:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon34731316](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@anon34731316](https://community.forestadmin.com/u/anon34731316)\
**Post date:** [May 6, 2020, 4:50pm UTC](https://community.forestadmin.com/t/impossible-to-connect-my-altas-mongodb/85/1 "2020-05-06T16:50:13Z")

</div>

## Expected behavior

Being able to create a Forest Admin project with my Altas mongodb.

## Actual behavior

Impossible to connect.  
I am not quite sure why 🤔

## Context

I have a Altas mongodb (Free version).

---

<div class="post-metadata">

**Author:** ![anon62739609](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@anon62739609](https://community.forestadmin.com/u/anon62739609)\
**Post date:** [May 7, 2020, 7:50am UTC](https://community.forestadmin.com/t/impossible-to-connect-my-altas-mongodb/85/2 "2020-05-07T07:50:30Z")

</div>

Hi @anon34731316,

Can you give a little bit more context ?

What happened ? Do you have an issue during the `lumber generate` ? Or after ?

---

<div class="post-metadata">

**Author:** ![anon34731316](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@anon34731316](https://community.forestadmin.com/u/anon34731316)\
**Post date:** [May 7, 2020, 8:44am UTC](https://community.forestadmin.com/t/impossible-to-connect-my-altas-mongodb/85/3 "2020-05-07T08:44:32Z")

</div>

Hey @anon62739609, thanks for your prompt reply.

Actually I finally succeeded connecting my DB properly and creating for Forest project 🎉  
I just did not declare the SRV in the “advanced db settings” so my db url was wrong.

I just have one thing weird: my collection are almost empty (they contain just their id).  
I noticed that I had on my terminal some warning info when my project was created:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/1X/71f920fc2a8d5dd0cbc7eeab71fd4ef87455861f.png)  
Is it the reason why my collections are empty?  
Do you know how can I fix them?

---

<div class="post-metadata">

**Author:** ![anon62739609](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@anon62739609](https://community.forestadmin.com/u/anon62739609)\
**Post date:** [May 7, 2020, 8:51am UTC](https://community.forestadmin.com/t/impossible-to-connect-my-altas-mongodb/85/4 "2020-05-07T08:51:39Z")

</div>

Like the logs says, `mapReduce` is not authorized on the free tier of Mongo DB Atlas. Sadly we use this function to generate automatically your models right now. SO you’ll have to create your models manually. I hope this [guide](https://docs.forestadmin.com/documentation/reference-guide/models/enrich-your-models) can help you.

---

<div class="post-metadata">

**Author:** ![anon34731316](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@anon34731316](https://community.forestadmin.com/u/anon34731316)\
**Post date:** [May 7, 2020, 9:00am UTC](https://community.forestadmin.com/t/impossible-to-connect-my-altas-mongodb/85/5 "2020-05-07T09:00:45Z")

</div>

Ok I’ll take care of it myself then.  
Thanks 🙏

---

<div class="post-metadata">

**Author:** ![Alban\_Bertolini](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/alban_bertolini/32/1077_2.png) [@Alban\_Bertolini](https://community.forestadmin.com/u/Alban_Bertolini)\
**Post date:** [December 31, 2021, 9:59am UTC](https://community.forestadmin.com/t/impossible-to-connect-my-altas-mongodb/85/6 "2021-12-31T09:59:20Z")

</div>

Hello, this problem is fixed since this [release](https://github.com/ForestAdmin/toolbelt/commit/4602030b757a0f1c28449fece9ac5fab4ab3d9ff). 🙂
