Skip to content

Rocket.Chat doesn't send push messages if connection to mongodb was lost or primary election occurs #8038

@TheReal1604

Description

@TheReal1604

Description:

If a rocket.chat instance lose the connection to its database and restore it, all works fine except push messages are not send anymore until a restart of the instance. Push messages are sent via push gateway.

Server Setup Information:

  • Version of Rocket.Chat Server: 0.58.2
  • Operating System: Ubuntu 16.04 LTS
  • Deployment Method(snap/docker/tar/etc): docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog: YES
  • Node Version: shipped in docker image

Steps to Reproduce:

  1. Start your MongoDB Docker Container
  2. Start your Rocket.Chat Docker Container
  3. Send some test messages -> push is working
  4. Stop mongodb docker container, wait 10 sec
  5. start mongodb docker container
  6. Wait for reconnecting of the rc docker container
  7. Send some test messages -> no push messages anymore

Expected behavior:

Push messages should be send if a docker rocket.chat containers fail-over or reconnect to the database.

Actual behavior:

At a fail over or a reconnection to the database no push messages are sent anymore until a complete restart of the RC docker container is done.

Relevant logs:

No relevant log messages (just seeing that there are no log entries after reconnection)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions