Failure to update latest package - Error: Can't find migration version 256

Open
#195 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
nodejs, typescript
Domain
backend

Research direction

Start with the stack trace locations server/lib/migrations.ts:249 and server/startup/migrations/xrun.js, then compare the migration version expected by the upgraded server with the database state after the 4.5.2-to-6.2.10 upgrade. Done means the Rocket.Chat service starts without the missing migration version error; the issue does not name a test to run.

Written by the indexing model from the issue text.

Description

Hello,

Today I wanted to upgrade the rocketchat server from 4.5.2 to 6.2.10 in the manual version in Ubuntu 20.04.6 LTS.
The upgrade was done according to the following instructions :
https://docs.rocket.chat/deploy/prepare-for-your-deployment/other-deployment-methods/manual-installation/updating.
Steps taken :
image

The upgrade ran with the following notifications :
image

After the upgrade this message appears :
Jul 26 10:45:05 rocketchat systemd[1]: Started The Rocket.Chat server.
Jul 26 10:45:10 rocketchat rocketchat[2152]: Some indexes for collection 'rocketchat_room' could not be created:
Jul 26 10:45:10 rocketchat rocketchat[2152]: Wildcard indexes require feature compatibility version 4.2
Jul 26 10:45:10 rocketchat rocketchat[2152]: Some indexes for collection 'rocketchat_livechat_visitor' could not be created:
Jul 26 10:45:10 rocketchat rocketchat[2152]: Wildcard indexes require feature compatibility version 4.2
Jul 26 10:45:10 rocketchat rocketchat[2152]: Some indexes for collection 'rocketchat_integration_history' could not be created:
Jul 26 10:45:10 rocketchat rocketchat[2152]: Index with name: _updatedAt_1 already exists with different options
Jul 26 10:45:10 rocketchat rocketchat[2152]: Some indexes for collection 'rocketchat_nps_vote' could not be created:
Jul 26 10:45:10 rocketchat rocketchat[2152]: Index with name: npsId_1_identifier_1 already exists with different options
Jul 26 10:45:10 rocketchat rocketchat[2152]: Some indexes for collection 'rocketchat_uploads' could not be created:
Jul 26 10:45:10 rocketchat rocketchat[2152]: Index with name: rid_1 already exists with different options
Jul 26 10:45:13 rocketchat rocketchat[2152]: (node:2152) NOTE: We are formalizing our plans to enter AWS SDK for JavaScript (v2) into maintenance mode in 2023.
Jul 26 10:45:13 rocketchat rocketchat[2152]: Please migrate your code to use AWS SDK for JavaScript (v3).
Jul 26 10:45:13 rocketchat rocketchat[2152]: For more information, check the migration guide at https://a.co/7PzMCcy
Jul 26 10:45:13 rocketchat rocketchat[2152]: (Use node --trace-warnings ... to show where the warning was created)
Jul 26 10:45:13 rocketchat rocketchat[2152]: Some indexes for collection 'rocketchat_livechat_priority' could not be created:
Jul 26 10:45:13 rocketchat rocketchat[2152]: Index with name: name_1 already exists with different options
Jul 26 10:45:13 rocketchat rocketchat[2152]: LocalStore: store created at
Jul 26 10:45:13 rocketchat rocketchat[2152]: LocalStore: store created at
Jul 26 10:45:13 rocketchat rocketchat[2152]: LocalStore: store created at
Jul 26 10:45:16 rocketchat rocketchat[2152]: strict mode: missing type "object" for keyword "additionalProperties" at "#" (strictTypes)
Jul 26 10:45:16 rocketchat rocketchat[2152]: strict mode: missing type "object" for keyword "properties" at "#" (strictTypes)
Jul 26 10:45:17 rocketchat rocketchat[2152]: strict mode: use allowUnionTypes to allow union type keyword at "#/properties/value" (strictTypes)
Jul 26 10:45:20 rocketchat rocketchat[2152]: MessageType.render is deprecated. Use MessageType.message instead. livechat_webrtc_video_call
Jul 26 10:45:20 rocketchat rocketchat[2152]: {"level":40,"time":"2023-07-26T08:45:20.915Z","pid":2152,"hostname":"rocketchat","name":"VoIPService","msg":"Voip is not enabled. Cant start the service"}
Jul 26 10:45:22 rocketchat rocketchat[2152]: /opt/Rocket.Chat/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:218
Jul 26 10:45:22 rocketchat rocketchat[2152]: throw error;
Jul 26 10:45:22 rocketchat rocketchat[2152]: ^
Jul 26 10:45:22 rocketchat rocketchat[2152]: Error: Can't find migration version 256
Jul 26 10:45:22 rocketchat rocketchat[2152]: at server/lib/migrations.ts:249:9
Jul 26 10:45:22 rocketchat rocketchat[2152]: at /opt/Rocket.Chat/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40
Jul 26 10:45:22 rocketchat rocketchat[2152]: => awaited here:
Jul 26 10:45:22 rocketchat rocketchat[2152]: at Function.Promise.await (/opt/Rocket.Chat/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12)
Jul 26 10:45:22 rocketchat rocketchat[2152]: at module (server/startup/migrations/xrun.js:8:1)
Jul 26 10:45:22 rocketchat rocketchat[2152]: at fileEvaluate (packages/modules-runtime.js:336:7)
Jul 26 10:45:22 rocketchat rocketchat[2152]: at Module.require (packages/modules-runtime.js:238:14)
Jul 26 10:45:22 rocketchat rocketchat[2152]: at Module.moduleLink [as link] (/opt/Rocket.Chat/programs/server/npm/node_modules/meteor/modules/node_modules/@meteorjs/reify/lib/runtime/index.js:52:22)
Jul 26 10:45:22 rocketchat rocketchat[2152]: at module (/opt/Rocket.Chat/programs/server/app/app.js:1432420:8)
Jul 26 10:45:22 rocketchat rocketchat[2152]: at fileEvaluate (packages/modules-runtime.js:336:7)
Jul 26 10:45:22 rocketchat rocketchat[2152]: at Module.require (packages/modules-runtime.js:238:14)
Jul 26 10:45:22 rocketchat rocketchat[2152]: at Module.moduleLink [as link] (/opt/Rocket.Chat/programs/server/npm/node_modules/meteor/modules/node_modules/@meteorjs/reify/lib/runtime/index.js:52:22)
Jul 26 10:45:22 rocketchat rocketchat[2152]: at module (/opt/Rocket.Chat/programs/server/app/app.js:1439025:8)
Jul 26 10:45:22 rocketchat rocketchat[2152]: at fileEvaluate (packages/modules-runtime.js:336:7)
Jul 26 10:45:22 rocketchat rocketchat[2152]: at Module.require (packages/modules-runtime.js:238:14)
Jul 26 10:45:22 rocketchat rocketchat[2152]: at Module.moduleLink [as link] (/opt/Rocket.Chat/programs/server/npm/node_modules/meteor/modules/node_modules/@meteorjs/reify/lib/runtime/index.js:52:22)
Jul 26 10:45:22 rocketchat rocketchat[2152]: at module (/opt/Rocket.Chat/programs/server/app/app.js:1511243:8)
Jul 26 10:45:22 rocketchat rocketchat[2152]: at fileEvaluate (packages/modules-runtime.js:336:7)
Jul 26 10:45:22 rocketchat rocketchat[2152]: at Module.require (packages/modules-runtime.js:238:14)
Jul 26 10:45:22 rocketchat rocketchat[2152]: at require (packages/modules-runtime.js:258:21)
Jul 26 10:45:22 rocketchat rocketchat[2152]: at /opt/Rocket.Chat/programs/server/app/app.js:1526689:15
Jul 26 10:45:22 rocketchat rocketchat[2152]: at /opt/Rocket.Chat/programs/server/boot.js:369:38
Jul 26 10:45:22 rocketchat rocketchat[2152]: at Array.forEach ()
Jul 26 10:45:22 rocketchat rocketchat[2152]: at /opt/Rocket.Chat/programs/server/boot.js:210:21
Jul 26 10:45:22 rocketchat rocketchat[2152]: at /opt/Rocket.Chat/programs/server/boot.js:423:7
Jul 26 10:45:22 rocketchat systemd[1]: rocketchat.service: Main process exited, code=exited, status=1/FAILURE
Jul 26 10:45:22 rocketchat systemd[1]: rocketchat.service: Failed with result 'exit-code'.

Unfortunately, all attempts at repair ended with the same error.
Please help what the problem might be.

Dominant language
Dockerfile
Stars
336
Forks
226
Avg merge
21d 4h
Merged PRs (30d)
1

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RocketChat/Docker.Official.Image

All issues in RocketChat/Docker.Official.Image

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.