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
1 answer

Fail to connect Mongolab with MongodbShell

I'm trying to connect the Mongo shell with Mongolab. I am using my mongolab username and password but it is giving an error: "Failed to connect to 54.81.180.188:56789." My userName and password is correct. I'm using Windows 8.1 When I ping …
Vishnu Mishra
  • 3,683
  • 2
  • 25
  • 36
3
votes
2 answers

MongoDB - distinct and count, the simplest case

I have database XXX and collection YYY in MongoDB (using MongoLab). Here is a sample record: { "_id": { "$oid": "551a5asdfsdfsdfs" }, "_class": "com.test.com", "mvid": "d0fffsdfs" } I would like to retrieve all distinct values of the…
user1700890
  • 7,144
  • 18
  • 87
  • 183
3
votes
1 answer

Why does my MongoDB database URI listed on Heroku have a replica set option, while the one listed on MongoLab does not?

I setup a MongoDB database on MongoLab through Heroku. I selected the free, single-node, sandbox plan, not any of the replica set clusters. The page for my database on MongoLab shows the following URI to connect to the database:…
Jackmc1047
  • 391
  • 2
  • 5
  • 12
3
votes
1 answer

How to increase connection timeout for Mongolab while connecting from loopback mongodb driver

I have hosted my mongodb in mongolab. I have created a ODM in loopback and made a connection to mongolab. Sometimes the connection gets established but other times due to bad connection it gets timedout. I want to increase this timeout so that it…
3
votes
1 answer

mongodb.yml for heroku using mongolab

I tried to deploy my new rails app to heroku using mongolab (Only rails framework) $ rails new myapp --skip-active-record $ cd myapp b. Add gems to Gemfile ruby '2.2.0' gem 'mongoid', '~> 4', github: 'mongoid/mongoid' gem 'bson_ext' group…
PKul
  • 1,691
  • 2
  • 21
  • 41
3
votes
1 answer

Posting to MongoDB from Chrome Extension

Is it possible to call the post-method on a mongodb (mongolab.com server) directly from a chrome extension script? I need this because I have a separate server-script I don't want users to get access to. I'd like to just post and get from this…
chrisv
  • 724
  • 6
  • 18
3
votes
2 answers

Which MongoLab connection string should I use?

I'm going to deploy a website to Azure using MongoLab, but I got into a bit of confusion. When I log to MongoLab site I get one Uri, but in the Azure site, if I hit connection string I get a different one. The Azure one is quite long and there is no…
3
votes
0 answers

How do I sync a mongolab database to a local mongodb database using nodejs?

guys. I have a local database on mongodb. I also have an identical db on mongolab. In the mongolab db, I append document/entries regularly. What I want to do is to sync these changes on my local mongodb collection. I'm currently thinking of doing a…
3
votes
2 answers

What is the best way to store the amount of time spent (hours : minutes) in MongoDb?

I'm playing with a small web application to store tasks and time spent on a daily basis, and report on it in weekly and monthly reports. For my back-end I wanted to work with MongoDb but can't immediately find what the best way would be to store the…
AardVark71
  • 3,928
  • 2
  • 30
  • 50
3
votes
1 answer

Restangular sends empty payload for keys starting with "$"

I'm using Restangular to connect with Mongolab. I'd like to use the following code to push an update: var theData = {"$push":{exercises :{type: "running"}}}; Restangular.all('employees').one(user._id.$oid).customPUT(theData ,null, {apiKey:…
jloosli
  • 2,461
  • 2
  • 22
  • 34
3
votes
1 answer

Why does MongoLab not recommend using their REST API?

From the MongoLab's documentation, they recommend: MongoLab databases can be accessed by your application code in two ways. The first method - the one we strongly recommend - is to connect using one of the MongoDB drivers (as described above). You…
Jus12
  • 17,824
  • 28
  • 99
  • 157
3
votes
1 answer

Passport authentication not working on Heroku?

My application is a nodejs web applicaiton using express. It serves as a portfolio website with a cms and api. In my login route I have the following code: passport.authenticate('local', function(err, user, info){ if(err){ return…
reagan
  • 653
  • 1
  • 4
  • 16
3
votes
1 answer

How to return/edit REST resource with AngularJS & Restangular

Using Restangular for AngularJS, keep getting an object object from Mongolab. I'm sure it has to do with Promise but not sure how to use/implement this coming from old Java OO experience. (Side note, would something like Eloquent Javascript, some…
miamisoftware
  • 55
  • 1
  • 8
3
votes
3 answers

How to force mongo to store members in lowercase?

I have a collection of BsonDocuments, for example: MongoCollection products; When I do inserts into the collection, I want the member name to always be lowercase. After reading the documentation, it appears that ConventionPack is the…
Rick Rainey
  • 11,096
  • 4
  • 30
  • 48
3
votes
1 answer

Mongo::OperationFailure - need to login when using from_uri

My goal is to connect with my heroku/mongolab database but I keep getting this error: Mongo::OperationFailure at /mongotest/a/b : need to login file: networking.rb location: send_message_with_gle line: 89 The code I'm using is: client =…
MalcolmOcean
  • 2,807
  • 2
  • 29
  • 38