Rocket-Chat crashing after restoring database.

Description

After I restored the database to a new server, the char’s performance was extremely slow with just one user, the server I’m using has 5GB ram, SSD and an 8-core processor. After browsing for a few moments it stops responding, eventually it loses connection … I will already rest on other computers, I will restore old versions of version 2, and it is still bad.

[image]

Server Setup Information

Rocket.Chat
Version 2.4.14
Apps Engine version 1.11.2
Database migration 170
Database migration date April 2, 2021 at 9:09 pm
Installed on October 10, 2017 at 16:16
Online time 1 hours, 3 minutes, 1 seconds
Installation ID 3w9i7DB3cPL3ZixPm
PID 1364
Running instances 1
OpLog Enabled
Commit
Hash 4b59f9172ead8e5ff968df10c582274d4d78d7dc
Date Fri Dec 18 21:16:51 2020 -0300
Branch release-2.4.14
Tag 2.4.13
Author Diego Sampaio
Subject Bump version to 2.4.14
Execution environment
Linux Operating System Type
Linux platform
X64 architecture
Release 5.8.0-48-generic
Node version v8.17.0
Mongo Version 3.6.14
Mongo Storage Engine wiredTiger
On time 1 hour, 3 minutes, 27 seconds
Average Load 1.37, 1.43, 1.62
Total Memory 5.98 GB
Available Memory 110.66 MB
Number of CPUs 8
Build environment
Linux platform
X64 architecture
Release 4.10.0-42-generic
Node version v8.17.0
Date December 18, 2020 at 9:35 pm

Construir ambiente

Plataforma linux
Arquitetura x64
Release 4.10.0-42-generic
Versão do Node v8.17.0
Data 18 de Dezembro de 2020 às 21:35
-- Logs begin at Fri 2021-04-02 15:28:28 UTC, end at Sat 2021-04-03 01:33:55 UTC. --
Apr 02 15:30:48 servidor-aplicativos systemd[1]: Started Service for snap application rocketchat-server.rocketchat-mongo.
Apr 02 15:30:51 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:51.115+0000 I CONTROL  [initandlisten] MongoDB starting : pid=2469 port=27017 dbpath=/var/snap/rocketchat-server/common 64-bit host=servidor-aplicativos
Apr 02 15:30:51 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:51.115+0000 I CONTROL  [initandlisten] db version v3.6.14
Apr 02 15:30:51 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:51.115+0000 I CONTROL  [initandlisten] git version: cbef87692475857c7ee6e764c8f5104b39c342a1
Apr 02 15:30:51 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:51.115+0000 I CONTROL  [initandlisten] allocator: tcmalloc
Apr 02 15:30:51 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:51.115+0000 I CONTROL  [initandlisten] modules: none
Apr 02 15:30:51 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:51.115+0000 I CONTROL  [initandlisten] build environment:
Apr 02 15:30:51 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:51.115+0000 I CONTROL  [initandlisten]     distarch: x86_64
Apr 02 15:30:51 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:51.115+0000 I CONTROL  [initandlisten]     target_arch: x86_64
Apr 02 15:30:51 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:51.115+0000 I CONTROL  [initandlisten] options: { net: { bindIp: "127.0.0.1" }, processManagement: { pidFilePath: "/var/snap/rocketchat-server/common/mongod.pid" }, replication: { replSet: "rs0" }, storage: { dbPath: "/var/snap/rocketchat-server/common", journal: { >
Apr 02 15:30:51 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:51.116+0000 I STORAGE  [initandlisten]
Apr 02 15:30:51 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:51.116+0000 I STORAGE  [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
Apr 02 15:30:51 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:51.116+0000 I STORAGE  [initandlisten] **          See http://dochub.mongodb.org/core/prodnotes-filesystem
Apr 02 15:30:51 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:51.116+0000 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=2548M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),compatibility=(release="3.0",require_max="3.0"),log=(enabled=true,archive=true,path=jo>
Apr 02 15:30:51 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:51.764+0000 I STORAGE  [initandlisten] WiredTiger message [1617377451:764737][2469:0x7f81deaaaa40], txn-recover: Set global recovery timestamp: 0
Apr 02 15:30:52 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:52.026+0000 W STORAGE  [initandlisten] Detected configuration for non-active storage engine mmapv1 when current storage engine is wiredTiger
Apr 02 15:30:52 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:52.026+0000 I CONTROL  [initandlisten]
Apr 02 15:30:52 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:52.026+0000 I CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
Apr 02 15:30:52 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:52.026+0000 I CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
Apr 02 15:30:52 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:52.026+0000 I CONTROL  [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended.
Apr 02 15:30:52 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:52.026+0000 I CONTROL  [initandlisten]
Apr 02 15:30:52 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:52.148+0000 I STORAGE  [initandlisten] createCollection: local.startup_log with no UUID.
Apr 02 15:30:52 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:52.261+0000 W FTDC     [initandlisten] Error getting directory iterator '/sys/block': Permission denied
Apr 02 15:30:52 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:52.261+0000 I FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/var/snap/rocketchat-server/common/diagnostic.data'
Apr 02 15:30:52 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:52.262+0000 I STORAGE  [initandlisten] createCollection: local.me with no UUID.
Apr 02 15:30:52 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:52.377+0000 I STORAGE  [initandlisten] createCollection: local.replset.minvalid with no UUID.
Apr 02 15:30:52 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:52.470+0000 I STORAGE  [initandlisten] createCollection: local.replset.election with no UUID.
Apr 02 15:30:52 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:52.574+0000 I REPL     [initandlisten] Did not find local initialized voted for document at startup.
Apr 02 15:30:52 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:52.574+0000 I REPL     [initandlisten] Did not find local Rollback ID document at startup. Creating one.
Apr 02 15:30:52 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:52.575+0000 I STORAGE  [initandlisten] createCollection: local.system.rollback.id with no UUID.
Apr 02 15:30:52 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:52.665+0000 I REPL     [initandlisten] Initialized the rollback ID to 1
Apr 02 15:30:52 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:52.666+0000 I REPL     [initandlisten] Did not find local replica set configuration document at startup;  NoMatchingDocument: Did not find replica set configuration document in local.system.replset
Apr 02 15:30:52 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:52.668+0000 I NETWORK  [initandlisten] waiting for connections on port 27017
Apr 02 15:30:52 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:52.669+0000 I CONTROL  [LogicalSessionCacheReap] Sessions collection is not set up; waiting until next sessions reap interval: config.system.sessions does not exist
Apr 02 15:30:58 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:58.858+0000 I NETWORK  [listener] connection accepted from 127.0.0.1:38554 #1 (1 connection now open)
Apr 02 15:30:58 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:58.858+0000 I NETWORK  [conn1] received client metadata from 127.0.0.1:38554 conn1: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "3.6.14" }, os: { type: "Linux", name: "Ubuntu", architecture: "x86_64", version: "20.10>
Apr 02 15:30:58 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:58.864+0000 I REPL     [conn1] replSetInitiate admin command received from client
Apr 02 15:30:58 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:58.897+0000 I REPL     [conn1] replSetInitiate config object with 1 members parses ok
Apr 02 15:30:58 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:58.897+0000 I REPL     [conn1] ******
Apr 02 15:30:58 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:58.897+0000 I REPL     [conn1] creating replication oplog of size: 3930MB...
Apr 02 15:30:58 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:58.897+0000 I STORAGE  [conn1] createCollection: local.oplog.rs with no UUID.
Apr 02 15:30:58 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:58.932+0000 I STORAGE  [conn1] Starting WiredTigerRecordStoreThread local.oplog.rs
Apr 02 15:30:58 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:58.933+0000 I STORAGE  [conn1] The size storer reports that the oplog contains 0 records totaling to 0 bytes
Apr 02 15:30:58 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:58.933+0000 I STORAGE  [conn1] Scanning the oplog to determine where to place markers for truncation
Apr 02 15:30:59 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:59.237+0000 I REPL     [conn1] ******
Apr 02 15:30:59 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:59.239+0000 I STORAGE  [conn1] createCollection: local.system.replset with no UUID.
Apr 02 15:30:59 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:59.347+0000 I COMMAND  [conn1] Assigning UUID 8921f200-ca00-48b2-a55a-0ade40f8001b to collection local.system.rollback.id
Apr 02 15:30:59 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:59.352+0000 I COMMAND  [conn1] Assigning UUID 452f707c-f486-40f7-9184-d27c263228ba to collection local.system.replset
Apr 02 15:30:59 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:59.354+0000 I COMMAND  [conn1] Assigning UUID a99207c3-37a8-4dd8-a0d4-cfc279c804fb to collection local.me
Apr 02 15:30:59 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:59.354+0000 I COMMAND  [conn1] Assigning UUID b51422ae-7556-4171-a22c-86550c2665d5 to collection local.startup_log
Apr 02 15:30:59 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:59.355+0000 I COMMAND  [conn1] Assigning UUID 8dd004b7-4dc4-4b1d-b158-e888e2aec465 to collection local.replset.minvalid
Apr 02 15:30:59 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:59.356+0000 I COMMAND  [conn1] Assigning UUID 2ac530e5-60cb-408f-ace9-32423a317418 to collection local.oplog.rs
Apr 02 15:30:59 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:59.357+0000 I COMMAND  [conn1] Assigning UUID cf3386c4-91c5-4054-b763-664d60a5d07c to collection local.replset.election
Apr 02 15:30:59 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:59.357+0000 I STORAGE  [conn1] createCollection: admin.system.version with provided UUID: 0aaa3407-59d4-4ff4-865a-f46e6cb73ac9
Apr 02 15:30:59 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:59.453+0000 I COMMAND  [conn1] setting featureCompatibilityVersion to 3.6
Apr 02 15:30:59 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:59.454+0000 I NETWORK  [conn1] Skip closing connection for connection # 1
Apr 02 15:30:59 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:59.455+0000 I REPL     [conn1] New replica set config in use: { _id: "rs0", version: 1, protocolVersion: 1, members: [ { _id: 0, host: "localhost:27017", arbiterOnly: false, buildIndexes: true, hidden: false, priority: 1.0, tags: {}, slaveDelay: 0, votes: 1 } ], set>
Apr 02 15:30:59 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:59.456+0000 I REPL     [conn1] This node is localhost:27017 in the config
Apr 02 15:30:59 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:59.456+0000 I REPL     [conn1] transition to STARTUP2 from STARTUP
Apr 02 15:30:59 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:59.457+0000 I REPL     [conn1] Starting replication storage threads
Apr 02 15:30:59 servidor-aplicativos rocketchat-server.rocketchat-mongo[2469]: 2021-04-02T15:30:59.460+0000 I REPL     [conn1] transition to RECOVERING from STARTUP2

Did you get this resolved?