Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I get an error message that says:
Failed to start mongodb.service: Unit mongodb.service is masked.
when I run:
sudo systemctl start mongodb
If I just run:
sudo mongod
it works
When I try to enable for system start with
sudo systemctl enable mongodb
I get
Failed to execute operation: Invalid argument
Help is much appreciated. Ben
when i try add content to /etc/systemd/system/mongodb.service, it said “/etc/systemd/system/mongodb.service” is not a normal file ", and i cannot add content. Help me :(
In my case I get this error.
sudo systemctl status mongodb
● mongodb.service - High-performance, schema-free document-oriented database
Loaded: loaded (/etc/systemd/system/mongodb.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2016-05-27 12:38:13 EDT; 4s ago
Process: 6729 ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf (code=exited, status=100)
Main PID: 6729 (code=exited, status=100)
May 27 12:38:13 ubuntu systemd[1]: Started High-performance, schema-free document-oriented database.
May 27 12:38:13 ubuntu systemd[1]: mongodb.service: Main process exited, code=exited, status=100/n/a
May 27 12:38:13 ubuntu systemd[1]: mongodb.service: Unit entered failed state.
May 27 12:38:13 ubuntu systemd[1]: mongodb.service: Failed with result 'exit-code'.
Hi, How to set different path to dbdata and log file? I try set path to /home/user/folder and my server return fail.
Paul
they already have repo for xenial here
"deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse"
We encountered a lot of issues related to the systemd configuration on a busy mongod - and improved a bit on it which can be found here: https://gist.github.com/hofmeister/a4706604c3b899eb0288f0442be5f6c4
Most important part is the TasksAccounting=false since that’ll default to true and limit the mongod service to 512 threads / sub processes
The errors we were seeing was :
NETWORK [initandlisten] pthread_create failed: errno:11 Resource temporarily unavailable
What was messing me up is that some docs refer to mongod.service and this one uses mongodb.service. Is the name up to the user? Can we call it anything we want, as long as it’s unique?
I tried this tutorial, getting ACTIVE as failed
mongodb.service - High-performance, schema-free document-oriented database Loaded: loaded (/etc/systemd/system/mongodb.service; disabled; vendor preset: Active: failed (running) since Fri 2016-05-13 10:33:52 IST; 1min 48s ago Main PID: 7078 (mongod) Tasks: 16 (limit: 512) CGroup: /system.slice/mongodb.service └─7078 /usr/bin/mongod --quiet --config /etc/mongod.conf
May 13 10:33:52 linux systemd[1]: Started High-performance, schema-free document lines 1-9/9 (END)
If using a volume to store data, what or where do I specify the storage path?