PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Monday the 1st of October, 2012

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[00:28:23] <dstorrs> hi all. I have a collection (video_raw_stats) of stats data for 10M different videos. There is an index (vtag, +time_harvested). Will that key be used if I do a query for "most recent 10 stats for (vtag), or do I need a separate index for (vtag, -time_harvested)
[00:28:27] <dstorrs> ?
[07:36:28] <[AD]Turbo> hola
[07:37:31] <omid8bimo> hello. anyone here use 10gen MMS?
[07:40:47] <omid8bimo> in 10gen MMS, hostname are displayed in orange on the host page. according to MMS help, its due to startup err or low ulimit! how can i make sure low ulimit is not the case?
[07:45:51] <wereHamster> increase the ulimit
[07:47:20] <omid8bimo> wereHamster: how? first of all, i wanna make sure its not for start up warning. my "last ping" in hosts table are green. does this mean they are ok?
[07:59:23] <omid8bimo> hello?
[07:59:25] <omid8bimo> anyone?
[10:06:24] <igotux> in primary and arbiter, am seeing all 3 nodes in rs.status() .. but in secondary node, am not seeing arbiter...
[10:06:32] <igotux> i just added arbiter now..btw
[10:12:09] <Guest55783> Hi all! I've some doubts on MongoDB...I've tried an intensive write (counter upsert) operation: at starting write performance are really high but after some time dramatically decrease. May be a problem with automatically generated ObjectId? Or with indexes? (I've 30 different collections, each one with 2 indexes)
[10:31:08] <Oddman> Guest55783, could be due to mongo optimizations noticing a pattern in inserts
[10:34:17] <Guest55783> Oddman, I'm thinking: until now I've specified upsert with criteria on interested columns (so in background an equality query is launched). Is it not better passing directly the objectId (manually built)?
[10:35:27] <Oddman> tbh I'm not sure
[10:35:36] <Oddman> it appears you've gone far more indepth in regards to performance than I :)
[10:37:13] <igotux> what could be the reason for not showing a node in rs.status() .. while primary and arbiter shows the same
[10:40:51] <igotux> recently added the arbiter node.. and it shows up in primary when i do a rs.status().. but not seeing arbiter node in secondary though... if i do a rs.status()
[11:41:05] <Bilge> Is it a good idea to always use binary for IDs because it compressed better?
[11:41:28] <wereHamster> it is a good idea to keep the size of the index small.
[11:41:56] <Bilge> And how might one achieve that
[11:44:25] <wereHamster> if you have option A and B, look at their sizes, and pick the smaller one.
[11:55:31] <pnh7> Hello all, I'm new to mongodb and now I'm trying to retrieve 1000 random records from a collection of 1million records. How do I do that?
[11:56:41] <Oddman> http://lmgtfy.com/?q=mongodb+1000+random+records
[11:56:50] <wereHamster> pnh7: generate a randon number between 0 and 1mil, then use offset+limit to get one
[11:58:11] <pnh7> Oddman: I couldn't find any solution online. I could only able to get random record using db.col.find().limit(-1).skip(randomNumber).next() , but not random no of records.
[11:58:51] <pnh7> wereHamster: okay. will try that out.
[11:59:14] <wereHamster> phira: repeat that command 1000 times. You get 1000 random records
[11:59:45] <pnh7> isn't there any better solution? i thought it's time consuming.
[13:01:31] <gyre007> what is the best and proven way to rotate mongo logs...I saw a bunch of articles but they all differ...
[13:28:44] <schlitzer|freihe> hey there. we are planning ob migration a 2.0 sharded cluster to 2.2. the upgrade itself seems pretty simple. but what if we need to rollback for "some reason" would the downgrade be as simple as the upgrade, just the other way around?
[13:29:02] <schlitzer|freihe> btw: we are not using authentication
[14:04:58] <schlitzer|freihe> kea
[14:20:25] <dingens> i'm looking for information on whether something like $unwind in mongos aggregation framework is possible if you do not have array. What I want to do is to split a document into two documents
[14:21:15] <dingens> my original document contains the fields a, b, c, x, y, z, the first resulting document should contain a,b,c, the other document should contain the fields x,y,z.
[14:21:28] <dingens> is something like this possible with the aggregation framework?
[14:22:02] <NodeX> not to my knowledge but I've only recently played with it
[14:22:36] <NodeX> teh aggregation framework could do with a $process pipeline where one can do these things
[14:22:57] <NodeX> but most people use it serverside so your language should be able to deal with it
[14:26:00] <dingens> NodeX: do you mean $project instead of $process?
[14:27:36] <NodeX> no
[14:27:49] <NodeX> I mean it needs a pipeline called "$process" or something
[14:28:46] <dingens> hmm. can't find any documentation for this pipeline command
[14:29:03] <NodeX> omg
[14:29:09] <NodeX> it doesn't exist
[14:29:14] <NodeX> I said "IT NEEDS ONE"
[14:29:28] <dingens> ah. ic
[14:29:32] <NodeX> ,lol
[16:31:19] <saml> is this good database?
[16:32:39] <jY> you try it and tell us what you think
[16:32:58] <saml> http://api.mongodb.org/scala/casbah/current/setting_up.html this seems outdated
[16:33:04] <saml> so not a good database
[16:33:30] <saml> can't even get it to work. cas bah
[16:34:54] <_m> saml: I'm not certain what you're looking for us to say. Do you require help setting up that driver? Are you asking for general advice in a use-case as to whether MongoDB fits?
[16:35:21] <saml> sbt can't find the deps
[16:35:35] <saml> that documentation is just out of date
[16:35:42] <dbe> Anyone know how to concatenate strings in the $project part of a mongo aggregation query?
[16:35:42] <saml> no big deal
[16:36:02] <saml> other drivers are good
[16:38:21] <dbe> Guys, for some reason, my local version of mongo allows me to use $add to concat strings in the $project part of an aggregation, but I'm getting an error saying $add doesn't support strings on the server
[16:38:24] <dbe> Any ideas?
[16:39:17] <NodeX> version mismathces?
[16:39:21] <NodeX> mismatches*
[16:39:33] <dbe> It looks the same version
[16:39:38] <dbe> what should the expected behaviour be?
[16:39:45] <dbe> Should I be able to concat strings with $add?
[16:40:50] <NodeX> http://docs.mongodb.org/manual/reference/aggregation/add/
[16:41:21] <dbe> -_- i can't figure out why thats working locally then..blows my mind
[16:41:45] <NodeX> the array members are string ?
[16:41:49] <NodeX> strings *
[16:41:59] <dbe> Yea
[16:42:12] <dbe> I use a string literal, "Unit ", and a variable which is a string
[16:42:40] <LoonaTick> Hi everybody. I have a cluster with 40 servers running mongos, connecting to 3 servers where mongod is running (3 shards, and 2 secondaries for each shard). I run gridfs. Somehow, sometimes mongos on one of the 40 client servers stops to serve a random document. It can still serve other documents, but it fails to serve this one until I restart the mongos. Anyone have experience with this, or know how to debug?
[16:42:55] <saml> wow 40 servers
[16:43:13] <NodeX> dbe : raise a jira if you think it's a bug
[16:43:18] <NodeX> what driver?
[16:43:38] <dbe> NodeX: thanks, I'll look into it more before I do that
[16:44:01] <NodeX> what driver is it?
[16:44:07] <LoonaTick> what do you mean?
[16:44:08] <dbe> I'm using pymongo
[16:44:27] <NodeX> just check it's not a pymongo / python thing before you submit it as a server bug
[16:44:33] <NodeX> it could be a quirk
[16:44:34] <dbe> kk
[16:45:13] <NodeX> LoonaTick: how big is the doc it stops to serve - or is it random docs ?
[16:45:24] <LoonaTick> saml: Thanks, it are even more actually. Webservers running nginx with gridfs in the module
[16:45:34] <LoonaTick> NodeX: It are quite small images, up to 100kb
[16:45:51] <LoonaTick> but randomly, it doesn't stop serving big images or small images
[16:46:03] <LoonaTick> and none of the images are bigger then 1MB or something
[16:46:54] <NodeX> LoonaTick : is it a random image
[16:47:09] <LoonaTick> Yes, it doesn't always stop serving the same image
[16:48:02] <LoonaTick> NodeX: I've set gridfs to restart every 30 minutes, and the problem still occurs, so I don't think it's a memory leak related
[16:48:19] <LoonaTick> I've set mongos to restart every 30 minutes**
[16:52:05] <devdazed_> say i have an object with a field that is an array of objects. how can I update a specific object within that array?
[16:52:09] <NodeX> sorry, I can't understand what you're telling me. Is it a random image or the same image every time (please answer "random" or "same"
[16:52:16] <LoonaTick> random
[16:52:43] <LoonaTick> but this random image is not served until the mongos is restarted
[16:52:59] <LoonaTick> so, then after restart a new random image is not served until mongos is restarted
[16:53:12] <NodeX> what I suggest you do is write a script to query random images via a driver and not a module
[16:53:28] <NodeX> just to check it's not the nginx module
[16:54:25] <LoonaTick> ok, will do
[16:54:55] <LoonaTick> I will make it query random online users for as long as it runs
[16:55:22] <LoonaTick> thanks!
[16:55:38] <NodeX> just see then we'll know what's going on
[17:38:51] <nickbr> Hi, I'm having problems with the Mongo PHP driver, connecting to a replica set. I'm intermittently experiencing connection exceptions: couldn't determine master. I've seen posts about, like this one: https://groups.google.com/forum/?fromgroups=#!topic/mongodb-user/CPhQmpTW4GA
[17:39:24] <nickbr> However, I have tried closing the connection after performing a query, then performing the query again, and it still fails
[18:01:38] <nickbr> upgrading to 1.3.0beta 2 gives the error 'No candidate servers found'
[18:02:13] <ron> upgrading to what now?
[18:02:25] <ron> oh, php driver. nm.
[18:03:51] <nickbr> and that isn't intermittent any more, I get that error all the time.
[18:06:22] <nickbr> I've downgraded back, restarted, and it seems to be working stably now. It was working well before, but then suddenly it just begins throwing exceptions as above, and is only successful about 1/20 times
[18:06:59] <nickbr> If anyone could help, or direct me to somewhere else for help, it would be much appreciated.
[18:09:02] <kali> are you sure the replica set is happy ?
[18:10:16] <nickbr> it says so when i check via the command line
[18:45:36] <Almindor> is there a way to use update with $set and get the value from the document itself? like $set: { x: this.x + this.y } or something similar
[18:49:38] <MongoDBIdiot> not possible
[18:50:07] <Almindor> :(
[18:50:18] <Almindor> it's forEach on 130million rows for me then
[18:50:38] <wereHamster> Almindor: or compute x on the fly, when retrieving the document
[18:51:16] <MongoDBIdiot> or use a different database
[18:56:11] <Almindor> wereHamster: not possible I'm afraid, this was an import mistake (location imported as latlong instead longlat) but non-imported rows are fine
[18:56:31] <Almindor> other than an ugly hack like "if ( doc.imported ) { swaploc }"
[18:56:38] <Almindor> I'd rather wait a few days for it to forEach
[19:01:42] <MongoDBIdiot> time for a new database
[20:16:55] <newjonaslund> hi
[20:17:01] <newjonaslund> newbie question coming up
[20:17:15] <newjonaslund> how do you get the last added record (most recent) from a collection?
[20:17:55] <wereHamster> newjonaslund: sort by _id descending, get the first one
[20:18:05] <wereHamster> that's the same way you would do it in SQL
[20:21:16] <_m> newjonaslund: Eg: db.foo.find().sort({_id:-1}).limit(1)
[20:21:28] <newjonaslund> haha. that's just what i wrote..
[20:21:30] <newjonaslund> awesome
[20:21:31] <newjonaslund> thx!
[20:30:49] <kanzie> so, new to mongo and Im trying to wrap my head around how to go about common operations. I have to collections, one for locations and the other for objects. I want to get all objects that has criteria X grouped by location. Is this even possible without doing several complex loop-queries through something like php?
[20:32:10] <urbann> hi all
[20:32:43] <urbann> I'm new to mongoDB and I just don't get it to work!
[20:32:47] <kanzie> so location "office" has property x, y, z. And in collection "objects" both stapler and pencil has a reference to the "office" locationID. I want Office { x, y, z, object {stabler, pencil} } in return (really mock up code)
[20:33:11] <urbann> what I try to do is to connect to mongo using mongodb://localhost:27017 (something)
[20:33:24] <urbann> don¨t know what I am doing wrong
[20:33:59] <urbann> I have mac os x lion installed
[20:34:56] <urbann> can somebody give some hints?
[20:35:50] <urbann> Is there a step by step guide available somewhere?
[20:35:53] <kali> kanzie: this is a join. mongodb does not do joins
[20:36:49] <kali> kanzie: so basically you have two options. first is to perform this join application side, or re-design your schema
[20:37:19] <kali> urbann: have you started a server ?
[20:37:20] <kanzie> kali, sure you could think of it as a join. The alternative would be to query the objects-collection with $in and then get the location id and get all locations. then in php construct the right json-object.
[20:37:48] <urbann> kali: yes
[20:38:08] <kali> what do you type to connect to it ?
[20:38:11] <kali> urbann: ^
[20:38:37] <urbann> kali: have this in my terminal:
[20:38:38] <urbann> Mon Oct 1 22:35:50 [initandlisten] waiting for connections on port 27017
[20:38:54] <kali> urbann: ok, that's were you started mongod
[20:39:04] <kali> urbann: now in another term, just run mongo
[20:39:29] <urbann> kali: done
[20:39:39] <_m> kanzie: http://www.mongodb.org/display/DOCS/Aggregation#Aggregation-Group
[20:39:47] <kali> urbann: well, now you go and read the tutorial :)
[20:40:27] <kanzie> _m: thanks, Ill look into that
[20:40:28] <kali> _m: the AF will not help if he keeps his two collections separated...
[20:41:05] <_m> Ahh, very true. Read over his question rapidly. My mistake Kanzie.
[20:41:15] <urbann> kali: I have done that but don't understand what they want me to do
[20:41:18] <urbann> http://www.mongodb.org/display/DOCS/Connections
[20:41:25] <kanzie> kali: well the locations-collection has references to which objects they hold
[20:41:39] <kanzie> but only by id
[20:41:44] <kanzie> so there has to be a way
[20:41:45] <_m> urbann: How did you install mongodb?
[20:41:58] <kanzie> seems I have made a schema that would support what Im trying to do
[20:42:00] <urbann> brew install
[20:42:13] <_m> Are you certain the instance is running?
[20:42:42] <kali> kanzie: you're thinking relational, you need to unlear this :)
[20:42:45] <kali> unlearn
[20:43:05] <kali> kanzie: there are two ways: redesign your schema, or perform the join yourself.
[20:43:10] <_m> EG: Did you symlink/load the LaunchAgent plist
[20:43:22] <_m> Are you running it by hand?
[20:43:57] <kali> kanzie: iwhen designing for mongo, you need to think about how your app dynamically access your data, instead of normal forms
[20:44:12] <_m> urbann: ps aux | grep -i mongo Should work in letting you know.
[20:44:26] <urbann> kali: yes brew install on mac os x, now I try to do something like mongodb://localhost:27017 in chrome but that don't work
[20:44:31] <jelder> i'm getting an assertion failure when i try to use mongorestore 2.2:
[20:44:32] <jelder> assertion: 13111 field not found, expected type 2
[20:44:35] <kali> urbann: arf
[20:44:36] <jelder> http://pastebin.com/63RxvqYg
[20:44:48] <_m> urbann: In chrome? I'm not sure that would work anywa
[20:44:53] <kali> urbann: mongodb does not talk http, you can't access it from a browser
[20:45:11] <urbann> kali: I got 4 lines first line is:
[20:45:13] <urbann> work 1257 0.7 0.3 2491132 28996 s000 S+ 10:35PM 0:03.13 /usr/local/Cellar/mongodb/2.2.0-x86_64/mongod --config /usr/local/etc/mongod.co
[20:45:23] <kali> urbann: well, actually you can try on port 28017, you'll get a status screen, but nothing else
[20:45:27] <kanzie> kali: yeah… this is hard though… Im a relational guy by heart
[20:45:32] <kali> urbann: yes, your mongo is working
[20:45:43] <kali> kanzie: we've all been there
[20:45:49] <_m> urbann: Use the mongo console. $ mongo
[20:45:53] <kanzie> I think we have the model down pretty good, just not at all familiar with how to query it
[20:46:12] <kanzie> kali: don't get me wrong, I am 100% certain there are some mishaps in how it idesigned
[20:46:26] <kanzie> but I use it a lot for geospatial queries and they perform really nicely
[20:46:33] <kanzie> I love Mongo, though I barely get it
[20:46:33] <kali> kanzie: for the query you were asking about, there is no pleasant way
[20:46:35] <kanzie> :-)
[20:46:49] <kanzie> kali: thanks, just needed to hear that
[20:46:51] <urbann> kali: do you mean mongodb://localhost:28017 ??
[20:46:55] <kanzie> before I started banging my head
[20:47:06] <kali> urbann: na http://localhost:28017 but it is useless :)
[20:47:19] <kali> urbann: run mongo in the term and read the tutorial to get started
[20:47:36] <sambomartin> hi, with a compound index, e.g. db.products.ensureIndex( { "item": 1, "stock": 1, "type": 1 } ) if you did a find(($and: [{'item':'xxx'},{'type':123}]}) - would it use the index?
[20:48:10] <kali> sambomartin: maybe for the type bit, but you need to try it
[20:48:22] <urbann> kali: yes http://localhost:28017 give me a page with information about mongo
[20:48:30] <kali> sambomartin: find(...).explain() will tell you
[20:49:26] <sambomartin> ok thanks, i will try, i thought it might be able to predict
[20:49:26] <kali> urbann: i know. it just says that your mongo is alive and well. now go to the term, run mongo, and go through the tutorial. you won't get anything interesting with a browser
[20:49:28] <urbann> kali: I am also able to run commands and so on but what I want to do is connect to meteorJS
[20:49:42] <kali> i don't know what that is.
[20:50:01] <kali> meteor is my workstation name, so i hope you're not doing something funny
[20:50:09] <sambomartin> i know it wont if you find({'type':123})
[20:50:46] <urbann> kali: hehe http://meteor.com/
[20:50:52] <kali> sambomartin: i meant the item bit, not the type bit sorry
[20:51:05] <kali> too many simultaneous conversations
[20:51:10] <sambomartin> np
[20:51:52] <kali> sambomartin: why do you write the query with a $and as a matter of fact ?
[20:52:02] <urbann> kali: in the installation instructions for meteorJS it say:
[20:52:03] <urbann> export MONGO_URL='mongodb://user:password@host:port/databasename'
[20:52:03] <kali> sambomartin: are you trying to confuse the optimizer on purpose ? :)
[20:53:11] <urbann> kali: so I guess I should be able to go to mongodb://user:password@host:port/databasename' (something?) in my browser?
[20:53:34] <kali> urbann: nope. only with mongodb drivers
[20:53:58] <sambomartin> whats normal practice then, say i have a user query that sometimes includes "stock" - it's not my schema btw, but in principal. would you have three compound indexes? (item,stock), (item, type), (item,stock,type)?
[20:54:12] <sambomartin> or filter the results after you've fetched based on first index?
[20:54:43] <urbann> kali: you say I can not just add that string in my browser?
[20:54:48] <kali> sambomartin: depends on the frequency of the request and the cardinalities
[20:55:27] <kali> urbann: yes. your browser is a http client. mongodb speak the mongodb protocol, your browser is useless to speak to mongo
[20:56:19] <sambomartin> item: 1m - stock: 10k, type:500
[20:56:28] <urbann> kali: I see! so how can I see if mongodb://user:password@host:port/databasename respond to something?
[20:57:24] <sambomartin> how do other deal with this scenario
[20:57:35] <kali> urbann: i think you're way over your head, here
[20:57:45] <girasquid> I'm having trouble doing a query based on a date, and I'm not sure what I'm getting wrong - here's the query: http://pastie.org/4893290 - what do I need to change to query on created_at being $gte than the date I pass in?
[20:57:48] <sambomartin> i guess one on type, stock and compound?
[20:58:33] <kali> sambomartin: it might be the index on type is useless, if you only have 500 different values here
[20:59:07] <sambomartin> true, as a single index
[20:59:50] <kali> girasquid: i think your created_At value is a string, not a Date
[21:00:09] <girasquid> kali: How can I check?
[21:00:26] <girasquid> And if it is - is there a nice way to query on that, or am I out of luck?
[21:00:28] <_m> urbann: Locally, just type mongo on the command-line. From another machine, type mongo my.host.com:27017
[21:01:54] <kali> girasquid: girasquid db.historic_order.find({ created_at: { $type:2 } })
[21:01:59] <urbann> _m ah, get it. but can Inot do that on localhost?
[21:02:35] <kali> girasquid: and if you can do it, it might be better to fix the data
[21:02:37] <girasquid> kali: comes back with all the historic_orders. I'm guessing the $type:2 is "select strings"?
[21:02:46] <kali> girasquid: yes
[21:03:00] <kali> girasquid: type list is here: http://bsonspec.org/#/specification
[21:03:23] <girasquid> Okay - I'll look at what I can do to get this fixed. Thanks!
[21:05:58] <urbann> put the installation instructions i try to use in a gist
[21:06:00] <urbann> https://gist.github.com/3814398
[21:06:26] <jelder> is anyone else experiencing crashes with mongorestore 2.2.0?
[21:06:42] <kali> jelder: yes
[21:06:50] <jelder> kali: awesome! workaround?
[21:06:51] <kali> jelder: with mongodump actually
[21:07:36] <kali> and i think we are waiting for a fix, my colleague was dealing with that, i don't know more except there was an active jira
[21:08:01] <jelder> do you happen to know whether my backups are corrupt, or if there's a bug in the restore tool?
[21:08:35] <kali> nope, sorry
[21:13:38] <_m> urbann: I can't help you install a node driver/application. You might want to check with the meteor or node people for instructions there.
[21:14:01] <_m> If you can access mongodb from the mongo command, then your instance is running. Try sample queries, etc there.
[21:16:22] <urbann> _m: I understand. At least I feel I got some hints that pointed me in the right direction, thanks
[21:37:48] <shiver> can anyone tell me if using ubuntu upstart job to shutdown a mongodb is safe? i see that if the server takes too long to shutdown it will be issued a SIGKILL. is this not a bad idea?
[21:52:42] <Bilge> shiver: where do you see that?
[21:54:18] <shiver> Bilge, isn't that the default response to a process that takes too long to stop for upstart?
[21:54:34] <shiver> if it takes longer than "kill seconds" it will be issued a SIGKILL
[21:54:49] <shiver> i thought a SIGKILL was a bad thing to do for mongo?
[21:55:38] <wereHamster> not if you have the journal enabled
[21:57:16] <shiver> wereHamster, is that guaranteed? i have had a corruption on a mongodb instance in the past (though i dont know if journal was enabled back then)
[21:57:28] <shiver> which is why I am being rather cautious
[22:13:08] <glasser> I'm having trouble using ReplicaSets with the mongo shell. I run: "mongo -u username -p password host1.mongolayer.com,host2.mongolayer.com,host3.mongolayer.com/mydatabase" (which is the same username/password/hosts that I successfully use with my node.js script)
[22:13:39] <glasser> but this gives me errors when i try to do writes ("unauthorized db:admin lock") which I think is because i'm connecting to a secondary
[22:13:50] <glasser> and in fact, db.isMaster() reveals that I am connecting to a secondary and tells me what the primary is
[22:14:04] <glasser> and if i then close the shell and reopen it specifying just the primary, i can do my updates
[22:14:25] <glasser> but surely that's not the Right Way... surely there's a way to specify my complete ReplicaSet and have it automatically do writes to the primary, right?
[22:20:39] <_m> glasser: Why not just connect to your primary and do writes? Your replicas will automatically sync.
[22:20:44] <glasser> _m: well, sure
[22:21:01] <glasser> but are you saying that every single time I want to connect to the server, I have to (by hand) look up which the primary is?
[22:21:10] <glasser> i mean, there's master election, right? any node could be the primary...
[22:27:26] <_m> glasser: http://www.mongodb.org/display/DOCS/Connections
[22:27:36] <_m> There's an example for your use-case there.
[22:27:54] <_m> Essentially, you'll need to add /?slaveOk=true
[22:28:18] <glasser> _m: So, that's what I do in my node app
[22:28:30] <glasser> but I don't know how to do that... oh, can i do that in the URL on the shell? gotcha.
[22:29:35] <_m> Yeah, unless I read the docs completely wrong. We have CNAME records which are automagically updated internally. Which means: mongo master.mydb.com works every time. =)
[22:29:54] <glasser> _m: Trying to just add "?slaveOk=true" to my URL at the shell has an auth error on connection
[22:30:04] <_m> Hrm.
[22:32:23] <glasser> although actually, we don't have slaveOk=true in our node code and that *does* work fine
[22:33:44] <_m> Yeah. Should try and detect the master when executing the shell (at least, that's what my test just did)
[22:34:02] <glasser> note that this is an unprivileged account, i think
[22:35:42] <glasser> (ie, it has no access to db.system)
[22:36:15] <glasser> er, i mean
[22:36:20] <glasser> it has no access to the "admin" database
[22:37:20] <acidjazz> any1 got any mod_rewrite skills
[22:37:41] <_m> Yeah, but my guess is google can help you more quickly.
[22:38:15] <_m> glasser: I can't find anything specifically stating this is supported. Most people are saying, "Write a shell script to determine the master."
[22:38:31] <_m> glasser: I'll see what our sysadmin says on the topic.
[22:40:13] <_m> glasser: He says, "no, not without using the hackish thing I set up."
[22:40:26] <_m> Sorry if that's not supremely helpful.
[22:43:45] <glasser> _m: thanks anyway :)
[23:26:00] <Bilge> shiver: what the FUCK are you talking about?
[23:26:06] <Bilge> <shiver> Bilge, isn't that the default response to a process that takes too long to stop for upstart?
[23:26:11] <Bilge> <shiver> if it takes longer than "kill seconds" it will be issued a SIGKILL
[23:26:19] <Bilge> I have NEVER seen that in an init or upstart script
[23:32:13] <shiver> Bilge, http://upstart.ubuntu.com/cookbook/#id358
[23:32:22] <shiver> "If a daemon does not shut down on receipt of this signal in a timely fashion, Upstart will send it the unblockable SIGKILL signal."
[23:41:27] <shiver> regardless, you're rather arrogant and condescending for your lack of knowledge in the subject you're trying to "help" with. thanks... i guess
[23:49:39] <emocakes> pwned Bilge
[23:53:37] <zacharyp> somewhat sad really. I just joined this channel, after attempting to convince my coworker that IRC wasn't so bad. First thing I see was Bilge's WTF