# After upgrade from 6.10.2 to 7.2.0 server rocket.chat not working (502 Bad Gateway)

**URL:** <https://forums.rocket.chat/t/after-upgrade-from-6-10-2-to-7-2-0-server-rocket-chat-not-working-502-bad-gateway/21428>\
**Category:** Community Support\
**Created:** [January 10, 2025, 12:26pm UTC](https://forums.rocket.chat/t/after-upgrade-from-6-10-2-to-7-2-0-server-rocket-chat-not-working-502-bad-gateway/21428 "2025-01-10T12:26:12Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikita.popov](https://avatars.discourse-cdn.com/v4/letter/n/cab0a1/32.png) [@nikita.popov](https://forums.rocket.chat/u/nikita.popov)\
**Post date:** [January 10, 2025, 12:26pm UTC](https://forums.rocket.chat/t/after-upgrade-from-6-10-2-to-7-2-0-server-rocket-chat-not-working-502-bad-gateway/21428/1 "2025-01-10T12:26:12Z")

</div>

### Description

Taking into account the update [algorithm](https://docs.rocket.chat/docs/updating-rocketchat) and [recommendations](https://docs.rocket.chat/v1/docs/updating-rocketchat-faq) for updating versions, as well as installation [requirements](https://docs.rocket.chat/docs/support-prerequisites#mongodb-version-support) and installation [instructions](https://docs.rocket.chat/docs/deploy-with-ubuntu).  
There were problems  
issue-1 - with creating indexes of uploads files when I uploaded them before the first launch of the rocketchat service. [This was solved](https://github.com/RocketChat/Rocket.Chat/issues/29614)  
issue 2 - with deno work, this module was not updated automatically, and the new version of rocketchat requires the corresponding version, you need to install it when the updated version is already needed. [This was solved](https://github.com/RocketChat/Rocket.Chat/issues/33863)  
issue 3 - nginx “connect() failed (111: Unknown error) when connecting to upstream” after this error I stopped updating further and rolled back to a snapshot VM

### Server Setup Information

- Version of Rocket.Chat Server: update from 6.10.2 to 7.2.0
- Operating System: ubuntu 22.04.
- Deployment Method: tar
- Number of Running Instances: 1
- DB Replicaset Oplog:
- NodeJS Version: upgrade from 14 to 20
- MongoDB Version: 5
- Proxy: nginx
- Firewalls involved: ufw

### Any additional Information

Also after updating to 7.2.0 everything started, I was happy, but after entering the integration settings, the APP CRASHED window appeared and from that moment error #3, indicated above, began to occur, which I was never able to overcome

---

<div class="post-metadata">

**Author:** ![reetp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/reetp/32/5546_2.png) [@reetp](https://forums.rocket.chat/u/reetp)\
**Post date:** [January 10, 2025, 11:55pm UTC](https://forums.rocket.chat/t/after-upgrade-from-6-10-2-to-7-2-0-server-rocket-chat-not-working-502-bad-gateway/21428/2 "2025-01-10T23:55:48Z")

</div>

Is this you?

> <https://github.com/RocketChat/Rocket.Chat/issues/34928>
>
> \### Description:
> 
> Taking into account the update \[algorithm\](https://docs.rock…et.chat/docs/updating-rocketchat) and \[recommendations\](https://docs.rocket.chat/v1/docs/updating-rocketchat-faq) for updating versions, as well as installation \[requirements\](https://docs.rocket.chat/docs/support-prerequisites#mongodb-version-support) and installation \[instructions\](https://docs.rocket.chat/docs/deploy-with-ubuntu).
> There were problems
> issue-1 - with creating indexes of uploads files when I uploaded them before the first launch of the rocketchat service. \[This was solved\](https://github.com/RocketChat/Rocket.Chat/issues/29614)
> issue 2 - with deno work, this module was not updated automatically, and the new version of rocketchat requires the corresponding version, you need to install it when the updated version is already needed. \[This was solved\](https://github.com/RocketChat/Rocket.Chat/issues/33863)
> issue 3 - nginx “connect() failed (111: Unknown error) when connecting to upstream” after this error I stopped updating further and rolled back to a snapshot VM
> 
> \### Steps to reproduce:
> 
> after updating to 7.2.0 everything started, I was happy, but after entering the integration settings, the APP CRASHED window appeared and from that moment error #3, indicated above, began to occur, which I was never able to overcome
> 
> 
> \### Server Setup Information:
> 
> Version of Rocket.Chat Server: update from 6.10.2 to 7.2.0
> Operating System: ubuntu 22.04.
> Deployment Method: tar
> Number of Running Instances: 1
> DB Replicaset Oplog:
> NodeJS Version: upgrade from 14 to 20
> MongoDB Version: 5
> Proxy: nginx
> Firewalls involved: ufw
> 
> \### Client Setup Information
> 
> \- Desktop App or Browser Version: Mobile App both, Browser Version (any - chrome, firefox, safari)
> \- Operating System: linux mint 21.2, ios, android

Duplicating issues does not get things fixed faster. You just get ignored.

Answered on the issue. Follow up there.

---

<div class="post-metadata">

**Author:** ![nikita.popov](https://avatars.discourse-cdn.com/v4/letter/n/cab0a1/32.png) [@nikita.popov](https://forums.rocket.chat/u/nikita.popov)\
**Post date:** [January 17, 2025, 1:12pm UTC](https://forums.rocket.chat/t/after-upgrade-from-6-10-2-to-7-2-0-server-rocket-chat-not-working-502-bad-gateway/21428/3 "2025-01-17T13:12:58Z")

</div>

Issue closed. Therefore ask here again.  
What if I go the new installation route? I’ll install the latest version of rocketchat on a new VM, using mongodb 7. I’ll dump the database from the old rocketchat instance, and load it into the new rocketchat instance. Is it possible to do this? If not, please explain why?

---

<div class="post-metadata">

**Author:** ![reetp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/reetp/32/5546_2.png) [@reetp](https://forums.rocket.chat/u/reetp)\
**Post date:** [January 17, 2025, 3:56pm UTC](https://forums.rocket.chat/t/after-upgrade-from-6-10-2-to-7-2-0-server-rocket-chat-not-working-502-bad-gateway/21428/4 "2025-01-17T15:56:32Z")

</div>

Why don’t you just read the mongo docs on how to upgrade Mongo?

[https://www.mongodb.com/docs/manual/release-notes/6.0-upgrade/](https://www.mongodb.com/docs/manual/release-notes/6.0-upgrade/)

Upgrading a DB is not a Rocket issue as you are using tar and your own Mongo.

You must read the correct docs.

It is pretty simple.

Make sure you set the version compatibility key correctly.

### Feature Compatibility Version

---

<div class="post-metadata">

**Author:** ![nikita.popov](https://avatars.discourse-cdn.com/v4/letter/n/cab0a1/32.png) [@nikita.popov](https://forums.rocket.chat/u/nikita.popov)\
**Post date:** [January 17, 2025, 3:59pm UTC](https://forums.rocket.chat/t/after-upgrade-from-6-10-2-to-7-2-0-server-rocket-chat-not-working-502-bad-gateway/21428/5 "2025-01-17T15:59:52Z")

</div>

I dont upgrade mongodb, I just try upgrade rocketchat, stay mongodb 5. And got 502 error

---

<div class="post-metadata">

**Author:** ![reetp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/reetp/32/5546_2.png) [@reetp](https://forums.rocket.chat/u/reetp)\
**Post date:** [January 17, 2025, 4:16pm UTC](https://forums.rocket.chat/t/after-upgrade-from-6-10-2-to-7-2-0-server-rocket-chat-not-working-502-bad-gateway/21428/6 "2025-01-17T16:16:31Z")

</div>

OK,

if you take the time to read around thoroughly you will find answers to most of your issues.

These are posted a LOT in multiple places. read them all the way through and all the links, a couple of times.

> **[reetp’s gists](https://gist.github.com/reetp#rocketchat---asking-for-help)**
>
> GitHub Gist: star and fork reetp's gists by creating an account on GitHub.

> **[reetp’s gists](https://gist.github.com/reetp#developers)**
>
> GitHub Gist: star and fork reetp's gists by creating an account on GitHub.

Next, you are using a tar. That is NOT a recommended deployment method and you need to fix your other dependencies - we have already told you that.

> [@nikita.popov](#):
>
> with deno work, this module was not updated automatically,

As per above. You need to do this manually as you are using a tar. If you used docker or snaps this woudl be done automatically. You chose not to so your are largely on your own.

Read ALL the docs. They are inconsistent and information is scattered.

[https://docs.rocket.chat/docs/deploy-with-ubuntu](https://docs.rocket.chat/docs/deploy-with-ubuntu)

Additonal deno notes here:

[https://docs.rocket.chat/docs/deploy-with-centos](https://docs.rocket.chat/docs/deploy-with-centos)

I would suggest latest deno \< 2 so currently 1.43.6 I think.

But start with updating your DB which is EOL shortly.

> [@nikita.popov](#):
>
> ginx “connect() failed (111: Unknown error) when connecting to upstream”

You need to check your nginx reverse proxy. You have provided zero information so we can provide zero help.

> [@nikita.popov](#):
>
> And got 502 error

This is likely related to your nginx issue. Fix that.

Also note - use a browser to test, not a Electron client. Make sure caches are cleaned as this can cause crashes.

So,

Go back. Fix deno. Upgrade your DB. Fix your proxy. Clear caches. Check your Rocket logs on startup.

---

<div class="post-metadata">

**Author:** ![nikita.popov](https://avatars.discourse-cdn.com/v4/letter/n/cab0a1/32.png) [@nikita.popov](https://forums.rocket.chat/u/nikita.popov)\
**Post date:** [January 18, 2025, 1:40am UTC](https://forums.rocket.chat/t/after-upgrade-from-6-10-2-to-7-2-0-server-rocket-chat-not-working-502-bad-gateway/21428/7 "2025-01-18T01:40:29Z")

</div>

Update try… The [listing all](https://bsd.ac/4o148of) used commands. [Logs service](https://bsd.ac/eq51u39) rocketchat after start. Not work after upgrade to 7.0.0 - “503 Service Unavailable No server is available to handle this request.”  
I’m so sad now…

---

<div class="post-metadata">

**Author:** ![nikita.popov](https://avatars.discourse-cdn.com/v4/letter/n/cab0a1/32.png) [@nikita.popov](https://forums.rocket.chat/u/nikita.popov)\
**Post date:** [January 18, 2025, 8:16am UTC](https://forums.rocket.chat/t/after-upgrade-from-6-10-2-to-7-2-0-server-rocket-chat-not-working-502-bad-gateway/21428/8 "2025-01-18T08:16:57Z")

</div>

The connection to my rocketchat server goes like this:  
 → the client accesses an external address - chat.my.lab.  
 → gets to the router on which haproxy is installed, which redirects the connection to a host on the local network  
 → nginx is installed on this host, which redirects the connection to the rocket chat service.

Of course, I can throw off all the service configurations, but I have one question. Why do all versions from branch 6 work correctly with these configs? And any version from branch 7 does not start, but gives the client a 503 error. Where should I look for the error?

---

<div class="post-metadata">

**Author:** ![reetp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/reetp/32/5546_2.png) [@reetp](https://forums.rocket.chat/u/reetp)\
**Post date:** [January 18, 2025, 10:24am UTC](https://forums.rocket.chat/t/after-upgrade-from-6-10-2-to-7-2-0-server-rocket-chat-not-working-502-bad-gateway/21428/9 "2025-01-18T10:24:59Z")

</div>

Why these?

```auto
sudo systemctl start rocketchat
sudo service rocketchat stop

```

You’re on ubuntu.with systemd. You don’t use “service”

```auto
opt/Rocket.Chat-6.13.1/
sudo n install 20.17.0

```

That tells me you didn’t read the release notes/requirements properly.

In your notes you don’t appear to “stop” before upgrading. Is this right or just badly documented?

> **[Release 6.13.1 · RocketChat/Rocket.Chat](https://github.com/RocketChat/Rocket.Chat/releases/tag/6.13.1)**
>
> Engine versions
> 
> Node: 14.21.3
> MongoDB: 4.4, 5.0, 6.0
> Apps-Engine: 1.46.0
> 
> Patch Changes
> 
> 
> Bump @rocket.chat/meteor version.
> 
> 
> (#34100 by @dionisio-bot) Fixed an issue that caused clients to not pr...

```auto
6.13.1

Engine versions
Node: 14.21.3
MongoDB: 4.4, 5.0, 6.0

```

I think deno was also a requirement from around 6.10

Likelihood is you are doing a lot of guessing and not enough reading.

You do not need to go through every point release.

Just main latest version eg 6.10.10 → 6.11.3 → 6.12.3

I would start by upgrading mongo to 6 before anything. Make sure it is working. Get it out of the way.

Then start upagrading Rocket. Read the releases notes and requirement for each version you install.

However your logs seem to indicate your server is up and running 7.0.0 with Mongo 7.

Just delete the uploads index

 ![Screenshot_20250118_112101_Samsung Internet](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/2/289df6f490f5cdb36a97df63fcb754250318e4b7.jpeg)

---

<div class="post-metadata">

**Author:** ![reetp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/reetp/32/5546_2.png) [@reetp](https://forums.rocket.chat/u/reetp)\
**Post date:** [January 18, 2025, 10:26am UTC](https://forums.rocket.chat/t/after-upgrade-from-6-10-2-to-7-2-0-server-rocket-chat-not-working-502-bad-gateway/21428/10 "2025-01-18T10:26:50Z")

</div>

> [@nikita.popov](#):
>
> Why do all versions from branch 6 work correctly with these configs?

No idea. Logs/firewall will tell you.

At a wild guess it is because from v7 your Rocket has to connect to the Rocket cloud and it is probably blocked.

---

<div class="post-metadata">

**Author:** ![nikita.popov](https://avatars.discourse-cdn.com/v4/letter/n/cab0a1/32.png) [@nikita.popov](https://forums.rocket.chat/u/nikita.popov)\
**Post date:** [January 18, 2025, 3:29pm UTC](https://forums.rocket.chat/t/after-upgrade-from-6-10-2-to-7-2-0-server-rocket-chat-not-working-502-bad-gateway/21428/11 "2025-01-18T15:29:48Z")

</div>

Thanks for you answer, reetp!

> [@reetp](#):
>
> > Why these?
> > 
> > ```auto
> > sudo systemctl start rocketchat
> > sudo service rocketchat stop
> > 
> > ```
> > 
> > You’re on ubuntu.with systemd. You don’t use “service”
> 
> **it works equally well for me on different systems with systemd**
> 
> > ```auto
> > opt/Rocket.Chat-6.13.1/
> > sudo n install 20.17.0
> > 
> > ```
> > 
> > That tells me you didn’t read the release notes/requirements properly.
> > 
> > In your notes you don’t appear to “stop” before upgrading. Is this right or just badly documented?
> > 
> > [Release 6.13.1 · RocketChat/Rocket.Chat · GitHub](https://github.com/RocketChat/Rocket.Chat/releases/tag/6.13.1)
> > 
> > ```auto
> > 6.13.1
> > 
> > Engine versions
> > Node: 14.21.3
> > MongoDB: 4.4, 5.0, 6.0
> > 
> > ```
> 
> **I use Node: 14.21.3 for rocketchat 6.13.1. Then stop rocketchat service, install Node: 20.17.0, upgrade mongodb to 7, install deno 1.43.6 and install rocketchat 7.0.0.**
> 
> > I think deno was also a requirement from around 6.10
> > 
> > Likelihood is you are doing a lot of guessing and not enough reading.
> 
> All release 6 branch work fine with deno older (not upgraded) version.
> 
> > You do not need to go through every point release.
> > 
> > Just main latest version eg 6.10.10 → 6.11.3 → 6.12.3
> 
> **I read [faq](https://docs.rocket.chat/v1/docs/updating-rocketchat-faq) to pick release to upgrade. And even more. I even tried jumping from version 6.10.2 to 7.2.1 right away, and I got the same result as with successive updates.**
> 
> > I would start by upgrading mongo to 6 before anything. Make sure it is working. Get it out of the way.
> > 
> > Then start upagrading Rocket. Read the releases notes and requirement for each version you install.
> 
> **It’s too late now. I updated rocketchat to version 6.13.1 using mongodb 5, checked everything and sent it to work, as the technology window has already closed. Therefore, I will have to continue from this particular save point 🙂**
> 
> > However your logs seem to indicate your server is up and running 7.0.0 with Mongo 7.
> > 
> > Just delete the uploads index
> 
> **Ok. I’ll do it, and it remains to deal with the network problem. I think we need to change the host availability check mode with rocketchat in haproxy.**
> 
> ![Screenshot_20250118_112101_Samsung Internet](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/2/289df6f490f5cdb36a97df63fcb754250318e4b7.jpeg)

---

<div class="post-metadata">

**Author:** ![nikita.popov](https://avatars.discourse-cdn.com/v4/letter/n/cab0a1/32.png) [@nikita.popov](https://forums.rocket.chat/u/nikita.popov)\
**Post date:** [January 20, 2025, 9:04pm UTC](https://forums.rocket.chat/t/after-upgrade-from-6-10-2-to-7-2-0-server-rocket-chat-not-working-502-bad-gateway/21428/12 "2025-01-20T21:04:42Z")

</div>

So, **it’s done!** _Congratulations!_  
I removed all app from marketplace RC what became visible on version 6.13.1 (On 6.10.2 was invisible). And remove all integrations.  
[My way](https://bsd.ac/9rpvx42) successful upgrade RC!  
But, I think just upgrade from 6.10.2 to 7.2.1. Of course migrate mongo 5-6-7 after it.  
All done, thanks all! Close this thread.

---

<div class="post-metadata">

**Author:** ![reetp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/reetp/32/5546_2.png) [@reetp](https://forums.rocket.chat/u/reetp)\
**Post date:** [January 20, 2025, 11:25pm UTC](https://forums.rocket.chat/t/after-upgrade-from-6-10-2-to-7-2-0-server-rocket-chat-not-working-502-bad-gateway/21428/13 "2025-01-20T23:25:18Z")

</div>

> [@reetp](#):
>
> it works equally well for me on different systems with systemd

I hate systemd but you should not use `service` on a systemd system. Just good practice and eventually it will be removed.

> [@reetp](#):
>
> I read[faq to pick release to upgrade

Yes, I wrote that originally, several years ago 😉

The FAQ tells you this:

> → 073.x - 1.0.x → 1.1.x → 1.2.x → 1.3.x → 2.0.x → 2.1.x

I just updated like this:

> Just main latest version eg 6.10.10 → 6.11.3 → 6.12.3

> [@nikita.popov](#):
>
> I removed all app from marketplace RC what became visible on version 6.13.1 (On 6.10.2 was invisible). And remove all integrations.

As above re deno - it was required with/after 6.10.x - that is related to apps.

I’m not sure how ‘invisible’ apps became ‘visible’!

Either way it was clearly a problem there and pleased you have it resolved.

In future do incremental steps rather than big leaps. Read all the release notes, and plan and test your upgrades first.
