Ok, changed the ownership of the /var/lib/mongodb, and everything works.

One question, I installed MongoDB server following the documentation for installation in ubuntu and never edited configuration files or others. So does it mean there is something wrong in the installation guide?

2 Likes