Can't Upgrade Medplum from 4.1.9 to 4.3.4 – Migrat...
# support
y
Hi, I have a self-hosted Medplum instance and I'm trying to upgrade the Medplum server image to version 4.3.4. I'm currently on version 4.1.9, and every time I try to upgrade beyond that, I encounter the following error:
Copy code
< 4.2.0, but current server version is 4.2.0","stack":["Error: Unable to run this version of Medplum server. Pending post-deploy migration v11 requires server at version 4.1.12 <= version < 4.2.0, but current server version is 4.2.0"," at migrate (/usr/src/medplum/packages/server/dist/database.js:205:23)"," at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"," at async runMigrations (/usr/src/medplum/packages/server/dist/database.js:141:9)"," at async initDatabase (/usr/src/medplum/packages/server/dist/database.js:78:9)"," at async /usr/src/medplum/packages/server/dist/app.js:195:9"," at async initApp (/usr/src/medplum/packages/server/dist/app.js:142:5)"," at async main (/usr/src/medplum/packages/server/dist/index.js:34:17)"]}
I ran "Run Pending Data Migration" as a super admin, and it reports as completed successfully, but I still get the same error afterward. Is there a step I'm missing? I've never had issues with upgrades in the past. Thanks in advance! Ysael
n
I believe you'll need to upgrade to
4.1.12
before
4.2.x
before
4.3.x
. Their [version policy](https://www.medplum.com/docs/compliance/versions#minor-versions-xy0) indicates minor versions cannot be skipped. I don't see anything about running latest patch version before minor version upgrade, but [this](https://github.com/medplum/medplum/blob/ec24e0880e33fad1fa57780d16fb8b0c60e95fff/packages/server/src/migrations/data/data-version-manifest.json#L42-L49) (and the resulting log you're getting) seems to indicate 4.1.12 is required before 4.2.x
y
thanks i will try that
that worked thanks!
r
Thank you for the assist @nathan-watkins-unityai
147 Views