I got an error when connecting my database

When I connect to my database, it appears:

Error while trying to show server startup warnings: user is not allowed to do action [getLog] on [admin.]

I can still use it normally, but what is the problem here?

ps: Sorry, I don’t speak English well?

Hi @dung_82704,

This is not a potential error. This just means the user you are using to login is not authorized to do [getLog] on admin database. If you still want to give the user this permission, try changing the role to clusterMonitor : https://docs.mongodb.com/manual/reference/built-in-roles/#clusterMonitor

Also, this link describes most of the common issues: All new users, please read: these are NOT blocking errors!

Kanika

1 Like

Thank you for your answer to my question :grinning: