RocketChat filling up its storage with Zip files

Description

After upgrading to version 6.4.6, an unidentified job is creating Zip files for all data, images, etc. which are filling up the storage in the “zipFiles” directory.

I already checked in Mongo the collection for export jobs and it’s empty.

Server Setup Information

  • Version of Rocket.Chat Server:
  • Operating System: Ubuntu 20.04
  • Deployment Method: Docker
  • Number of Running Instances:
  • DB Replicaset Oplog:
  • NodeJS Version: 14.21.3
  • MongoDB Version: 4.4.25
  • Proxy: nginx

Any additional Information

I upgraded my RC from 4.8.x to 6.4.6, passing by 5.4.10.

Hey, I don’t know whether this truly was the issue, but since I dropped the indexes of the database, this bug stopped happening on my rocket.chat instance.

Does rocketchat throw an error saying something like “couldn’t create index for collection rocketchat_upload” when starting it?

What I did is the following:

  • open a bash inside the container with “docker compose exec -it mongo /bin/bash”
  • start mongosh inside the container with “mongosh”
  • select the database “rocketchat” or whatever you called it with “use rocketchat”
  • drop the indexes with “db.collection.dropIndexes()”. collection is the name of the collection mentioned in the error message.
  • restart rocketchat

Don’t ask me why this fixed it (or maybe something else fixed this bug), but it’s worth giving it a try.