Questions tagged [mlab]
MongoLab (Rebranded as mLab) is a fully-managed MongoDB Database-as-a-Service (DBaaS) platform that automates the operational aspects of running MongoDB in the cloud.
852
questions
0
votes
0
answers
14
views
having a problem with uploading data on mongodb using graphql
IAm learning graphql from this tutorial:-
enter link description here
in this link the creator has used mlab to upload data but as mlab has now shifted to mongodb atlas so iam not able to upload data ...
1
vote
2
answers
96
views
Adding a new column in R from matching multiple columns in two dataframes?
I have two data frames like the following and am trying to add a new column. I want to add a new column in Data Frame 1 which comes from matching 3 different columns with different names (Name,Age,...
0
votes
1
answer
21
views
Angular and express server communication issues
I have to create a simple Angular/Express/mLab combo that lets you create users and verify them.
I created a service in my angular project
createTest(email: string, name: string, password: string) {
...
0
votes
0
answers
14
views
Connection to mlab keeps failing -first real world app-
I've been trying to connect my JS app to mlab and I keep getting the following error:"
*** You have failed to connect to a MongoDB Atlas cluster. Please ensure that your IP allowlist allows ...
0
votes
0
answers
39
views
Mlab renders black screen on ubuntu 20.04
Im just trying to configure a simple mlab example:
from numpy import pi, sin, cos, mgrid
dphi, dtheta = pi / 250.0, pi / 250.0
[phi, theta] = mgrid[0:pi + dphi * 1.5:dphi, 0:2 * pi + ...
1
vote
0
answers
25
views
How Do i Determine an Ideal MongoDB hosting package
I am working on a small app that will soon go into production and I would like to understand the amount of RAM and Storage that would be required for the first hundreds to thousands to millions of ...
2
votes
1
answer
506
views
Export high quality images in Mayavi
I'm trying to export images using mayavi scripts
from mayavi import mlab
# data to be exported in image
mlab.savefig('output.png')
But the exported image is blurry. I have read from Mayavi docs and ...
0
votes
0
answers
33
views
How can I export my database from mLAB and imported in Atlas?
My DBUser has been revoked by mLab and it's because now Atlas owns mLab. So my app can't connect to mLab anymore.
I want to export my database in order to do an import in Atlas later, but since my ...
0
votes
1
answer
93
views
Is there a way to check to which mLab account was connected to a heroku app before mLab addon was detached?
After mLab addon being discontinued on Heroku, I need to get the database backup from mLab to import it to Atlas. The problem is mLab says that tens of accounts have the email address that was used in ...
1
vote
0
answers
130
views
Heroku app fails to connect to mongodb atlas server (after migration from mlab)
I recently migrated from mlab to mongodb atlas due to its deprecation. I managed to successfully get a connection to the db and tested it with the mongoDB compass but when I add the environment ...
9
votes
4
answers
17k
views
Robomongo: Cannot connect to replica set. Set's primary is unreachable
I'm migrating mLab from Heroku to MongoDB Atlas. As one of steps I want to check if there is a connectivity to newly created cluster. I'm used Robo3T (formerly Robomongo) for Heroku mLab instances. ...
2
votes
2
answers
344
views
Authentication fail when connecting to Atlas MongoDB
I have an error when connecting to the MongoDB Atlas database after I migrated the data from the old MLAB.
I have definitely setup the username and password correctly as in the documentation (...
0
votes
2
answers
85
views
Object does not exist - Mongodb
Error: I'm having an error of "Cannot set property 'username' of null." It seems like the error happens when I try to find the currently logged in user with "User.findOne"
Question:...
2
votes
0
answers
110
views
mLab is shutdown, ObjectRocket start from 46$ a month, does it mean heroku no longer has free mongodb addon option?
I like to offer people easy to launch open source project, but it seems heroku no longer provides free mongodb options, am I right?
1
vote
0
answers
254
views
I connected my Django app to MLabs, what do I do now to be able to migrate my database structure to it?
I successfully connected my Django app on my computer to Mlab using Djongo and the homepage on my localhost:8000 server seems to be displaying correctly. However, when I run 'py manage.py migrate', it ...
-1
votes
1
answer
110
views
pymongo.errors.OperationFailure: Authentication failed when deploying chatbot on Heroku
I tried to deployed a chatbot which involves the application of MongoDB but I am stuck by this bug all day (figure 1). I cannot what is wrong because I follow the doc strictly and check the config ...
0
votes
1
answer
447
views
Heroku mlab Add-On deleted after migration to mongoDB atlas
I have a big problem, today I tried migrating my mlab MongoDB sandbox into MongoDB Atlas. I'm using Heroku for my Nightscout instance, this is a cloud based cgm-app for type 1 diabetes patients and it ...
11
votes
3
answers
5k
views
MongoDB hosting options now that Heroku mLab add-on is being removed
I have a service I'm hosting on Heroku right now, and I'm using the mLab add-on to ensure that the deployed version is able to write to the database etc. What can I do now? I'm confused since I ...
1
vote
1
answer
526
views
Heroku free dyno "Idling" mid-test: what killed it?
I have a Heroku free web app which was working nicely with my initial testing, but with a bigger test it just crashed:
2020-06-17T21:45:10.068131+00:00 app[web.1]: my last console.log message
2020-06-...
2
votes
2
answers
246
views
why is MongoDB Atlas the only managed MongoDB 4+ DBaaS provider
I have been researching using a MongoDB DBaaS provider and I would like to use the latest version of MongoDB. V4.2 at the time of writing
Some providers I took a look at are:
ObjectRocket
ScaleGrid
...
1
vote
1
answer
108
views
Connecting To Mongo Replica Set With Doctrine MongoODM Module
We are in the process of updating our API's MongoDB hosting provider from mLab to MongoDB Atlas.
I have updated our connection server to PHP 7.4 with MongoDB PHP extension 1.7.4.
I have updated ...
0
votes
1
answer
202
views
GCP Cron Job MongoDB Backup from mlab
I wanted to set up a way (using GCP) to automatically and frequently download a copy/backup of one MongoDB instance hosted on mlab and use it to restore/populate another MongoDB instance also on mlab. ...
0
votes
2
answers
28
views
Add key-value pair to collection in mLab
I have a collection in mLab and need to add a JSON key-value pair.
What are some ways to do this for all documents in the collection,
without editing each document manually.
{
"_id": {
...
0
votes
1
answer
17
views
Connecting Heroku mLab via terminal
I am able to connect to Heroku mLab database via terminal with one and only user with admin rights, but from the terminal I am not able to perform any operation on my collection.
getting this error:
...
0
votes
1
answer
253
views
mongoDB watch() collection
I am trying to watch for changes in my collection but I am getting the following error:
"MongoError: Majority read concern requested, but it is not supported by the storage engine."
The answer seems ...
0
votes
1
answer
935
views
MongoError: pool destroyed when fetching all data without conditions
I am new to mongoDb, as I am trying to query from different collection and in order to do that, when I am fetching data from category collection I mean when I am running select * from collection it is ...
5
votes
1
answer
1k
views
MongoDB query returns null even though it is available in the collection after migrating from mlab to mongoDB atlas
I am migrating a database from Mlab to MongoDB Atlas. We had to upgrade the npm version of mongodb to 3.4.1 as the MongoDB atlas database version is 4.2.5.
The connection function has been updated as ...
0
votes
1
answer
38
views
How to copy a collection from one DB to another in mLab?
I need to transfer data from one collection COLx in a database DB1 in mLab (/Heroku) to a new collection COLx in a new database DB2, in a separate application. What is the way to do that?
After ...
0
votes
0
answers
38
views
Query to mLab not working - CastError: Cast to ObjectId failed for value
I am trying to query against the following mLab Database document in my React component:
{
"_id": {
"$oid": "5e7a4fece9cee40348a63dff"
},
"userId": "5e7a4fc6e9cee40348a63dfe",
...
0
votes
1
answer
142
views
Parse.Cloud.beforeSave not able to set a new field on an object being created
I have a little problem in a Parse.Cloud.beforeSave function on Parse-Server. This line is puzzling me:
request.object.set("dbCount", 0);
It has been working before. But since I made a server update,...
0
votes
1
answer
86
views
Could not connect to mLab's MongoDB with rails
I am using Heroku with mLab.
I set my app with mLab for using MongoDB.
It didn't work in both Heroku and my local computer.
I can access to the database use command line:
mongo "mongodb://usrname:...
0
votes
0
answers
18
views
Mongo (w/ mLab) find what query has been executed at a certain time?
Is there any kind of query logs/history of what query has been executed at a certain time?
If yes, how/where to find it?
If no, is there a way to find what caused a db peak some hours ago?
Thanks
0
votes
1
answer
138
views
password reset (Parse-server/Heroku) -> {"error":"unauthorized"}
On an app (ParseServer) that I have with HEROKU/mLab, providing password reset for the user.
After I click the link to reset my account password, I can only see this (in the browser):
{"error":"...
1
vote
2
answers
107
views
How to insert a new item to mLab array according to a specific id
I use mLab for my database. I have a collection of lists where each list has an object with _id, userId and an array of items.
Now I want to add a new item to the array of a specific list.
The ...
0
votes
1
answer
994
views
Fix for Mongo RetryableWrites through deployment update rather than explicitly passed option?
What is the best solve for This MongoDB deployment does not support retryable writes? Are there versions/ set up that I should be using (e.g., finding a way to switch from MMAPv1 to WiredTiger), or is ...
0
votes
0
answers
101
views
MLAB / Heroku - mongorestore undefined
According to the Mlab & MongoDb documentation, inserting an existing local BSON collection into a new cloud collection should be fairly straight forward.
Import collection
mongorestore -h <...
0
votes
1
answer
1k
views
Cannot connect to MongoDB via env variable
I am trying to conceal my connection string, so I installed env2 in my project. Then I made a config.env file that keeps my connection string like this:
export DB_URL='mongodb://user:userPassword@...
0
votes
0
answers
131
views
Unable to add multiple documents/records to mlab at once?
I am working on building a basic CRUD API with Node.js MongoDB and Express.js. The connection to the database is successful and I am able to make GET/POST/PUT calls. I have been adding one record at a ...
0
votes
1
answer
2k
views
Strapi - Media file URLs doesn't show up in database
I'm working on creating a blog with strapi,
I have a content type blog with some basic input fields and media upload to AWS s3
I've created some blog posts via strapi admin panel and the blogs data ...
-1
votes
1
answer
228
views
MERN exercise app works in local but cannot connect to MLab after deployed to Heroku
Here is my server.js
// tools we need
const express = require('express');
const cors = require('cors');
// mongoose helps connect to mongodb database
const mongoose = require('mongoose');
// setting ...
0
votes
1
answer
246
views
fullText is not working in Parse Server with Mlab [closed]
I am running parse server(2.8.4) on heroku with Mlab. I a trying to search based on word match but the fullText throwing an error,here is my query:
var query1 = new Parse.Query("SearchTerms");
query1....
1
vote
0
answers
43
views
Mayavi mlab glitch - rendering will not update on rotation
When I render a 3D graph on an installation of Mayavi on a different device, I noticed it had a weird thin outline and a black background. Then when I rotate the graph it exhibits a glitch that doesn'...
0
votes
2
answers
2k
views
Mongodb upsert option with updateOne() does not work
I'm currently tackling a problem whereas my code allows updates on object data through an *ngFor, but does not allow upsert through the updateOne() function.
Based on other posts, adding the ...
0
votes
2
answers
53
views
*ngFor loop over mLab objects produce Error trying to diff'[object Object] even after declaring array
I have an array declared as carousels: any = [] in my TS file but I keep getting an error stating 'only arrays and iterables allowed' whenever I loop over it using *ngFor. The data inside this array ...
1
vote
1
answer
338
views
Mongoose connection from Namecheap server to MongoLab gives error: MongoError: no primary found in replicaset
I have NodeJs app on the Namecheap server. Mongo db is hosted on MongoLab. When trying to connect to the database with mongoose I'm getting the following error: Mongoose connection "error" event fired ...
0
votes
1
answer
29
views
Robo3T Linux Migrating from local
I am trying to copy my local database to MLab for production.I have seen a copy database tutorial on robo3t's page but there is no option in my linux robo3t. I also tried mongodump but I don't have a ...
0
votes
0
answers
69
views
How to check if object exists in mLab using _id?
I am working on an angular application with a node.js backend where my architecture goes like this:
front-end => angular.service => node backend => mLab DB
Currently, I'm trying to push an object ...
2
votes
1
answer
230
views
H12 request timeout error in NodeJs Application on Heroku?
I have deployed my NodeJs Application on Heroku in Hobby Dynos and using MongoDB sandbox(mlab) for the database. I have more than 1000 users using this application and 100-200 would be concurrent ...
0
votes
0
answers
47
views
status 503 when heroku node app try to access to mlab db add-on with monk
I'm trying to deploy my express-mongodb app on heroku. I've already tryed to access locally to the heroky mlab addon and with the local server works fine. But when I start the same server on heroku it ...
0
votes
1
answer
131
views
(How) can aggregate() break an index?
(How) can this code break an index on a MongoDB collection?
db.users.aggregate([
{ $group: { _id: null, total_orders: { $sum: { $size: "$orders" } } } },
])
This is (obviously) trying to count ...