RocketChat / RocketChat/Rocket.Chat

Error after logging in

Open
#23,658 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

I'm using docker container to run rocket.chat on Ubuntu 20.04.3 LTS on a VPS server

Steps to reproduce:

  1. Login

Expectation:
The chat messages

This is my error:
image

This is my docker-compose.yaml


version: '2'

networks:
  nginxproxymanager_default:
    external: True

services:
  rocketchat:
    container_name: rocket_chat
    image: registry.rocket.chat/rocketchat/rocket.chat:latest
    command: >
      bash -c
        "for i in `seq 1 30`; do
          node main.js &&
          s=$$? && break || s=$$?;
          echo \"Tried $$i times. Waiting 5 secs...\";
          sleep 5;
        done; (exit $$s)"
    restart: unless-stopped
    volumes:
      - ./uploads:/app/uploads
    environment:
      - ADMIN_USERNAME=admin
      - ADMIN_PASS=admin pass
      - OVERWRITE_SETTING_Accounts_SystemBlockedUsernameList=administrator,system,user
      - OVERWRITE_SETTING_Show_Setup_Wizard=completed
      - PORT=4000
      - ROOT_URL=domain.com
      - MONGO_URL=mongodb://mongo:27017/rocketchat
      - MONGO_OPLOG_URL=mongodb://mongo:27017/local
#       - MAIL_URL=smtp://smtp.email
#       - HTTP_PROXY=http://proxy.domain.com
#       - HTTPS_PROXY=http://proxy.domain.com
    depends_on:
      - mongo
    networks:
      - nginxproxymanager_default
    ports:
      - 4000:4000
    labels:
      - "traefik.backend=rocketchat"
      - "traefik.frontend.rule=Host: your.domain.tld"

  mongo:
    container_name: rocket_chat_mongodb
    image: mongo:4.0
    networks:
      - nginxproxymanager_default
    restart: unless-stopped
    volumes:
     - ./data/db:/data/db
     #- ./data/dump:/dump
    command: mongod --smallfiles --oplogSize 128 --replSet rs0 --storageEngine=mmapv1
    labels:
      - "traefik.enable=false"

  # this container's job is just run the command to initialize the replica set.
  # it will run the command and remove himself (it will not stay running)
  mongo-init-replica:
    container_name: rocket_chat_mongodb-replica
    networks:
      - nginxproxymanager_default
    image: mongo:4.0
    command: >
      bash -c
        "for i in `seq 1 30`; do
          mongo mongo/rocketchat --eval \"
            rs.initiate({
              _id: 'rs0',
              members: [ { _id: 0, host: 'domain.com' } ]})\" &&
          s=$$? && break || s=$$?;
          echo \"Tried $$i times. Waiting 5 secs...\";
          sleep 5;
        done; (exit $$s)"
    depends_on:
      - mongo

  # hubot, the popular chatbot (add the bot user first and change the password before starting this image)
  hubot:
    container_name: rocket_chat_hubot
    image: rocketchat/hubot-rocketchat:latest
    restart: unless-stopped
    networks:
      - nginxproxymanager_default
    environment:
      - ROCKETCHAT_URL=rocketchat:4000
      - ROCKETCHAT_ROOM=GENERAL
      - ROCKETCHAT_USER=bot
      - ROCKETCHAT_PASSWORD=password
      - BOT_NAME=bot
  # you can add more scripts as you'd like here, they need to be installable by npm
      - EXTERNAL_SCRIPTS=hubot-help,hubot-seen,hubot-links,hubot-diagnostics
    depends_on:
      - rocketchat
    labels:
      - "traefik.enable=false"
    volumes:
      - ./scripts:/home/hubot/scripts
  # this is used to expose the hubot port for notifications on the host on port 4000, e.g. for hubot-jenkins-notifier
    ports:
      - 4001:4001

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the supplied docker-compose.yaml and reproduce the login flow on Ubuntu 20.04.3 with the listed Rocket.Chat and MongoDB containers, capturing the actual error text rather than relying on the linked image. Done means the user can log in and see chat messages.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose, mongodb, ubuntu
Domain
backend, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.