RocketChat / Rocket.Chat.Embedded.arm64

An open source journey bringing the latest Rocket.Chat releases to the arm64 universe
MIT License
24 stars 15 forks source link

stable tested arm64 snap works on 18.04lts and 16.04lts but crashes on 20.04lts #1

Closed Sing-Li closed 3 years ago

Sing-Li commented 4 years ago

Rocket.Chat's latest arm64 snaps have been working fine on both 18.04lts and 16.04lts for years. When installed with 20.04lts, fails every time. Many users have reported this in the wild with Raspberry Pi's update to 20.04lts.

We have tested and found the same problem. We have even created new snaps with different version of MongoDB inside - from 3.x to 4.x - all crashes with the same problem.

To reproduce, on an arm64 20.04lts install:

sudo snap install rocketchat-server

The error message from the log in EVERY CASE is:


sudo journalctl  -u snap.rocketchat-server.rocketchat-mongo
-- Logs begin at Wed 2020-04-01 17:23:43 UTC, end at Sun 2020-05-10 23:30:18 UTC. --
May 10 22:15:56 ubuntu systemd[1]: Started Service for snap application rocketchat-server.rocketchat-mongo.
May 10 22:16:00 ubuntu rocketchat-server.rocketchat-mongo[5015]: 2020-05-10T22:16:00.429+0000 E -        [main] Assertion failure getrlimit(RLIMIT_NOFILE, &limit) == 0 src/mongo/transport/service_entry_point_i>
May 10 22:16:00 ubuntu rocketchat-server.rocketchat-mongo[5015]: 2020-05-10T22:16:00.527+0000 I CONTROL  [main]
May 10 22:16:00 ubuntu rocketchat-server.rocketchat-mongo[5015]:  0xaaaac47db568 0xaaaac47d9e14 0xaaaac3238208 0xaaaac34ae908 0xaaaac34a2274 0xaaaac32a3ce0 0xaaaac4794d20 0xaaaac47952d4 0xaaaac32b40ac 0xaaaac3>
May 10 22:16:00 ubuntu rocketchat-server.rocketchat-mongo[5015]: ----- BEGIN BACKTRACE -----
May 10 22:16:00 ubuntu rocketchat-server.rocketchat-mongo[5015]: {"backtrace":[{"b":"AAAAC28BB000","o":"1F20568","s":"_ZN5mongo15printStackTraceERSo"},{"b":"AAAAC28BB000","o":"1F1EE14","s":"_ZN5mongo10logConte>
May 10 22:16:00 ubuntu rocketchat-server.rocketchat-mongo[5015]:  mongod(_ZN5mongo15printStackTraceERSo+0x48) [0xaaaac47db568]
May 10 22:16:00 ubuntu rocketchat-server.rocketchat-mongo[5015]:  mongod(_ZN5mongo10logContextEPKc+0x104) [0xaaaac47d9e14]
May 10 22:16:00 ubuntu rocketchat-server.rocketchat-mongo[5015]:  mongod(_ZN5mongo12verifyFailedEPKcS1_j+0x188) [0xaaaac3238208]
May 10 22:16:00 ubuntu rocketchat-server.rocketchat-mongo[5015]:  mongod(_ZN5mongo21ServiceEntryPointImplC2EPNS_14ServiceContextE+0x390) [0xaaaac34ae908]
May 10 22:16:00 ubuntu rocketchat-server.rocketchat-mongo[5015]:  mongod(+0xBE7274) [0xaaaac34a2274]
May 10 22:16:00 ubuntu rocketchat-server.rocketchat-mongo[5015]:  mongod(_ZNSt17_Function_handlerIFN5mongo6StatusEPNS0_18InitializerContextEEPS4_E9_M_invokeERKSt9_Any_dataOS3_+0x30) [0xaaaac32a3ce0]
May 10 22:16:00 ubuntu rocketchat-server.rocketchat-mongo[5015]:  mongod(_ZNK5mongo11Initializer7executeERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EERKSt3mapIS7_S7_St4lessIS7_ESaISt>
May 10 22:16:00 ubuntu rocketchat-server.rocketchat-mongo[5015]:  mongod(_ZN5mongo21runGlobalInitializersEiPKPKcS3_+0x244) [0xaaaac47952d4]
May 10 22:16:00 ubuntu rocketchat-server.rocketchat-mongo[5015]:  mongod(_ZN5mongo11mongoDbMainEiPPcS1_+0xAC) [0xaaaac32b40ac]
May 10 22:16:00 ubuntu rocketchat-server.rocketchat-mongo[5015]:  mongod(main+0xC) [0xaaaac323a4e4]
May 10 22:16:00 ubuntu rocketchat-server.rocketchat-mongo[5015]:  libc.so.6(__libc_start_main+0xE0) [0xffffbce8c8a0]
May 10 22:16:00 ubuntu rocketchat-server.rocketchat-mongo[5015]: -----  END BACKTRACE  -----
Sing-Li commented 3 years ago

The latest arm64 20.04lts appears to work fine now.