我正在尝试在 IBM Cloud (Bluemix) 上设置火箭聊天的 HA 实例。我的应用程序节点在 Cloud Foundry 上运行,而我在 compose 上使用数据库 MongoDB。
我遵循了本指南: https ://rocket.chat/docs/installation/docker-containers/high-availability-install/
但是当我为 oplog db 提供 env-var 时,我的应用程序在启动时崩溃了。所以我的问题是:在 Compose 上 Mongo 上的 oplog 是否有任何支持?如果是,如何访问数据库?
最好的帕特里克
更新:正如@kylemclaren 在这里询问的错误日志:
> 2018-08-07T21:03:29.62+0200 [APP/PROC/WEB/0] ERR
> /app/bundle/programs/server/node_modules/fibers/future.js:313
> 2018-08-07T21:03:29.62+0200 [APP/PROC/WEB/0] ERR throw(ex);
> 2018-08-07T21:03:29.62+0200 [APP/PROC/WEB/0] ERR ^
> 2018-08-07T21:03:29.62+0200 [APP/PROC/WEB/0] ERR MongoError: no
> primary found in replicaset or invalid replica set name
> 2018-08-07T21:03:29.62+0200 [APP/PROC/WEB/0] ERR at
> /app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/topologies/replset.js:560:28
> 2018-08-07T21:03:29.62+0200 [APP/PROC/WEB/0] ERR at
> Server.<anonymous>
> (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/topologies/replset.js:312:24)
> 2018-08-07T21:03:29.62+0200 [APP/PROC/WEB/0] ERR at
> Object.onceWrapper (events.js:315:30) 2018-08-07T21:03:29.62+0200
> [APP/PROC/WEB/0] ERR at emitOne (events.js:116:13)
> 2018-08-07T21:03:29.62+0200 [APP/PROC/WEB/0] ERR at Server.emit
> (events.js:211:7) 2018-08-07T21:03:29.62+0200 [APP/PROC/WEB/0] ERR
> at
> /app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/topologies/server.js:300:14
> 2018-08-07T21:03:29.62+0200 [APP/PROC/WEB/0] ERR at
> /app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/pool.js:469:18
> 2018-08-07T21:03:29.62+0200 [APP/PROC/WEB/0] ERR at
> _combinedTickCallback (internal/process/next_tick.js:131:7) 2018-08-07T21:03:29.62+0200 [APP/PROC/WEB/0] ERR at
> process._tickCallback (internal/process/next_tick.js:180:9)