Error is: Couldn’t find either the add-on service or the add-on plan of “mongolab:sandbox”
App is: GitHub - nightscout/cgm-remote-monitor: nightscout web monitor
App has you configure a bunch of variables, I believe I have them all set correctly and have tried a number of times. But I am wondering the meaning of this error, I am using a free shared plan on mongodb. Thanks
Stennie_X
(Stennie)
February 20, 2022, 4:20am
2
Welcome to the MongoDB Community Forums @Global_Spectrum_Response !
Can you share a link to the Nightscout set up tutorial you are following? The reference to mLab (formerly known as MongoLab) is several years out of date: the mLab Heroku Add-on was discontinued in Nov, 2020 and all mLab accounts have since been migrated to MongoDB Atlas. The Atlas free tier is analogous to the former mLab sandbox.
The guide for New Nightscout Users should have all of the set up steps to follow including setting up an Atlas account, database user, and IP access list. It sounds like you may already be past the Atlas set up stage but there is something referencing the older (and no longer required) mLab Heroku add-on.
Regards,
Stennie
Ambler_Lee
(Ambler Lee)
February 21, 2022, 7:14am
3
First of all, I’m a non-developer. I found this article while looking for my problem.
I was using the Discord Bot service through the Heroku button. It originally worked well. I tried to make a new bot, but it failed.
I recently heard that MongoDB has been updated. I think you’re having the same problem as me.
opened 12:58PM - 17 Mar 19 UTC
closed 01:50AM - 18 Mar 19 UTC
guide
**HEROKU IS ENDING THEIR FREE SERVICES ON NOVEMBER 28 2022**
This tutorial wi… ll guide you through deploying MonitoRSS (previously called Discord.RSS) on Heroku manually (without using the deploy button).
The deploy button method would require you to verify your Heroku account using your credit card despite it being free. So if you want to try out the bot and see if you like it for example you can follow this guide. Do note that Heroku gives you 550 free hours every month if you don't verify with a credit card. So if you want the bot to run 24/7 you will need to verify with your credit card to increase your hours to 1000, enough to run the bot for a whole month provided you don't have any other applications running on your Heroku account.
**This guide is based on v6 and the information/screenshots are accurate at the time of this writing.**
### **1. Create Discord bot application**
Go to https://discord.com/developers/applications/, create a new application and name it. Then go to the Bot tab, select Add Bot, confirm then name your bot and upload an avatar. This is what your bot will look like in Discord.
_If you don't want others to be able to add your bot turn off the Public Bot setting._
On that same page you will find your Token. You will need this later. **Do not share this token with anyone else!!!!**
### **2. Invite the bot**
Use one of the below URLs replacing the `INSERTHERE` with the Client ID from the Discord developer portal to invite the bot to your server.
With Role: https://discord.com/oauth2/authorize?client_id=INSERTHERE&scope=bot&permissions=19456
Without Role: https://discord.com/oauth2/authorize?client_id=INSERTHERE&scope=bot
### **3. Create MongoDB Atlas Database**
Go to https://www.mongodb.com/cloud/atlas and create an account if you don't already have one. Once you're logged in follow the instructions to create a cluster. Select Shared Clusters, then choose a server region (I suggest on AWS). Make sure the Cluster Tier is M0 and press Create Cluster.
![Cluster selection](https://user-images.githubusercontent.com/44692189/82734115-66685900-9d3a-11ea-8bfb-ac0d81389820.png)
![Server selection](https://user-images.githubusercontent.com/44692189/82734483-15a62f80-9d3d-11ea-91a9-0c9809cc8e64.png)
Your cluster will take a few minutes to get ready. During this time go to the Database Access located at the left, press Add New Database User. Choose a username and a password (you will need the password later), check that the User Privileges are set to "Read and Write to any database" and press Add User.
Next you want to go to Network Access, add IP and select Allow Access from Anywhere. Click Confirm.
After your cluster is ready click Connect found in the Overview screen.
![image](https://user-images.githubusercontent.com/44692189/54491363-2b71c680-48e8-11e9-8b67-c60200f1a4e1.png)
Select Connect Your Application, set Driver to Node.js and Version 3.6 or later. You will need the connection string later on in this tutorial.
### **4. Set up Redis database (required for web dashboard)**
Next, you will need to set up your free redislabs account. **You need to do this if you want the web dashboard. If you are not going to use the web dashboard you can skip this.**
First, create an account at https://app.redislabs.com. Select Cloud as your deployment option.
![image](https://user-images.githubusercontent.com/44692189/59012549-a1d3f400-8859-11e9-9052-a36e4ce6dd30.png)
Once you have logged in, click the Create your subscription button.
![image](https://user-images.githubusercontent.com/44692189/59012623-ca5bee00-8859-11e9-961d-81f83830f1f2.png)
Select Essentials, and then the Standard 30 MB free option.
![image](https://user-images.githubusercontent.com/44692189/59012675-ed869d80-8859-11e9-979e-1a7604d9272c.png)
On the next screen, ensure the protocol is set to Redis, and that Redis password is enabled (you will need the password later). Set Data Eviction Policy to no eviction.
On the screen you see after this, you will find your connection details. Take note of the endpoint, you will need it later. At the end of the endpoint also includes the port number. You will need that also.
### **5. Configure config vars**
Go to https://dashboard.heroku.com/apps and create a new App. Call it whatever you want. Then select the settings tab.
Add the following config vars:
`DRSS_BOT_OWNERIDS` - Your Discord User ID (check [here](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID-) if you're unsure)
`DRSS_BOT_PREFIX` - Type the prefix you want to use for commands
`DRSS_BOT_TOKEN` - Your bot token from Discord developer portal.
`DRSS_DATABASE_URI` - Your MongoDB connection string (replace `<password>` with your MongoDB password you created earlier and also replace `<dbname>` with `test`)
`DRSS_FEEDS_REFRESHRATEMINUTES` - Set an interval (in minutes) how often you want the bot to check for new content. I suggest 15 mins, some websites may have a rate limit if it's set to a faster interval
`DRSS_FEEDS_TIMEZONE` - Set the bot's default timezone. Use a timezone from [this list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
**If you want to enable the web dashboard you will have to add the below config vars.**
`DRSS_START` - bot-web
`DRSSWEB_BOT_TOKEN` - Same as `DRSS_BOT_TOKEN`
`DRSSWEB_BOT_REDIRECTURI` - https://herokuappname.herokuapp.com/authorize (replace herokuappname with the name you set your Heroku app)
You will also need to add the above URL under OAuth2 redirect settings in the Discord Developer Portal. If you don't do this, you will get an error when logging into the web portal.
![image](https://user-images.githubusercontent.com/44692189/59030100-d065c500-8881-11e9-892e-59294a99fea7.png)
`DRSSWEB_BOT_CLIENTID` - Your Discord application Client ID, found in developer portal.
`DRSSWEB_BOT_CLIENTSECRET` - Your Discord application Client Secret, found in developer portal.
`DRSSWEB_DATABASE_URI` - Same as `DRSS_DATABASE_URI`
`DRSSWEB_DATABASE_REDIS` - redis://password@endpoint:port
Remember the password and endpoint details from your redislabs account? Add them in the format given above.
### **6. Deploy Bot to Heroku**
Fork the [MonitoRSS-Clone repo](https://github.com/synzen/MonitoRSS-Clone) by clicking the Fork button at the top right of the page.
![image](https://user-images.githubusercontent.com/44692189/90973402-8b3fb880-e543-11ea-809d-a55812e0469f.png)
Go to your bot application on https://dashboard.heroku.com/apps.
Then go to the Deploy tab, select GitHub and connect your account. Search for the repo by typing MonitoRSS then pressing Search. Connect the repo named `yourusername/MonitoRSS-Clone`.
![image](https://user-images.githubusercontent.com/44692189/90973421-ab6f7780-e543-11ea-9942-a2fff2d679fa.png)
Once you've connected your fork, scroll down to manual deploy and deploy the master branch. Once the entire deploy operation has completed, refresh the page.
![image](https://user-images.githubusercontent.com/44692189/54509273-3de51200-4973-11e9-8e37-7d4a12b15dae.png)
### **7. Use Freshping to keep the bot running**
To prevent your bot from going to sleep by Heroku, [create a Freshping account](https://freshping.io) and click Add Check at the top right of the dashboard. Set the check type to HTTP/HTTPS and paste the URL of your Heroku app on the Check URL field. Set the interval to every 5 mins and press Add Check.
![image](https://user-images.githubusercontent.com/44692189/63056512-21c4ad00-bee0-11e9-879f-23bbe9a072ed.png)
**If you followed all these steps correctly, your bot should be up and running!**
If enabled, you can now log into the web UI at https://herokuappname.herokuapp.com and configure your feeds.
### Advanced Configuration
You can add additional config vars by following [this page](https://docs.monitorss.xyz/configuration/environment-variables). [The configuration page](https://docs.monitorss.xyz/configuration/bot-configuration) lists all the possible configs available.
**NEVER LEAVE YOUR TOKEN AND DATABASE URIS ON THE CONFIG.JSON, SOMEONE MAY USE IT AND "HIJACK" THE BOT. If you accidentally gave your token out, regenerate a new token via the Discord developer portal and update the relevant config var in Heroku. For the MongoDB and Redis databases, you can generate a new password via their control panels.**
Help me!