Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to upgrade? #4451

Open
francescor opened this issue Sep 27, 2024 · 2 comments
Open

How to upgrade? #4451

francescor opened this issue Sep 27, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@francescor
Copy link

francescor commented Sep 27, 2024

Describe the bug

We need to upgrade from (docker swarm mode) version:

image: ghcr.io/windmill-labs/windmill:1.107

to

image: ghcr.io/windmill-labs/windmill:latest

but latest code needs the windmill_migration table starting with this https://github.com/windmill-labs/windmill/blob/main/backend/migrations/20240204212055_auto_bypassrls.up.sql

so the direct upgrade 107 => latest fails

ERROR windmill-api/src/db.rs:168: Could not apply job completed index fix migration: Sql error: error returned from database: relation "windmill_migrations" does not exist

What is the correct approach for upgrading? do we

108, 109, 110, ..... till 402 ? :(

To reproduce

direct upgrade 107 => latest

Expected behavior

no issues

Screenshots

No response

Browser information

No response

Application version

No response

Additional Context

Context is Docker Swarm, with Ubuntu 22.04 nodes

@francescor francescor added the bug Something isn't working label Sep 27, 2024
@francescor
Copy link
Author

I was able to migrate with these steps

1.107 
1.260.1
1.261.0
1.262.0
1.263.0
1.264.0 (and here I have the windmill_migrations table)
1.401.0

But I have the feeling I am not doing what I am supposed to have a correct upgrade

@rubenfiszel
Copy link
Contributor

Hi @francescor , yes those migrations are quite old. Honnestly my recommendations would be to use wmill sync pull to back your workspace, nuke your db, recreate it and have windmill do all the migrations automatically and rehydrate it with wmill sync push

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants