RocketChat / server-snap

Rocket.Chat server snap
MIT License
18 stars 17 forks source link

Mongo shell not accessible via rocketchat-server.mongo, #34

Open PvUtrix opened 2 years ago

PvUtrix commented 2 years ago

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:

  1. Connect to the server
  2. Run "rocketchat-server.mongo"
  3. 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

Server Setup Information:

Client Setup Information

Additional context

Relevant logs:

CvH commented 1 year ago

still broken with 6.1.6