-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Vapor migrations do not finish running on fly.io #3122
Comments
Is this reproducible or a network hiccup etc? Can you turn on trace debugging as well |
I've encountered a similar issue with my setup.I start 2 fresh DigitalOcean servers with Ubuntu 22.04, clean vapor new HelloWorld project with mysql or postgresql. swift run App migrate —log trace It always stuck on this line and never finishes the migration. But if you change AsyncMigration to Migration, it will go through the migration without any problems.Change
to
EnvironmentVapor Toolbox version 18.6.0 The last few lines of server output
|
Have you migrated your entrypoint.swift to the new version? That appears to have fixed it in one instance on Discord |
I was able to perform the migration using the method mentioned in this comment #3122 (comment) in my tests https://github.com/vapor/template-fluent-sqlite as well. It operates with fly.io and SQLite. The entry point is described the same as the latest. |
I am using the latest entrypoint.swift from the template. Also the migration runs fine on macOS but needs changing from AsyncMigration to Migration to work on Ubuntu Server. |
Can you try updating to the latest Fluent release - that should fix the issue |
This does indeed fix the migration issue, thank you. |
Closing this then, feel free to say if it's still an issue |
Describe the bug
Im trying to launch an update to production but the migration, never finishes running and ends up throwing a timeout error.
To Reproduce
I tried to launch from a clean project but the migrations don't work either, I deleted everything and did everything from scratch but still the first migration never finishes running
Environment
I am update to the latest update of vapor template e9155a08a5661bd09ba633c21aa1777e38e0bd0d
The text was updated successfully, but these errors were encountered: