ooibc88 / blockbench

BLOCKBENCH: A Framework for Analyzing Private Blockchains. Blockbench contains workloads for measuring the data processing performance, and workloads for understanding the performance of different layers of Blockchain systems.
https://www.comp.nus.edu.sg/~dbsystem/fabricsharp/#/blockbench
Apache License 2.0
391 stars 174 forks source link

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

Open casm3 opened 4 years ago

casm3 commented 4 years ago

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 commented 1 year ago

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 commented 1 year ago

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