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.

MongoLab is a fully-managed cloud database service featuring highly-available MongoDB databases, automated backups, web-based tools, 24/7 monitoring, and expert support. By hosting MongoDB on MongoLab’s Database-as-a-Service (DBaaS) platform, developers and IT professionals are free to focus their attention on product development instead of operations.

MongoLab runs on all the major cloud platforms, including Amazon, Joyent, Rackspace and Windows Azure, and has partnered with all of the major Platform-as-a-Service (PaaS) providers to enable seamless integration with the application tier.

Headquartered in San Francisco, MongoLab is backed by premier venture and angel investors including Foundry Group, Baseline Ventures, GRP Partners, Freestyle Capital, and David Cohen of TechStars.

Learn more at https://mlab.com/

852 questions
3
votes
3 answers

How to use mongoDB with node

When I run the script, the error returns. TypeError: db.collection is not a function var MongoClient = require('mongodb').MongoClient; var url = "mongodb://abc:12345**@xxxx.mlab.com:&&&&/myDB"; MongoClient.connect(url, function(err, db) { …
Rahul Saini
  • 927
  • 1
  • 11
  • 28
3
votes
1 answer

mongo atlas or aws - Internal or External connection

i am working on my next project currently which works 100% on mongo, my past projects worked on SQL + Mongo on which i used AWS RDS + AWS EC2 and could connect them both in AWS internal IP which result me with much faster connection. Now in mongo…
Roy Hershko
  • 123
  • 5
3
votes
1 answer

Mongo Error: not authorized on dbname to execute command

I created an account on mongolab, then created database and user. If I start mogno shell and connect to my database like this mongo ***.mlab.com:***/projectname?authMode=scram-sha1 -u myname -p mypass And then type show dbs I get this…
Arthur Kishinets
  • 147
  • 4
  • 15
3
votes
3 answers

Can't query date from MongoDB(Mlab) -- So simple but can't be solve

After weeks of effort, I'm still having trouble querying the date field movie_datetime which has the structure below from Mlab using NodeJS. "movie_datetime": { "$date": "2017-01-03T16:00:00.000Z" }, "session_id": 31268 I tried the…
Yang
  • 49
  • 1
  • 6
3
votes
2 answers

Deploying nodejs/mongoose to heroku

This is my first try at Heroku. I was able to "deploy successful" on heroku, but when visiting my app, it says "application failed." I followed this guide: https://scotch.io/tutorials/use-mongodb-with-a-node-application-on-heroku I think the tricky…
Peter Le
  • 31
  • 1
  • 4
3
votes
1 answer

MongoDB connection to MongoLab timing out in NodeJS on Heroku

At first everything works, and I can successfully store data by posting to the /upload route. But after 120 seconds of inactivity, the timeout event fires, and future attempts to store data fail. However the callback isn't called, so there is no…
charmoniumQ
  • 5,214
  • 5
  • 33
  • 51
3
votes
1 answer

Can't connect with Mlab database but I can to my local mongo with mgo golang

I am trying to connect to a mlab mongo database in my Golang application but I always get 'auth failed'. If I use my local mongo, I have no problems (my local doesn't have authentication) EDIT: I do have created a database user in mLab and I can log…
codiaf
  • 569
  • 2
  • 18
  • 47
3
votes
4 answers

Trouble connecting to mLab MongoDB from c#

What's the best way to connect to mongo (on a remote server) from c#? Story so far I've had no end of hassle trying to do a simple find from a very basic c# console app connecting to mongo labs. I was able to connect using both Mongo Shell and…
Lee H
  • 437
  • 1
  • 5
  • 13
3
votes
1 answer

MongoError: socket hang up

I am trying to connect to the mongodb database on mongolabs(mlabs). I connect successfully when I run the code on my local computer and server.But When I run on my aws server I get this error database error { [MongoError: socket hang up] name:…
Mohammed Gadiwala
  • 1,923
  • 2
  • 18
  • 26
3
votes
0 answers

Parse Server Cloud Function Queries Not Prepending Mount Path

Following the recent announcement that Parse is discontinuing their service, I've recently began moving my data and server. I've got my data migrated to mLab, and have setup my server on heroku. My issue: queries from my app (iOS swift) work fine,…
Spencer
  • 41
  • 4
3
votes
1 answer

Golang and MongoDb remote access fail (server returned error on SASL authentication step: Authentication failed.)

I am trying to connect to remote MongoDB database (Mongolab) from Go with mgo library but getting error panic: server returned error on SASL authentication step: Authentication failed. Here is my code package main import ( "fmt" …
3
votes
4 answers

What is the default dbuser and dbpassword for a MongoDB database provisioned by Heroku and MongoLab?

I am new to Heroku and MongoDB. I created a Heroku app which has an added-on MongoDB by MongoLab. Everything was set up automatically by Heroku. When I navigated to MongoLab database manager page (SSO protected) it showed a standard MongoDB URL…
alextc
  • 3,206
  • 10
  • 63
  • 107
3
votes
2 answers

Connection with mongolab gives null JSON

This is my server.js. var express = require('express'), app = express(), bodyParser = require('body-parser'), mongoose = require('mongoose'), CohortController =require('./CohortController'); var…
Shubham Pendharkar
  • 310
  • 1
  • 4
  • 17
3
votes
2 answers

Mongolab connection error

I'm getting the following message when I try connecting to MongoLab with the command: mongo ds035438.mongolab.com:35438/comeventsbw -u (myusername) -p (mypassword) MongoDB shell version: 3.0.6 connecting to:…
Ben Wong
  • 691
  • 2
  • 19
  • 29
3
votes
4 answers

where to store api key in Django

I currently build web app which is using external MongoDb via Mongolabs. The api is based on personal key using in urls. As docs says e.g.: Here’s an example of a complete Resource…
user4066905