# Database migration failed

**URL:** <https://forums.rocket.chat/t/database-migration-failed/19695>\
**Category:** Community Support\
**Tags:** docker\
**Created:** [March 17, 2024, 11:09am UTC](https://forums.rocket.chat/t/database-migration-failed/19695 "2024-03-17T11:09:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aeit](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/aeit/32/4986_2.png) [@Aeit](https://forums.rocket.chat/u/Aeit)\
**Post date:** [March 17, 2024, 11:09am UTC](https://forums.rocket.chat/t/database-migration-failed/19695/1 "2024-03-17T11:09:18Z")

</div>

### Description

Im getting notifications on pc app and andorid that its required to update to at least 6.5.0

 ![image](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/4/40069f1a9ca0009dccd565d80274afa492a8a2e6.png)

But deployment meets all requirements:

 ![image](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/c/c0fdd6de2fa56866f2edc8b7f941abdddc041ce6.png)

Today i tried to update to latest version but database migration filed.  
I dont understand why my database is locked on ver.303 and what is this, since 6.6.3 has exact requirements as current setup.

### Server Setup Information

- Version of Rocket.Chat Server: 6.5.0
- Operating System: Ubuntu 23.04
- Deployment Method: docker compose
- Number of Running Instances:
- DB Replicaset Oplog: 1
- NodeJS Version: 14.21.3 - x64
- MongoDB Version: 5.0.22
- Proxy: traefik
- Firewalls involved:

### Any additional Information

Your database migration failed:  
rocketchat-rocketchat-1 | | Cannot read property ‘finally’ of undefined  
rocketchat-rocketchat-1 | |  
rocketchat-rocketchat-1 | | Please make sure you are running the latest version and try again.  
rocketchat-rocketchat-1 | | If the problem persists, please contact support.  
rocketchat-rocketchat-1 | |  
rocketchat-rocketchat-1 | | This Rocket.Chat version: 6.6.3  
rocketchat-rocketchat-1 | | Database locked at version: 303  
rocketchat-rocketchat-1 | | Database target version: 304  
rocketchat-rocketchat-1 | |  
rocketchat-rocketchat-1 | | Commit: 6098bc556cc9da8ade98310cc413edc18b49584e  
rocketchat-rocketchat-1 | | Date: Wed Mar 6 13:55:10 2024 +0000  
rocketchat-rocketchat-1 | | Branch: HEAD  
rocketchat-rocketchat-1 | | Tag: 6.6.3
