Description
Hi,
I’m able to pull the images and run docker-compose up -d with the compose yaml and environment file, and everything is installed properly. However, docker ps -a shows the rocketchat container continuously restarts with the following error:
Node.js v20.17.0
(node:1) [DEP0170] DeprecationWarning: The URL http://localhost:${HOST_PORT:-3000} is invalid. Future versions of Node.js will throw an error.
(Use node --trace-deprecation ...
to show where the warning was created)
packages/core-runtime.js:189
throw error;
^
MongoRuntimeError: Unable to parse ${MONGODB_ADVERTISED_HOSTNAME:-mongodb:27017 with URL
at new HostAddress (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/src/utils.ts:1096:28)
at fromString (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/src/utils.ts:1145:12)
… 12 lines matching cause stack trace …
at Module.wrapAsync (/app/bundle/programs/server/npm/node_modules/meteor/modules/node_modules/@meteorjs/reify/lib/runtime/index.js:251:8)
at module (/app/bundle/programs/server/packages/accounts-base.js:33:9) {
cause: TypeError: Invalid URL
at new URL (node:internal/url:797:36)
at new HostAddress (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/src/utils.ts:1094:13)
at fromString (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/src/utils.ts:1145:12)
at Array.map ()
at parseOptions (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/src/connection_string.ts:257:43)
at new MongoClient (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/src/mongo_client.ts:358:34)
at new MongoConnection (packages/mongo/mongo_driver.js:204:17)
at new MongoInternals.RemoteCollectionDriver (packages/mongo/remote_collection_driver.js:11:16)
at Object. (packages/mongo/remote_collection_driver.js:80:18)
at Object.defaultRemoteCollectionDriver (/app/bundle/programs/server/npm/node_modules/meteor/mongo/node_modules/lodash.once/index.js:71:21)
at new Collection (packages/mongo/collection.js:112:40)
at AccountsServer._initializeCollection (packages/accounts-base/accounts_common.js:109:20)
at new AccountsCommon (packages/accounts-base/accounts_common.js:57:23)
at new AccountsServer (packages/accounts-base/accounts_server.js:31:5)
at module.wrapAsync.self (packages/accounts-base/server_main.js:7:12)
at Module.wrapAsync (/app/bundle/programs/server/npm/node_modules/meteor/modules/node_modules/@meteorjs/reify/lib/runtime/index.js:251:8) {
code: ‘ERR_INVALID_URL’,
input: ‘iLoveJS://${MONGODB_ADVERTISED_HOSTNAME:-mongodb:27017’
},
[Symbol(errorLabels)]: Set(0) {}
}
Node.js v20.17.0
I have not made any changes to either compose or env except for setting RELEASE=7.0.3 (I have previously tried 6.13.0 and 6.13.1). Any ideas are greatly appreciated because I have tried a fresh install many times and I can’t find any information on this specific error. I am trying to run this as localhost so have not set any URL for RocketChat or MongoDB. Thank you!
Server Setup Information
- Version of Rocket.Chat Server: 7.0.3 (prev tried 6.13.0/6.13.1)
- Operating System: Debian 12.5
- Deployment Method: docker
- Number of Running Instances: 1
- DB Replicaset Oplog:
- NodeJS Version: Unsure but looks like 20.17.0
- MongoDB Version: 6.0
- Proxy: Proxy used to download the images, nothing else running locally
- Firewalls involved: