Mount: permission denied

Hello Community,

I have a freshly installed MongoDB, installed by the official documentation step by step, everything was running perfect. I just added a database and restarted my whole Virtual Machine.

Since that the Mongod service cannot be started anymore. I did no changes only created a database and an admin user for that and I wanted to test monitoring I turned off VM and Turned back on.

-- The system journal process has started up, opened the journal
-- files for writing and is now ready to process requests.
Oct 23 01:18:46 mongodb mount[37]: mount: permission denied
Oct 23 01:18:46 mongodb mount[44]: mount: permission denied
Oct 23 01:18:46 mongodb systemd[1]: sys-kernel-debug.mount mount process exited, code=exited status=32
Oct 23 01:18:46 mongodb systemd[1]: Failed to mount Debug File System.
-- Subject: Unit sys-kernel-debug.mount has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit sys-kernel-debug.mount has failed.
-- 
-- The result is failed.

What should I do to solve this permission issue? I have root permission and I have basic linux knowledge so Im ready to follow your steps.

Thank you very much,

Best regards,

Hi @CoLeTheGamR123_N_A ,
What dbPath and log path are you using?
You might be using paths which have no permission to use from the virtual machine.
Thanks,
Rafael,

1 Like