PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Thursday the 30th of May, 2019

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[00:09:06] <Raticide> Hi. I'm running mongodb 3.6 in docker and trying to get it to use an existing data volume, but mongo is refusing to find any of the data in there. I've run --repair but that didn't do anything, and there's no errors. Any ideas what I need to do?
[00:45:32] <Raticide> I fixed it, and it was somehow dockers fault. I just `docker container prune` and started fresh, now it sees it.
[11:51:57] <Donitzo> yo lo
[11:52:53] <Donitzo> so, I have a collection in which _id is the unix timestamp. What I'd like to do now is select all documents n seconds back INCLUDING one additional point
[11:52:58] <Donitzo> not really sure what type of query that would be
[11:53:55] <Donitzo> I want to do a bit of the old linear interpolation
[17:31:40] <zfigz> having issues here with turning on auth…as soon as i turn on auth everything fails / can't connect.
[17:32:03] <zfigz> everything goes into a recovery state…"could not find member to sync from" etc
[17:32:31] <zfigz> maybe i need the cluster auth mode set to true?
[17:34:18] <zfigz> and this is 3.6
[17:38:54] <GothAlice> zfigz: If authentication is to be enabled, ensure you have a shared key between the existing nodes ready to go.
[17:40:11] <GothAlice> zfigz: http://www.dba86.com/docs/mongo/2.4/tutorial/deploy-replica-set-with-auth.html#procedure — note the creation of the users and keyfile prior to enabling authentication.
[17:41:55] <zfigz> GothAlice: Ah, that just might be the ticket! Thank you GotAlice
[17:42:51] <GothAlice> Latest docs: https://docs.mongodb.com/manual/tutorial/enable-authentication/ + https://docs.mongodb.com/manual/tutorial/enable-authentication/
[17:43:14] <GothAlice> Er, silly clipboard buffers. Second link should have been: https://docs.mongodb.com/manual/core/security-internal-authentication/
[17:46:55] <GothAlice> Donitzo: https://github.com/marrow/mongo/pull/11/commits/a7a02106ec4181d07d1d772a216b1a5d6d47e1ef#diff-4745b5c62d4d0d557c8ccdcde5af16e5R153 — gah, that’s quite the link.
[17:47:21] <GothAlice> Donitzo: I link this to demonstrate that simple range querying against artificially constructed ObjectId values (whose only populated component is the timestamp) works A-OK.
[17:47:33] <GothAlice> It’s intended behaviour.
[17:48:10] <GothAlice> (Reference your driver’s ObjectId implementation for your own “from_timestamp” helper.)
[17:48:28] <Donitzo> I'm using the mongolab API
[17:48:29] <Donitzo> hmm
[17:49:58] <GothAlice> Donitzo: Packing them yourself is quite trivial: https://github.com/marrow/mongo/blob/next/marrow/mongo/util/oid.py#L228-L252
[17:50:38] <GothAlice> “>I” (network endian packed integer) + 8 null bytes.
[18:28:38] <zfigz> GothAlice: any recommendations on creating a pem key for the replica members?
[18:29:25] <GothAlice> zfigz: Follow the guide. Also: man openssl
[20:48:55] <zfigz> GothAlice: not using self signed certs…bundling up cert and key, no idea where it's not working.
[20:49:20] <zfigz> GothAlice: also verified the certs against the ca and it's valid.
[20:52:47] <zfigz> here's a snippet of the config file, https://pastebin.com/SjtjF107
[20:52:54] <zfigz> it's for a 3 member replica set.
[20:56:31] <zfigz> any suggestions/advice would be greatly appreciated