[05:17:58] <NaN> joannac: 2014-04-28T00:17:13.757-0500 ERROR: Cannot write pid file to /var/run/mongodb/mongod.pid: No such file or directory
[05:18:12] <NaN> the server was running and all was OK
[06:04:21] <NaN> seems I'm not the only one with that problem > http://stackoverflow.com/questions/23086655/mongodb-service-will-not-start-after-initial-setup
[07:18:38] <dmitrijs> Hello, I am going to create two nodes which will share one mongoDB database, the idea is that one node will write data to the DB and second node will read the opLOG, and trigger the 3rd party WS as soon as the new entry appears into the opLOG, how do you think, is it possible to create such architecture and what cons might it bring?
[07:35:09] <fl0w> dmitrijs: I’m no expert. But it sounds bottlenecked. Why not run Mongos regular scaling per node?
[07:35:43] <fl0w> dmitrijs: Or rather, can you share specifics relating to the problem you want to solve with that type of solution?
[07:38:44] <dmitrijs> Well, I have to develop an app, which will receive and execute payment transactions. There is a risk, that someone might attempt to hack or disable this application. That
[07:39:06] <dmitrijs> That's the reason why I decided to develop two nodes, which would share one DB
[07:39:45] <dmitrijs> There would be two nodes, one frontend node, which would accept the transactions from iOS, android, web app
[07:40:17] <dmitrijs> And second node, which would read the data, written by frontend node, and execute the transactions using the bank API
[07:41:13] <dmitrijs> In such way, even if frontend node, goes down, the backend node would be still running..
[07:41:23] <dmitrijs> And executing the transactions
[07:42:40] <fl0w> dmitrijs: So how is that different from having a replicated node instead? I’m going to stop here because I feel I will not be helping. You should hang around for better folks!
[07:43:07] <dmitrijs> k, thx, I will think about replicated node
[07:52:34] <kees_> dmitrijs, sounds like you need a messagequeue, not a mongodb perse
[07:53:20] <kees_> something like rabbitmq, or activemq
[08:34:05] <chowndevil> Hi guys =) Need to get some quick input on a question... Building a an application using many collections, I am using redis as a non-persistent cache solution to certain queries performed. As of right now there is no median in the average size of documents in Mongodb, I am wondering though in general without using conditions or modifiers, performing a simplr find() query.. Would it be advisable to cache larger results or
[08:34:05] <chowndevil> smaller in the terms of Mongodb? Thanks in advance
[08:53:49] <clu3> i've installed mongodb 2.6 as instructed here http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/ and I don't know how to start the server now
[09:13:42] <clu3> yeah, can't understand wtf is going on
[09:32:45] <Nodex> with master / slave replication can there be more than one slave?
[09:33:39] <Nodex> keep getting this in my logs http://pastebin.com/ND24A6fd
[09:34:14] <traplin> Friends.findOne({uid: Meteor.user().services.facebook.id}, {_id: 0, name: 1});, i have that code to limit _id and name, but it keeps returning everything no matter what i do
[09:34:54] <thanasisk> anyone knows when mongodb 2.6.1 comes out? due to a bug, we have to run 2.6.1-rc0 in production
[09:36:12] <Nodex> scratch that, it appears that upgrading to 2.6 re-adds the line "bind_ip 127.0.0.1"
[13:13:02] <jsfrerot> hi all, is it possible to set the mongodb cluster in read-only mode ? I mean not only the metadata, but the make the data in databases in read only mode.
[13:15:00] <nEosAg> read from secondary in replica set..
[13:15:45] <jsfrerot> humm, in this case, would it be possible to demote the primary and have only secondary nodes in my cluster ?
[13:16:58] <nEosAg> it won't happen in replica set..
[13:30:16] <jsfrerot> and unfortunately, i'm not using authentication, and I can't setup auth on my setup
[13:31:46] <jsfrerot> i'm trying to find a way to do a maintenance without downtime, moving all my date from an old cluster (that I need to still be available in read-only mode) to a new much bigger cluster. I know this is a wicked maintenance...
[13:32:59] <jsfrerot> so i'm trying to figure out a way to set my old cluster in read only while a reconfigure the new cluster currently replicating the old
[13:34:04] <jsfrerot> reading at the "priority" option, seems that if all my nodes are set to 0, there will be no election
[13:34:20] <jsfrerot> wondering if my primary will step down when requested to step down
[13:34:51] <vegivamp> Is it possible to get the workingSet data through the REST interface ?
[13:35:04] <vegivamp> ?workingSet=1 doesn 't work :-p
[15:12:51] <cybertoast> do unique indexes affect the count() function? i've got a situation where adding a sparse, unique index causes the count to return zero results, but without this index it works fine.
[15:21:02] <vegivamp> Is it possible to get the workingSet data through the REST interface ?
[16:11:48] <jklb> Getting an error trying to connect to my db at mongohq
[16:11:50] <jklb> Error: database names cannot contain the character '.'
[16:12:06] <jklb> straight from mongoHQ "mongodb://<user>:<password>@candidate.14.mongolayer.com:10120,candidate.15.mongolayer.com:10120/db_name"
[16:12:38] <jklb> But if I connect like this it works just fine: straight from mongoHQ "mongodb://<user>:<password>@candidate.15.mongolayer.com:10120/db_name"
[17:01:04] <NaN> if I do (shell) var foo = db.foo.find({'_id': 'foo'}), if I print foo it gives me the doc, but if I print it again it's clean, why?
[17:02:02] <skot> foo is not the doc, it is cursor. If you want the doc do this: var foo = db.foo.findOne({'_id': 'foo'})
[17:02:40] <skot> or if you want the results as an array, do this: find(…).toArray()
[17:03:14] <skot> it is something you consume and then is empty
[17:03:22] <NaN> suppose I want not only 1 foo but more (using another key), that way I couldn't use findOne
[17:11:17] <skot> You can convert the results to an array, with toArray(), for example.
[17:12:07] <skot> you may want to read the docs about cursors and iteration (basic concept in most languages) to better understand your choices.
[17:12:12] <Dynetrekk> howdy, I know how I can define a basic schema with {name: String, phonenumber: Number} but how can I define that phonenumber is a dict of {'home': 123, 'work': 456}, etc?
[17:13:38] <Dynetrekk> I'm using mongoose on node.js, if that matters
[17:33:17] <unholycrab> the mongomms preferred hostname setting tells the agent to prefer one hostname over another when two are present... when are two hostnames present in a replica set configuration??
[17:35:32] <unholycrab> im trying to figure out how to get mongo-mms-monitoring-agent to point at multiple AWS regions
[17:35:57] <unholycrab> the problem is that it discovers members of replica sets via the rs configuration, which are configured with internal hostnames
[17:36:05] <unholycrab> and i can't reach instances by their internal hostnames accross regions
[17:36:10] <unholycrab> and i can't use two monitoring agents...
[17:36:58] <unholycrab> is there a way to manually add replica set secondaries to the monitoring agent? or configure it to translate internal -> external hostnames
[18:51:43] <pure> How plausible is it to bundle mongod with my application if I want to use MongoDB as a persistance thingy?
[19:07:55] <qrf> Is there a common solution to achieving multi-document transactional semantics in MongoDB?
[19:09:43] <qrf> I suppose you can work with some "dirty" state marker and making copies of stuff until you finally commit the state to a single document hm
[19:09:54] <kali> the closest thing to this is two phase commit: http://cookbook.mongodb.org/patterns/perform-two-phase-commits/
[19:10:45] <kali> (which is by no way mongodb specific)
[20:18:15] <scruz> hello. trying to implement a tagging-like system. i want to create a collection for each possible type of tag group (for a book store, think things like publisher and subject are tag groups, then a list of all possible values for the tag group), then each individual book would have a tags property which would something like {‘publisher’: ‘Apress’, ‘subject’: ‘Databases’}
[20:21:00] <scruz> is that a good way to structure it? i need to later query on the tag groups, for instance, find all Apress books on Web Development published in 2013
[20:25:30] <Joeskyyy> scruz: They actually have almost that exact same example on this page
[20:39:25] <frodo_baggins> hmm, I'm trying to figure out what would be the best way to indicate when a function can be called.
[20:41:05] <frodo_baggins> oh, nevermind, looks like I was able to solve this problem with callbacks.
[20:50:38] <frodo_baggins> I'm seeing: "Failed to load c++ bson extension, using pure JS version"
[20:56:00] <mikebronner> got a question: how do I find a user based on a book title, given that the user embedsMany books, using PHP?
[20:57:31] <mikebronner> I've tried $user = User::find('books.title', 'The Great Gatsby'); and similar searches using where, but I always just get an empty collection or NULL returned.
[21:01:55] <AlexZan> hello i am using mongoose and i am running the command in the shell db.user.remove() and i am getting an error: mongodb remove needs a query at src/mongo/shell/collection. Any ideas what im doing wrong?
[21:08:46] <Goopyo> AlexZan: you’re not telling it what to remove
[21:09:53] <Goopyo> if yo uwant to remove all users db.users.remove({})