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

Got unauthorized error when renaming mongodb collection

I am using mongohq sandbox plan. In the command prompt, db["oldCollectionName"].renameCollection("newCollectionName", true) works fine without using admin database. However, I got "unauthorized" exception when I do this in…
coolsuntraveler
  • 317
  • 5
  • 13
2
votes
2 answers

MongoHQ create database with API doesn't add default user

Pretty much what it says on the tin... I'm using MongoHQ's REST API to create a database, but for some reason the default user account that gets created when adding a database manually via the web page does not get created when the API is used. Am…
cbmanica
  • 3,502
  • 7
  • 36
  • 54
2
votes
2 answers

Connecting to mongoHQ with mongojs on heroku

I am trying to connect to mongoHQ from my node.js app. Here is the code I am using: var databaseUrl = "mongodb://fishcuss:MyPassword@alex.mongohq.com:10015/app9759558" var collections = ["users"] var db = require("mongojs").connect(databaseUrl,…
2
votes
2 answers

MongoHQ Node.js connection URL Conection Failed

I have a working Node.js app setup and running well when using my local development MongoDB with these settings and code: var MongoDB = require('mongodb').Db; var Server = require('mongodb').Server; var dbPort = 27017; var dbHost …
Ross J
  • 282
  • 7
  • 21
2
votes
2 answers

Unable to connect to mongohq at heroku using shell

I installed mongohq:sandbox at Heroku. When I want to connect to mongo, it occurs an error: mongo linus.mongohq.com:10123/app10575123 -u my_user -p pwd123 MongoDB shell version: 2.2.2 connecting to: linus.mongohq.com:10123/app10575123 > show dbs Wed…
Alexandre
  • 13,030
  • 35
  • 114
  • 173
2
votes
1 answer

Unlocking a collection after aborting a reIndex() command in MongoDB?

I was attempting to reduce the size of my indexes on a mongo collection and ran db.collection.reIndex(). After about 90 minutes, I began to think it had somehow gotten locked up and tried to cancel. Now (about 2 hours after cancelling) the…
ocallaco
  • 23
  • 4
2
votes
1 answer

Scala Lift - Connect to remote MongoDB

I currently have my app running on my local machine, in Boot.scala I have: MongoDB.defineDb( DefaultMongoIdentifier, MongoAddress(MongoHost("127.0.0.1", 27017), "platform") ) I've successfully deployed the app to a cloud provider, and am…
jahilldev
  • 3,520
  • 4
  • 35
  • 52
2
votes
1 answer

Mongodb - Database hits

I want to have a guide section with a view counter. At the moment I worry about the performance. I would like to have it in real time so if someone views the page i want to increase the counter. I worry because , what if i would have 1000000 views…
Maik Klein
  • 15,548
  • 27
  • 101
  • 197
2
votes
0 answers

Unable to perform queries on mongodb started with --auth switch in rails 3 with mongoid.

Simplified case: I create a new rails 3.2 project, without active record. I add mongoid 3.0.0.rc to the Gemfile and then rails g mongoid:config. I edit my mongoid.yml to look like the one I have posted below (except that hosts is now set to…
2
votes
2 answers

Can't use mongo based session store

I have a mongoose and connect-mongo module instance in ym app. I am using the connect-mongo module to have a session store persisted in a mongodb database (mongohq) instead of a memory store. Everytime I try to access my app when the server is…
guiomie
  • 4,988
  • 6
  • 37
  • 67
1
vote
0 answers

Error Deploying to Heroku with Rails 3.2.1 / Mongoid

Similar to this question I'm having problems with deploying to Heroku on Rails 3.2.1 (Ruby 1.9.3-p125 - although I did set up Heroku to run with Ruby 1.9.3-p0). I followed all the steps in the Rails apps tutorial but my app is crashing when I try to…
ralphos
  • 626
  • 2
  • 10
  • 20
1
vote
1 answer

How do you configure MongoMapper 0.11 with MONGOHQ_URL?

I want to run MongoMapper on Heroku. This necessitates MongoHQ. All the documentation, like http://mongomapper.com/documentation/getting-started/rails.html, tells you to create an initializer to connect to Mongo with the MONGOHQ_URL environment…
Fletch
  • 4,829
  • 2
  • 41
  • 55
1
vote
1 answer

access mongoHQ db in my rails app

How to access MongoHQ db in my rails app, I need to get perform a search on the db and get results on my rails app. I am using mongo db for the first time so please be more specific, thanks
Keviv Vivek
  • 222
  • 3
  • 10
1
vote
2 answers

Mongo class not found in Heroku PHP

I am using Heroku PHP, and has added the MongoHQ addon. But it gives an error "class Mongo not found" at the line $m = new Mongo(); What else do I need to setup mongo driver on Heroku?
samwize
  • 25,675
  • 15
  • 141
  • 186
1
vote
1 answer

nodejs mongoose database access randomly doesnt' return a result

I'm working on my first NodeJS application, which is basically just restful web services that use a MongoDB (hosted on MongoHQ) database. I'm using Express and Mongoose to assist with routing and database access, and it seems to work well most of…
RodH257
  • 3,552
  • 5
  • 36
  • 46
1 2
3
9 10