Questions tagged [mongohq]

Compose (formerly MongoHQ) is a Database-as-a-Service (DBaaS) platform for securely hosting and managing databases instances including MongoDB.

Compose (formerly MongoHQ) is a Database-as-a-Service (DBaaS) platform for securely hosting and managing databases instances including MongoDB.

More information:

148 questions
47
votes
6 answers

strange mongodb and mongoose error: not master and slaveOk=false error

I'm getting a strange error in my node.js app not master and slaveOk=false code 13435 I'm doing a findOne query using mongoose 4.0.2 hitting a mongodb 3.0.1. The query was working earlier today. What is this error? I'm running on mongohq on their…
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
36
votes
3 answers

Mongoid 3 + Heroku (MongoHQ) cause Moped::Errors::OperationFailure

With Rails 3, after upgrading from Mongoid 2.x to Mongoid 3.x, my Heroku + MongoHQ setup stopped working. Funny thing is, that my development & test frameworks and my whole test suite passes just fine. I suspect the problem is with my mongoid.yml…
herb
  • 840
  • 9
  • 16
16
votes
3 answers

How can I check mongodb query performance without cache

I have a query that takes too long to finish. I like to do some performance tests but after I check for one time (that takes currently ~30 seconds) the query start to run a lot faster (< 1 second). I assume it has to be with the mongodb caching. Is…
Gluz
  • 3,154
  • 5
  • 24
  • 35
15
votes
4 answers

heroku mongohq and mongoid Mongo::ConnectionFailure

UPDATE 9th june 2012: Setup with mongoid 3.0.0.rc at heroku, see this gist: https://gist.github.com/2900804 UPDATE 22th jan 2011: Uri now takes precedence in mongoid.yml https://github.com/mongoid/mongoid/issues/issue/266 UPDATE 12th aug 2010:…
oma
  • 38,642
  • 11
  • 71
  • 99
14
votes
2 answers

JavaScript execution failed connected to mongoHQ shell

Trying to access MongoHQ directly: > mongo mongodb://heroku:mypassword@alex.mongohq.com:10046/myapp MongoDB shell version: 2.4.3 connecting to: mongodb://heroku:mypassword@alex.mongohq.com:10046/myapp Tue Jun 4 16:10:09.255 Assertion failure…
Peter Ehrlich
  • 6,969
  • 4
  • 49
  • 65
10
votes
4 answers

undo remove operation in mongodb

I run by mistake a db.collection_name.remove({condition:'true'}) from console and delete object I didn't plan to delete, can I recover them some how? I db is on mongohq, if it can helps?
Alon Gutman
  • 865
  • 2
  • 14
  • 22
10
votes
2 answers

MongoDB with PostgreSQL in One Rails App

Can I use MongoDB and a PostgreSQL in one rails app? Specifically I will eventually want to use something like MongoHQ. So far I have failed to get this working in experimentation. And it concerns me that the MongoDB documentation specifically says…
Mark Lybrand
  • 245
  • 4
  • 13
6
votes
2 answers

Heroku app change: db migration (pg and MongoHQ)

I had and app on heroku then I decided to create another app (on cedar stack which does not support stack:migrate). How can I migrate databases PG and MongoHq? Thanks!
WHITECOLOR
  • 24,996
  • 37
  • 121
  • 181
6
votes
2 answers

Heroku MongoHQ add-on and PyMongo -- OperationFailure: database error: unauthorized

I'm having trouble with the MongoHQ Heroku addon. Locally my app works and the os variable is present and well-formed on Heroku. However, when I attempt to access the db it throws an error: OperationFailure: database error: unauthorized…
Wesley Tansey
  • 4,555
  • 10
  • 42
  • 69
5
votes
1 answer

Server instance is no longer connected. MongoDB C# driver 1.3.1

I'm running an application on appharbor.com where I'm using a database from MongoHQ. Form time to time I see this error "Server instance penny.mongohq.com:10070 is no longer connected." on appharbor. I have also seen some…
eNepper
  • 1,889
  • 2
  • 13
  • 12
5
votes
2 answers

MongoDB: Trying to use aggregate $unwind to fetch embedded documents

I have a MongoDB collection [Users] each with an Array of embedded documents [Photos]. I would like to be able to have a page which lists recent photos, for example - the last 10 photos uploaded by any user. Users [ { _id: ObjectID …
Matthew Lucas
  • 443
  • 1
  • 5
  • 15
5
votes
1 answer

MongoDB error with Mongoid, Heroku, Device, MongoHQ and Rails

I'm working on a simple app that is currently deployed to heroku now - it is using mongoid, device and can create user login very easily in localhost, but not in production at heroku. You can try to create an account, and it gives an error after…
Sayanee
  • 4,957
  • 4
  • 29
  • 35
4
votes
1 answer

$inc with mongoose ignored

I am using the following code to add some content in an array and increment two different counters. The item is properly pushed in the array, and the pendingSize is properly incremented. But the unRead is never incremented. It used to increment,…
guiomie
  • 4,988
  • 6
  • 37
  • 67
4
votes
1 answer

Heroku and MongoHQ: use Heroku plugin or separate MongoHQ account

I would like to get the opinion of experienced users, If I going to use a heroku service as hosting service for my application that is using MongoDB. Is it good Idea to use MongoHQ integration, or maybe its better to use standalone MongoHQ…
WHITECOLOR
  • 24,996
  • 37
  • 121
  • 181
1
2 3
9 10