Skip to content

The official Rocketchat docker-compose needs to be updated for newer version of MongoDB #23479

Closed

Description

@Taubin

Description:

Using the rocketchat docker-compose file here: https://raw.githubusercontent.com/RocketChat/Rocket.Chat/develop/docker-compose.yml the instance installs Mongodb v4.0. When starting up rocketchat, it gives a warning stating mongodb 4.0 has been depreciated and needs to be at least 4.2. Updating the file to just 4.2 breaks due to changes in mongodb's file system. The docker-compose needs to be updated properly.

Steps to reproduce:

  1. Install docker-compose version of rocket chat using the official instructions here: https://docs.rocket.chat/quick-start/installing-and-updating/docker-containers/docker-compose
  2. You will receive an error stating mongodb is depreciated
  3. You will also receive multiple messages on your installation telling you it's depreciated.

Expected behavior:

The version of mongodb to be updating and the documentation updated to reflect the changes/

Actual behavior:

rocket_chat_depreciated

rocket_cat

Server Setup Information:

  • Version of Rocket.Chat Server: 4.0.2
  • Operating System: Ubuntu 20.04
  • Deployment Method: Docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version:
  • MongoDB Version: 4.0

Client Setup Information

  • Desktop App or Browser Version: N/A
  • Operating System: N/A

Additional context

Activity

  1. debdutdeb commented on Oct 18, 2021

    @debdutdeb
    Member

    Hi.

    I have a PR currently open to update the whole compose file.

    #23426
    #23425

  2. WingsLikeEagles commented on Oct 20, 2021

    @WingsLikeEagles

    This probably isn't any help at all. I'm just sharing for the informational purposes.

    I had RocketChat 3.15.0 running in a container with MongoDB 4.0.23 running in a replica set with a couple of containers.
    To move to MongoDB 4.2.16, I did:

    • mongodump on MongoDB 4.0.23 containers
    • shutdown all the containers (RocketChat first)
    • started new MongoDB 4.2.16 containers (with empty data volumes, joined them to a replica set)
    • mongorestore to new containers
    • start RocketChat container.

    This seemed to successful and running for a couple of weeks now.

  3. sneakyx commented on Feb 27, 2022

    @sneakyx

    As far as I understood, the --smallfiles options have to be removed, right?

  4. added a commit that references this issue on Jun 10, 2022
    e38b5bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions