cardano-foundation / cardano-graphql

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

db-sync error when migration #839

Open CryptoDavChen opened 1 year ago

CryptoDavChen commented 1 year ago

Summary

db-sync log return error

Steps to reproduce the bug

 DOCKER_BUILDKIT=1 \
    COMPOSE_DOCKER_CLI_BUILD=1 \
    CARDANO_GRAPHQL_VERSION=8.0.0 \
    RESTORE_SNAPSHOT=https://update-cardano-mainnet.iohk.io/cardano-db-sync/13.1/db-sync-snapshot-schema-13.1-block-8862605-x86_64.tgz \
    docker-compose up -d --build

Actual Result

Connecting to network specified in configuration.yaml
[db-sync-node:Warning:6] [2023-06-10 04:45:18.05 UTC] Version number: 13.0.5
[db-sync-node:Warning:6] [2023-06-10 04:45:18.05 UTC] Git hash: 8ad98d48e0068f3768d48e18fdcbe254037cba3b
[db-sync-node:Warning:6] [2023-06-10 04:45:18.05 UTC] Option disable-ledger: False
[db-sync-node:Warning:6] [2023-06-10 04:45:18.05 UTC] Option disable-cache: False
[db-sync-node:Warning:6] [2023-06-10 04:45:18.05 UTC] Option disable-epoch: False
[db-sync-node:Warning:6] [2023-06-10 04:45:18.05 UTC] Enviroment variable DbSyncAbortOnPanic: False
[db-sync-node:Info:6] [2023-06-10 04:45:18.05 UTC] Schema migration files validated
[db-sync-node:Info:6] [2023-06-10 04:45:18.05 UTC] Running database migrations
ExitFailure 3

Errors in file: /tmp/migrate-2023-06-10T044518.log

Expected Result

No error

Environment

8.0.0

Platform

Platform version

No response

Runtime

Runtime version

20.10.17

CryptoDavChen commented 1 year ago

Maybe because i used 13.1's snapshot, because i can't found any snapshots in 13 floder: https://update-cardano-mainnet.iohk.io/cardano-db-sync/index.html#13/

Please help check it, thanks a lot.