PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Saturday the 14th of November, 2015

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[00:04:48] <godzirra> Is there a way to get mongo to return json? Instead of ObjectId(“something”)?
[00:32:18] <cheeser> nope
[00:34:04] <godzirra> Thanks.
[01:12:45] <godzirra> If I have a lastModified date like so: " ISODate("2015-11-10T02:27:34.756Z"), how come this doesn't return it? db.users.find({ lastModified: {$gte: new Date(2015, 11, 01)} },{lastModified: true})
[01:38:55] <trax> hi
[01:39:25] <godzirra> Howdy.
[01:44:55] <godzirra> If I have a lastModified date like so inside a record as lastModified: ISODate("2015-11-10T02:27:34.756Z"), how come this doesn't return it? db.users.find({ lastModified: {$gte: new Date(2015, 11, 01)} },{lastModified: true})
[03:12:53] <godzirra> Can anyone please take a look at this error and tell me what's going on? https://gist.github.com/slooker/513542dc2e801d85a5e3
[03:13:09] <godzirra> FOr some reason my mongo command won't work via a shell script, but if I cut and paste it, it works fine
[03:31:00] <joannac> godzirra: Dhttp://stackoverflow.com/questions/6996999/how-can-i-use-mongodump-to-dump-out-records-matching-a-specific-date-range
[03:31:53] <godzirra> Hm. So it needs to be json, and I'm not providing that... but why does it work when I cut and paste it and not otherwise?
[03:34:39] <joannac> cut and paste it how?
[03:35:01] <godzirra> So line 5 is the output of what line 2 spits out to the shell
[03:35:09] <godzirra> if I cut and paste that line (minu s the ## of course) it works fine
[03:35:26] <godzirra> it's the same command being executed in the shell, but if I cut and paste the output of the echo it works. Does my explanation make sense?
[03:37:34] <joannac> yes, but I have no idea
[03:37:45] <joannac> are the 2 lines next to each other in your script?
[03:37:51] <godzirra> Yes.
[03:37:55] <godzirra> Line 49 and 50.
[03:38:00] <godzirra> Nothing in between changing variables.
[03:40:56] <joannac> I think the variables are not being evaluated
[03:41:30] <godzirra> Why wouldn't they get evaluated there but they are in the echo? Not saying you're wrong... just not sure why that would be.
[03:42:09] <joannac> no idea, but I don't do bash scripting
[03:42:35] <joannac> if you replace all the $-varaibles with actual values in your script, does it work?
[03:42:41] <joannac> my guess is yes
[03:42:45] <godzirra> let me try that.
[03:44:38] <godzirra> Negative. assertion: 16619 code FailedToParse: FailedToParse: First character in field must be [A-Za-z$_]: offset:17
[03:44:59] <godzirra> Ah.
[03:45:04] <godzirra> It was \$gte
[03:45:08] <godzirra> It needed to not be escaped
[03:45:14] <godzirra> trying to put the variables back in to test
[03:48:13] <godzirra> Thanks :)
[03:49:38] <Doyle> Hey. How do you get mongoperf to bench a volume other than /
[03:49:39] <Doyle> ?
[03:50:15] <Doyle> ah, it creates the temp file in the working directory...
[03:50:17] <Doyle> I think I got it
[04:45:48] <Doyle> I could swear I remember mongoperf ending at some point... but maybe it just goes on forever
[04:47:39] <Doyle> Runs in trollmode by default. Use --notroll to enable end phase.
[05:22:02] <brallan> Hello. I am having problems starting MongoDB process. More details here -> https://paste.fedoraproject.org/290385/47469916/
[05:22:15] <brallan> This is what I get when execute mongod -> https://paste.fedoraproject.org/290387/70176144/
[05:32:31] <Doyle> Here's a good bit of performance info for you folks. 1x 2000GB GP2 EBS volume at 6000IPOPS on a 6000IOPs instance maxes at about 22MB/s, 6000IOPS, while 4x500GB GP2 EBS volumes at 6000IOPS(sum) on the same instnace type hits 47MB/s, 12000 IOPS according to mongoperf.
[08:57:52] <Lope> my mongodb journal grew to the point where it filled my VM's disk and then my app went down, and there was no space for my logs either. How can I auto-truncate the mongodb journal to a certain age, like 5 days or whatever?
[09:08:48] <Lope> htop/j #linux
[09:08:53] <Lope> lol
[10:36:05] <Lope> Is there any good command to run after a crash? to verify the mongoDB data?
[11:13:03] <JoshK_> Hello - is there any way I can downgrade the pdfile version to 4.22 from 4.5?
[12:25:45] <Rafibd01717> I am using Ubuntu 14.04LTS and terminal to use mongodb
[12:25:58] <Rafibd01717> I use sudo service mongod start to start mongodb server
[12:26:15] <Rafibd01717> I just want to know how can I start a server with authentication enabled
[12:37:31] <Rafibd01717> <Rafibd01717> I am using Ubuntu 14.04LTS and terminal to use mongodb [18:21] <Rafibd01717> I use sudo service mongod start to start mongodb server [18:21] == ciwolsey [~ciwolsey@cpc6-donc11-2-0-cust230.17-1.cable.virginm.net] has joined #mongodb [18:21] <Rafibd01717> I just want to know how can I start a server with authentication enabled
[12:38:09] <ciwolsey> ?
[12:39:16] <Rafibd01717> I just want to know how can I start a server with authentication enabled
[12:44:01] <Rafibd01717> I just want to know how can I start a mongod server with authentication enabled in terminal
[12:44:30] <bendem> by configuring your mongodb instance
[12:45:27] <Rafibd01717> bendem: looking for an answer
[12:45:33] <Rafibd01717> as said I am a newbie
[12:45:46] <Rafibd01717> short answers will not help either of us
[12:46:02] <Rafibd01717> can't you tell me the command?
[12:46:17] <bendem> there is no such thing as a command to enable authentication
[12:46:39] <Rafibd01717> I tried using sudo service mongod --auth start. but its not working
[12:46:48] <bendem> of course it does not
[12:47:04] <Rafibd01717> then how?
[12:47:08] <bendem> as I said, you need to configure your mongodb instance
[12:47:18] <bendem> and I gave you exactly what you needed for that
[12:47:20] <Rafibd01717> how?
[12:51:13] <Rafibd01717> sorry your help wasnt enough for a newbie
[12:51:53] <bendem> the best way to stop being a newbie is to read the doc, so stop wasting your time and do that.
[12:52:26] <bendem> the google search I gave you gives your everything you need in the first 2 links
[12:54:28] <Rafibd01717> bendem: look reading doc is not a problem but being a newbie when you don't have any clue and you are prompted to go through a thousands page doc you are surely not getting what you are looking for
[12:55:32] <bendem> 131 lines*
[12:55:40] <bendem> not thousands of pages
[12:56:06] <Rafibd01717> you didn't provided me anything like this rather giving me a google SERP
[12:56:19] <Rafibd01717> with 10 links to thousands of webpages
[12:56:32] <bendem> and it looks like clicking the first link was too hard
[12:56:33] <Rafibd01717> interlinked with those 10 master links
[12:56:55] <Rafibd01717> again you are missing the point and arrogantly replying to me
[12:57:08] <Rafibd01717> I said I am a newbie who has no clue
[12:57:14] <bendem> I don't care
[12:57:26] <bendem> this is the internet, not school
[12:57:53] <Rafibd01717> then you dont need to explain me anything
[12:58:05] <Rafibd01717> just be quite and oil you own machine
[12:58:21] <Rafibd01717> unfotunately internet is full of stupids nowadays
[12:58:33] <Rafibd01717> the good thing is there are some good persons yet now
[12:59:14] <jamiel> Does anyone know if WiredTiger maps/compresses field names removing the space advantage of using small field names on large datasets?
[14:45:28] <basiclaser> hello
[14:46:53] <basiclaser> I’m confused about how I should be connecting to a database. In my project I successfully communicate with my auth-database, which relies on passport and passport-local to connect. However, i would like to make a second database which just prints a public list of information.
[14:50:10] <basiclaser> the passport/mongoose code I have automatically generates an ‘accounts’ database(sub-database?collection?) within my running database(database-server?). I think the part I’m missing with public list database/collection is how to specify to my expressJS server which sub-database to look in to find the content ( here represented by ‘test’)
[14:50:11] <basiclaser> http://imgbin.org/images/27085.png
[14:56:47] <rafibd01717> how can I start mongodb server with authentication enabled mode?
[14:56:59] <rafibd01717> I am using terminal of Ubuntu
[14:57:17] <basiclaser> rafibd01717: you mean ‘ sudo mongo ‘ ?
[14:57:35] <rafibd01717> sudo service mongod start to start the service
[14:57:47] <rafibd01717> sudo service mongod stop to stop
[14:58:02] <rafibd01717> mongo to start mongo shell from terminal
[14:58:35] <rafibd01717> but how to restart mongodb with authentication enabled mode using terminal?
[15:02:01] <rafibd01717> basiclaser: any clue?
[15:10:10] <rafibd01717> ping
[16:16:30] <bz-> h9
[16:16:32] <bz-> hi
[16:17:26] <bz-> i have a question for an update statement
[16:18:06] <bz-> i have a sset like this:
[16:18:07] <bz-> "_id" : ObjectId("56475b6e82804b5b29a704be"), "prodacts" : [ "Soap", "Shampoo", "Lotion" ] }
[16:18:24] <bz-> how can i update it so that "Soap" contains sub arrays
[20:26:35] <dgaff> Hey all, is there a good go-to db tuner?
[21:55:14] <d-snp> hi
[21:55:32] <d-snp> what's mongodb doing when it takes a long time to exit? is there some way I could see how much longer it's going to take?
[21:59:07] <d-snp> it's been unresponsive since almost an hour now
[22:08:01] <arunbabu> I need to list all the employees in employees_collection whose deptid field is present in selected_depts_collection. Pointers on what to search for?
[22:25:00] <d-snp> hm there's an exception in the logs..