Date: Wed, 25 Apr 2018 16:53:43 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 227716] databases/mongodb36: createUser fails Message-ID: <bug-227716-7788-VOg4BVQqug@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-227716-7788@https.bugs.freebsd.org/bugzilla/> References: <bug-227716-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227716 --- Comment #11 from vermaden@interia.pl --- (In reply to dev from comment #10) I also do all the 'FreeBSD Promotion' for free I know what You mean :p That option helps (with vm.old_mlock set to 0). Here is the mongo createUset output (success). replica0:PRIMARY> use admin switched to db admin=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 c replica0:PRIMARY> db.createUser( ... { ... user: "admin", ... pwd: "ADMIN-PASSWORD", ... roles: [ { role: "userAdminAnyDatabase", db: "admin" } ] ... } ... ) Successfully added user: { "user" : "admin", "roles" : [ { "role" : "userAdminAnyDatabase", "db" : "admin" } ] } replica0:PRIMARY>=20 Here is the diff for /usr/local/etc/rc.d/mongod script I propose to be incl= uded in the port. # diff -u /root/mongod.ORG /usr/local/etc/rc.d/mongod=20 --- /root/mongod.ORG 2018-04-25 20:50:04.326644000 +0200 +++ /usr/local/etc/rc.d/mongod 2018-04-25 20:50:14.019943000 +0200 @@ -30,7 +30,7 @@ : ${mongod_enable=3D"NO"} : ${mongod_limits=3D"NO"} : ${mongod_dbpath=3D"/var/db/mongodb"} -: ${mongod_flags=3D"--logpath ${mongod_dbpath}/mongod.log --logappend"} +: ${mongod_flags=3D"--logpath ${mongod_dbpath}/mongod.log --logappend --setParameter=3DdisabledSecureAllocatorDomains=3D\*"} : ${mongod_user=3D"mongodb"} : ${mongod_group=3D"mongodb"} : ${mongod_config=3D"/usr/local/etc/mongodb.conf"} --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-227716-7788-VOg4BVQqug>