graphql-engine icon indicating copy to clipboard operation
graphql-engine copied to clipboard

Error applying migrations on a Hasura Instance

Open subodh022 opened this issue 3 years ago • 3 comments

Version Information

Server Version: 2.0.0-alpha.4 CLI Version (for CLI related issue): 2.1.0-beta.3

Environment

OSS

What is the current behaviour?

While applying migrations on the default database, it throws the following error -

ERRO skipping applying migrations on database default, encountered:
{
  "internal": "no connection to the server\n",
  "path": "$",
  "error": "connection error",
  "code": "postgres-error"
}

But the migration status command on the default database is working fine. Hasura console is also working fine, and I can view tables on the default database along with the data. But only when I try to apply the migrations, I get the above error, which is pretty weird. And it has happened for the first time, I have been running migrations on this instance before, without any issue.

What is the expected behaviour?

Migrations should run on the default database.

subodh022 avatar May 21 '23 06:05 subodh022

@subodh022 Can you include the full command you are running to apply the migration ? Also, I noticed that you are using a very old version of Hasura Server (we are currently at 2.26.0). You may like to upgrade to a newer version.

adas98012 avatar May 25 '23 02:05 adas98012

This is the full migration command - hasura migrate apply --endpoint <hasura-endpoint> --admin-secret <admin-secret> --database-name default

Yes I am planning to upgrade Hasura version this weekend, hope that resolves this issue. But it's still weird I am getting this issue after successfully running migrations on this instance for couple months, on the same Hasura version and same command.

subodh022 avatar May 25 '23 04:05 subodh022

Hi @subodh022, I work on the community team and wanted to discuss this use case with you. Could you drop me a mail at [email protected] so that I can set something up?

a-chocolate-bear avatar Jun 15 '23 11:06 a-chocolate-bear