-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Migrations failing to apply with opaque error message #2953
Comments
@brandonmp Is there a gateway in front of graphql-engine? It is probably returning a |
Hi @shahidhk thanks for your comment. I did a detailed investigation of this and here is more info for you. Please note that we have about 200 migration files in the migrations folder. Bug exhibits following behaviour:
Platforms and Versions
WorkaroundThis script did work around the issue and there is no error when run:
|
It is indeed a gateway throwing a timeout or the connecting getting terminated since it takes more time to apply the migrations. What is the cloud provider and how are you running the database and Hasura? Are both in the same region? The workaround script further validates that the problem is with gateway not handling long http connections. |
We'll add better error handling on the CLI #2954 |
Thanks for quick responses everyone
GCP, both hasura and postgres (cloudsql maybe but not sure, can verify w/ our infra team if helpful) are in a kubernetes cluster with nginx in front of them. |
What is the timeout on nginx? Can you try increasing it? How is nginx exposed? Using a loadbalancer or another Ingress? |
Closing this issue, as the actionable is tracked at: #2954. If you'd like to add anything, feel free to re-open 🙂 |
Attempting to apply migrations via the CLI to our database, but we hit this error:
We have several identical hasura/postgres deployments, and migrations apply without incident on each deployment except for this one (this one's a new deployment with no migrations currently applied, fwiw).
I deleted the latter half of the migrations directory & applied the remaining migrations successfully, so my assumption is there's some problem within one of my migration files.
I also tried resetting the migration via the steps here. This actually worked (!), BUT we have a bunch of data migrations (eg populating enum tables) in our migrations, and the steps outlined in the article don't seem to capture those migrations.
hasura is version beta.4 (same as CLI), attempted all this on both windows and bash-for-windows.
The text was updated successfully, but these errors were encountered: