RocketChat / RocketChat/Rocket.Chat

The Docker version Keeps Restarting, cannot access at all

Open
#31,784 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

I tried updating the docker version and it crashed my server. The server basically keeps restarting and I can't get into the server. I tried on a new virtual machine by downloading the compose.yml and it has the same thing. I think it has something to do with this error. I am not that knowledgable in docker or mongodb. I hope you can give me some insight on fixing this problem.

My ubuntu version is:
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy

This is part of the error I see in the logs. Please help. Thanks.
error: MongoNetworkError: getaddrinfo EAI_AGAIN mongodb
rocketchat-1 | at connectionFailureError (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connect.js:387:20)
rocketchat-1 | at Socket. (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connect.js:310:22)
rocketchat-1 | at Object.onceWrapper (events.js:520:26)
rocketchat-1 | at Socket.emit (events.js:400:28)
rocketchat-1 | at emitErrorNT (internal/streams/destroy.js:106:8)
rocketchat-1 | at emitErrorCloseNT (internal/streams/destroy.js:74:3)
rocketchat-1 | at processTicksAndRejections (internal/process/task_queues.js:82:21) {
rocketchat-1 | cause: Error: getaddrinfo EAI_AGAIN mongodb
rocketchat-1 | at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:71:26) {
rocketchat-1 | errno: -3001,
rocketchat-1 | code: 'EAI_AGAIN',
rocketchat-1 | syscall: 'getaddrinfo',
rocketchat-1 | hostname: 'mongodb'
rocketchat-1 | },
rocketchat-1 | [Symbol(errorLabels)]: Set(1) { 'ResetPool' }
rocketchat-1 | },

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the downloaded compose.yml and the Docker logs containing MongoNetworkError: getaddrinfo EAI_AGAIN mongodb. Trace how the Rocket.Chat and MongoDB services are named and connected; done means the server stops restarting and becomes accessible.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, mongodb, ubuntu
Domain
databases, devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.