RocketChat Service failed to start Error: "502 Bad Gateway"

Description

Dear Support Team,

I have installed RocketChat Server version 4.4.2 on Ubuntu 20.04 and was trying to upgrade to RocketChat version 4.5.3. I used the link below to update.

Post update I could not access the web page and receive the


. After little investigation I found that RocketChat Service failed to start. Or immediately stops after start.

rocketchat.service - The Rocket.Chat server
Loaded: loaded (/lib/systemd/system/rocketchat.service; enabled; vendor preset: enabled)
Active: failed (Result: core-dump) since Fri 2022-10-07 22:10:27 UTC; 1 day 19h ago
Process: 3835 ExecStart=/usr/local/bin/node /opt/Rocket.Chat/main.js (code=dumped, signal=ABRT)
Main PID: 3835 (code=dumped, signal=ABRT)

Oct 07 22:10:27 rocketchat rocketchat[3835]: 5: 0xd3a735 [/usr/local/bin/node]
Oct 07 22:10:27 rocketchat rocketchat[3835]: 6: 0xd3b0db v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [/usr/local/bin/node]
Oct 07 22:10:27 rocketchat rocketchat[3835]: 7: 0xd48ed2 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/usr/local/bin/node]
Oct 07 22:10:27 rocketchat rocketchat[3835]: 8: 0xd49d25 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/us>
Oct 07 22:10:27 rocketchat rocketchat[3835]: 9: 0xd4c6ec v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::inte>
Oct 07 22:10:27 rocketchat rocketchat[3835]: 10: 0xd1bd8b v8::internal::factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/usr/local/bin/no>
Oct 07 22:10:27 rocketchat rocketchat[3835]: 11: 0x104c56f v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/usr/local/bin/node]
Oct 07 22:10:27 rocketchat rocketchat[3835]: 12: 0x13a6259 [/usr/local/bin/node]
Oct 07 22:10:27 rocketchat systemd[1]: rocketchat.service: Main process exited, code=dumped, status=6/ABRT
Oct 07 22:10:27 rocketchat systemd[1]: rocketchat.service: Failed with result ‘core-dump’.

Server Setup Information

  • Version of Rocket.Chat Server: RocketChat Server 4.4.2
  • Operating System: Ubuntu 20.04
  • Deployment Method: On Premise
  • Number of Running Instances: Single
  • DB Replicaset Oplog: N/A
  • NodeJS Version: v14.20.1
  • MongoDB Version: v4.4.17
  • Proxy: nginx version 1.18.0
  • Firewalls involved: ufw (Allow 80,443, 3000)

Any additional Information

Hi!

How have you deployed (method)? Snap? Manual? Docker?

Can’t figure out the reason only from those logs.