midnight-ntwrk / partner-chain-deps-docker

3 stars 5 forks source link

db-sync and kupo crashed #1

Closed keishyo closed 1 month ago

keishyo commented 1 month ago

db-sync logs:

docker logs -f db-sync
/run/secrets
Generating PGPASS file
Connecting to network: preview
[db-sync-node:Info:6] [2024-09-28 05:40:21.71 UTC] Version number: 13.3.0.0
[db-sync-node:Info:6] [2024-09-28 05:40:21.71 UTC] Git hash: d21895fec3a9445493b6ff4aa61b8dcb5153de1e
[db-sync-node:Info:6] [2024-09-28 05:40:21.71 UTC] Enviroment variable DbSyncAbortOnPanic: False
[db-sync-node:Info:6] [2024-09-28 05:40:21.71 UTC] SyncNodeParams {enpConfigFile = ConfigFile {unConfigFile = "/nix/store/v9jfmwyiyxidc46ycmx31chzljdg7q1c-db-sync-config.json"}, enpSocketPath = SocketPath {unSocketPath = "/node-ipc/node.socket"}, enpMaybeLedgerStateDir = Just (LedgerStateDir {unLedgerStateDir = "/var/lib/cexplorer"}), enpMigrationDir = MigrationDir "/nix/store/jlirlxyhj4zj0w3nnbp07062hvhlqm9q-schema", enpPGPassSource = PGPassDefaultEnv, enpEpochDisabled = False, enpHasCache = True, enpSkipFix = False, enpOnlyFix = False, enpForceIndexes = False, enpHasInOut = True, enpSnEveryFollowing = 500, enpSnEveryLagging = 10000, enpMaybeRollback = Nothing}
[db-sync-node:Info:6] [2024-09-28 05:40:21.71 UTC] SyncOptions {soptEpochAndCacheEnabled = True, soptAbortOnInvalid = False, soptCache = True, soptSkipFix = False, soptOnlyFix = False, soptPruneConsumeMigration = PruneConsumeMigration {pcmPruneTxOut = False, pcmConsumeOrPruneTxOut = False, pcmSkipTxIn = False}, soptInsertOptions = InsertOptions {ioTxCBOR = False, ioInOut = True, ioUseLedger = True, ioShelley = True, ioRewards = True, ioMultiAssets = True, ioMetadata = True, ioKeepMetadataNames = Nothing, ioPlutusExtra = True, ioOffChainPoolData = True, ioPoolStats = False, ioGov = True, ioRemoveJsonbFromSchema = False}, snapshotEveryFollowing = 500, snapshotEveryLagging = 10000}
[db-sync-node:Info:6] [2024-09-28 05:40:21.72 UTC] Schema migration files validated
cardano-db-sync: libpq: failed (FATAL:  password authentication failed for user "postgres"

kupo logs:

docker logs -f kupo
{"severity":"Info","timestamp":"2024-09-28T05:40:16.02291199Z","thread":"27","message":{"Configuration":{"tag":"ConfigurationMaxConcurrency","maxConcurrentReaders":120,"maxConcurrentWriters":24}},"version":"v2.9.0+61ad7e"}
{"severity":"Info","timestamp":"2024-09-28T05:40:16.02417407Z","thread":"27","message":{"Database":{"tag":"DatabaseCurrentVersion","currentVersion":9}},"version":"v2.9.0+61ad7e"}
{"severity":"Info","timestamp":"2024-09-28T05:40:16.024558245Z","thread":"27","message":{"Configuration":{"tag":"ConfigurationPatterns","patterns":["*"]}},"version":"v2.9.0+61ad7e"}
{"severity":"Info","timestamp":"2024-09-28T05:40:16.024625205Z","thread":"27","message":{"Configuration":{"tag":"ConfigurationCardanoNode","nodeSocket":"/ipc/node.socket","nodeConfig":"/config/preview/cardano-node/config.json"}},"version":"v2.9.0+61ad7e"}
Failed to configure network parameters: no configuration file found at the given location: /config/preview/cardano-node/config.json
{"severity":"Error","timestamp":"2024-09-28T05:40:16.025901842Z","thread":"27","message":{"Kupo":{"tag":"KupoUnexpectedError","exception":"ExitFailure 1"}},"version":"v2.9.0+61ad7e"}
gilescope commented 1 month ago

Did you just do docker compose up or was there custom config? What's your host OS?

keishyo commented 1 month ago

Did you just do docker compose up or was there custom config? What's your host OS?

I'm using Ubuntu 22.04 and I've leave the default yaml config file as it is with basic "docker compose up -d" command. I've tried so many times and still got this error.

btbf commented 1 month ago

I ran into the same problem, but this pull request solved it.

3

keishyo commented 1 month ago

This issue will be closed now, as the error occurred due to my environment settings not being properly configured to meet the requirements.