Description
The docker image keeps restarting when started from docker compose. only modification that I did in .env file was to define the release for rocket chat to 6.5.0
Server Setup Information
- Version of Rocket.Chat Server: 6.5.0
- Operating System: Debian Linux
- Deployment Method: docker
- Number of Running Instances: 1
- DB Replicaset Oplog:
- NodeJS Version: not sure based on docker
- MongoDB Version: 5.0
- Proxy: None
- Firewalls involved: None
Any additional Information
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/lib/utils.js:848:34)
at fromString (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/utils.js:890:16)
at Array.map ()
at parseOptions (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/connection_string.js:197:45)
at new MongoClient (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/mongo_client.js:46:63)
at new MongoConnection (packages/mongo/mongo_driver.js:191:17)
at new MongoInternals.RemoteCollectionDriver (packages/mongo/remote_collection_driver.js:9:16)
at Object. (packages/mongo/remote_collection_driver.js:66:18)
at Object.defaultRemoteCollectionDriver (packages/underscore.js:784:19)
at new Collection (packages/mongo/collection.js:127:40)
at AccountsServer._initializeCollection (packages/accounts-base/accounts_common.js:98:20)
at new AccountsCommon (packages/accounts-base/accounts_common.js:46:23)
at new AccountsServer (packages/accounts-base/accounts_server.js:30:5)
at packages/accounts-base/server_main.js:7:12
at module (packages/accounts-base/server_main.js:19:31)
at fileEvaluate (packages/modules-runtime.js:336:7) {
cause: TypeError [ERR_INVALID_URL] [ERR_INVALID_URL]: Invalid URL: iLoveJS://${MONGODB_ADVERTISED_HOSTNAME:-mongodb:27017
at new NodeError (internal/errors.js:322:7)
at onParseError (internal/url.js:270:9)
at new URL (internal/url.js:346:5)
at new HostAddress (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/utils.js:845:19)
at fromString (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/utils.js:890:16)
at Array.map ()
at parseOptions (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/connection_string.js:197:45)
at new MongoClient (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/mongo_client.js:46:63)
at new MongoConnection (packages/mongo/mongo_driver.js:191:17)
at new MongoInternals.RemoteCollectionDriver (packages/mongo/remote_collection_driver.js:9:16)
at Object. (packages/mongo/remote_collection_driver.js:66:18)
at Object.defaultRemoteCollectionDriver (packages/underscore.js:784:19)
at new Collection (packages/mongo/collection.js:127:40)
at AccountsServer._initializeCollection (packages/accounts-base/accounts_common.js:98:20)
at new AccountsCommon (packages/accounts-base/accounts_common.js:46:23)
at new AccountsServer (packages/accounts-base/accounts_server.js:30:5) {
input: ‘iLoveJS://${MONGODB_ADVERTISED_HOSTNAME:-mongodb:27017’,
code: ‘ERR_INVALID_URL’
},
[Symbol(errorLabels)]: Set(0) {}
}
Log From mongodb docker container:
hot count: 0, oldest timestamp: (1703522542, 1) , meta checkpoint timestamp: (1703522842, 1) base write gen: 324"}}
{“t”:{“$date”:“2023-12-25T16:48:24.846+00:00”},“s”:“I”, “c”:“STORAGE”, “id”:22430, “ctx”:“Checkpointer”,“msg”:“WiredTiger message”,“attr”:{“message”:“[1703522904:846731][1:0x7f83c111b700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 171, snapshot max: 171 snapshot count: 0, oldest timestamp: (1703522602, 1) , meta checkpoint timestamp: (1703522902, 1) base write gen: 324”}}
{“t”:{“$date”:“2023-12-25T16:49:25.056+00:00”},“s”:“I”, “c”:“STORAGE”, “id”:22430, “ctx”:“Checkpointer”,“msg”:“WiredTiger message”,“attr”:{“message”:“[1703522965:56225][1:0x7f83c111b700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 186, snapshot max: 186 snapshot count: 0, oldest timestamp: (1703522662, 1) , meta checkpoint timestamp: (1703522962, 1) base write gen: 324”}}
{“t”:{“$date”:“2023-12-25T16:50:25.226+00:00”},“s”:“I”, “c”:“STORAGE”, “id”:22430, “ctx”:“Checkpointer”,“msg”:“WiredTiger message”,“attr”:{“message”:“[1703523025:226257][1:0x7f83c111b700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 201, snapshot max: 201 snapshot count: 0, oldest timestamp: (1703522722, 1) , meta checkpoint timestamp: (1703523022, 1) base write gen: 324”}}
{“t”:{“$date”:“2023-12-25T16:51:25.487+00:00”},“s”:“I”, “c”:“STORAGE”, “id”:22430, “ctx”:“Checkpointer”,“msg”:“WiredTiger message”,“attr”:{“message”:“[1703523085:487601][1:0x7f83c111b700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 216, snapshot max: 216 snapshot count: 0, oldest timestamp: (1703522782, 1) , meta checkpoint timestamp: (1703523082, 1) base write gen: 324”}}
{“t”:{“$date”:“2023-12-25T16:52:25.831+00:00”},“s”:“I”, “c”:“STORAGE”, “id”:22430, “ctx”:“Checkpointer”,“msg”:“WiredTiger message”,“attr”:{“message”:“[1703523145:831747][1:0x7f83c111b700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 231, snapshot max: 231 snapshot count: 0, oldest timestamp: (1703522842, 1) , meta checkpoint timestamp: (1703523142, 1) base write gen: 324”}}
{“t”:{“$date”:“2023-12-25T16:53:26.068+00:00”},“s”:“I”, “c”:“STORAGE”, “id”:22430, “ctx”:“Checkpointer”,“msg”:“WiredTiger message”,“attr”:{“message”:“[1703523206:68543][1:0x7f83c111b700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 246, snapshot max: 246 snapshot count: 0, oldest timestamp: (1703522902, 1) , meta checkpoint timestamp: (1703523202, 1) base write gen: 324”}}