PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Tuesday the 9th of August, 2016

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[01:54:21] <ycon_> Hi all, I'm trying to use MongoClient.connect, but it keeps throwing this error (events.js141)
[01:54:34] <ycon_> Can anyone advise? I've got a sample of my super simple code- http://dpaste.com/1DWP59K
[02:03:30] <alexi5> the url you use to connect looks invalid
[02:03:37] <alexi5> line 27 ---> "your-mongodb-url"
[02:04:24] <alexi5> a valid url looks like mongodb://localhost or mongodb://localhost:27017
[02:04:58] <alexi5> ycon_: see my response above
[02:06:32] <ycon_> Oh thanks
[02:06:55] <ycon_> It was two listeners on port 3000
[02:07:06] <ycon_> I'm deciding between mongoDB & firebase for a todo app
[02:07:13] <ycon_> what are peoples thoughts?
[02:24:20] <ycon_> Not getting an error in the console, but this keeps timing out. My db.collection is correct
[02:24:56] <ycon_> http://dpaste.com/3E01TJC
[02:30:25] <ycon_> I'm trying to use the .find
[11:33:59] <OrNix> hi. tell me please, how can i dop database with invalid name? � (empty)
[11:37:41] <alexi5> hello
[11:42:24] <alexi5> is mongodb for applications using huge amounts of data ?
[11:44:56] <Derick> it's a database, so, yes?
[11:50:59] <alexi5> actually i should have said big data
[11:51:43] <alexi5> is it only good for big data solutions (peta bytes of data) or do small solutions use it as well (ecommerce applications,small catalogs..)
[11:59:03] <SteamWells> /msg nickserv help register
[11:59:04] <Derick> alexi5: I use it for all my small projects
[11:59:19] <SteamWells> sorry, hi
[11:59:48] <SteamWells> why would i ever see Queued Writes on a Secondary server in a Replica Set?
[12:00:07] <SteamWells> as far as I understand from the mongo docs, primary is always the target for writes, is that correct?
[12:00:47] <Derick> SteamWells: the writes also need to be written to the secondary though
[12:01:28] <SteamWells> sure, but thats by repl_updates right?
[12:01:45] <SteamWells> my metrics show QW's directly
[12:05:05] <SteamWells> this is what I read from here - https://docs.mongodb.com/manual/core/replica-set-write-concern/
[13:37:31] <Twinner> yay!
[13:39:16] <Twinner> Okay, simple question, what the hell am I doing wrong here: http://hastebin.com/eninoboqax.sm
[13:39:22] <Twinner> It simply doens't appear to do anyhing
[13:39:50] <Twinner> I am in the correct database, I went into the database by calling: use MyDatabase
[13:40:06] <StephenLynx> what is it outputting?
[13:40:16] <Twinner> it does create the WebApiUsageCounts collection, but its empty
[13:40:36] <StephenLynx> try using nothing but the first match.
[13:40:38] <Twinner> it is building this off of a 1.4 million record collection, so maybe its just taking a while
[13:40:41] <StephenLynx> see if it outputs anything
[13:40:45] <StephenLynx> wait
[13:40:52] <StephenLynx> are you waiting for the query to finish?
[13:41:04] <Twinner> okay, noob question, how do I know if it finishes
[13:41:10] <StephenLynx> v:
[13:41:11] <Twinner> it returns and I can continue to enter commands
[13:41:17] <StephenLynx> yeah, it finished.
[13:41:24] <Twinner> ok
[13:41:29] <StephenLynx> try using nothing but the first match.
[13:41:55] <Twinner> db.WebApi.aggregate([ { $match: { Environment: "PROD" }} ]).result
[13:41:57] <Twinner> this returns nothing
[13:42:05] <StephenLynx> result?
[13:42:18] <StephenLynx> what
[13:42:19] <Twinner> from what I saw on stack overflow that displays the results?
[13:42:25] <StephenLynx> does it?
[13:42:27] <StephenLynx> never heard of it.
[13:42:29] <StephenLynx> remove that.
[13:42:35] <Twinner> did so jus tnow, still shows nothing
[13:42:41] <StephenLynx> then that's your problem.
[13:42:43] <Twinner> I know the value is a valid match
[13:42:49] <StephenLynx> apparently it isn't.
[13:43:14] <StephenLynx> try .find({Environment: "PROD"})
[13:43:21] <StephenLynx> even better, findOne
[13:45:52] <Twinner> wierd, it returns null, but if I run that same query in Mongo management studio it returns 1.4 million results...
[13:46:04] <Twinner> maybe I'm having an issue before even any of this
[13:46:35] <StephenLynx> maybe you are on the wrong DB or collection.
[13:46:42] <StephenLynx> try show collections
[13:48:46] <Twinner> okay
[13:48:55] <Twinner> I can see my collection that I'm trying to query
[13:50:58] <StephenLynx> do a .count() on it
[13:52:17] <Twinner> what the heck, it returns zero
[13:52:31] <Twinner> could it be due to how i'm connecting into mongo?
[13:52:42] <StephenLynx> v:
[13:52:45] <StephenLynx> no idea.
[13:53:17] <Twinner> Nope, I'm just a complete moron
[13:53:43] <StephenLynx> kek
[13:53:47] <Twinner> it helps to have the casing right
[13:54:05] <StephenLynx> kek
[13:54:14] <StephenLynx> I wonder why are you using upper camel on that to begin with
[13:54:20] <StephenLynx> and same for fields.
[13:54:26] <StephenLynx> its relly odd.
[13:54:40] <Twinner> I'm a C# guy, so its habit
[13:54:44] <StephenLynx> nonsense.
[13:54:49] <StephenLynx> C# doesn't force you to do that.
[13:54:58] <Twinner> its the language space to use CamelCase
[13:55:01] <Twinner> spec*
[13:55:05] <StephenLynx> what
[13:55:10] <StephenLynx> are you serious?
[13:55:14] <daumie> hello how can I store pics/docs in mongodb : using nodejs
[13:55:21] <StephenLynx> daumie, gridfs
[13:55:36] <StephenLynx> I can link you the part of a project of mine that I do exactly that.
[13:55:37] <Twinner> yeah, CamelCase for methods and properties, pascalCase for fields and locals
[13:55:51] <StephenLynx> and if you don't do that, the code is invalid?
[13:55:56] <Twinner> you can ignore the spec, but that's the spec
[13:56:00] <StephenLynx> then is not a spec.
[13:56:03] <daumie> please do StephenLynx
[13:56:10] <StephenLynx> if it can be ignored is just a convention.
[13:56:21] <StephenLynx> a spec breaks things when ignored.
[13:56:41] <daumie> for different users StephenLynx
[13:56:42] <Twinner> Okay, yeah, and msdn agrees :d
[13:56:47] <StephenLynx> using upper camel for methods and properties is awful.
[13:56:55] <StephenLynx> no surprise its from microsoft
[13:57:04] <Twinner> lol *shrugs*
[13:57:22] <Twinner> to each their own preference
[13:57:31] <StephenLynx> https://gitgud.io/LynxChan/LynxChan/blob/master/src/be/engine/gridFsHandler.js daumie
[14:01:23] <Twinner> welp, thanks for the help
[14:01:26] <Twinner> have a good one
[14:05:22] <daumie> Thanks man StephenLynx
[17:10:58] <Ben_1> hi
[17:12:23] <Ben_1> I write several entries to my mongoDB using the async java driver. But I get this exception: http://pastebin.com/xp6Wipjq
[17:12:42] <Ben_1> someone an idea what the problem is?
[17:26:50] <Ben_1> mh it seems the async driver library is closing the connection but I don't know why.
[19:18:57] <n1colas> Hello
[20:02:29] <bjpenn> using mongotop and it gives me 1sec interval snapshots of read/writes, but the time it shows per those 1 second intervals is over 1000ms
[20:02:37] <bjpenn> im seeing 20,000ms under read/writes etc
[20:03:08] <bjpenn> does mongotop not show amount of time spent reading/writing for the interval?
[20:03:30] <bjpenn> if it does, it should be under 1000ms since the interval is just 1 second (1000ms)
[20:03:38] <bjpenn> or am i confused about something
[20:18:07] <StephenLynx> what is mongotop?
[20:21:42] <cheeser> it's top for mongo
[20:22:25] <StephenLynx> v:
[20:22:34] <StephenLynx> >man top
[20:22:39] <StephenLynx> l-lewd
[20:22:44] <cheeser> you're unfamiliar with top?
[20:22:48] <StephenLynx> yeah
[20:22:52] <StephenLynx> I use ps
[22:30:15] <bjpenn> im getting 160% db lock on mongodb, is this supposed to be alarming? it seems operations are still going through to the DB...
[22:30:23] <bjpenn> im confused about the value 160%
[22:30:29] <bjpenn> at 100% doesnt that mean nothing can write to the db?
[22:30:36] <bjpenn> or nothing can `update` to the DB?