server-snap icon indicating copy to clipboard operation
server-snap copied to clipboard

Mongo shell not accessible via rocketchat-server.mongo,

Open PvUtrix opened this issue 3 years ago • 1 comments

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:

  • Version of Rocket.Chat Server: 4.2.2
  • Operating System: ubuntu 20.04
  • Deployment Method: SNAP
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: v12.22.7
  • MongoDB Version: 3.6.23 / wiredTiger (oplog Enabled)

Client Setup Information

  • Desktop App or Browser Version:
  • Operating System:

Additional context

Relevant logs:

PvUtrix avatar Dec 19 '21 12:12 PvUtrix