MongoDB

Unauthorized dropDatabase in MangoDB

Normally when you want to drop a database in MongoDB, you just need these command. > use mydatabase; switched to db mydatabase > db.dropDatabase(); Error message with Unauthorized But when you see this error, it mean you are not authorized and not enough level access to run the command. Drop database in MongoDB, you need MongoDB root role. { "ok" : 0, "errmsg" : "not authorized on mydatabase to execute command { dropDatabase: 1.0, writeConcern: { w: \"majority\", wtimeout: 600000.0 }, lsid[…]

Unauthorized dropDatabase in MangoDB Read More »

How to Install MongoDB 3.2 on CentOS 7

[code lang="shell"] vim /etc/yum.repos.d/mongodb.repo [/code] Paste this to the file and save using :wq [code lang="shell"] [MongoDB] name=MongoDB Repository baseurl=http://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/ gpgcheck=0 enabled=1 [/code] Download and install mongodb using yum [code lang="shell"] yum install mongodb-org -y [/code] Start mongod and configure auto start while system boot [code lang="shell"] /etc/init.d/mongod restart chkconfig mongod on [/code] Check all

How to Install MongoDB 3.2 on CentOS 7 Read More »

WARNING: Cannot detect if NUMA interleaving is enabled. Failed to probe “/sys/devices/system/node/node1”: Permission denied

[code lang="shell"] [root@master ~]# mongo MongoDB shell version: 3.2.3 connecting to: test Server has startup warnings: 2016-02-29T23:11:36.666+0700 I CONTROL [initandlisten] 2016-02-29T23:11:36.667+0700 I CONTROL [initandlisten] WARNING: Cannot detect if NUMA interleaving is enabled. Failed to probe "/sys/devices/system/node/node1": Permission denied 2016-02-29T23:11:36.667+0700 W CONTROL [initandlisten] 2016-02-29T23:11:36.667+0700 W CONTROL [initandlisten] Failed to probe "/sys/kernel/mm/transparent_hugepage": Permission denied 2016-02-29T23:11:36.667+0700 W CONTROL

WARNING: Cannot detect if NUMA interleaving is enabled. Failed to probe “/sys/devices/system/node/node1”: Permission denied Read More »

WARNING: soft rlimits too low. rlimits set to 4096 processes, 64000 files. Number of processes should be at least 32000 : 0.5 times number of files.

I’ve received this error while starting mongo in shell while installing on [code lang="shell"] [root@master ~]# mongod –version db version v3.2.3 git version: b326ba837cf6f49d65c2f85e1b70f6f31ece7937 OpenSSL version: OpenSSL 1.0.1e-fips 11 Feb 2013 allocator: tcmalloc modules: none build environment: distmod: rhel70 distarch: x86_64 target_arch: x86_64 [root@master ~]# mongo –version MongoDB shell version: 3.2.3 CentOS Linux release 7.2.1511

WARNING: soft rlimits too low. rlimits set to 4096 processes, 64000 files. Number of processes should be at least 32000 : 0.5 times number of files. Read More »

MongoDB Error: about to fork child process, waiting until server is ready for connections.

I tried to install MongoDB to CentOS 6.4 64Bit and found the error while I launch mongodb like this: numactl –interleave=all /usr/bin/mongod -f /etc/mongod.conf Here are the error code. about to fork child process, waiting until server is ready for connections. forked process: 9713 Wed Oct 16 02:00:00.640 terminate() called, printing stack (if implemented for platform): 0xdddd81 0x6cfbae 0x35d60203be6 0x35d60203c13 0x35d60203d0e 0x35d601a8ce7 0x35d60201a04 0x35d601ad3bc 0x35d601ae226 0xdfb5df 0[…]

MongoDB Error: about to fork child process, waiting until server is ready for connections. Read More »