PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Tuesday the 10th of April, 2018

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[07:37:25] <Haris> hello all
[07:37:40] <Haris> how to have 3.6.x on Ubuntu Xenial (16.x)
[08:33:12] <Haris> where do I get the gpg key for 3.6.x from ?
[08:33:34] <Derick> it's on the website I think - let me check
[08:33:48] <Haris> got it
[08:33:59] <Haris> just had to replace curl with wget
[08:34:01] <Haris> for this one
[08:34:01] <Derick> Haris: https://docs.mongodb.com/master/tutorial/install-mongodb-on-debian/#import-the-public-key-used-by-the-package-management-system
[08:34:05] <Derick> oh, OK :)
[08:35:19] <Haris> I'm trying to install 3.6.x on ubuntu 16. I'm getting msg for pkgs being un-authenticated. I thought importing the gpg key would do it. but its still repeating the same msg
[08:35:40] <Haris> WARNING: The following packages cannot be authenticated!
[08:35:40] <Haris> mongodb-org-shell mongodb-org-server mongodb-org-mongos mongodb-org-tools mongodb-org
[08:35:40] <Haris> E: There were unauthenticated packages and -y was used without --allow-unauthenticated
[08:38:27] <Haris> I took key for 3.6 from https://www.mongodb.org/static/pgp/
[08:38:31] <Haris> am I using the wrong key ?
[08:38:41] <Haris> https://www.mongodb.org/static/pgp/server-3.6.asc
[08:38:42] <Derick> Haris: https://docs.mongodb.com/master/tutorial/install-mongodb-on-debian/#import-the-public-key-used-by-the-package-management-system << there it says which one to use
[08:39:00] <Haris> there it says to use the one for 3.2. I want the key for 3.6
[08:39:20] <Haris> ah, this is separte/different page
[08:39:32] <Haris> tried this also. still get same msg
[08:40:20] <Haris> gpg: key 91FA4AD5: "MongoDB 3.6 Release Signing Key <packaging@mongodb.com>" not changed
[08:40:37] <Haris> WARNING: The following packages cannot be authenticated!
[08:40:54] <Haris> which keys are pkgs for 3.6 signed with ?
[08:40:56] <Derick> that's the right one though I think
[08:41:01] <Derick> let me test locally
[08:43:33] <Derick> Haris: works for me, which repository did you add, was it "http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.6" ?
[08:46:18] <Haris> root@ubuntu16:/etc/apt/sources.list.d# cat mongodb-org-3.6.list
[08:46:18] <Haris> deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse
[08:46:32] <Haris> I changed 3.2 to 3.6
[08:47:21] <Haris> I was reading ----> root@ubuntu16:/etc/apt/sources.list.d# cat mongodb-org-3.6.list
[08:47:21] <Haris> deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse
[08:47:26] <Haris> oops. my bad
[08:47:29] <Haris> https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-16-04
[08:47:31] <Haris> this one
[08:47:43] <Haris> its referenced the key and URL for 3.2
[08:47:59] <Haris> I changed the 3.2 to 3.6 for sources.list part
[08:48:06] <Haris> got the key manually from mongodb site
[08:49:13] <Haris> ok, ran apt-get update; aptitude update. and now the install command [apt-get install -y mongodb-org] is working ok
[08:49:42] <Haris> had to update apt-get / aptitude after manual gpg key install to make it work
[08:51:20] <Derick> oh, ok. I didn't know that was needed. I didn't think we had xenial packages yet though
[08:51:44] <Derick> we don't : http://repo.mongodb.org/apt/debian/dists/
[08:51:59] <Derick> nm, I looked at debian, not ubuntu :)
[08:52:04] <Derick> ← needs more tea
[08:52:55] <Derick> anyway, the right doc page is: https://docs.mongodb.com/master/tutorial/install-mongodb-on-ubuntu/ if you want to refer to it again
[09:03:04] <Haris> noted
[10:42:37] <fcanela> Hello. I am having a little problem with mongo official image. I am unable to set up default user and password
[10:42:49] <fcanela> StackOverflow, entrypoint script and everything says that I should be using MONGO_INITDB_ROOT_USERNAME/PASSWORD variables
[10:43:01] <fcanela> but in my minimal reproducible example I am unable to authenticate using mono cli or any other tool
[10:43:10] <fcanela> Here is the minimal reproducible example and the command I am using for connecting https://github.com/docker-library/mongo/issues/263
[10:44:13] <Derick> hmm
[10:44:20] <Derick> I would always do auth against /admin:
[10:44:25] <Derick> mongo -u user -p password --verbose localhost:27017/admin
[10:45:26] <Derick> btw, it's an official package of MongoDB by *docker*, not an official package by *MongoDB* :)
[10:50:12] <fcanela> seems like /admin gives the same result :(
[10:51:29] <fcanela> Derick: thanks for the information, I was not sure about that
[10:51:49] <Derick> fcanela: let's see what they say about it in the issue :)
[10:52:01] <fcanela> Do you mind if I keep the topic here? I suppose this is a very nice place to find someone with experience with mongo and docker
[10:52:11] <Derick> sure
[10:52:27] <Derick> maybe somebody else knows. I don't really know docker, but I do know MongoDB :)
[10:54:07] <Derick> fcanela: maybe this helps: https://hub.docker.com/_/mongo/
[10:54:46] <fcanela> yes, it is already read, environment variables used for configurations are not documented
[10:54:54] <Derick> ah :)
[10:55:02] <fcanela> but shown on the docker entrypoint (the startup script)
[10:55:18] <fcanela> it looks like those environment variables are passed as --auth parameter to mongo
[10:56:07] <Derick> yup, near https://github.com/docker-library/mongo/blob/master/3.6/docker-entrypoint.sh#L291
[10:56:31] <fcanela> yes, exactly :)
[10:57:40] <Derick> does it actually add --auth to the command? could you try connecting *without* auth?
[11:09:05] <fcanela> Derick: hey, it connects without credentials
[11:10:57] <fcanela> Derick, do you mind if I update the issue with this information giving credits to you?
[11:35:10] <Derick> go for it
[17:50:11] <croberts> hi, is there a way to check which storage engine is being used without having the db running like in a db header or anything? we are using the puppet mongodb module to deploy mongo and are changing from 2.6 to 3.4 and want to have a way on new installs to use wiredtiger and use mmapv1 if there is currently data present
[17:50:40] <croberts> the config file that puppet generates does not put anything in for the storage engine so by default its wiredtiger