PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Friday the 11th of January, 2019

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[01:03:59] <Jonno_FTW> hi, I have to import a large amount of data, should I create the index before or after?
[10:54:31] <Derick> it probably doesn't matter
[15:00:20] <zelest> I installed mongod 3.2.13 and built the mongo-tools myself.. and now when I run "mongorestore" it gives me "Failed: error connecting to db server: no reachable servers" even though I can reach the server through "mongo"
[15:01:09] <zelest> I see that mongorestore creates 5-6 connections (through the mongod.log) but yet it complains?
[15:01:13] <zelest> What am I missing?
[15:18:39] <Derick> ... I don't know?
[15:19:14] <guardian> hello, given a cursor, is there a way to only convert say the first 10 elements to an array?
[15:19:29] <guardian> or should I use a limit in my aggregation first?
[15:20:02] <zelest> Derick, Ah, thanks though :) Just wanted to make sure the channel wasn't completely dead :P
[15:20:14] <zelest> Derick, was ages since I joined here :)
[15:26:39] <Derick> zelest: it's pretty much dead, and I'm leaving in a week's time
[15:27:15] <Derick> guardian: no specific built in way, but you can of course just iterate only the first 10 items, and then just put them in an array
[15:28:44] <zelest> Derick, oh?
[15:30:12] <Derick> zelest: I'm leaving MongoDB
[15:30:21] <zelest> Ah, where ya going? :)
[15:30:27] <zelest> and why leaving? :)
[15:30:29] <Derick> going to work for myself again.
[15:30:35] <zelest> Cool
[15:30:36] <Derick> It's time for a change, it's been 7 years.
[15:30:47] <zelest> I know the feeling, been at the same place for 8 years here :/
[15:31:05] <Derick> I might stick around here... nobody from MongoDB wants to take it over, it seems.
[15:31:14] <zelest> :/
[15:31:39] <zelest> bah, doesn't work even with a replset defined.. the hell is wrong.. :(
[15:38:20] <guardian> Derick: yeah sure thanks
[15:46:14] <elspru> okay no matter what I do authentication always fails
[15:46:36] <elspru> I'm using docker with mongoose
[16:13:01] <elspru> okay when I try disabling authentication it tells me that authentication is required to insert
[16:13:03] <elspru> what gives?
[16:13:16] <elspru> I've been stuck on this for several days now
[16:13:21] <elspru> it's super frustrating
[16:21:41] <thafdwes> is there a way to disable "authenticate stragglers"?
[16:58:00] <thafdwes> it doesn't make any sense cause I can login from a mongo shell no problem
[16:59:13] <Derick> did you specify the auth database /admin in the URL?
[17:01:25] <thafdwes> yeah, I use the exact same connection string using mongo and it works
[17:01:40] <thafdwes> I dono maybe it's a node/mongoose library issue?
[17:02:30] <Derick> it's possible.
[17:25:38] <thafdwes> hmmm, I tried it even with the node MongoClient and it gives same result
[17:26:58] <thafdwes> mongodb://root:asdf@mongodb:27017/greenapp?authSource=admin
[17:28:11] <thafdwes> /srv/www/node_modules/mongodb/lib/operations/mongo_client_ops.js:466 throw err MongoError: Authentication failed.
[17:30:18] <Derick> I'd change /greenapp to /admin
[17:34:50] <thafdwes> hmmm same result