[04:09:51] <SalocinTEN> hi, i have a problem with a 3 shard cluster. i couold add the first and third shards but the second shard keeps saying that it cannot connect.
[04:10:34] <SalocinTEN> i am also using the ports 27107 for all the servers of each shard replicaset.
[04:12:26] <SalocinTEN> "errmsg" : "couldn't connect to new shard mongos connectionpool: connect failed
[04:22:22] <SalocinTEN> thanks i think i have found the issue.
[05:43:27] <circlicious> tell mw how to backup my mongo database
[05:58:32] <thestereobus> hi! I'm having trouble connecting to a replicaset from the ruby driver.
[05:58:54] <thestereobus> I asked this question on Stack Overflow
[06:37:03] <thestereobus> until I chased it down to the ruby driver itself
[06:37:24] <thestereobus> then I noticed that setting :require_primary to false worked
[06:37:35] <thestereobus> but only the secondary node was visible
[06:37:48] <thestereobus> so I realized that mongo couldn't see the other node by the name I was providing
[06:38:06] <thestereobus> here's my answer: http://stackoverflow.com/a/11716412/365993
[06:39:39] <thestereobus> most of the 12 hours was upgrading various libraries to the latest
[06:49:08] <Guest76115> hello all..I am a newbie, and I wonder when will the version 2.2.0-rc0 become the production level? since I found some shard operations are quite enhanced in the development version..
[08:56:56] <Dreamer3> so i guess if i move my mongod.conf that maybe this control panel thing will really work
[10:28:06] <hjb_> howdy. I#ve been requested to deploy mongodb on a test machine, but got stucked on the following question now: should i go for v8 or spidermonkey?
[10:31:42] <Gizmo_x> I got error like this: http://pastie.org/4357977 unauthorized using zend framework 2 and doctrine-mongo-db
[10:36:04] <Lujeni> Hello - It's dangerous to launch two mongodump on different collection ? ( shard environment) Thx
[10:43:25] <NodeX> I'm pretty sure the default is spidermonkey
[10:48:17] <hjb_> NodeX: great. I feel thought, that i'd not use what i like, but what's more stable ;-)
[10:48:40] <hjb_> NodeX: mongodb website says v8 support is under development, whatever that means
[10:54:46] <hjb_> NodeX: i've found a quite fresh comment in gentoo bugzilla that suggests that upstream mongodb developers think that v8 isn't stable enough yet
[10:55:02] <hjb_> NodeX: i'll stick with spidermonkey for now...
[11:05:26] <NodeX> perhaps you shouldv'e posted your question in a different manner like "Is spidermonkey or v8 more stable" ;)
[11:09:19] <cromeno> Anyone using both Mongo and Mysql in same setup?
[12:29:09] <NeoNmaNDK> zakG: orh okai, i know there are problems on MacPorts on Mac, i don't know about Ubuntu,
[12:30:35] <zakG> actually when i am issueing the command to start mongodb,it shows that the process is started/running but i coudn't find the process in the system monitor
[12:39:12] <kali> it don't know what the system monitor is, I assume it is some kind of ui wrapping ps. anyway, you should look out mongodb logs
[12:47:23] <zakG> kali,it is.btw there's nothing in the system logs.the process isn't started.
[12:48:30] <NodeX> there will be a log in /var/log/mongodb.log
[13:04:54] <zakG> NodeX,there's some kind of problem with the mongod.lock file.mongo is gets shutdown automatically.
[13:26:57] <s0urce> Is there any way to get a list of values returned by "find"? I mean instead of "...find(...).toArray() -> {'foo':1,'foo':2,'foo':3}" something like this: {1,2,3}
[13:27:25] <logik-bomb> guys, how do I seed a txt file into mongo? I'm getting SyntaxError: missing ; before statement script_mongo.txt:1
[13:27:53] <s0urce> Or in other words, is there function like toFlatArray()? ;)
[14:16:58] <hjb_> it's really weird, as i've done exactly what the documentation says ;-)
[14:18:11] <madrigal> hjb_: are you accessing the http interface from localhost
[14:18:28] <hjb_> madrigal: no, from another machine
[14:20:47] <madrigal> hjb_: mongodb docs say If security is configured for a mongod instance, auth is required for a client to access the http interface from another machine
[14:23:28] <hjb_> madrigal: got an explanation: i'm running 2.0.5 and was puzzled by the problem fixed in issue SERVER-2917
[14:39:42] <zenista> hi i want to update a doc... but instead of replacing or modify existing fields i want to append more data to it... ie. say collection of images: {....}
[14:59:42] <NodeX> not unless you're map/reducing and you count it's length
[15:00:09] <NodeX> if you're trying to count the number of array members for example the common approach is to save the count aswell
[15:03:25] <lonnylot> NodeX: I am recording stats that are broken down by year/day/hour. I am trying to determine how many hrs. I can add stats before there is a problem w/ the size of the document.
[15:03:49] <NodeX> so you mean the whole document as a size?
[15:05:09] <lonnylot> Well we are adding stats as properties to the document. So each yeardayhour will be a different property. I am trying to figure out how many of those can be added to a document before there are problems w/ the document size.
[15:06:29] <NodeX> the document size as a whole has a limit of 16mb currently
[15:23:55] <soumya> i am trying to run some regression tests to see how my query performs with and without indexes.... everytime i run the query it runs faster bacause of data moved to RAM. how do i run a test where the same query runs consistently
[15:24:06] <soumya> i mean takes same amount of time
[15:25:41] <NodeX> I dont think you can turn off the query cache
[15:53:04] <revnoah> hello, I'm having trouble with the syntax for a mongoose query using a regular expression on multiple fields. I hope someone can point out what's wrong with the statement: app.User.find().or([{ 'firstName': { $regex: re }}, { 'lastName': { $regex: re }}]).sort('title', 1).exec(function(err, people) { /* do stuff */ });
[15:55:00] <revnoah> I have the regex working well enough with a single field, it's the 'or' clause that's giving me problems.
[16:32:30] <W0rmDrink> yeah, I made a query, checked few fields, more or less got what I was looking for
[16:34:36] <dbler> You may use sort() to return data in order without an index if the data set to be returned is small" does it mean that I should NOT use an index if I return little data?
[16:40:19] <soumya> has anyone seen this issue where every consecutive run of a query is faster than the previous one?
[16:40:28] <soumya> i know why it happens the first time
[16:49:46] <slava_> soumya: you call that an issue?
[16:54:41] <SNow> hi guys, i want to install mongodb infrastructe on openvz, but I see that even error log tells me that openvz and mongodb seems to be broken, how actually it is?
[16:59:52] <dbler> what is about redundancy in Mongo?
[17:01:51] <dbler> not this way, I meant redundancy in the bad way: I have for example products belonging to categories, in relational databases I would save the category ID and then do a join to the category table
[17:03:11] <dbler> would I simply accept it or how do you handle?
[17:05:47] <lizzin> how do you increment all documents with a field 'x' by 7? i thought db.stuff.update( , {$inc : {x:7}}) would work. but it fails?
[17:06:00] <lizzin> what should be in the first param slot of the update?
[17:07:16] <mids> first param is the criteria; the query that selects the record(s) you wanna update
[17:12:07] <Vile> dbler: you can handle referential integrity manually (on the software level) or just embed necessary data into documents and do not care about extra data
[17:12:10] <lizzin> mids: so {} appears to work. but it seems to only update the first document. what's need to do it for all?
[17:13:59] <dbler> what do you mean with "on the software level", looking at the category example, would I save then the ID in the database and the name in my source code or what do you mean?
[17:16:49] <slava_> if I want documents to refer to each other, is this something that can be handled on the mongodb side or is it something my app has to enforce?
[17:19:19] <madrigal> lizzin: multi - indicates if all documents matching criteria should be updated rather than just one.
[17:22:32] <dbler> yes, I had understood this, but can you explain it with my category example?
[17:24:13] <dbler> in the first moment I thought MongoDB would be perfect for me (product catalog with about 100 attributes in general, each object has about 35, in OOP a 5 step depp inheritance), but now I have some doubt
[17:26:25] <lizzin> madrigal: ha, nvm. just realized what i was doing wrong
[17:31:35] <dbler> slava_: what I think: MongoDB: categoryID = 2; PHP receives this categoryID like that: $catId = getCategoryFromMongo(); $categoryName = $joinInformation['categoryID'][$catId]
[17:37:29] <jrm2k6> Hi guy, i want to deploy a mongodb database on heroku, using the mongohq addon. I m getting this error : Error: database names cannot contain the character '.'. I know it is pretty straightforward but the thing is that the URI for the database is generated by mongohq, using an email address and a password, or, my email contains at least one point :) Any idea? What I am missing?
[17:51:08] <madrigal> jrm2k6: try changing the '.' to %2E in your mongohq_url
[18:00:49] <lizzin> what is needed to convert an msaccess db to mongodb?
[18:21:51] <madrigal> lizzin: use mdbtools to export your tables from msaccess to csv, there are several "csv to json" options available depending on your config
[19:03:12] <lizzin> madrigal: so i've installed mdbtools. but mdb-export's params requires a 'table' what do i use for this field if i do not know anything about the structure of the database?
[20:42:55] <jrm2k6> i cant access my database on heroku, using mongoHQ
[20:44:39] <dstorrs> jrm2k6: I have not used either of those so can't offer much help. but most times, escaping is just \<whatever (e.g., escaping / is \/)
[20:45:04] <dstorrs> sometimes you need to double the \ if there is shell interpolation or etc going on
[20:45:27] <dstorrs> question for the room -- if I rename a table, its indexes are brought along with it, right?
[20:45:30] <jrm2k6> i try to escape everything but each time i escape something the value return by the error is different..
[20:57:35] <nick_h> why does db.product_haves.find( { 'sale_config.items': { $exists: false } } ).count() always return 0, despite documents in the collection having a "sale_config.items" property?
[21:37:07] <pbakkum> it looks like sharding is stuck in a broken state on my cluster, i keep getting a "max number of requested split points reached" error
[21:37:19] <pbakkum> i put some logs at https://gist.github.com/3208902
[21:37:27] <pbakkum> anyone have any idea whats wrong?
[22:05:09] <kida78> hey all - wanted to discuss a few things around writes and performance in mongodb
[22:06:13] <kida78> is there a major difference in performance between my_coll.update({_id: xxxxx }, { entire document }) vs. my_coll.update({id:xxxxxx }, { field 1: value 1, field 2 : value 2}))
[22:06:43] <kida78> we've gotten use to in our code, appending and updating values in an object over time before saving the entire thing in mongodb
[22:06:48] <kida78> vs just updating the fields when necessary.
[23:18:19] <hoverbear> Hey all... I've got a database (govtest) with a collection (gov)... When I go into the mongo console I can use db.gov.find() and see {a:'b'}... But using http://www.fpaste.org/vdcP/ I only get 'undefined' when using node.js with the official driver
[23:18:44] <hoverbear> Anyone have an idea what might be the matter?
[23:58:33] <kida78> it sounds like it either isn't in your classpath or there's a version conflict