PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Monday the 6th of May, 2013

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[05:15:28] <astropirate> I have a collection with documents with the following structure: { aliases [ 'bob', 'john', 'jack']} how can i find "findOne" find the first document that has an alias we are looking for?
[05:16:00] <astropirate> right now i hae findOne( { aliases: { $in: [ myAliasValue ] } } )
[05:16:06] <astropirate> but it isn't finding anything
[05:17:22] <astropirate> and i want it to return the entire document
[05:30:31] <astropirate> anyone alive
[05:30:33] <astropirate> ?
[05:42:56] <joannac> astropirate: I think the $in operator is not needed
[05:43:01] <joannac> Equality matches can specify a single element in the array. If the array contains at least one element with the specified value, as in the following example: the query matches all documents where the value of the field tags is an array that contains, as one of its elements, the element 'fruit':
[05:43:06] <joannac> db.inventory.find( { tags: 'fruit' } )
[05:43:48] <astropirate> that only works
[05:43:51] <astropirate> when the array has one element
[05:44:02] <astropirate> it doesn't find anything when the array has multiple elements
[05:44:30] <astropirate> joannac, ^^
[05:47:20] <joannac> astropirate: http://pastebin.com/e2BU8VUS
[05:47:25] <joannac> works for me
[05:48:55] <joannac> findOne({aliases: 'john'}) also works, btw -- gives me the one with 'bob'
[05:52:48] <astropirate> ohh bloody hell
[05:52:52] <astropirate> its case sensative
[05:52:56] <astropirate> thank you joannac!
[07:43:03] <[AD]Turbo> hola
[08:53:21] <chandru_in> If I have a background index, can I change it to an immediate index without dropping and recreating it?
[12:41:50] <Berge> Hi! Does the write concern "replica acknowledged" imply that the data has been written to (the journal of) the master node in addition to being sent to a number of replicas?
[12:42:50] <Berge> Or does it just mean "it's been seen by a number of nodes, including master, and will be written soon"? (In which case the data is lost upon a total power failure, for instance.)
[12:43:36] <Berge> Furthermore, is there a way of expressing the write concern "I want this data to be written to persistent, crash-recoverable storage on at least two nodes"?
[13:18:04] <bobbytek> Why doesnt mongo use a cursor for aggregation results?
[13:18:29] <bobbytek> Seems silly not to by design
[13:19:00] <bobbytek> Causes many schleimel the painters
[14:14:27] <Zardosht> I have a question about the "local.slaves" collection in replica sets. Why does it exist? Does some piece of the internal system actually use it? Why would anyone use that over rs.status()?
[15:16:16] <jbd> hi
[15:40:29] <coin3d> is embedding and referencing at the same time a common use case in mongo? e.g. i saw an example in "mongodb in action"; where a product review has a user_id, but also saves the username of the user
[16:02:05] <Zardosht> Berge: I think you need the "j" option to ensure that data has been written to the journal. Seems independent of the "w" parameter.
[16:25:03] <dalekurt> I have an issue, I have mongoDB running on a Linux (Ubuntu 12.04) server, the data is stored on a NAS with the mount point /storage (files system EXT3) and data in the path /storage/mongodb/data. The total data store is approximately 640GB and today when I logged on to the server the mount point is there but executing ls -al for /storage does not show the /storage/mongodb directory. However I am able to change directory to that path. Has anyone experienc
[16:25:04] <dalekurt> this before?
[17:05:52] <dypsilon> hi everyone, how hard is it to install and run mongodb in users ~, without root rights.
[17:06:08] <dypsilon> on debian squeeze
[17:16:04] <gazarsgo> on a hardness scale of 0 to 10 where 10 is climbing mount everest i'd say it's a 0
[17:16:29] <gazarsgo> mongodb is super easy to get going with. it's only a small scramble when you realize you're running out of disk space locally, too :)
[17:17:36] <dypsilon> gazarsgo, so what do I do? Sorry I couldn't find any guide online, I just dl the sources, compile, set the data path to some directory inside my ~, configure upstart and I'm done?
[17:18:19] <gazarsgo> i'm lazy so i downloaded binaries
[17:18:35] <gazarsgo> this is 5 months old so look up the new version numbers, but it's mongodb + another software package : https://gist.github.com/ralph-tice/4253069
[17:18:46] <gazarsgo> lines 9-12 == mongodb is installed and running
[17:20:30] <dypsilon> gazarsgo, looks great, thank you
[17:41:50] <JoeJohnson> I have these documents in my MongoDB. http://dpaste.com/1113265/ What I am trying to do, using Python, is run a query that gets a team document IF they have a sport subdocument for football, and then display them. I want to display the data from the main document, but also the football subdocument. Is there a way to do that? Or should I separate football and basketball subdocuments out into their own documents using a Reference I
[18:30:40] <theRoUS> if a database has been set up with auth, and the credentials lost, is there a way to 'break in' if you have access to the server?
[18:37:01] <ehershey> maybe restart with --noauth ?
[18:37:08] <ehershey> I'm not sure if there's an official/better way
[18:38:49] <Blablu> if there is no bug letting you in, I guess the only way would be to crack it :/
[18:40:03] <theRoUS> mmhph
[18:42:25] <Blablu> but I'm really no expert^^
[18:44:37] <Blablu> is here anybody who used the mongodb haskell driver? Can I use logical operators with the driver?
[19:18:36] <locojay> hi i am running a mongodb on a dev server in my network with replica set . connecting from server box via mongo works just fine. but connetion from another client in the network use --host throws exception connection failed.
[19:18:39] <locojay> any idea
[19:26:42] <Blablu> maybe the port mongodb runs on is blocked by a firewall?
[19:30:04] <locojay> no it's not
[19:38:38] <locojay> doesn't seem to be related to replica set as i can't connect to a simple server started with mongod outside of localhost
[19:48:34] <hopeless> Hi there. Could anyone please help with a group/aggregation/mapreduce question please?
[20:09:11] <locojay> can only connect to mongo server via localhost. running on other client return's User Assertion: 12513:connect failed. (server and client have same version... 2.4.3)
[20:09:41] <kali> locojay: check your config file for a "listen" directive
[20:12:18] <locojay> starting mongod like this mongod --port 27017 --dbpath /srv/mongodb/rs0-0 --replSet rs0 --smallfiles --oplogSize 128. not via conf just dev box
[20:13:09] <kali> mmmmm ok. what does the log says ? or the console, actualy ?
[20:16:32] <locojay> client User Assertion: 12513:connect failed. server nothing
[20:18:12] <kali> locojay: i meant the server startup log
[20:18:41] <locojay> yeah there is nothing there one i connect with the client
[20:18:54] <locojay> no line added...
[20:19:13] <kali> show me the whole bunch from when you start it to when you try to connect :)
[20:23:48] <locojay> https://gist.github.com/locojay/5527859
[20:23:58] <locojay> running es-river as well
[20:24:03] <locojay> log from primary
[20:24:18] <kali> bind_ip: "127.0.0.1", config: "/usr/local/etc/mongod.conf"
[20:24:24] <kali> it picks up a configuration file
[20:24:34] <kali> that binds only 127.0.0.1
[20:24:47] <kali> "bind_up" was the right directive, not "listen"
[20:25:04] <locojay> thanks
[20:57:23] <JoeyJoeJo> I can do a search for all points in my database inside of a bbox, but how can I search for points within an arbitrary polygon?
[21:12:41] <rbasak> Hello! How do I submit bugfixes? JIRA or something else? Contributing doesn't seem to be documented anywhere that I can find, and you appear to not use pull requests on Github.
[21:14:53] <mgriffin> first hit on google is https://jira.mongodb.org/secure/Dashboard.jspa but i am new here.
[21:15:06] <mgriffin> i found some recent bugs there when i was checking it out last week
[21:16:49] <rbasak> Yeah, so those are bugs. What about patches?
[21:17:01] <rbasak> Or do you guys want a bug filed for each patch?
[21:45:54] <mgriffin> rbasak: looked around, i guess you just announce your pull request or attach a patch on the mongodb-dev list, example https://groups.google.com/group/mongodb-dev/browse_thread/thread/7e3d22a8032cb6e3
[21:47:27] <rbasak> mgriffin: thanks for your help. I'll email mongodb-dev.
[22:14:01] <rbasak> I have found https://github.com/mongodb/mongo/blob/master/CONTRIBUTING.rst which has instructions.