How to clear MongoDB to re-activate your workspace
This is the procedure on how to clear MongoDB data in cases where you have mismatching information and your workspace isnβt working as expected.
Reason/Causes:
You canβt access your workspace and needs to re-register after obtaining a new workspaceToken.
Environment
Self-hosted.
Steps on how to clear MongoDB to re-activate your workspace:
Enter the mongo shell with the command ( this command depends on your deployment type and is different in the case of Docker):
mongo shell
Β
Chose rocket chat DB:
use rocketchat
Β
Run the following query ( you should receive successful output where will be statements that a few entries were successfully changed ):
db.rocketchat_settings.remove( {"_id": /Cloud_/} )
Β
Restart Rocket.Chat server (this is needed for the server to get the refreshed changes on the collection.
Β
Request for the token from the support agent.
Β
After all, you will need to pass the registration token which we provide for the workspace under Administration -> connectivity services.