PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Sunday the 8th of March, 2015

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[01:15:13] <Jon1> having trouble adding a replset member… both are running both with same rs name both with --sslOnNormalPorts and --sslWeakCertificateValidation and I can telnet to secondary port 27017 from primary … but adding says secondary is not up.
[01:53:09] <diondion> I'm having trouble understanding the geospatial indexing and query operators. I have spatial fields corresponding to layout on a cartesian plane. I tried using a "2d" index and became aware of the 100 document / 4MB limit on the $near queries. Is there a way to use the 2dsphere index along with a $near style query such that the distance is calculated on the cartesian (and not an earth-like sphere)?
[04:40:45] <ladessa> Hi!
[04:41:35] <ladessa> I'm trying to count the number of distincts idUsuarios in collection called reforcos filtering by 'idOcorrencia': '54fa7df48a070f6d59c53057' https://www.irccloud.com/pastebin/8ExobGid
[07:46:31] <tvle83> i have a bson db dump from a forum that I would like to restore into a mongodb and be able to look at the data. I am getting an error "ERROR: Error creating index 0.search: 16730 err: "bad textIndexVersion: 2""
[07:47:19] <tvle83> mongodb shell 2.4.9 so do i need to upgrade to the latest mongodb ?
[11:17:51] <suwaidtech> hello
[11:18:46] <suwaidtech> I am new to Mondodb
[11:19:30] <suwaidtech> I am learning MEAN using this website https://thinkster.io/mean-stack-tutorial/
[11:20:10] <suwaidtech> However, I was able to compile my HTML and angular into the webpage and I am still facing some errors when running the code in Node.js
[11:24:27] <suwaidTech_> hi dear
[11:24:29] <suwaidTech_> all
[11:24:37] <suwaidTech_> I am facing an issue with this site
[11:24:37] <suwaidTech_> https://thinkster.io/mean-stack-tutorial/
[11:25:11] <suwaidTech_> has anyone tried doing it before hand?
[11:35:26] <suwaidTech_> hi zivix
[11:35:41] <suwaidTech_> I would like to ask a question
[11:35:48] <suwaidTech_> if you may please
[13:11:12] <esko> Can you help with a design question?, i recently jumped into a flask/mongo project, both which are new to me. I have in the project a select/edit form, where i use selectize.js to post and get values, i store these in an array inside the same collection as the exercise itself. would i be better off to create a new collection with the entries, and then save the ID of each with the exercise?
[13:11:26] <arthurvr> Hey esko!
[13:11:32] <esko> hey arthurvr =)
[13:12:12] <esko> alternatively i would like to get a list of all arrays within all documents in the collection
[13:15:14] <esko> i use this to get what i want from the current exercise: app.db.balls.find({'id':bid},{_id:0,'links': { '$elemMatch': {'title': {'$regex' : '.*' + query + '.*'}}}), however i would like to find all title: inside all documents and return that, if i use {} as filter it will return all empty as well
[13:32:20] <esko> i guess im looking for an answer to: how i would query all documents in the collection and only return the arrays that match, but not the empty results
[13:42:26] <esko> example: db.balls.find({},{_id:0, links:{$elemMatch:{title:'more'}}}).count() = 120, should be 1, so its 119* {} in my result
[13:51:30] <esko> i think, $exists:true not sure how to incorperate it into my query though
[14:47:28] <esko> i solved it like so: {links:{$exists:true}, $where:'this.links.length>0'}
[15:18:11] <cheeser> esko: $where isn't exactly encouraged. what were you trying to query for?
[15:23:52] <zero_coder> hey, i cant get mongo shell running in arch. it shows failed to connect
[15:25:10] <cheeser> make sure mongod is running
[15:27:30] <zero_coder> cheeser, exception in initAndListen: 98 Unable to create/open lock file: /data/db/mongod.lock errno:13 Permission denied Is a mongod instance already running?, terminating
[15:29:47] <cheeser> yeah. mongod doesn't have rights to write where you've told it to
[15:30:50] <zero_coder> cheeser, 15926 Insufficient free space for journals,
[15:30:57] <zero_coder> cheeser, what to do about em?
[15:36:24] <cheeser> pastebin the output of: df -h
[15:38:22] <zero_coder> cheeser, less than 3gb there :P
[15:38:29] <zero_coder> i mean in the root
[15:39:07] <esko> cheeser: i have a collection called balls, in some documents there are an array called links:
[15:39:17] <cheeser> is this for dev?
[15:39:54] <cheeser> you can use the smallfiles option but by default, iirc, mongo will preallocate a 2G file which will have extra metadata surrounding it.
[15:40:00] <cheeser> journaling being one...
[15:40:51] <esko> cheeser: and my selectize.js make a ajax get to retrieve all previously saved links from all documents within the 'balls' collection
[15:41:15] <esko> urls = db.balls.find({'links':{'$exists':'true'}, '$where':'this.links.length>0'},{'_id':0, 'links':1})
[15:41:23] <esko> like so, at the moment :)
[15:42:52] <cheeser> oh, and $size probably doesn't take a document so you can use $gt does it?
[15:43:50] <cheeser> nyet.
[15:44:10] <cheeser> ok. i'd recommend looking at aggregation rather than $where
[15:44:31] <cheeser> $where clauses get executed serially against every document and that can be terribly slow.
[15:51:39] <zero_coder> cheeser, what to do now?
[15:51:58] <cheeser> use a bigger disk or use the small files option.
[15:52:47] <zero_coder> cheeser, cant change the directory to where it creates?
[15:54:19] <cheeser> sure. you can do that.
[15:54:26] <cheeser> "use a bigger disk"
[16:42:26] <esko> thanks cheeser, will do so
[16:54:15] <RWOverdijk> I'm currently trying to sort by distance, which is working. But I am also looking for the distance, which I can't seem to get. What am I missing? https://gist.github.com/RWOverdijk/e263021fb1635a580f0a bonus question: What's the difference between $near, $geoNear and $nearSphere?
[17:00:45] <fkt> i have an entry structured like such: { "_id" : ObjectId("54fc4db01b8562722b9e8c67"), "03082015" : { "test" : { "data1" : "490.56", "data2" : [ 6, 12, 21 ], "data3" : [ 5, 32, 74 ] }}} . each entry has a datestamp object which contains other items. how would i query mongo for a specific date - in this example - 03082015
[17:01:14] <fkt> i would have thought db.test.find({"03082015": {}})
[17:01:19] <fkt> but i'm brand new to this
[17:01:19] <hater23> hello useless mongodb garbage and inbred administrator scum
[17:01:36] <hater23> Derick still licking the balls of Eliot?
[17:02:34] <hater23> MongoDB, the database "designed" from idiots for idiots
[17:02:46] <hater23> MongoDB, the database used by inbred IT scum
[17:13:47] <hater23> only morons use MongoDB
[17:23:20] <hater23> all mongodb assholes sleeping?
[17:23:22] <hater23> what a scum
[17:26:06] <hater23> time to send you asshole to the next trashcan
[17:26:08] <hater23> mongodb dirt
[17:30:01] <ktchup> Anyone here with sails.js experience?
[17:30:29] <ktchup> See if you can answer my question http://stackoverflow.com/questions/28928808/what-type-of-object-does-publishcreate-accept
[17:31:58] <cheeser> is id a string or an ObjectId?
[17:32:21] <cheeser> i'm guessing you jsut need to pass user in and not user.id
[17:32:39] <cheeser> (though I've not used sails.js)
[17:33:01] <ktchup> I’ve tried the passing the three of them
[17:33:04] <ktchup> user.id
[17:33:10] <ktchup> user._id (the ObjectID)
[17:33:11] <ktchup> and user
[17:33:37] <hater23> cheeser, stupid question
[17:34:06] <hater23> read the docs, hard
[17:35:43] <hater23> tard i mean
[17:39:43] <hater23> ktchup, we have enough of asshole like you, piss off
[17:42:01] <preaction> 0/10 - too obvious
[17:47:05] <LpMode> hello everyone
[17:47:51] <hater23> LpMode, hello stupid asshole
[17:48:05] <LpMode> ?
[17:48:15] <hater23> LpMode, hello stupid asshole
[17:48:19] <LpMode> ...
[17:48:24] <LpMode> why?
[17:48:24] <hater23> what do you asshole want here?
[17:48:31] <hater23> go and fuck your mother as you always do
[17:49:04] <preaction> Derick, ehershey, GothAlice, Number6: could someone who's awake do something about hater23?
[17:49:39] <LpMode> thank preaction
[17:49:52] <LpMode> anyway, let's make like he doesn't exist
[17:50:13] <LpMode> can i ask here for help about Jongo?
[17:52:47] <qmdb2> GothAlice is the slut #1 of MongoDB - this is constantly licking the balls of Derick and Eliot Horowitz. Gay scum.....and as dumb as a brick
[17:54:33] <iwzeiqweuo> GothAlice, scum like you belongs into the dumpster
[17:54:39] <iwzeiqweuo> you useless piece of MongoDB shit
[17:55:20] <LpMode> really he doesn't have something better to do?
[17:55:42] <GothAlice> No, he really doesn't. It seems he screwed up something, lost some data (that was in MongoDB at the time), and lost his job. So, he's… upset.
[17:55:48] <GothAlice> And has a lot of free time.
[17:56:47] <ktchup> if he came and asked nicely maybe he woudlnt have lost his job
[17:57:59] <LpMode> RTFM?
[17:58:08] <GothAlice> Read the "fine" manual.
[17:58:17] <GothAlice> Insert alternate words for "fine" as desired. ;)
[17:58:22] <LpMode> ah, ok, i read on wikipedia
[17:58:52] <LpMode> freacking
[18:10:41] <RWOverdijk> lol
[18:10:46] <RWOverdijk> "Your behaviour is not conducive to a positive support environemnt"
[18:10:58] <RWOverdijk> Most level headed response to a troll, ever.
[18:25:32] <LpMode> anyway, i'm new to mongo and NoSQL databases, i'm trying to update some data in my db using jongo. in the database the '_id' key matches with an UUID Object, so, when i insert my ClassName.class in the database i get a document like http://pastebin.com/4rqtRyaS . When i try to update the document with MongoCollection.update("{_id: \"" + <uuid> + "\"}").with(new ClassName) i get an error because <uuid> is different from LUUID("<uuid>").
[18:25:32] <LpMode> How can i get this second string? ( "LLUID(" + <uuid> + ")" doesn't work) thanks
[18:28:08] <cheeser> can you pastebin your actual code and error?
[18:38:57] <LpMode> excuse me, i went akf for few minutes.
[18:39:17] <LpMode> this is the class that calls the db http://pastebin.com/fzicXzy1
[18:39:46] <LpMode> http://pastebin.com/ZNNpUPds
[18:39:55] <LpMode> ant the error http://pastebin.com/Nj8ASaNf
[18:41:36] <LpMode> and*
[18:42:02] <kali> "conducive" ? that's nice
[18:44:27] <LpMode> ?
[18:45:28] <kali> LpMode: can you show us a typical document too ?
[18:46:13] <LpMode> moment
[18:48:53] <LpMode> http://pastebin.com/qDDKc2my here it is
[18:49:35] <kali> i must say i'm not sure what LUUID is
[18:50:29] <LpMode> i think it's made by jackson in jango
[18:52:50] <kali> sorry, too many things i don't use. i hope somebpdy else can help
[18:53:10] <LpMode> ok, thanks anyway
[18:55:43] <LpMode> is there another simple library to start with mongo or i should use only mongo driver?
[18:56:42] <cheeser> i'm a fan of morphia, personally.
[18:58:31] <LpMode> ok, i'll try
[19:24:20] <fkt> i have an entry structured like such: { "_id" : ObjectId("54fc4db01b8562722b9e8c67"), "03082015" : { "test" : { "data1" : "490.56", "data2" : [ 6, 12, 21 ], "data3" : [ 5, 32, 74 ] }}} . each entry has a datestamp object which contains other items. how would i query mongo for that specific date - in this example - 03082015
[19:24:53] <fkt> would have thought db.test.find({"03082015": {}}) from mongo console