Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal: Unable to attach to remote geth: connection refused #74

Open
casm3 opened this issue Jul 29, 2020 · 2 comments
Open

Fatal: Unable to attach to remote geth: connection refused #74

casm3 opened this issue Jul 29, 2020 · 2 comments

Comments

@casm3
Copy link

casm3 commented Jul 29, 2020

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

@tienquyet28
Copy link

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
Copy link

tienquyet28 commented Nov 3, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants