[Bug 227716] databases/mongodb36: createUser fails

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Apr 25 16:53:46 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227716

--- Comment #11 from vermaden at 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                                                           
           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> 



Here is the diff for /usr/local/etc/rc.d/mongod script I propose to be included
in the port.



# diff -u /root/mongod.ORG /usr/local/etc/rc.d/mongod 
--- /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="NO"}
 : ${mongod_limits="NO"}
 : ${mongod_dbpath="/var/db/mongodb"}
-: ${mongod_flags="--logpath ${mongod_dbpath}/mongod.log --logappend"}
+: ${mongod_flags="--logpath ${mongod_dbpath}/mongod.log --logappend
--setParameter=disabledSecureAllocatorDomains=\*"}
 : ${mongod_user="mongodb"}
 : ${mongod_group="mongodb"}
 : ${mongod_config="/usr/local/etc/mongodb.conf"}

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list