# Upgrade from snap 3.18 to 4.8

**URL:** <https://forums.rocket.chat/t/upgrade-from-snap-3-18-to-4-8/14402>\
**Category:** Community Support\
**Created:** [July 1, 2022, 7:46pm UTC](https://forums.rocket.chat/t/upgrade-from-snap-3-18-to-4-8/14402 "2022-07-01T19:46:35Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![tuxfamily](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/tuxfamily/32/3867_2.png) [@tuxfamily](https://forums.rocket.chat/u/tuxfamily)\
**Post date:** [July 5, 2022, 8:18am UTC](https://forums.rocket.chat/t/upgrade-from-snap-3-18-to-4-8/14402/3 "2022-07-05T08:18:46Z")

</div>

Hello.

You have to drop the indexes manually, connecting to mongo and running these commands:

```auto
db.rocketchat_nps_vote.dropIndexes()
db.users.dropIndexes()
db.rocketchat_room.dropIndexes()
db.rocketchat_message.dropIndexes()
db.rocketchat_integration_history.dropIndexes()
db.rocketchat_apps_logs.dropIndexes()

```

As discussed here: [4.4.0 Upgrade: Error creating index: users -\> { bio: 1 } · Issue #24347 · RocketChat/Rocket.Chat · GitHub](https://github.com/RocketChat/Rocket.Chat/issues/24347)

This said, you will encouter other issues during this upgrade (trust me, you will!), like the "numRequestsAllowed’ error and if you are unlucky like me, you will alsso be stuck on this SSL error.

In my case, I reverted back to 3.18.7 cause it looks like it already fixed cve-2022-32211.

Another solution seems to upgrade first to 4.6 and then to 4.8, as stated here ["numRequestsAllowed" property in rateLimiter not set after upgrade from 3.x to 4.x · Issue #26089 · RocketChat/Rocket.Chat · GitHub](https://github.com/RocketChat/Rocket.Chat/issues/26089) but I did not tried this yet.

Good luck!

---

_[View the full topic](https://forums.rocket.chat/t/upgrade-from-snap-3-18-to-4-8/14402)._
