Accessing MongoDB for Rocket.Chat
-
I'm trying to edit a specific user but no matter what I do, including trying to grant read or executeFunctions privileges to the user ID in
env | grep MONGO
I get the same response:
Error: not authorized on XXX to execute command ...
Is there a magic trick for actually querying the Rocket.Chat database from the Terminal that's not obvious to me?
-
@jegillikin In the terminal, on the top bar, there is a mongodb button. If you click it, it will paste the command to connect to mongodb. Just press enter and you will land on the mongodb shell. Is that what you are looking for?
-
No. I saw that helpful button and used it successfully to access the Mongo shell. The problem is that within the shell, I get "error: not authorized" messages for pretty much everything except switching DBs and listing containers.
-
Hello. I'm having the same question since I'm new to Cloudron. I added the mongodb addon to the Manifest in a LAMP app, but I still don't know any mongo username and password, and it won't let me create new users or databases
-
@alex-adestech Are you trying to install a PHP app that uses mongodb?
-
@girish We're making a web app with HTML5, JS and PHP.
-
@alex-adestech You should make a new post bud.
that said, I believe there is a text file in the LAMP apps /app/data folder that has that information you are looking for.
-
@alex-adestech And the web app requires mongodb? I am wondering why you want mongo username and password. But as @murgero pointed out, please create a new thread and we will help you out.