Description
I have recently installed rocket.chat as a docker instance running behind a traefik reverse proxy.
Everything works well, but after i leave the desktop app running in the background and i’m not interacting with it for a bit and i go back to send a message, it does not send, and everything stops loading.
With the same criteria, sometimes it also shows “You’re offline, trying to reconnect in xxx seconds”, no matter how much i press connect it does not go away.
Pressing “reload” or “force reload” either shows 404 not found, or it completely redirects me to the non proxied site of my domain. I have to kill the app with task manager and reopen it for it to reconnect.
Rocketchat shows no error logs while this happens, neither does the database.
Any advice?
Server Setup Information
- Version of Rocket.Chat Server: 7.1.0
- Operating System: Windows 11 24H2
- Deployment Method: Docker
- Number of Running Instances: 1
- DB Replicaset Oplog:
- NodeJS Version:
- MongoDB Version: 6.0
- Proxy: Traefik
- Firewalls involved: No
Any additional Information
docker compose file:
volumes:
mongodb_data: { driver: local }
services:
rocketchat:
image: ${IMAGE:-registry.rocket.chat/rocketchat/rocket.chat}:${RELEASE:-latest}
container_name: rocketchat
restart: unless-stopped
labels:
traefik.enable: "true"
traefik.http.routers.rocketchat.rule: Host(`${DOMAIN:-}`)
traefik.http.routers.rocketchat.tls: "true"
traefik.http.routers.rocketchat.entrypoints: https
traefik.http.services.rocketchat.loadbalancer.server.port: 3000
environment:
MONGO_URL: "${MONGO_URL:-\
mongodb://${MONGODB_ADVERTISED_HOSTNAME:-mongodb}:${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}/\
${MONGODB_DATABASE:-rocketchat}?replicaSet=${MONGODB_REPLICA_SET_NAME:-rs0}}"
MONGO_OPLOG_URL: "${MONGO_OPLOG_URL:\
-mongodb://${MONGODB_ADVERTISED_HOSTNAME:-mongodb}:${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}/\
local?replicaSet=${MONGODB_REPLICA_SET_NAME:-rs0}}"
ROOT_URL: ${ROOT_URL:-http://localhost:${HOST_PORT:-3000}}
PORT: ${PORT:-3000}
DEPLOY_METHOD: docker
DEPLOY_PLATFORM: ${DEPLOY_PLATFORM:-}
REG_TOKEN: ${REG_TOKEN:-}
depends_on:
- mongodb
expose:
- ${PORT:-3000}
networks:
- proxy
mongodb:
image: docker.io/bitnami/mongodb:${MONGODB_VERSION:-6.0}
container_name: rocketchat-mongodb
restart: unless-stopped
volumes:
- mongodb_data:/bitnami/mongodb
environment:
MONGODB_REPLICA_SET_MODE: primary
MONGODB_REPLICA_SET_NAME: ${MONGODB_REPLICA_SET_NAME:-rs0}
MONGODB_PORT_NUMBER: ${MONGODB_PORT_NUMBER:-27017}
MONGODB_INITIAL_PRIMARY_HOST: ${MONGODB_INITIAL_PRIMARY_HOST:-mongodb}
MONGODB_INITIAL_PRIMARY_PORT_NUMBER: ${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}
MONGODB_ADVERTISED_HOSTNAME: ${MONGODB_ADVERTISED_HOSTNAME:-mongodb}
MONGODB_ENABLE_JOURNAL: ${MONGODB_ENABLE_JOURNAL:-true}
ALLOW_EMPTY_PASSWORD: ${ALLOW_EMPTY_PASSWORD:-yes}
networks:
- proxy
networks:
proxy:
external: true
devtools console log during issue:
Not sure how relevant this is to the issue, traefik shows a couple of these every once in a while:
2025-01-02T07:38:23+01:00 DBG github.com/traefik/traefik/v3/pkg/proxy/httputil/proxy.go:113 > 499 Client Closed Request error="context canceled"
2025-01-02T07:38:23+01:00 DBG github.com/traefik/traefik/v3/pkg/proxy/httputil/proxy.go:113 > 499 Client Closed Request error="context canceled"