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

Set text search feature in mongodb

I have a production server hosted in mongohq with version 2.4.6. I need to add text index to one of the collections. I tried using the below command from mongo client connecting to my remote server: db.logs.ensureIndex({title: 'text', description:…
0
votes
0 answers

web2py with MongoHQ deploy at openshift: RuntimeError: no driver available ('pymongo',)

I'm trying to deploy my app to openshift, but I got error message. Following are my logs: ==> app-root/logs/web2py.log <== 127.5.151.1, 2014-06-01 18:08:10, GET, /admin/static/images/questions.png, HTTP/1.1, 304, 0.010710 127.5.151.1, 2014-06-01…
fuiiii
  • 1,359
  • 3
  • 17
  • 33
0
votes
2 answers

angularJS $http.Post not working: Failed to load resource: Request header field 0 is not allowed by Access-Control-Allow-Headers

I'm using $http to post some data to my data base. Here is the documentation of the database. I use it on my terminal and it works. Here's the error message I got from Safari's console: 1)Failed to load resource: Request header field 0 is not…
fuiiii
  • 1,359
  • 3
  • 17
  • 33
0
votes
1 answer

Error connecting meteor to external mongodb

I have a meteor web app that connects to a mongohq database. It's working correctly on heroku, but I can't get it to work on my localhost. It was working on localhost yesterday, but not today. To be certain, I just ran a git clone in a new folder.…
Adam
  • 3,142
  • 4
  • 29
  • 48
0
votes
2 answers

Error setting TTL index on collection : sessions (MongoDB/MongoHQ)

I'm able to connect to my primary DB no problem, but when I try to connect to my replica set, I get the TTL error. I've done my best to include all relevant code examples, but please ask if you need to see something that's not included. This is…
Jake
  • 68
  • 1
  • 10
0
votes
1 answer

Rails 4 - Uninitialized constant Mongo Model

I am attempting to setup MongoHQ using Heroku and rails 4. I have everything setup correctly to my knowledge, but I'm now getting this error: uninitialized constant Job::TempEmailContactStoreCsv This is the Job model where error is happening: class…
Luigi
  • 5,443
  • 15
  • 54
  • 108
0
votes
1 answer

Can't insert anything in MongoHQ database

I registered for a free sandbox database on MongoHQ. As I am starting to use mongoDB I thought it would be a good idea to connect to MongoHQ database from the mongo console and run some commands before using it in any program. I tried connecting to…
Ishan
  • 3,303
  • 5
  • 29
  • 47
0
votes
1 answer

MongoDB and MongoHQ Live Logs

I'm connecting to MongoDB using Mongoose in my node application. I can see the below console.log logged once: mongoose.connect(myURL) var db = mongoose.connection db.on('error', console.error.bind(console, 'connection error')) db.once('open',…
bcm
  • 5,470
  • 10
  • 59
  • 92
0
votes
0 answers

user privileges in mongodb

I'm new for mongodb. i'm trying to understand how user privileges work on mongodb i have a mongodb data base ( from mongoHQ sandbox 512 Mb free ). and also i create a database and it contains some collections here how it looks like here is my…
0
votes
1 answer

Rails, mongoid, heroku performance

I am using rails, mongoid with mongohq on heroku to develop my site. However, I got very serious performance issue. I queried on each user page, it cost more than 2 seconds to load all the data The data are not that much, only like 30 musics and…
0
votes
1 answer

Meteor UP to deploy meteor app. Issues with remote DB url?

I'm trying to use Meteor Up: https://github.com/arunoda/meteor-up There is a setting in the config file to set the remote MongoDB URL It looks like this: "env": { "PORT": 3000, "ROOT_URL": "http://dev.mysite.com", "MONGO_URL":…
user1447679
  • 3,076
  • 7
  • 32
  • 69
0
votes
1 answer

MongoDB does not connect with options parameter

I am trying to connect with options parameter but it does not connect try { $connection_url = "mongodb://{$dbuser}:{$dbpass}@{$dburl}:{$dbport}/{$dbname}"; $m = new MongoClient($connection_url, …
Shakti Singh
  • 84,385
  • 21
  • 134
  • 153
0
votes
1 answer

Android JSON object parse store in array list which will change each time button clicked

I am having problems parsing JSON data to my android application. I need to parse a JSON object as listed below. For my application i want to pull this json data store it in an array. then display each question along with possible answers using text…
0
votes
1 answer

node and remote mongohq connection

Im having major issues connecting to my mongohq data base. I am following this tutorial but replacing the local mongo DB with a remote mongoHQ db: http://coenraets.org/blog/2012/10/creating-a-rest-api-using-node-js-express-and-mongodb/ wines.js var…
Anthony
  • 2,330
  • 8
  • 44
  • 64
0
votes
1 answer

Updating a document with mongoDB and mongoHQ

I'm a little confused as far as updating a document in mongo is concerned. I'm using API calls with mongoHQ to do so. Say I have the following document: { _id: "1234" } If I use the API call mentioned here, I am able to successfully update the…
mayorbyrne
  • 495
  • 1
  • 5
  • 16