hyperledger-fabricethereumgo-ethereumgethquorum

I am getting an error while trying to connect with node using geth tool


I am having an error while trying to attach to the quorum node, using the following command :--

geth attach --datadir new-node-1/geth.ipc

then I get this error


Unable to attach to remote geth: dial unix new-node-1/geth.ipc: connect: no such file or directory

I tried to locate path of geth.ipc but nothing was there. I guess the file is not being created.

any suggestions guys..


Solution

  • You should be running the command like this (without --datadir): geth attach new-node-1/geth.ipc

    If that still doesn't work then make sure you have the correct path for the ipc file. Is new-node-1 definitely the same path that was specified to the quorum node when it was started (i.e. with with --datadir new-node-1).

    If the path is correct but geth.ipc file doesn't exist then the node hasn't managed to start up. Check the log file to see if there were any errors.