Trying to run mongodb shell on an install via SNAP, getting permission denied error. Rocket chat is working otherwise, expect that image uploads and rendering is terribly slow. Needed the mongo shell to try to try apply a fix https://github.com/RocketChat/Rocket.Chat/issues/23467
Steps to reproduce:
Connect to the server
Run "rocketchat-server.mongo"
Get the connection error message
Expected behavior:
Mongo shell executed
Actual behavior:
MongoDB shell version v3.6.23
connecting to: mongodb://127.0.0.1:27017/?gssapiServiceName=mongodb
2021-12-19T11:51:14.770+0000 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(socket), reason: Permission denied
2021-12-19T11:51:14.824+0000 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed :
connect@src/mongo/shell/mongo.js:275:13
@(connect):1:6
exception: connect failed
Description:
Trying to run mongodb shell on an install via SNAP, getting permission denied error. Rocket chat is working otherwise, expect that image uploads and rendering is terribly slow. Needed the mongo shell to try to try apply a fix https://github.com/RocketChat/Rocket.Chat/issues/23467
Steps to reproduce:
Expected behavior:
Mongo shell executed
Actual behavior:
MongoDB shell version v3.6.23 connecting to: mongodb://127.0.0.1:27017/?gssapiServiceName=mongodb 2021-12-19T11:51:14.770+0000 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(socket), reason: Permission denied 2021-12-19T11:51:14.824+0000 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed : connect@src/mongo/shell/mongo.js:275:13 @(connect):1:6 exception: connect failed
Server Setup Information:
Client Setup Information
Additional context
Relevant logs: