hasura / graphql-engine

Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.
https://hasura.io
Apache License 2.0
31.08k stars 2.77k forks source link

"version" command requires specifying a database URL #7390

Open robx opened 3 years ago

robx commented 3 years ago

With a recent build of graphql-engine:

$ graphql-engine version
Fatal Error: Either of --metadata-database-url or --database-url option expected
$ graphql-engine --database-url foo version
Hasura GraphQL Engine: v2.0.5

I'd expect to be able to run the version command without specifiying a database URL.

raajnadar commented 2 years ago

I am getting the same when migrating from hasura/graphql-engine:v2.8.4 to hasura/graphql-engine:v2.9.0

And the docker keeps restarting

raajnadar commented 2 years ago

I solve my issue by adding HASURA_GRAPHQL_METADATA_DATABASE_URL: 'postgres_url' in the docker-copose.yml