Rocketchat 502 Bad Gateway

Description

May we know if anyone here encounter an issue with 502 bad gateway? We already tried to restart the services for rocketchat however it doesn’t fix the issue, then we also restarted our instance but it doesn’t seem to resolve the issue, it doens’t look like an issue with the version as the version of mongodb ang rocketchat hasn’t changed and there is no auto update that is enabled, anyone can help here please?

Server Setup Information

  • Version of Rocket.Chat Server: 3.2.0
  • Operating System: AMI
  • Deployment Method: docker
  • Number of Running Instances: 3
  • DB Replicaset Oplog: rs.initiate
  • NodeJS Version:
  • MongoDB Version: 4.0
  • Proxy: nginx
  • Firewalls involved: na

Any additional Information

Hi! Welcome to our Community :slight_smile:

the bad gateway was probably raised by the Reverse Proxy instead of Rocket.Chat.

What reverse proxy are you using between client and Rocket.Chat?

Also, please, consider upgrade, as 3.2.0 is very old now. Current version is 5.3.2

let me know if this helps.

Thanks!

Thanks a lot for noticing my post, we are actually using nginx as a reverse proxy

Hi!

We have here some config samples that may help you:

Awesome, thanks a lot for this information, we’ll talk a look into the docs

Keep Safe

I am working with ubuntu install. If you get 502 error:

Going directly to the bundle/ directory, and running $ “node main.js” to start the application from there output better troubleshooting error messages.