# MongoDB add on

**URL:** <https://forum.fudiabetes.org/t/mongodb-add-on/9971>\
**Category:** Type 1 & LADA\
**Created:** [July 10, 2020, 5:54pm UTC](https://forum.fudiabetes.org/t/mongodb-add-on/9971 "2020-07-10T17:54:01Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![flyerfansince79](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.fudiabetes.org/flyerfansince79/32/7756_2.png) [@flyerfansince79](https://forum.fudiabetes.org/u/flyerfansince79)\
**Post date:** [July 10, 2020, 5:54pm UTC](https://forum.fudiabetes.org/t/mongodb-add-on/9971/1 "2020-07-10T17:54:01Z")

</div>

I just received an email today saying this will no longer work in November. I would like this to remain free. In a nutshell, what are my options? Any help or suggestions would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![Trying](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.fudiabetes.org/trying/32/4078_2.png) [@Trying](https://forum.fudiabetes.org/u/Trying)\
**Post date:** [July 10, 2020, 7:48pm UTC](https://forum.fudiabetes.org/t/mongodb-add-on/9971/2 "2020-07-10T19:48:36Z")

</div>

Yes, I received this email, too. From the responses I’ve seen thus far (on gitter, FB, zulipchat, etc.), many are aware of this and it is expected to be addressed. We have until Nov to migrate so hopefully this will give NS dev/support team enough time to provide a solution!

---

<div class="post-metadata">

**Author:** ![elver](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.fudiabetes.org/elver/32/8772_2.png) [@elver](https://forum.fudiabetes.org/u/elver)\
**Post date:** [July 10, 2020, 8:28pm UTC](https://forum.fudiabetes.org/t/mongodb-add-on/9971/3 "2020-07-10T20:28:55Z")

</div>

Count me in as being concerned. I would prefer to save my historical data and migrate to something free\inexpensive if possible. Nightscout has been an invaluable tool for me.

---

<div class="post-metadata">

**Author:** ![Wolf](https://avatars.discourse-cdn.com/v4/letter/w/e19adc/32.png) [@Wolf](https://forum.fudiabetes.org/u/Wolf)\
**Post date:** [July 11, 2020, 1:57pm UTC](https://forum.fudiabetes.org/t/mongodb-add-on/9971/4 "2020-07-11T13:57:02Z")

</div>

Have you tried [https://app.tidepool.org](https://app.tidepool.org) ? I think it’s worth a try. To start a local nightscout-server would be also possible.

---

<div class="post-metadata">

**Author:** ![elver](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.fudiabetes.org/elver/32/8772_2.png) [@elver](https://forum.fudiabetes.org/u/elver)\
**Post date:** [July 11, 2020, 3:37pm UTC](https://forum.fudiabetes.org/t/mongodb-add-on/9971/5 "2020-07-11T15:37:37Z")

</div>

Hi @Wolf I do use Tidepool and it’s a great program. My Endo takes reports from both Tidepool and Nightscout remotely for our visits.

---

<div class="post-metadata">

**Author:** ![Trying](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.fudiabetes.org/trying/32/4078_2.png) [@Trying](https://forum.fudiabetes.org/u/Trying)\
**Post date:** [July 14, 2020, 7:02pm UTC](https://forum.fudiabetes.org/t/mongodb-add-on/9971/6 "2020-07-14T19:02:57Z")

</div>

JFYI, I migrated my mLab database to MongoDB Atlas last night. It is working great. I followed the instructions in the mLab email for the migration to Atlas.

@elver, Atlas is free (for 0.5Gb storage), just make sure you select the free (M0) cluster.

---

<div class="post-metadata">

**Author:** ![elver](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.fudiabetes.org/elver/32/8772_2.png) [@elver](https://forum.fudiabetes.org/u/elver)\
**Post date:** [July 14, 2020, 7:37pm UTC](https://forum.fudiabetes.org/t/mongodb-add-on/9971/7 "2020-07-14T19:37:55Z")

</div>

@Trying I don’t see to have (or be able to locate is probably closer to the truth) a migration email from MLab. Is that something you would be willing to share (minus personal details).

Did you lose any data/have to perform any sort of back up in the migration process?

---

<div class="post-metadata">

**Author:** ![Trying](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.fudiabetes.org/trying/32/4078_2.png) [@Trying](https://forum.fudiabetes.org/u/Trying)\
**Post date:** [July 14, 2020, 7:42pm UTC](https://forum.fudiabetes.org/t/mongodb-add-on/9971/8 "2020-07-14T19:42:03Z")

</div>

@elver the following is the content of the email;  
The mLab team has chosen to discontinue this add-on. **The mLab MongoDB add-on will be removed from all Heroku apps on November 10, 2020**. We advise you to remove the mLab MongoDB add-on yourself before September 1, 2020 via the [Dashboard](https://hello.heroku.com/e/36622/2020-07-10/lv2qdl/961660285?h=AW6T3SXCo9_yIUarc_zSqZ0GfY-idBwV3oqtMJFbI7c) or the [CLI](https://hello.heroku.com/e/36622/g-add-ons-destroying-an-add-on/lv2qdn/961660285?h=AW6T3SXCo9_yIUarc_zSqZ0GfY-idBwV3oqtMJFbI7c).

### Next Steps

You may wish to consider an alternative add-on from the Heroku Elements marketplace. As of the date of this email, [ObjectRocket](https://hello.heroku.com/e/36622/addons-ormongo/lv2qdq/961660285?h=AW6T3SXCo9_yIUarc_zSqZ0GfY-idBwV3oqtMJFbI7c) makes available an add-on on the Heroku Elements Marketplace that you may wish to consider. For customers considering remaining with mLab/Atlas, information can be found [here](https://hello.heroku.com/e/36622/shutdown-of-heroku-add-on-/lv2qds/961660285?h=AW6T3SXCo9_yIUarc_zSqZ0GfY-idBwV3oqtMJFbI7c).

Please note that the ObjectRocket for MongoDB add-on is not provided by Salesforce or Heroku. Salesforce makes no warranties or guarantees regarding this add-on, and it is defined as a “Non-SFDC Application” in the Master Subscription Agreement found at [https://hello.heroku.com/e/36622/company-msa-jsp/lv2qdz/961660285?h=AW6T3SXCo9\_yIUarc\_zSqZ0GfY-idBwV3oqtMJFbI7c](https://hello.heroku.com/e/36622/company-msa-jsp/lv2qdz/961660285?h=AW6T3SXCo9_yIUarc_zSqZ0GfY-idBwV3oqtMJFbI7c). You should undertake your own evaluation of this add-on and determine whether it is suitable for your specific business needs. Please contact ObjectRocket directly to find out more information.

---

<div class="post-metadata">

**Author:** ![Trying](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.fudiabetes.org/trying/32/4078_2.png) [@Trying](https://forum.fudiabetes.org/u/Trying)\
**Post date:** [July 14, 2020, 7:46pm UTC](https://forum.fudiabetes.org/t/mongodb-add-on/9971/9 "2020-07-14T19:46:10Z")

</div>

@elver But follow the [HERE](https://docs.mlab.com/shutdown-of-heroku-add-on/) instructions for the Atlas migration.

Step-by-Step Guide to Migrating:

- Free Sandbox add-ons - [https://docs.mlab.com/how-to-migrate-sandbox-heroku-addons-to-atlas/](https://docs.mlab.com/how-to-migrate-sandbox-heroku-addons-to-atlas)

The only issue I ran into was executing the mongo shell command in the Test Stage. Make sure you put quotes around your connection string. And also, make sure you set Database Access - Database User Privileges for to Atlas Admin. That setting is located at [cloud.mongodb.com](http://cloud.mongodb.com) once you login with your imported credentials (from mLab).

---

<div class="post-metadata">

**Author:** ![Trying](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.fudiabetes.org/trying/32/4078_2.png) [@Trying](https://forum.fudiabetes.org/u/Trying)\
**Post date:** [July 14, 2020, 7:51pm UTC](https://forum.fudiabetes.org/t/mongodb-add-on/9971/10 "2020-07-14T19:51:13Z")

</div>

> [@elver](#):
>
> Did you lose any data/have to perform any sort of back up in the migration process?

No, I did not lose any data - all 200+Mb were migrated to the new Atlas cluster. No, I didn’t take any backup because mLab really acts as the backup. As a last stage of the migration process you are prompted to delete you mLab database. I’ve yet to do this but I’ve already confirmed Nightscout is working properly with the new Atlas DB. I can delete the mLab anytime.

---

<div class="post-metadata">

**Author:** ![elver](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.fudiabetes.org/elver/32/8772_2.png) [@elver](https://forum.fudiabetes.org/u/elver)\
**Post date:** [July 14, 2020, 10:30pm UTC](https://forum.fudiabetes.org/t/mongodb-add-on/9971/11 "2020-07-14T22:30:58Z")

</div>

Oy! Glad I have until November…

---

<div class="post-metadata">

**Author:** ![Trying](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.fudiabetes.org/trying/32/4078_2.png) [@Trying](https://forum.fudiabetes.org/u/Trying)\
**Post date:** [July 15, 2020, 1:59am UTC](https://forum.fudiabetes.org/t/mongodb-add-on/9971/12 "2020-07-15T01:59:26Z")

</div>

> [@elver](#):
>
> Glad I have until November…

I think they say that mLab will begin shutting down in September though. I forget their exact wording, but better to get it migrated by September. It really was rather straightforward and they provide good instructions in the link I included previously. It should only take an hour or so.

---

<div class="post-metadata">

**Author:** ![elver](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.fudiabetes.org/elver/32/8772_2.png) [@elver](https://forum.fudiabetes.org/u/elver)\
**Post date:** [July 15, 2020, 2:30am UTC](https://forum.fudiabetes.org/t/mongodb-add-on/9971/13 "2020-07-15T02:30:38Z")

</div>

> [@Trying](#):
>
> . It should only take an hour or so.

That is probably very true once I understand all the various steps (and missteps) and terminology. I need to interpret the technival terms and understand the big picture view of the process before beginning. This sort of thing is definitely not in my comfort zone due to a lack of experience.

---

<div class="post-metadata">

**Author:** ![Trying](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.fudiabetes.org/trying/32/4078_2.png) [@Trying](https://forum.fudiabetes.org/u/Trying)\
**Post date:** [July 20, 2020, 3:06pm UTC](https://forum.fudiabetes.org/t/mongodb-add-on/9971/14 "2020-07-20T15:06:24Z")

</div>

JFYI, someone posted the following link on the Loop and the CGM in the Cloud FB pages. It is a step by step guide with screenshots of the process to migrate from mLab to Atlas.

> **[Update to ATLAS Guide for Heroku Nightscout site](https://docs.google.com/document/d/1gV7dFeipTI3Fas246N10iAxQC8gETV5PIVfL31AYu_c/edit?fbclid=IwAR2hjeDiOwImvtCYcXFJHO7imgSgYP40nqRR6Xo3LENWayFoQaFO-mZHSVc#heading=h.2xm1e0u2gzdc)**
>
> Nightscout Unofficial Documents Links pick Here! I used the following three references to build this guide. If you are comfortable with technical data, you may want to just use these. It is highly recommended that you find your Page 3 from the...

---

<div class="post-metadata">

**Author:** ![elver](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.fudiabetes.org/elver/32/8772_2.png) [@elver](https://forum.fudiabetes.org/u/elver)\
**Post date:** [August 26, 2020, 12:46pm UTC](https://forum.fudiabetes.org/t/mongodb-add-on/9971/15 "2020-08-26T12:46:45Z")

</div>

@Trying so I bit the bullet and did my migration last night (successfully I think) and my Nightscout site is up and running. I have 2 questions though that possibly you can help me with? I have no clue re: server stuff.

1. how do I validate I’m running on the Atlas site? I did the maintenance mode on my Heroku page and everything still worked post migration.

2. how do i go about deleting the old install without compromising the new install. I saw directions on the bouncing ball migration instructions, but there was less info than for the migration and I don’t want to bork the Atlas install.

---

<div class="post-metadata">

**Author:** ![Trying](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.fudiabetes.org/trying/32/4078_2.png) [@Trying](https://forum.fudiabetes.org/u/Trying)\
**Post date:** [August 26, 2020, 7:35pm UTC](https://forum.fudiabetes.org/t/mongodb-add-on/9971/16 "2020-08-26T19:35:48Z")

</div>

Sorry for the delay in responding!!

> [@elver](#):
>
> how do I validate I’m running on the Atlas site? I did the maintenance mode on my Heroku page and everything still worked post migration.

Check Atlas:  
Login to [https://cloud.mongodb.com/](https://cloud.mongodb.com/) and select Clusters - Collections - ‘entries’. Enter the following in the Filter textbox:  
{ dateString: { $gte: “2020-08-26T00:00:00.000Z” } }

The resulting records should correspond to the data you see in NS.

Also, make sure that entries’ Total Documents (shown next to your database name) is larger than your total documents shown in Mlab account.

> [@elver](#):
>
> how do i go about deleting the old install without compromising the new install. I saw directions on the bouncing ball migration instructions, but there was less info than for the migration and I don’t want to bork the Atlas install.

You can delete the source by clicking “Delete Server” or “Delete Cluster” from the [source mLab deployment’s UI page](https://www.mlab.com/home). Select your database under Deployment then select the Delete Database button in the upper right.
