Hey there,
Even though I have set up db-sync a couple times before, I can’t get it to work anymore on a new machine… I followed the guide on https://docs.cardano.org/projects/cardano-db-sync/en/latest/getting-started/building-running.html
When launching db-sync, it correctly populates the database with the genesis distribution, but then throws an error when trying to connect to the node. This is the output, hopefully someone can point me in the right direction, as i have no idea about the cause (node is synced up and running on the same machine):
user@server:~/cardano-db-sync$ PGPASSFILE=config/pgpass db-sync-node/bin/cardano-db-sync \
--config config/mainnet-config.yaml \ --socket-path ../cardano-node/state-node-mainnet/node.socket \ --schema-dir schema/
[db-sync-node:Info:4] [2020-09-24 16:41:29.36 UTC] NetworkMagic: 764824073
[db-sync-node:Info:4] [2020-09-24 16:41:29.37 UTC] Inserting Byron Genesis distribution
[db-sync-node:Info:4] [2020-09-24 16:42:00.92 UTC] Initial genesis distribution populated. Hash 5f20df933584822601f9e3f8c024eb5eb252fe8cefb24d1317dc3d432e940ebb
[db-sync-node:Info:4] [2020-09-24 16:42:00.93 UTC] Total genesis supply of Ada: 31112484745.000000
[db-sync-node:Info:4] [2020-09-24 16:42:00.95 UTC] Inserting Shelley Genesis distribution
[db-sync-node:Info:4] [2020-09-24 16:42:00.96 UTC] localInitiatorNetworkApplication: connecting to node via “…/cardano-node/state-node-mainnet/node.socket”
[db-sync-node.Handshake:Info:30] [2020-09-24 16:42:00.96 UTC] [String “Send MsgProposeVersions (fromList [(NodeToClientV_1,TInt 764824073),(NodeToClientV_2,TInt 764824073),(NodeToClientV_3,TInt 764824073)])”,String “LocalHandshakeTrace”,String “ConnectionId {localAddress = LocalAddress {getFilePath = ""}, remoteAddress = LocalAddress {getFilePath = "state-node-mainnet/node.socket"}}”]
[db-sync-node.Handshake:Info:30] [2020-09-24 16:42:00.96 UTC] [String “Recv MsgAcceptVersion NodeToClientV_3 (TInt 764824073)”,String “LocalHandshakeTrace”,String “ConnectionId {localAddress = LocalAddress {getFilePath = ""}, remoteAddress = LocalAddress {getFilePath = "state-node-mainnet/node.socket"}}”]
[db-sync-node:Info:34] [2020-09-24 16:42:00.96 UTC] Starting chainSyncClient
[db-sync-node:Error:34] [2020-09-24 16:42:00.96 UTC] ChainSyncWithBlocksPtcl: ledger-state: getDirectoryContents:openDirStream: does not exist (No such file or directory)
[db-sync-node.Subscription:Error:30] [2020-09-24 16:42:00.97 UTC] [String “Application Exception: LocalAddress {getFilePath = "…/cardano-node/state-node-mainnet/node.socket"} ledger-state: getDirectoryContents:openDirStream: does not exist (No such file or directory)”,String “SubscriptionTrace”]
[db-sync-node.ErrorPolicy:Error:4] [2020-09-24 16:42:00.97 UTC] [String “ErrorPolicyUnhandledApplicationException ledger-state: getDirectoryContents:openDirStream: does not exist (No such file or directory)”,String “ErrorPolicyTrace”,String “LocalAddress {getFilePath = "…/cardano-node/state-node-mainnet/node.socket"}”]