DB-sync setup help please

Hi all,

Trying to get db-sync setup. I have the cardano-node working fine, however im a little confused as to the line in the building-running.md when running db-sync:

    --socket-path ../cardano-node/state-node-mainnet/node.socket \

I dont have a a directory named state-node-mainnet at all.

in the directory tree i dont have any folder named state-node-mainnet in the cardano-node directory (one up and down from cardanp-db-sync

├── cardano-db-sync
├── cardano-node

i have a file called: “/home/user/cardano-my-node/db/socket” in the main cardano-node working directory but i doubt this is the correct one to use

PGPASSFILE=config/pgpass-mainnet db-sync-node/bin/cardano-db-sync \
    --config config/mainnet-config.yaml \
    --socket-path ../cardano-node/state-node-mainnet/node.socket \
    --state-dir ledger-state/mainnet \
    --schema-dir schema/

could anyone help out here?

navigate to the folder where ur socket file is created… type pwd and that path u must use

In ur case should be
--socket-path /home/user/cardano-my-node/db/socket

Cheers,

Ah ok, so we use the socket file from the running node directory.
awesome, thanks Alex :slight_smile:

1 Like