

(/usr/src/app/node_modules/mongoose/lib/cursor/ChangeStream.js:41:51)Īt processError (/usr/src/app/node_modules/mongodb/lib/change_stream.js:571:38)Īt ChangeStreamCursor.

MongoError: The $changeStream stage is only supported on replica setsĪt ssageHandler (/usr/src/app/node_modules/mongodb/lib/cmap/connection.js:268:20)Īt processIncomingData (/usr/src/app/node_modules/mongodb/lib/cmap/message_stream.js:144:12)Īt MessageStream._write (/usr/src/app/node_modules/mongodb/lib/cmap/message_stream.js:42:5)Īt writeOrBuffer (_stream_writable.js:352:12)Īt (_stream_writable.js:303:10)Īt Socket.ondata (_stream_readable.js:719:22)Īt readableAddChunk (_stream_readable.js:284:9)Īt (_stream_readable.js:223:10)Īt TCP.onStreamRead (internal/stream_base_commons.js:188:23)Įmitted 'error' event on ChangeStream instance at:Īt ChangeStream. Test-app is listening on connected mongoose And my app( node-app-setup) was running well.Įrror message from Docker log: > nodemon. But, my mongo-express container working fine. The node-app-setup container gave the following error and my HTTP server was crashed. In this tutorial, we will focus on running an open source, private alternative to those platforms. When I was running my docker-composer file. Jun 2019 Featured Overview Updates (4) Reviews (1) Discussion Did you hear of SLACK How about Discord Microsoft Teams Great Then you know what this tutorial will be all about. Waiting 5 secs.\" sleep 5 done (exit $$s)" labels: - "traefik.I faced an error while running MongoDB in docker. We put the added excerpt in red: version: '3.4' services: rocketchat: image: rocketchat/rocket.chat:latest command: "node main.js" environment: - PORT=3000 - ROOT_URL= - MONGO_URL=mongodb://mongo :27017/rocketchat - MONGO_OPLOG_URL=mongodb://mongo:27017/local - ADMIN_USERNAME=admin - ADMIN_PASS=admin ports: - 3000:3000 mongo: image: mongo:4.0 restart: unless-stopped volumes: - mongo-data-rz :/data/db - mongo-data-backup-volume:/data/backup - mongo-data-dump:/data/dump command: mongod -smallfiles -oplogSize 128 -replSet rs0 -storageEngine=mmapv1 mongo- init-replica: image: mongo:4.0 command: > bash -c "for i in `seq 1 30` do mongo mongo/rocketchat -eval \" rs.initiate()\" & s=$$? & break || s=$$? echo \"Tried $$ times. This step-by-step has been tested when migrating from a Rocket.Chat 3.18.x environment to 4.0 and it is possible that it will be used for other versions.įirst, edit the docker-compose.yml file, creating two new volumes in the mongodb service or container, as below.
#Rocketchat upgrade update#
This mechanism, however, has been discontinued and, in order to update Rocket.Chat from older versions like 3.x to 4.x, it is necessary to migrate MongoDB storage to WiredTiger. Make sure the Rocket.Chat image value in the compose file points to the latest tag on the registry. Initial installations of Rocket.Chat via docker, came standard with the storage engine (Storage Engine) MMAPv1.
#Rocketchat upgrade install#
If it would be easier, i can install fresh new version correctly using snap. To install Rocket.Chat, run the following command from the command line or from PowerShell.


#Rocketchat upgrade how to#
Migrating MongoDB from MMAPv1 to WiredTiger NodeJS: v12.14.0 MongoDB: 4.0.28 Mongo storage: mmapv1 OS release from RocketChat admin: 4.15.0-206-generic So, my questions are: How to make a correct backup (and restore) How to upgrade that old version correctly Official docs contain only snap/docker information. Deployment Method: Individual Install, Upgrade, & Uninstall.
