RocketChat / RocketChat/Rocket.Chat

RocketChat can't talk to IPv6 Mongo server

Open
#8,823 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

Hi !

I try to deploy RocketChat in IPv6 only environment,

The node process fail while trying to speak to IPv6-only MongoDB server dns name.

MongoError: failed to connect to server [mongodb.default.svc.k8s.domain.tld:27017] on first connect [MongoError: getaddrinfo ENOTFOUND mongodb.default.svc.k8s.domain.tld mongodb.default.svc.k8s.domain.tld:27017]

It seem that getaddrinfo is basically used in IPv4 world only..

Thanks !

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 by reproducing the Node process failure against the IPv6-only MongoDB DNS name shown in the report and inspect the connection path around getaddrinfo. Done means Rocket.Chat can connect successfully to the IPv6-only MongoDB server in the reported environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
mongodb, node.js
Domain
backend, databases, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.