The Great Open Source Debate with Elastic, Gluu and GitHub 🎤 Oct 27

New Rocketchat in Docker - no registration possible - registration stuck

Description

I can’t create the initial User. It stucks.
If I reload the page then it will show the normal login prompt, but I can only login with email and password, because the username is not created. Rocketchat askes for it afterward. Then the setup continues.

If a new user register itself, its the same. New user with email and password, but no username.

What can I do? It’s a complete fresh installation.


LocalStore: store created at ,
LocalStore: store created at ,
LocalStore: store created at ,
LocalStore: store created at ,
LocalStore: store created at ,
LocalStore: store created at ,
Setting default file store to GridFS,
ufs: temp directory created at "/tmp/ufs",
LocalStore: store created at ,
LocalStore: store created at ,
LocalStore: store created at ,
Updating process.env.MAIL_URL,
Setting default file store to GridFS,
Starting Email Intercepter...,
Loaded the Apps Framework and loaded a total of 0 Apps!,
Using GridFS for custom sounds storage,
Using GridFS for custom emoji storage,
Updating process.env.MAIL_URL,
➔ System ➔ startup,
➔ +----------------------------------------------+,
➔ |                SERVER RUNNING                |,
➔ +----------------------------------------------+,
➔ |                                              |,
➔ |  Rocket.Chat Version: 3.18.0                 |,
➔ |       NodeJS Version: 12.22.1 - x64          |,
➔ |      MongoDB Version: 4.0.26                 |,
➔ |       MongoDB Engine: mmapv1                 |,
➔ |             Platform: linux                  |,
➔ |         Process Port: 3000                   |,
➔ |             Site URL: https://chat.demo.domain  |,
➔ |     ReplicaSet OpLog: Enabled                |,
➔ |          Commit Hash: a57b10e779             |,
➔ |        Commit Branch: HEAD                   |,
➔ |                                              |,
➔ +----------------------------------------------+,
(node:8) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

It sits behind a reverse proxy.

COMPOSE:

  rocketchat:
    image: rocket.chat
    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:
      - /home/kartoffel/_files/rocketchat/uploads:/app/uploads
    environment:
      - PORT=3000
      - ROOT_URL=https://chat.demo.domain
      - MONGO_URL=mongodb://mongo-rocket:27017/rocketchat
      - MONGO_OPLOG_URL=mongodb://mongo-rocket:27017/local
      - MAIL_URL=smtp://smtp.email
    depends_on:
      - mongo-rocket
    ports:
      - 3000:3000
    labels:
      traefik.enable: "true"
      traefik.docker.network: "weave"
      traefik.http.routers.bdchat.entrypoints: "https"
      traefik.http.routers.bdchat.rule: "Host(`chat.demo.domain`)"
      traefik.http.routers.bdchat.tls: "true"
      traefik.http.routers.bdchat.priority: "100"
      traefik.http.services.bdchat.loadbalancer.server.port: "3000"

  mongo-rocket:
    image: mongo:4.0
    restart: unless-stopped
    volumes:
     - /home/kartoffel/_files/rocketchat/db:/data/db
     #- ./data/dump:/dump
    command: mongod --smallfiles --oplogSize 128 --replSet rs0 --storageEngine=mmapv1
    hostname: 'mongo-rocket'

  # 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-rocket-init-replica:
    image: mongo:4.0
    command: >
      bash -c
        "for i in `seq 1 30`; do
          mongo mongo-rocket/rocketchat --eval \"
            rs.initiate({
              _id: 'rs0',
              members: [ { _id: 0, host: 'localhost:27017' } ]})\" &&
          s=$$? && break || s=$$?;
          echo \"Tried $$i times. Waiting 5 secs...\";
          sleep 5;
        done; (exit $$s)"
    depends_on:
      - mongo-rocket
      

Mongo Log:

2021-09-07T15:37:21.713+0000 I INDEX    [conn12] build index done.  scanned 0 total records. 0 secs,
2021-09-07T15:37:21.714+0000 I INDEX    [conn7] build index on: rocketchat.rocketchat_livechat_priority properties: { v: 2, unique: true, key: { dueTimeInMinutes: 1 }, name: "dueTimeInMinutes_1", ns: "rocketchat.rocketchat_livechat_priority" },
2021-09-07T15:37:21.714+0000 I INDEX    [conn7] 	 building index using bulk method; build may temporarily use up to 500 megabytes of RAM,
2021-09-07T15:37:21.714+0000 I INDEX    [conn7] build index done.  scanned 0 total records. 0 secs,
2021-09-07T15:37:21.715+0000 I SHARDING [conn3] Marking collection rocketchat.rocketchat_livechat_tag as collection version: <unsharded>,
2021-09-07T15:37:21.716+0000 I STORAGE  [conn14] createCollection: rocketchat.rocketchat_livechat_tag with generated UUID: 74202861-6d54-4573-a620-a82a53e495e1,
2021-09-07T15:37:21.716+0000 I INDEX    [conn14] build index on: rocketchat.rocketchat_livechat_tag properties: { v: 2, key: { _updatedAt: 1 }, name: "_updatedAt_1", ns: "rocketchat.rocketchat_livechat_tag" },
2021-09-07T15:37:21.716+0000 I INDEX    [conn14] 	 building index using bulk method; build may temporarily use up to 500 megabytes of RAM,
2021-09-07T15:37:21.716+0000 I INDEX    [conn14] build index done.  scanned 0 total records. 0 secs,
2021-09-07T15:37:21.717+0000 I INDEX    [conn4] build index on: rocketchat.rocketchat_livechat_tag properties: { v: 2, unique: true, key: { name: 1 }, name: "name_1", ns: "rocketchat.rocketchat_livechat_tag" },
2021-09-07T15:37:21.717+0000 I INDEX    [conn4] 	 building index using bulk method; build may temporarily use up to 500 megabytes of RAM,
2021-09-07T15:37:21.717+0000 I INDEX    [conn4] build index done.  scanned 0 total records. 0 secs,
2021-09-07T15:37:21.719+0000 I SHARDING [conn5] Marking collection rocketchat.rocketchat_livechat_unit_monitors as collection version: <unsharded>,
2021-09-07T15:37:21.720+0000 I STORAGE  [conn10] createCollection: rocketchat.rocketchat_livechat_unit_monitors with generated UUID: 4be10626-3921-49e4-b2b7-1801eedda68f,
2021-09-07T15:37:21.720+0000 I INDEX    [conn10] build index on: rocketchat.rocketchat_livechat_unit_monitors properties: { v: 2, key: { _updatedAt: 1 }, name: "_updatedAt_1", ns: "rocketchat.rocketchat_livechat_unit_monitors" },
2021-09-07T15:37:21.720+0000 I INDEX    [conn10] 	 building index using bulk method; build may temporarily use up to 500 megabytes of RAM,
2021-09-07T15:37:21.720+0000 I INDEX    [conn10] build index done.  scanned 0 total records. 0 secs,
2021-09-07T15:37:21.721+0000 I INDEX    [conn12] build index on: rocketchat.rocketchat_livechat_unit_monitors properties: { v: 2, key: { monitorId: 1 }, name: "monitorId_1", ns: "rocketchat.rocketchat_livechat_unit_monitors" },
2021-09-07T15:37:21.721+0000 I INDEX    [conn12] 	 building index using bulk method; build may temporarily use up to 500 megabytes of RAM,
2021-09-07T15:37:21.721+0000 I INDEX    [conn12] build index done.  scanned 0 total records. 0 secs,
2021-09-07T15:37:21.722+0000 I INDEX    [conn7] build index on: rocketchat.rocketchat_livechat_unit_monitors properties: { v: 2, key: { unitId: 1 }, name: "unitId_1", ns: "rocketchat.rocketchat_livechat_unit_monitors" },
2021-09-07T15:37:21.722+0000 I INDEX    [conn7] 	 building index using bulk method; build may temporarily use up to 500 megabytes of RAM,
2021-09-07T15:37:21.722+0000 I INDEX    [conn7] build index done.  scanned 0 total records. 0 secs,
2021-09-07T15:37:21.754+0000 I STORAGE  [conn11] createCollection: rocketchat.omnichannel_queue_inactivity_monitor with generated UUID: c375ebed-6712-4034-8a16-2f847fbcbb65,
2021-09-07T15:37:21.755+0000 I INDEX    [conn11] build index on: rocketchat.omnichannel_queue_inactivity_monitor properties: { v: 2, key: { name: 1, nextRunAt: 1, priority: -1, lockedAt: 1, disabled: 1 }, name: "findAndLockNextJobIndex", ns: "rocketchat.omnichannel_queue_inactivity_monitor" },
2021-09-07T15:37:21.755+0000 I INDEX    [conn11] 	 building index using bulk method; build may temporarily use up to 500 megabytes of RAM,
2021-09-07T15:37:21.755+0000 I INDEX    [conn11] build index done.  scanned 0 total records. 0 secs,
2021-09-07T15:37:21.880+0000 I SHARDING [conn3] Marking collection rocketchat.migrations as collection version: <unsharded>,
2021-09-07T15:37:21.882+0000 I STORAGE  [conn14] createCollection: rocketchat.migrations with generated UUID: 096c236d-6d51-4bbc-85d6-df9ea9c66540,
2021-09-07T15:37:21.959+0000 I SHARDING [conn11] Marking collection rocketchat.rocketchat_cron_history as collection version: <unsharded>,
2021-09-07T15:37:21.960+0000 I STORAGE  [conn13] createCollection: rocketchat.rocketchat_cron_history with generated UUID: 9aca3df3-e9dd-4836-aef7-a6b3d491fb6c,
2021-09-07T15:37:21.961+0000 I INDEX    [conn13] build index on: rocketchat.rocketchat_cron_history properties: { v: 2, unique: true, key: { intendedAt: 1, name: 1 }, name: "intendedAt_1_name_1", ns: "rocketchat.rocketchat_cron_history" },
2021-09-07T15:37:21.961+0000 I INDEX    [conn13] 	 building index using bulk method; build may temporarily use up to 500 megabytes of RAM,
2021-09-07T15:37:21.961+0000 I INDEX    [conn13] build index done.  scanned 0 total records. 0 secs,
2021-09-07T15:37:21.963+0000 I INDEX    [conn6] build index on: rocketchat.rocketchat_cron_history properties: { v: 2, key: { startedAt: 1 }, name: "startedAt_1", ns: "rocketchat.rocketchat_cron_history", expireAfterSeconds: 172800 },
2021-09-07T15:37:21.963+0000 I INDEX    [conn6] 	 building index using bulk method; build may temporarily use up to 500 megabytes of RAM,
2021-09-07T15:37:21.963+0000 I INDEX    [conn6] build index done.  scanned 0 total records. 0 secs,
2021-09-07T15:37:23.899+0000 I SHARDING [conn10] Marking collection rocketchat.rocketchat_apps as collection version: <unsharded>,
2021-09-07T15:37:23.901+0000 I STORAGE  [conn11] createCollection: rocketchat.rocketchat_apps with generated UUID: 1fe5897e-dd21-45e9-be66-2c0c7e669999,
2021-09-07T15:37:23.902+0000 I INDEX    [conn11] build index on: rocketchat.rocketchat_apps properties: { v: 2, key: { _updatedAt: 1 }, name: "_updatedAt_1", ns: "rocketchat.rocketchat_apps" },
2021-09-07T15:37:23.902+0000 I INDEX    [conn11] 	 building index using bulk method; build may temporarily use up to 500 megabytes of RAM,
2021-09-07T15:37:23.902+0000 I INDEX    [conn11] build index done.  scanned 0 total records. 0 secs,
2021-09-07T15:37:23.904+0000 I SHARDING [conn12] Marking collection rocketchat.rocketchat_apps_logs as collection version: <unsharded>,
2021-09-07T15:37:23.905+0000 I STORAGE  [conn7] createCollection: rocketchat.rocketchat_apps_logs with generated UUID: 0264e0d1-8750-425e-b0e4-9cfa52fcf873,
2021-09-07T15:37:23.906+0000 I INDEX    [conn7] build index on: rocketchat.rocketchat_apps_logs properties: { v: 2, key: { _updatedAt: 1 }, name: "_updatedAt_1", ns: "rocketchat.rocketchat_apps_logs", expireAfterSeconds: 2592000 },
2021-09-07T15:37:23.906+0000 I INDEX    [conn7] 	 building index using bulk method; build may temporarily use up to 500 megabytes of RAM,
2021-09-07T15:37:23.906+0000 I INDEX    [conn7] build index done.  scanned 0 total records. 0 secs,
2021-09-07T15:37:23.907+0000 I INDEX    [conn3] build index on: rocketchat.rocketchat_apps_logs properties: { v: 2, key: { appId: 1 }, name: "appId_1", ns: "rocketchat.rocketchat_apps_logs" },
2021-09-07T15:37:23.907+0000 I INDEX    [conn3] 	 building index using bulk method; build may temporarily use up to 500 megabytes of RAM,
2021-09-07T15:37:23.907+0000 I INDEX    [conn3] build index done.  scanned 0 total records. 0 secs,
2021-09-07T15:37:23.908+0000 I SHARDING [conn6] Marking collection rocketchat.rocketchat_apps_persistence as collection version: <unsharded>,
2021-09-07T15:37:23.908+0000 I STORAGE  [conn14] createCollection: rocketchat.rocketchat_apps_persistence with generated UUID: 5f9ce16d-e302-4dbf-a178-72dd0e2d7ad1,
2021-09-07T15:37:23.909+0000 I INDEX    [conn14] build index on: rocketchat.rocketchat_apps_persistence properties: { v: 2, key: { _updatedAt: 1 }, name: "_updatedAt_1", ns: "rocketchat.rocketchat_apps_persistence" },
2021-09-07T15:37:23.909+0000 I INDEX    [conn14] 	 building index using bulk method; build may temporarily use up to 500 megabytes of RAM,
2021-09-07T15:37:23.909+0000 I INDEX    [conn14] build index done.  scanned 0 total records. 0 secs,
2021-09-07T15:37:23.909+0000 I INDEX    [conn10] build index on: rocketchat.rocketchat_apps_persistence properties: { v: 2, key: { appId: 1 }, name: "appId_1", ns: "rocketchat.rocketchat_apps_persistence" },
2021-09-07T15:37:23.909+0000 I INDEX    [conn10] 	 building index using bulk method; build may temporarily use up to 500 megabytes of RAM,
2021-09-07T15:37:23.909+0000 I INDEX    [conn10] build index done.  scanned 0 total records. 0 secs,
2021-09-07T15:37:23.918+0000 I STORAGE  [conn4] createCollection: rocketchat.rocketchat_apps_scheduler with generated UUID: a02ed6f8-5e03-4ae5-811b-99f439ff959d,
2021-09-07T15:37:23.919+0000 I INDEX    [conn4] build index on: rocketchat.rocketchat_apps_scheduler properties: { v: 2, key: { name: 1, nextRunAt: 1, priority: -1, lockedAt: 1, disabled: 1 }, name: "findAndLockNextJobIndex", ns: "rocketchat.rocketchat_apps_scheduler" },
2021-09-07T15:37:23.919+0000 I INDEX    [conn4] 	 building index using bulk method; build may temporarily use up to 500 megabytes of RAM,
2021-09-07T15:37:23.919+0000 I INDEX    [conn4] build index done.  scanned 0 total records. 0 secs,
2021-09-07T15:37:23.923+0000 I COMMAND  [conn13] CMD: drop rocketchat.rocketchat_raw_imports,
2021-09-07T15:37:23.923+0000 I STORAGE  [conn13] dropCollection: rocketchat.rocketchat_raw_imports (ec30f8df-0e71-458c-a505-147689b1ede7) - renaming to drop-pending collection: rocketchat.system.drop.1631029043i365t1.rocketchat_raw_imports with drop optime { ts: Timestamp(1631029043, 365), t: 1 },
2021-09-07T15:37:23.923+0000 I STORAGE  [conn13] renameCollection: renaming collection ec30f8df-0e71-458c-a505-147689b1ede7 from rocketchat.rocketchat_raw_imports to rocketchat.system.drop.1631029043i365t1.rocketchat_raw_imports,
2021-09-07T15:37:23.937+0000 I REPL     [replication-0] Completing collection drop for rocketchat.system.drop.1631029043i365t1.rocketchat_raw_imports with drop optime { ts: Timestamp(1631029043, 365), t: 1 } (notification optime: { ts: Timestamp(1631029043, 368), t: 1 }),
2021-09-07T15:37:23.937+0000 I STORAGE  [replication-0] Finishing collection drop for rocketchat.system.drop.1631029043i365t1.rocketchat_raw_imports (ec30f8df-0e71-458c-a505-147689b1ede7).,
2021-09-07T15:37:24.586+0000 I INDEX    [conn13] build index on: rocketchat.rocketchat_message properties: { v: 2, key: { pinnedBy._id: 1 }, name: "pinnedBy._id_1", ns: "rocketchat.rocketchat_message", sparse: 1 },
2021-09-07T15:37:24.586+0000 I INDEX    [conn13] 	 building index using bulk method; build may temporarily use up to 500 megabytes of RAM,
2021-09-07T15:37:24.586+0000 I INDEX    [conn13] build index done.  scanned 0 total records. 0 secs,
2021-09-07T15:37:24.596+0000 I INDEX    [conn6] build index on: rocketchat.rocketchat_message properties: { v: 2, key: { starred._id: 1 }, name: "starred._id_1", ns: "rocketchat.rocketchat_message", sparse: 1 },
2021-09-07T15:37:24.596+0000 I INDEX    [conn6] 	 building index using bulk method; build may temporarily use up to 500 megabytes of RAM,
2021-09-07T15:37:24.596+0000 I INDEX    [conn6] build index done.  scanned 0 total records. 0 secs,
2021-09-07T15:37:25.502+0000 I STORAGE  [conn6] createCollection: rocketchat.omnichannel_auto_close_on_hold_scheduler with generated UUID: d1d58e27-8c15-4254-a01f-e2adfc51e47c,
2021-09-07T15:37:25.502+0000 I INDEX    [conn6] build index on: rocketchat.omnichannel_auto_close_on_hold_scheduler properties: { v: 2, key: { name: 1, nextRunAt: 1, priority: -1, lockedAt: 1, disabled: 1 }, name: "findAndLockNextJobIndex", ns: "rocketchat.omnichannel_auto_close_on_hold_scheduler" },
2021-09-07T15:37:25.502+0000 I INDEX    [conn6] 	 building index using bulk method; build may temporarily use up to 500 megabytes of RAM,
2021-09-07T15:37:25.502+0000 I INDEX    [conn6] build index done.  scanned 0 total records. 0 secs,
2021-09-07T15:37:25.503+0000 I STORAGE  [conn7] createCollection: rocketchat.omnichannel_scheduler with generated UUID: 0d4cb4eb-4f66-40f1-ab44-a5b54b48fc93,
2021-09-07T15:37:25.504+0000 I STORAGE  [FileAllocator] allocating new datafile /data/db/rocketchat.2,
2021-09-07T15:37:25.505+0000 I STORAGE  [FileAllocator] done allocating datafile /data/db/rocketchat.2, size: 64MB,  took 0 secs,
2021-09-07T15:37:25.505+0000 I INDEX    [conn7] build index on: rocketchat.omnichannel_scheduler properties: { v: 2, key: { name: 1, nextRunAt: 1, priority: -1, lockedAt: 1, disabled: 1 }, name: "findAndLockNextJobIndex", ns: "rocketchat.omnichannel_scheduler" },
2021-09-07T15:37:25.505+0000 I INDEX    [conn7] 	 building index using bulk method; build may temporarily use up to 500 megabytes of RAM,
2021-09-07T15:37:25.505+0000 I INDEX    [conn7] build index done.  scanned 0 total records. 0 secs,
2021-09-07T15:37:25.564+0000 I SHARDING [conn10] Marking collection rocketchat.ufsTokens as collection version: <unsharded>,
2021-09-07T15:37:25.565+0000 I STORAGE  [conn5] createCollection: rocketchat.ufsTokens with generated UUID: 3af329e1-7fc1-445d-93cc-630475e838d2,
2021-09-07T15:37:25.646+0000 I SHARDING [conn11] Marking collection rocketchat.rocketchat_avatars.files as collection version: <unsharded>,
2021-09-07T15:37:25.649+0000 I STORAGE  [conn3] createCollection: rocketchat.rocketchat_avatars.files with generated UUID: a0246fc0-8164-4e6d-86dd-85cd09f082e2,
2021-09-07T15:37:25.650+0000 I INDEX    [conn3] build index on: rocketchat.rocketchat_avatars.files properties: { v: 2, key: { filename: 1, uploadDate: 1 }, name: "filename_1_uploadDate_1", ns: "rocketchat.rocketchat_avatars.files", background: false },
2021-09-07T15:37:25.650+0000 I INDEX    [conn3] 	 building index using bulk method; build may temporarily use up to 500 megabytes of RAM,
2021-09-07T15:37:25.650+0000 I INDEX    [conn3] build index done.  scanned 0 total records. 0 secs,
2021-09-07T15:37:25.651+0000 I SHARDING [conn4] Marking collection rocketchat.rocketchat_avatars.chunks as collection version: <unsharded>,
2021-09-07T15:37:25.651+0000 I STORAGE  [conn10] createCollection: rocketchat.rocketchat_avatars.chunks with generated UUID: 97761d1a-2538-48cc-904e-7751241b2601,
2021-09-07T15:37:25.652+0000 I INDEX    [conn10] build index on: rocketchat.rocketchat_avatars.chunks properties: { v: 2, unique: true, key: { files_id: 1, n: 1 }, name: "files_id_1_n_1", ns: "rocketchat.rocketchat_avatars.chunks", background: false },
2021-09-07T15:37:25.652+0000 I INDEX    [conn10] 	 building index using bulk method; build may temporarily use up to 500 megabytes of RAM,
2021-09-07T15:37:25.652+0000 I INDEX    [conn10] build index done.  scanned 0 total records. 0 secs,
2021-09-07T15:42:10.072+0000 I CONTROL  [LogicalSessionCacheReap] Sessions collection is not set up; waiting until next sessions reap interval: config.system.sessions does not exist,
2021-09-07T15:42:10.072+0000 I STORAGE  [LogicalSessionCacheRefresh] createCollection: config.system.sessions with generated UUID: d159d3f4-d052-43d9-a454-9580998eb880,
2021-09-07T15:42:10.072+0000 I INDEX    [LogicalSessionCacheRefresh] build index on: config.system.sessions properties: { v: 2, key: { lastUse: 1 }, name: "lsidTTLIndex", ns: "config.system.sessions", expireAfterSeconds: 1800 },
2021-09-07T15:42:10.072+0000 I INDEX    [LogicalSessionCacheRefresh] 	 building index using bulk method; build may temporarily use up to 500 megabytes of RAM,
2021-09-07T15:42:10.072+0000 I INDEX    [LogicalSessionCacheRefresh] build index done.  scanned 0 total records. 0 secs

Hi there!

I had similar problems, and solved it by bypassing the Wizard and setting the initial admin user and password using environment variables.

Like those:

  - OVERWRITE_SETTING_Show_Setup_Wizard=completed
  - ADMIN_USERNAME=adminrc
  - ADMIN_PASS=!!!SET MASTER_ADMIN_PASSWORD!!!

There was a recent change that reserves the user “admin” for some internal user. So I am using ‘adminrc’ instead.

Not sure what happened at your installation.

I have a cookiecutter script that help deploying rocket chat and some other nice open source projects with docker: https://github.com/dudanogueira/rocketconnect.cookiecutter