Docker.Official.Image
Docker.Official.Image copied to clipboard
instructions no longer work due to requirement for OPLOG
If you try the instructions on dockerhub, RC won't start up properly https://hub.docker.com/_/rocket-chat
OPLOG / REPLICASET IS REQUIRED TO RUN ROCKET.CHAT, MORE INFORMATION AT: https://go.rocket.chat/i/oplog-required
Ping...
The same problem occurred to me
This happened to me, too.
Same
/app/bundle/programs/server/node_modules/fibers/future.js:280
throw(ex);
^
Error: Error: Unable to find Mongodb Oplog. You must run the server with oplog enabled. Try the following:
1. Start your mongodb in a replicaset mode: mongod --smallfiles --oplogSize 128 --replSet rs0
2. Start the replicaset via mongodb shell: mongo mongo/meteor --eval "rs.initiate({ _id: ''rs0'', members: [ { _id: 0, host: ''localhost:27017'' } ]})"
3. Start your instance with OPLOG configuration: export MONGO_OPLOG_URL=mongodb://localhost:27017/local MONGO_URL=mongodb://localhost:27017/meteor node main.js
at BaseDb.handleListener (app/models/server/models/_BaseDb.js:51:11)
at emitTwo (events.js:126:13)
at BaseDb.emit (events.js:214:7)
at _addListener (events.js:249:14)
at BaseDb.addListener (events.js:297:10)
at emitter.js (app/authorization/server/publications/permissions/emitter.js:4:13)
at fileEvaluate (packages/modules-runtime.js:336:7)
at Module.require (packages/modules-runtime.js:238:14)
at Module.moduleLink [as link] (/app/bundle/programs/server/npm/node_modules/meteor/modules/node_modules/reify/lib/runtime/index.js:38:38)
at index.js (app/authorization/server/publications/permissions/index.js:1:178)
at fileEvaluate (packages/modules-runtime.js:336:7)
at Module.require (packages/modules-runtime.js:238:14)
at Module.moduleLink [as link] (/app/bundle/programs/server/npm/node_modules/meteor/modules/node_modules/reify/lib/runtime/index.js:38:38)
at index.js (app/authorization/server/index.js:1:1746)
at fileEvaluate (packages/modules-runtime.js:336:7)
at Module.require (packages/modules-runtime.js:238:14)
same
dcoker version:
Client: Docker Engine - Community
Version: 19.03.1
API version: 1.40
Go version: go1.12.5
Git commit: 74b1e89
Built: Thu Jul 25 21:22:03 2019
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 19.03.1
API version: 1.40 (minimum version 1.12)
Go version: go1.12.5
Git commit: 74b1e89
Built: Thu Jul 25 21:20:35 2019
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.2.6
GitCommit: 894b81a4b802e4eb2a91d1ce216b8817763c29fb
runc:
Version: 1.0.0-rc8
GitCommit: 425e105d5a03fabd737a126ad93d62a9eeede87f
docker-init:
Version: 0.18.0
GitCommit: fec3683
Same problem, does anyone has a workaround?
For your information, it works doing this:
docker run -d --name db --hostname db mongo:4.0 mongod --smallfiles --oplogSize 128 --replSet rs01
docker run --link db mongo:4.0 mongo db/rocketchat --eval "rs.initiate({ _id: 'rs01', members: [ { _id: 0, host: 'db:27017' } ]})"
docker run -d --link db --env "MONGO_URL=mongodb://db:27017/rocketchat?replicaSet=rs01" --env "MONGO_OPLOG_URL=mongodb://db:27017/local?replicaSet=rs01" rocket.chat
Haven't found less verbose.