cardano-foundation / cardano-graphql

GraphQL API for Cardano
Apache License 2.0
259 stars 103 forks source link

Is version 8.0.0 of cardano-graphql, compatible with the latest version of cardano-node-ogmios? #850

Closed YuXiaoCoder closed 1 month ago

YuXiaoCoder commented 1 year ago

Ask a question

Software Version:

cardano-node-ogmios:v6.0.0_8.1.2
inputoutput/cardano-db-sync:13.1.1.3
inputoutput/cardano-graphql-hasura:8.0.0
inputoutput/cardano-graphql-background:8.0.0
inputoutput/cardano-graphql-server:8.0.0

The blocks can be synchronized normally, and you can get the block height from the API, but you can't get the synchronization progress.

curl -X POST -H "Content-Type: application/json" -d '{"query": "{ cardano { tip { number slotNo epoch { number } } } }"}' http://127.0.0.1:3100/graphql
{"data":{"cardano":{"tip":{"number":9199215,"slotNo":"101282012","epoch":{"number":432}}}}}
curl -X POST -H "Content-Type: application/json" -d '{"query": "{ cardanoDbMeta { initialized syncPercentage }}"}' http://127.0.0.1:3100/graphql

It's been tamped down and hasn't returned
YuXiaoCoder commented 1 year ago

@VidalJilut The problem hasn't been solved yet. I'm using docker to run the service and the software versions are: cardanosolutions/cardano-node-ogmios:v6.0.0_8.1.2 inputoutput/cardano-db-sync:13.1.1.3 inputoutput/cardano-graphql-background:8.0.0 inputoutput/cardano-graphql-hasura:8.0.0 inputoutput/cardano-graphql-server:8.0.0

Also I found that the Asset table is empty, which makes it impossible to get the synchronization progress

explorer=# SELECT count(*) FROM "public"."Asset";
 count
-------
     0
(1 row)

I'm using cardano-graphql version 8.0.0, but the cardano-graphql-background logs keep getting stuck here, what is the reason for this?

{"name":"background","hostname":"ada-0-0","pid":2400,"level":30,"module":"Db","msg":"Initializing...","time":"2023-08-31T17:37:26.731Z","v":0}
{"name":"background","hostname":"ada-0-0","pid":2400,"level":30,"module":"HasuraBackgroundClient","msg":"Initializing","time":"2023-08-31T17:37:26.740Z","v":0}
{"name":"background","hostname":"ada-0-0","pid":2400,"level":30,"module":"HasuraBackgroundClient","msg":"Initialized","time":"2023-08-31T17:44:03.337Z","v":0}
{"name":"background","hostname":"ada-0-0","pid":2400,"level":30,"module":"MetadataFetchClient","msg":"Initializing","time":"2023-08-31T17:44:03.338Z","v":0}
{"name":"background","hostname":"ada-0-0","pid":2400,"level":30,"module":"MetadataFetchClient","msg":"Initialized","time":"2023-08-31T17:44:03.733Z","v":0}
{"name":"background","hostname":"ada-0-0","pid":2400,"level":30,"module":"ChainFollower","msg":"Initializing","time":"2023-08-31T17:44:03.733Z","v":0}
{"name":"background","hostname":"ada-0-0","pid":2400,"level":30,"module":"ChainFollower","msg":"Initialized","time":"2023-08-31T17:44:03.741Z","v":0}
{"name":"background","hostname":"ada-0-0","pid":2400,"level":30,"module":"Worker","msg":"Starting","time":"2023-08-31T17:44:03.742Z","v":0}
{"name":"background","hostname":"ada-0-0","pid":2400,"level":30,"module":"Worker","msg":"Started","time":"2023-08-31T17:44:03.790Z","v":0}
{"name":"background","hostname":"ada-0-0","pid":2400,"level":30,"module":"ChainFollower","msg":"Starting","time":"2023-08-31T17:44:03.801Z","v":0}
zhy827827 commented 8 months ago

@YuXiaoCoder 我能看看你的docker-compose.yml 配置么?

  cardano-node-ogmios:
    build:
      args:
        - CARDANO_CONFIG_REV=${CARDANO_CONFIG_REV:-303f3a3035c52eb753b533d53ef439c6b4cde9c9}
        - CARDANO_NODE_VERSION=${CARDANO_NODE_VERSION:-1.35.5}
        - NETWORK=${NETWORK:-mainnet}
      cache_from: [ cardanosolutions/cardano-node-ogmios:latest ]
      context: ./ogmios
    image: cardanosolutions/cardano-node-ogmios:${OGMIOS_VERSION:-v5.6.0}_${CARDANO_NODE_VERSION:-1.35.5}-${NETWORK:-mainnet}

我的cardanosolutions/cardano-node-ogmios 停留在v5.6.0,升级版本报错

karol-murawski commented 7 months ago

Same for me. I tried few times and Assets are not populated. How to rebuild them?