blockbench icon indicating copy to clipboard operation
blockbench copied to clipboard

Fatal: Unable to attach to remote geth: connection refused

Open casm3 opened this issue 4 years ago • 2 comments

Hi, guys, how are you doing? I'm trying to run an ethereum experiment but I am having some issues related to geth attaching

image

I have two machines, one as client and the other one as the node that i am trying to apply the benchmark, both of them runs ubuntu server 20.04 LTS, and connect to each other using SSH. My geth.ipc is created, meaning that the blockchain is started

image

Thanks

casm3 avatar Jul 29 '20 20:07 casm3

you may try by sudo before the geth or check the code mining above in start-mining.sh it has not run properly by the update of command line in geth, then it can connect back again in geth attaching

tienquyet28 avatar Nov 03 '22 08:11 tienquyet28

under is my .sh code has been fixed #!/bin/bash cd dirname ${BASH_SOURCE-$0} . env.sh

nohup geth --datadir $ETH_DATA --nodiscover --ws --authrpc.addr 0.0.0.0 --authrpc.port "${RPCPORT}" --http.corsdomain "*" --rpc.gascap 0 --maxpeers 32 --networkid 15 --unlock 0 --allow-insecure-unlock --password <(echo -n "${PWD}") --mine --miner.threads 2 > $ETH_DATA/../eth_log 2>&1 &

sleep 1

for com in cat $ETH_HOME/addPeer.txt; do geth --exec $com attach ipc:/$ETH_DATA/geth.ipc done

tienquyet28 avatar Nov 03 '22 08:11 tienquyet28