Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in setInterval callback: MongoServerSelectionError: connection timed out while Deploying on AWS #26918

Open
wahdatjan opened this issue Sep 22, 2022 · 1 comment

Comments

@wahdatjan
Copy link

wahdatjan commented Sep 22, 2022

i am deploying the rocketchat on aws ec2 instance . DOcker images are running but when i check the logs i am getting this error

Server Setup Information:

  • Version of Rocket.Chat Server: 5.0.3
  • Operating System: linux
  • Deployment Method: docker
  • DB Replicaset Oplog: - MONGO_OPLOG_URL=mongodb://mongo:27017/local
  • NodeJS Version: 14.19.3 - x64
  • MongoDB Version:4.0.28

Relevant logs:

Exception in setInterval callback: MongoServerSelectionError: connection closed rocketchat_1 | at Timeout._onTimeout (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/sdam/topology.js:312:38) rocketchat_1 | at listOnTimeout (internal/timers.js:557:17) rocketchat_1 | at processTimers (internal/timers.js:500:7) { rocketchat_1 | reason: TopologyDescription { rocketchat_1 | type: 'ReplicaSetNoPrimary', rocketchat_1 | servers: Map(1) { 'mongo:27017' => [ServerDescription] }, rocketchat_1 | stale: false, rocketchat_1 | compatible: true, rocketchat_1 | heartbeatFrequencyMS: 10000, rocketchat_1 | localThresholdMS: 15, rocketchat_1 | setName: 'rs0', rocketchat_1 | maxSetVersion: 2, rocketchat_1 | maxElectionId: new ObjectId("7fffffff0000000000000005"), rocketchat_1 | commonWireVersion: 7, rocketchat_1 | logicalSessionTimeoutMinutes: undefined rocketchat_1 | } rocketchat_1 | }

@dudanogueira
Copy link
Contributor

Hi! Did you followed this doc?
https://docs.rocket.chat/quick-start/deploying-rocket.chat/cloud-deployments/aws

if positive, it's outdated 😬 We will fix this any time soon.
Please, follow this doc for the updated docker compose version:
https://docs.rocket.chat/quick-start/deploying-rocket.chat/rapid-deployment-methods/docker-and-docker-compose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants