Fresh new Docker install, mongoDB Docker keeps dying, no web interface

Description

I followed the instructions on this page:

To install RocketChat 6.5.0 via Docker Compose.

Here’s the contents of my .env file:


### Rocket.Chat configuration

# Rocket.Chat version
# see:- https://github.com/RocketChat/Rocket.Chat/releases
RELEASE=6.5.0
# MongoDB endpoint (include ?replicaSet= parameter)
#MONGO_URL=
# MongoDB endpoint to the local database
#MONGO_OPLOG_URL=
# IP to bind the process to
#BIND_IP=
# URL used to access your Rocket.Chat instance
ROOT_URL=http://10.10.10.46:3000
# Port Rocket.Chat runs on (in-container)
#PORT=
# Port on the host to bind to
#HOST_PORT=

### MongoDB configuration
# MongoDB version/image tag
#MONGODB_VERSION=
# See:- https://hub.docker.com/r/bitnami/mongodb

### Traefik config (if enabled)
# Traefik version/image tag
#TRAEFIK_RELEASE=
# Domain for https (change ROOT_URL & BIND_IP accordingly)
#DOMAIN=
# Email for certificate notifications
#LETSENCRYPT_EMAIL=

I got my compose.yml file as directed in the instruction by running the following command:
curl -L https://raw.githubusercontent.com/RocketChat/Docker.Official.Image/master/compose.yml -O
I did not modify the file at all.

This is all on a fresh Ubuntu Server 22.04 virtual machine inside VirtualBox. It’s a fresh install of Docker v24.0.7.

The IP address of this virtual machine as you may have guessed from the .env file is:
10.10.10.46

When I do a:
docker compose up -d

The first time it’s ran, it seems to pull everything down just fine - no errors. Then I run:
docker stats
And usually there’s only 1 container - the Rocket Chat container. But every now and then I can see a ‘MongoDB’ container show up for a second or a few seconds, then it disappears. But when it is showing, it shows this:

CONTAINER ID   NAME                  CPU %     MEM USAGE / LIMIT     MEM %     NET I/O     BLOCK I/O   PIDS
1843c58b7d2d   rocket-rocketchat-1   0.26%     126.7MiB / 1.918GiB   6.45%     876B / 0B   0B / 0B     11
9ec16000c8cf   rocket-mongodb-1      0.00%     0B / 0B               0.00%     0B / 0B     0B / 0B     0

Note how everything is showing ‘0’ for the MongoDB one.

Also per the installation instructions, I ran this command to see if I could find anything helpful to me to figure this out:
docker compose logs -f rocketchat

rocket-rocketchat-1  | /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:218
rocket-rocketchat-1  |       throw error;
rocket-rocketchat-1  |       ^
rocket-rocketchat-1  |
rocket-rocketchat-1  | MongoServerSelectionError: getaddrinfo EAI_AGAIN mongodb
rocket-rocketchat-1  |     at Timeout._onTimeout (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/sdam/topology.js:292:38)
rocket-rocketchat-1  |     at listOnTimeout (internal/timers.js:557:17)
rocket-rocketchat-1  |     at processTimers (internal/timers.js:500:7)
rocket-rocketchat-1  |  => awaited here:
rocket-rocketchat-1  |     at Function.Promise.await (/app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12)
rocket-rocketchat-1  |     at new MongoConnection (packages/mongo/mongo_driver.js:213:11)
rocket-rocketchat-1  |     at new MongoInternals.RemoteCollectionDriver (packages/mongo/remote_collection_driver.js:9:16)
rocket-rocketchat-1  |     at Object.<anonymous> (packages/mongo/remote_collection_driver.js:66:18)
rocket-rocketchat-1  |     at Object.defaultRemoteCollectionDriver (packages/underscore.js:784:19)
rocket-rocketchat-1  |     at new Collection (packages/mongo/collection.js:127:40)
rocket-rocketchat-1  |     at AccountsServer._initializeCollection (packages/accounts-base/accounts_common.js:98:20)
rocket-rocketchat-1  |     at new AccountsCommon (packages/accounts-base/accounts_common.js:46:23)
rocket-rocketchat-1  |     at new AccountsServer (packages/accounts-base/accounts_server.js:30:5)
rocket-rocketchat-1  |     at packages/accounts-base/server_main.js:7:12
rocket-rocketchat-1  |     at module (packages/accounts-base/server_main.js:19:31)
rocket-rocketchat-1  |     at fileEvaluate (packages/modules-runtime.js:336:7)
rocket-rocketchat-1  |     at Module.require (packages/modules-runtime.js:238:14)
rocket-rocketchat-1  |     at require (packages/modules-runtime.js:258:21)
rocket-rocketchat-1  |     at /app/bundle/programs/server/packages/accounts-base.js:2219:15
rocket-rocketchat-1  |     at /app/bundle/programs/server/packages/accounts-base.js:2226:3 {
rocket-rocketchat-1  |   reason: TopologyDescription {
rocket-rocketchat-1  |     type: 'ReplicaSetNoPrimary',
rocket-rocketchat-1  |     servers: Map(1) {
rocket-rocketchat-1  |       'mongodb:27017' => ServerDescription {
rocket-rocketchat-1  |         address: 'mongodb:27017',
rocket-rocketchat-1  |         type: 'Unknown',
rocket-rocketchat-1  |         hosts: [],
rocket-rocketchat-1  |         passives: [],
rocket-rocketchat-1  |         arbiters: [],
rocket-rocketchat-1  |         tags: {},
rocket-rocketchat-1  |         minWireVersion: 0,
rocket-rocketchat-1  |         maxWireVersion: 0,
rocket-rocketchat-1  |         roundTripTime: -1,
rocket-rocketchat-1  |         lastUpdateTime: 388889,
rocket-rocketchat-1  |         lastWriteDate: 0,
rocket-rocketchat-1  |         error: MongoNetworkError: getaddrinfo EAI_AGAIN mongodb
rocket-rocketchat-1  |             at connectionFailureError (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connect.js:387:20)
rocket-rocketchat-1  |             at Socket.<anonymous> (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connect.js:310:22)
rocket-rocketchat-1  |             at Object.onceWrapper (events.js:520:26)
rocket-rocketchat-1  |             at Socket.emit (events.js:400:28)
rocket-rocketchat-1  |             at emitErrorNT (internal/streams/destroy.js:106:8)
rocket-rocketchat-1  |             at emitErrorCloseNT (internal/streams/destroy.js:74:3)
rocket-rocketchat-1  |             at processTicksAndRejections (internal/process/task_queues.js:82:21) {
rocket-rocketchat-1  |           cause: Error: getaddrinfo EAI_AGAIN mongodb
rocket-rocketchat-1  |               at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:71:26) {
rocket-rocketchat-1  |             errno: -3001,
rocket-rocketchat-1  |             code: 'EAI_AGAIN',
rocket-rocketchat-1  |             syscall: 'getaddrinfo',
rocket-rocketchat-1  |             hostname: 'mongodb'
rocket-rocketchat-1  |           },
rocket-rocketchat-1  |           [Symbol(errorLabels)]: Set(1) { 'ResetPool' }
rocket-rocketchat-1  |         },
rocket-rocketchat-1  |         topologyVersion: null,
rocket-rocketchat-1  |         setName: null,
rocket-rocketchat-1  |         setVersion: null,
rocket-rocketchat-1  |         electionId: null,
rocket-rocketchat-1  |         logicalSessionTimeoutMinutes: null,
rocket-rocketchat-1  |         primary: null,
rocket-rocketchat-1  |         me: null,
rocket-rocketchat-1  |         '$clusterTime': null
rocket-rocketchat-1  |       }
rocket-rocketchat-1  |     },
rocket-rocketchat-1  |     stale: false,
rocket-rocketchat-1  |     compatible: true,
rocket-rocketchat-1  |     heartbeatFrequencyMS: 10000,
rocket-rocketchat-1  |     localThresholdMS: 15,
rocket-rocketchat-1  |     setName: 'rs0',
rocket-rocketchat-1  |     maxElectionId: null,
rocket-rocketchat-1  |     maxSetVersion: null,
rocket-rocketchat-1  |     commonWireVersion: 0,
rocket-rocketchat-1  |     logicalSessionTimeoutMinutes: null
rocket-rocketchat-1  |   },
rocket-rocketchat-1  |   code: undefined,
rocket-rocketchat-1  |   [Symbol(errorLabels)]: Set(0) {}
rocket-rocketchat-1  | }
rocket-rocketchat-1  | /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:218
rocket-rocketchat-1  |       throw error;
rocket-rocketchat-1  |       ^
rocket-rocketchat-1  |
rocket-rocketchat-1  | MongoServerSelectionError: getaddrinfo EAI_AGAIN mongodb
rocket-rocketchat-1  |     at Timeout._onTimeout (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/sdam/topology.js:292:38)
rocket-rocketchat-1  |     at listOnTimeout (internal/timers.js:557:17)
rocket-rocketchat-1  |     at processTimers (internal/timers.js:500:7)
rocket-rocketchat-1  |  => awaited here:
rocket-rocketchat-1  |     at Function.Promise.await (/app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12)
rocket-rocketchat-1  |     at new MongoConnection (packages/mongo/mongo_driver.js:213:11)
rocket-rocketchat-1  |     at new MongoInternals.RemoteCollectionDriver (packages/mongo/remote_collection_driver.js:9:16)
rocket-rocketchat-1  |     at Object.<anonymous> (packages/mongo/remote_collection_driver.js:66:18)
rocket-rocketchat-1  |     at Object.defaultRemoteCollectionDriver (packages/underscore.js:784:19)
rocket-rocketchat-1  |     at new Collection (packages/mongo/collection.js:127:40)
rocket-rocketchat-1  |     at AccountsServer._initializeCollection (packages/accounts-base/accounts_common.js:98:20)
rocket-rocketchat-1  |     at new AccountsCommon (packages/accounts-base/accounts_common.js:46:23)
rocket-rocketchat-1  |     at new AccountsServer (packages/accounts-base/accounts_server.js:30:5)
rocket-rocketchat-1  |     at packages/accounts-base/server_main.js:7:12
rocket-rocketchat-1  |     at module (packages/accounts-base/server_main.js:19:31)
rocket-rocketchat-1  |     at fileEvaluate (packages/modules-runtime.js:336:7)
rocket-rocketchat-1  |     at Module.require (packages/modules-runtime.js:238:14)
rocket-rocketchat-1  |     at require (packages/modules-runtime.js:258:21)
rocket-rocketchat-1  |     at /app/bundle/programs/server/packages/accounts-base.js:2219:15
rocket-rocketchat-1  |     at /app/bundle/programs/server/packages/accounts-base.js:2226:3 {
rocket-rocketchat-1  |   reason: TopologyDescription {
rocket-rocketchat-1  |     type: 'ReplicaSetNoPrimary',
rocket-rocketchat-1  |     servers: Map(1) {
rocket-rocketchat-1  |       'mongodb:27017' => ServerDescription {
rocket-rocketchat-1  |         address: 'mongodb:27017',
rocket-rocketchat-1  |         type: 'Unknown',
rocket-rocketchat-1  |         hosts: [],
rocket-rocketchat-1  |         passives: [],
rocket-rocketchat-1  |         arbiters: [],
rocket-rocketchat-1  |         tags: {},
rocket-rocketchat-1  |         minWireVersion: 0,
rocket-rocketchat-1  |         maxWireVersion: 0,
rocket-rocketchat-1  |         roundTripTime: -1,
rocket-rocketchat-1  |         lastUpdateTime: 422544,
rocket-rocketchat-1  |         lastWriteDate: 0,
rocket-rocketchat-1  |         error: MongoNetworkError: getaddrinfo EAI_AGAIN mongodb
rocket-rocketchat-1  |             at connectionFailureError (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connect.js:387:20)
rocket-rocketchat-1  |             at Socket.<anonymous> (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connect.js:310:22)
rocket-rocketchat-1  |             at Object.onceWrapper (events.js:520:26)
rocket-rocketchat-1  |             at Socket.emit (events.js:400:28)
rocket-rocketchat-1  |             at emitErrorNT (internal/streams/destroy.js:106:8)
rocket-rocketchat-1  |             at emitErrorCloseNT (internal/streams/destroy.js:74:3)
rocket-rocketchat-1  |             at processTicksAndRejections (internal/process/task_queues.js:82:21) {
rocket-rocketchat-1  |           cause: Error: getaddrinfo EAI_AGAIN mongodb
rocket-rocketchat-1  |               at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:71:26) {
rocket-rocketchat-1  |             errno: -3001,
rocket-rocketchat-1  |             code: 'EAI_AGAIN',
rocket-rocketchat-1  |             syscall: 'getaddrinfo',
rocket-rocketchat-1  |             hostname: 'mongodb'
rocket-rocketchat-1  |           },
rocket-rocketchat-1  |           [Symbol(errorLabels)]: Set(1) { 'ResetPool' }
rocket-rocketchat-1  |         },
rocket-rocketchat-1  |         topologyVersion: null,
rocket-rocketchat-1  |         setName: null,
rocket-rocketchat-1  |         setVersion: null,
rocket-rocketchat-1  |         electionId: null,
rocket-rocketchat-1  |         logicalSessionTimeoutMinutes: null,
rocket-rocketchat-1  |         primary: null,
rocket-rocketchat-1  |         me: null,
rocket-rocketchat-1  |         '$clusterTime': null
rocket-rocketchat-1  |       }
rocket-rocketchat-1  |     },
rocket-rocketchat-1  |     stale: false,
rocket-rocketchat-1  |     compatible: true,
rocket-rocketchat-1  |     heartbeatFrequencyMS: 10000,
rocket-rocketchat-1  |     localThresholdMS: 15,
rocket-rocketchat-1  |     setName: 'rs0',
rocket-rocketchat-1  |     maxElectionId: null,
rocket-rocketchat-1  |     maxSetVersion: null,
rocket-rocketchat-1  |     commonWireVersion: 0,
rocket-rocketchat-1  |     logicalSessionTimeoutMinutes: null
rocket-rocketchat-1  |   },
rocket-rocketchat-1  |   code: undefined,
rocket-rocketchat-1  |   [Symbol(errorLabels)]: Set(0) {}
rocket-rocketchat-1  | }
rocket-rocketchat-1  | /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:218
rocket-rocketchat-1  |       throw error;
rocket-rocketchat-1  |       ^
rocket-rocketchat-1  |
rocket-rocketchat-1  | MongoServerSelectionError: getaddrinfo EAI_AGAIN mongodb
rocket-rocketchat-1  |     at Timeout._onTimeout (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/sdam/topology.js:292:38)
rocket-rocketchat-1  |     at listOnTimeout (internal/timers.js:557:17)
rocket-rocketchat-1  |     at processTimers (internal/timers.js:500:7)
rocket-rocketchat-1  |  => awaited here:
rocket-rocketchat-1  |     at Function.Promise.await (/app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12)
rocket-rocketchat-1  |     at new MongoConnection (packages/mongo/mongo_driver.js:213:11)
rocket-rocketchat-1  |     at new MongoInternals.RemoteCollectionDriver (packages/mongo/remote_collection_driver.js:9:16)
rocket-rocketchat-1  |     at Object.<anonymous> (packages/mongo/remote_collection_driver.js:66:18)
rocket-rocketchat-1  |     at Object.defaultRemoteCollectionDriver (packages/underscore.js:784:19)
rocket-rocketchat-1  |     at new Collection (packages/mongo/collection.js:127:40)
rocket-rocketchat-1  |     at AccountsServer._initializeCollection (packages/accounts-base/accounts_common.js:98:20)
rocket-rocketchat-1  |     at new AccountsCommon (packages/accounts-base/accounts_common.js:46:23)
rocket-rocketchat-1  |     at new AccountsServer (packages/accounts-base/accounts_server.js:30:5)
rocket-rocketchat-1  |     at packages/accounts-base/server_main.js:7:12
rocket-rocketchat-1  |     at module (packages/accounts-base/server_main.js:19:31)
rocket-rocketchat-1  |     at fileEvaluate (packages/modules-runtime.js:336:7)
rocket-rocketchat-1  |     at Module.require (packages/modules-runtime.js:238:14)
rocket-rocketchat-1  |     at require (packages/modules-runtime.js:258:21)
rocket-rocketchat-1  |     at /app/bundle/programs/server/packages/accounts-base.js:2219:15
rocket-rocketchat-1  |     at /app/bundle/programs/server/packages/accounts-base.js:2226:3 {
rocket-rocketchat-1  |   reason: TopologyDescription {
rocket-rocketchat-1  |     type: 'ReplicaSetNoPrimary',
rocket-rocketchat-1  |     servers: Map(1) {
rocket-rocketchat-1  |       'mongodb:27017' => ServerDescription {
rocket-rocketchat-1  |         address: 'mongodb:27017',
rocket-rocketchat-1  |         type: 'Unknown',
rocket-rocketchat-1  |         hosts: [],
rocket-rocketchat-1  |         passives: [],
rocket-rocketchat-1  |         arbiters: [],
rocket-rocketchat-1  |         tags: {},
rocket-rocketchat-1  |         minWireVersion: 0,
rocket-rocketchat-1  |         maxWireVersion: 0,
rocket-rocketchat-1  |         roundTripTime: -1,
rocket-rocketchat-1  |         lastUpdateTime: 453771,
rocket-rocketchat-1  |         lastWriteDate: 0,
rocket-rocketchat-1  |         error: MongoNetworkError: getaddrinfo EAI_AGAIN mongodb
rocket-rocketchat-1  |             at connectionFailureError (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connect.js:387:20)
rocket-rocketchat-1  |             at Socket.<anonymous> (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connect.js:310:22)
rocket-rocketchat-1  |             at Object.onceWrapper (events.js:520:26)
rocket-rocketchat-1  |             at Socket.emit (events.js:400:28)
rocket-rocketchat-1  |             at emitErrorNT (internal/streams/destroy.js:106:8)
rocket-rocketchat-1  |             at emitErrorCloseNT (internal/streams/destroy.js:74:3)
rocket-rocketchat-1  |             at processTicksAndRejections (internal/process/task_queues.js:82:21) {
rocket-rocketchat-1  |           cause: Error: getaddrinfo EAI_AGAIN mongodb
rocket-rocketchat-1  |               at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:71:26) {
rocket-rocketchat-1  |             errno: -3001,
rocket-rocketchat-1  |             code: 'EAI_AGAIN',
rocket-rocketchat-1  |             syscall: 'getaddrinfo',
rocket-rocketchat-1  |             hostname: 'mongodb'
rocket-rocketchat-1  |           },
rocket-rocketchat-1  |           [Symbol(errorLabels)]: Set(1) { 'ResetPool' }
rocket-rocketchat-1  |         },
rocket-rocketchat-1  |         topologyVersion: null,
rocket-rocketchat-1  |         setName: null,
rocket-rocketchat-1  |         setVersion: null,
rocket-rocketchat-1  |         electionId: null,
rocket-rocketchat-1  |         logicalSessionTimeoutMinutes: null,
rocket-rocketchat-1  |         primary: null,
rocket-rocketchat-1  |         me: null,
rocket-rocketchat-1  |         '$clusterTime': null
rocket-rocketchat-1  |       }
rocket-rocketchat-1  |     },
rocket-rocketchat-1  |     stale: false,
rocket-rocketchat-1  |     compatible: true,
rocket-rocketchat-1  |     heartbeatFrequencyMS: 10000,
rocket-rocketchat-1  |     localThresholdMS: 15,
rocket-rocketchat-1  |     setName: 'rs0',
rocket-rocketchat-1  |     maxElectionId: null,
rocket-rocketchat-1  |     maxSetVersion: null,
rocket-rocketchat-1  |     commonWireVersion: 0,
rocket-rocketchat-1  |     logicalSessionTimeoutMinutes: null
rocket-rocketchat-1  |   },
rocket-rocketchat-1  |   code: undefined,
rocket-rocketchat-1  |   [Symbol(errorLabels)]: Set(0) {}
rocket-rocketchat-1  | }
rocket-rocketchat-1  | /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:218
rocket-rocketchat-1  |       throw error;
rocket-rocketchat-1  |       ^
rocket-rocketchat-1  |
rocket-rocketchat-1  | MongoServerSelectionError: getaddrinfo EAI_AGAIN mongodb
rocket-rocketchat-1  |     at Timeout._onTimeout (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/sdam/topology.js:292:38)
rocket-rocketchat-1  |     at listOnTimeout (internal/timers.js:557:17)
rocket-rocketchat-1  |     at processTimers (internal/timers.js:500:7)
rocket-rocketchat-1  |  => awaited here:
rocket-rocketchat-1  |     at Function.Promise.await (/app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12)
rocket-rocketchat-1  |     at new MongoConnection (packages/mongo/mongo_driver.js:213:11)
rocket-rocketchat-1  |     at new MongoInternals.RemoteCollectionDriver (packages/mongo/remote_collection_driver.js:9:16)
rocket-rocketchat-1  |     at Object.<anonymous> (packages/mongo/remote_collection_driver.js:66:18)
rocket-rocketchat-1  |     at Object.defaultRemoteCollectionDriver (packages/underscore.js:784:19)
rocket-rocketchat-1  |     at new Collection (packages/mongo/collection.js:127:40)
rocket-rocketchat-1  |     at AccountsServer._initializeCollection (packages/accounts-base/accounts_common.js:98:20)
rocket-rocketchat-1  |     at new AccountsCommon (packages/accounts-base/accounts_common.js:46:23)
rocket-rocketchat-1  |     at new AccountsServer (packages/accounts-base/accounts_server.js:30:5)
rocket-rocketchat-1  |     at packages/accounts-base/server_main.js:7:12
rocket-rocketchat-1  |     at module (packages/accounts-base/server_main.js:19:31)
rocket-rocketchat-1  |     at fileEvaluate (packages/modules-runtime.js:336:7)
rocket-rocketchat-1  |     at Module.require (packages/modules-runtime.js:238:14)
rocket-rocketchat-1  |     at require (packages/modules-runtime.js:258:21)
rocket-rocketchat-1  |     at /app/bundle/programs/server/packages/accounts-base.js:2219:15
rocket-rocketchat-1  |     at /app/bundle/programs/server/packages/accounts-base.js:2226:3 {
rocket-rocketchat-1  |   reason: TopologyDescription {
rocket-rocketchat-1  |     type: 'ReplicaSetNoPrimary',
rocket-rocketchat-1  |     servers: Map(1) {
rocket-rocketchat-1  |       'mongodb:27017' => ServerDescription {
rocket-rocketchat-1  |         address: 'mongodb:27017',
rocket-rocketchat-1  |         type: 'Unknown',
rocket-rocketchat-1  |         hosts: [],
rocket-rocketchat-1  |         passives: [],
rocket-rocketchat-1  |         arbiters: [],
rocket-rocketchat-1  |         tags: {},
rocket-rocketchat-1  |         minWireVersion: 0,
rocket-rocketchat-1  |         maxWireVersion: 0,
rocket-rocketchat-1  |         roundTripTime: -1,
rocket-rocketchat-1  |         lastUpdateTime: 485018,
rocket-rocketchat-1  |         lastWriteDate: 0,
rocket-rocketchat-1  |         error: MongoNetworkError: getaddrinfo EAI_AGAIN mongodb
rocket-rocketchat-1  |             at connectionFailureError (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connect.js:387:20)
rocket-rocketchat-1  |             at Socket.<anonymous> (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connect.js:310:22)
rocket-rocketchat-1  |             at Object.onceWrapper (events.js:520:26)
rocket-rocketchat-1  |             at Socket.emit (events.js:400:28)
rocket-rocketchat-1  |             at emitErrorNT (internal/streams/destroy.js:106:8)
rocket-rocketchat-1  |             at emitErrorCloseNT (internal/streams/destroy.js:74:3)
rocket-rocketchat-1  |             at processTicksAndRejections (internal/process/task_queues.js:82:21) {
rocket-rocketchat-1  |           cause: Error: getaddrinfo EAI_AGAIN mongodb
rocket-rocketchat-1  |               at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:71:26) {
rocket-rocketchat-1  |             errno: -3001,
rocket-rocketchat-1  |             code: 'EAI_AGAIN',
rocket-rocketchat-1  |             syscall: 'getaddrinfo',
rocket-rocketchat-1  |             hostname: 'mongodb'
rocket-rocketchat-1  |           },
rocket-rocketchat-1  |           [Symbol(errorLabels)]: Set(1) { 'ResetPool' }
rocket-rocketchat-1  |         },
rocket-rocketchat-1  |         topologyVersion: null,
rocket-rocketchat-1  |         setName: null,
rocket-rocketchat-1  |         setVersion: null,
rocket-rocketchat-1  |         electionId: null,
rocket-rocketchat-1  |         logicalSessionTimeoutMinutes: null,
rocket-rocketchat-1  |         primary: null,
rocket-rocketchat-1  |         me: null,
rocket-rocketchat-1  |         '$clusterTime': null
rocket-rocketchat-1  |       }
rocket-rocketchat-1  |     },
rocket-rocketchat-1  |     stale: false,
rocket-rocketchat-1  |     compatible: true,
rocket-rocketchat-1  |     heartbeatFrequencyMS: 10000,
rocket-rocketchat-1  |     localThresholdMS: 15,
rocket-rocketchat-1  |     setName: 'rs0',
rocket-rocketchat-1  |     maxElectionId: null,
rocket-rocketchat-1  |     maxSetVersion: null,
rocket-rocketchat-1  |     commonWireVersion: 0,
rocket-rocketchat-1  |     logicalSessionTimeoutMinutes: null
rocket-rocketchat-1  |   },
rocket-rocketchat-1  |   code: undefined,
rocket-rocketchat-1  |   [Symbol(errorLabels)]: Set(0) {}
rocket-rocketchat-1  | }
rocket-rocketchat-1  | /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:218
rocket-rocketchat-1  |       throw error;
rocket-rocketchat-1  |       ^
rocket-rocketchat-1  |
rocket-rocketchat-1  | MongoServerSelectionError: getaddrinfo EAI_AGAIN mongodb
rocket-rocketchat-1  |     at Timeout._onTimeout (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/sdam/topology.js:292:38)
rocket-rocketchat-1  |     at listOnTimeout (internal/timers.js:557:17)
rocket-rocketchat-1  |     at processTimers (internal/timers.js:500:7)
rocket-rocketchat-1  |  => awaited here:
rocket-rocketchat-1  |     at Function.Promise.await (/app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12)
rocket-rocketchat-1  |     at new MongoConnection (packages/mongo/mongo_driver.js:213:11)
rocket-rocketchat-1  |     at new MongoInternals.RemoteCollectionDriver (packages/mongo/remote_collection_driver.js:9:16)
rocket-rocketchat-1  |     at Object.<anonymous> (packages/mongo/remote_collection_driver.js:66:18)
rocket-rocketchat-1  |     at Object.defaultRemoteCollectionDriver (packages/underscore.js:784:19)
rocket-rocketchat-1  |     at new Collection (packages/mongo/collection.js:127:40)
rocket-rocketchat-1  |     at AccountsServer._initializeCollection (packages/accounts-base/accounts_common.js:98:20)
rocket-rocketchat-1  |     at new AccountsCommon (packages/accounts-base/accounts_common.js:46:23)
rocket-rocketchat-1  |     at new AccountsServer (packages/accounts-base/accounts_server.js:30:5)
rocket-rocketchat-1  |     at packages/accounts-base/server_main.js:7:12
rocket-rocketchat-1  |     at module (packages/accounts-base/server_main.js:19:31)
rocket-rocketchat-1  |     at fileEvaluate (packages/modules-runtime.js:336:7)
rocket-rocketchat-1  |     at Module.require (packages/modules-runtime.js:238:14)
rocket-rocketchat-1  |     at require (packages/modules-runtime.js:258:21)
rocket-rocketchat-1  |     at /app/bundle/programs/server/packages/accounts-base.js:2219:15
rocket-rocketchat-1  |     at /app/bundle/programs/server/packages/accounts-base.js:2226:3 {
rocket-rocketchat-1  |   reason: TopologyDescription {
rocket-rocketchat-1  |     type: 'ReplicaSetNoPrimary',
rocket-rocketchat-1  |     servers: Map(1) {
rocket-rocketchat-1  |       'mongodb:27017' => ServerDescription {
rocket-rocketchat-1  |         address: 'mongodb:27017',
rocket-rocketchat-1  |         type: 'Unknown',
rocket-rocketchat-1  |         hosts: [],
rocket-rocketchat-1  |         passives: [],
rocket-rocketchat-1  |         arbiters: [],
rocket-rocketchat-1  |         tags: {},
rocket-rocketchat-1  |         minWireVersion: 0,
rocket-rocketchat-1  |         maxWireVersion: 0,
rocket-rocketchat-1  |         roundTripTime: -1,
rocket-rocketchat-1  |         lastUpdateTime: 516230,
rocket-rocketchat-1  |         lastWriteDate: 0,
rocket-rocketchat-1  |         error: MongoNetworkError: getaddrinfo EAI_AGAIN mongodb
rocket-rocketchat-1  |             at connectionFailureError (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connect.js:387:20)
rocket-rocketchat-1  |             at Socket.<anonymous> (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/cmap/connect.js:310:22)
rocket-rocketchat-1  |             at Object.onceWrapper (events.js:520:26)
rocket-rocketchat-1  |             at Socket.emit (events.js:400:28)
rocket-rocketchat-1  |             at emitErrorNT (internal/streams/destroy.js:106:8)
rocket-rocketchat-1  |             at emitErrorCloseNT (internal/streams/destroy.js:74:3)
rocket-rocketchat-1  |             at processTicksAndRejections (internal/process/task_queues.js:82:21) {
rocket-rocketchat-1  |           cause: Error: getaddrinfo EAI_AGAIN mongodb
rocket-rocketchat-1  |               at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:71:26) {
rocket-rocketchat-1  |             errno: -3001,
rocket-rocketchat-1  |             code: 'EAI_AGAIN',
rocket-rocketchat-1  |             syscall: 'getaddrinfo',
rocket-rocketchat-1  |             hostname: 'mongodb'
rocket-rocketchat-1  |           },
rocket-rocketchat-1  |           [Symbol(errorLabels)]: Set(1) { 'ResetPool' }
rocket-rocketchat-1  |         },
rocket-rocketchat-1  |         topologyVersion: null,
rocket-rocketchat-1  |         setName: null,
rocket-rocketchat-1  |         setVersion: null,
rocket-rocketchat-1  |         electionId: null,
rocket-rocketchat-1  |         logicalSessionTimeoutMinutes: null,
rocket-rocketchat-1  |         primary: null,
rocket-rocketchat-1  |         me: null,
rocket-rocketchat-1  |         '$clusterTime': null
rocket-rocketchat-1  |       }
rocket-rocketchat-1  |     },
rocket-rocketchat-1  |     stale: false,
rocket-rocketchat-1  |     compatible: true,
rocket-rocketchat-1  |     heartbeatFrequencyMS: 10000,
rocket-rocketchat-1  |     localThresholdMS: 15,
rocket-rocketchat-1  |     setName: 'rs0',
rocket-rocketchat-1  |     maxElectionId: null,
rocket-rocketchat-1  |     maxSetVersion: null,
rocket-rocketchat-1  |     commonWireVersion: 0,
rocket-rocketchat-1  |     logicalSessionTimeoutMinutes: null
rocket-rocketchat-1  |   },
rocket-rocketchat-1  |   code: undefined,
rocket-rocketchat-1  |   [Symbol(errorLabels)]: Set(0) {}
rocket-rocketchat-1  | }
rocket-rocketchat-1 exited with code 0

The reason I knew something was wrong btw was after doing the:

docker compose up -d

Command and waiting for it to start, I would go to the URL:
http://10.10.10.46:3000
On another computer on our ‘flat’ network (all computers have 10.10.10.x addresses), but it would just time out. I can successfully ‘ping’ the .46 address (again, the Rocket Chat on Ubuntu Server 22.04 VM), and get replies.

The output from that long logs file is well beyond my comprehension so I’m here asking if anyone sees/knows what may be my problem.

Thank you!

Well I figured out the problem.

It sounds like MongoDB from v5.0 and on require avx/avx2 which my virtual machine guest (VirtualBox) was just not providing. It appears to have something to do with Microsoft’s Hyper-V (the host is Windows 11) stuff which sounds like it’s difficult to turn off.

Sooo, what I did is I specified version MongoDB version 4.4 in my .env file. The relevant line looks like this:
MONGODB_VERSION=4.4

Just be forewarned that this will only work until RocketChat version 7 comes out which will force MongoDB v5.0 or higher…according to a message I received in the terminal when the Docker containers were coming up for the first time.

Hope this helps someone!