cardano-foundation / cardano-graphql

GraphQL API for Cardano
Apache License 2.0
262 stars 104 forks source link

Cardano Graphql seems stuck in "Initializing" #569

Closed YordanPavlov closed 3 years ago

YordanPavlov commented 3 years ago

I am running a Cardano setup as Kubernetes pods, using the following images:

image: inputoutput/cardano-db-sync:10.0.1
image: inputoutput/cardano-graphql:5.0.0
image: inputoutput/cardano-node:1.25.1
image: inputoutput/cardano-graphql-hasura:5.0.0
image: bitnami/postgresql:11.7.0-debian-10-r9

I see no errors in the logs and the system seems to be synced. However the log of the graphql pod looks like so:

GraphQL log:

{"name":"cardano-graphql","hostname":"cardano-graphql-5f85fd486c-jgpwx","pid":1,"level":30,"module":"Server","msg":"Initializing","time":"2021-08-10T09:44:22.610Z","v":0}
{"name":"cardano-graphql","hostname":"cardano-graphql-5f85fd486c-jgpwx","pid":1,"level":30,"module":"Server","msg":"Prometheus metrics will be served at /metrics","time":"2021-08-10T09:44:22.709Z","v":0}
{"name":"cardano-graphql","hostname":"cardano-graphql-5f85fd486c-jgpwx","pid":1,"level":30,"module":"HasuraClient","msg":"Initializing","time":"2021-08-10T09:44:22.760Z","v":0}
{"name":"cardano-graphql","hostname":"cardano-graphql-5f85fd486c-jgpwx","pid":1,"level":30,"module":"HasuraClient","msg":"Initialized","time":"2021-08-10T09:45:37.988Z","v":0}
{"name":"cardano-graphql","hostname":"cardano-graphql-5f85fd486c-jgpwx","pid":1,"level":30,"module":"CardanoNodeClient","msg":"Initializing. This can take a few minutes...","time":"2021-08-10T09:45:37.988Z","v":0}

How can I investigate what is happening, connecting to the pod there is no CPU activity. Also as a side question what is the way to install packages on the inputoutput images. For example I would like to install basic tools like telnet and curl. Thank you.

rhyslbw commented 3 years ago

The stack now uses cardano-node-ogmios to expose the node APIs over TCP, which is a drop-in replacement for cardano-node.

https://github.com/input-output-hk/cardano-graphql/blob/959768a63e8bd05dd81efdee4e3918a2fb20bb11/docker-compose.yml#L27-L44

Docs are here and you will need v4.0.0-beta.4-mainnet, or you can build from source using the linked git-submodule.