mirror of
https://github.com/plankanban/planka.git
synced 2026-02-25 03:14:50 +03:00
[Bug]: The migration directory is corrupt #774
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zalexki on GitHub (Aug 4, 2025).
Where is the problem occurring?
I'm not sure
What browsers are you seeing the problem on?
Other
Current behavior
Installed
ghcr.io/plankanban/planka:2.0.0-rc.3using docker compose default file on july 20Worked with no issue.
Got back today to this spamming issue.
planka-1 | Error: The migration directory is corrupt, the following files are missing: 20250603102521_canonicalize_locale_codes.js, 20250703122452_move_webhooks_configuration_from_environment_variable_to_ui.js, 20250708200908_persist_closed_state_per_card.js, 20250709160208_add_ability_to_link_tasks_to_cards.js
planka-1 | at validateMigrationList (/app/node_modules/knex/lib/migrations/migrate/Migrator.js:567:11)
planka-1 | at Migrator.latest (/app/node_modules/knex/lib/migrations/migrate/Migrator.js:69:7)
planka-1 | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
planka-1 | at async /app/db/init.js:14:5
planka-1 |
planka-1 | Node.js v18.20.8
Desired behavior
No response
Steps to reproduce
i have no idea how to reproduce i just let it run itself for some days and now its broken :/
Other information
docker-compose.yml
i tried to run
docker compose run --rm planka bash->db:upgradewith no luck :/
@meltyshev commented on GitHub (Aug 4, 2025):
Hey! I think you initially installed the
nightlyversion (maybe accidentally) and then switched the image tag to2.0.0-rc.3. However, by that time, the database had already been initialized with the newer migration files from the nightly build. So when you switch to2.0.0-rc.3, it throws an error because the database expects migrations that don't exist in that version's folder.The best option for now is to continue using the
nightlyversion until we release the final v2. Just keep in mind that while we test everything thoroughly before pushing, there might still be a few minor bugs. The nightly build includes more features and improvements, but it's not recommended to stay on it long-term - once the final v2 is released, it's best to switch to that.To switch to the
nightlyversion, update yourdocker-compose.ymlby changing theimagetoghcr.io/plankanban/planka:nightly.Then run the following commands:
@zalexki commented on GitHub (Aug 5, 2025):
Hey !
thank you for your help !
that might the be case ye
i switched to nightly, i can login but then endless loop with this error spamming
@meltyshev commented on GitHub (Aug 6, 2025):
You're welcome! Hm... This error usually means that the
BASE_URLis configured incorrectly - WebSocket connections fail because the origin check doesn't pass. In your case, it should be set tohttps://roadmap.....com.Also, if you're using a proxy server, make sure it's correctly handling WebSocket connections and that
TRUST_PROXYis set totrue.@zalexki commented on GitHub (Aug 6, 2025):
that was it !
thanks a lot for your help
question am i kinda stuck with nightlies or will i be able to switch to a stable 2.* version when it comes out ?
@meltyshev commented on GitHub (Aug 6, 2025):
Happy to help - you're welcome :)
You'll definitely be able to switch, and it's actually recommended to do so. We're planning to release the final version on September 1st, if everything goes as planned.
Once it's available, you'll just need to change the image tag to
latestand rundocker compose pull. There should be no issues switching, and it should be 100% compatible with your currentnightlyversion.@zalexki commented on GitHub (Aug 6, 2025):
awesome thank you for the help and the informations !