hot-stuff / libhotstuff

A general-purpose BFT state machine replication library with modularity and simplicity, suitable for building hybrid consensus cryptocurrencies.
Apache License 2.0
239 stars 81 forks source link

Run examples on single machines with multiple ips #29

Open hamedgibago opened 6 months ago

hamedgibago commented 6 months ago

Hello, I want to run experiments on my single local machine with multiple ips. I defined 4 ips: 192.168.2.14 192.168.2.15 192.168.2.16 192.168.2.17

14 and 15 are my clients and 16, 17 are my replicas. With notice to the link https://github.com/hot-stuff/libhotstuff/tree/master/scripts/deploy I first defined clients.txt like this:

192.168.2.14
192.168.2.15

and replicas.txt like:

192.168.2.16 192.168.2.17
192.168.2.17 192.168.2.16

After running ./gen_all.sh 400 and calling ./run.sh setup I received this error:

# Gathering Facts *********************************************************************************************************
  * 192.168.2.14               - FAILED!!! ------------------------------------------------------
    Failed to connect to the host via ssh: Warning: Permanently added '192.168.2.14' (ED25519) to the list of known hosts.
    ubuntu@192.168.2.14: Permission denied (publickey,password).                                                               
  * 192.168.2.15               - FAILED!!! ------------------------------------------------------
    Failed to connect to the host via ssh: Warning: Permanently added '192.168.2.15' (ED25519) to the list of known hosts.
    ubuntu@192.168.2.15: Permission denied (publickey,password).                                                               
  * 192.168.2.16               - FAILED!!! ------------------------------------------------------
    Failed to connect to the host via ssh: Warning: Permanently added '192.168.2.16' (ED25519) to the list of known hosts.
    ubuntu@192.168.2.16: Permission denied (publickey,password).                                                               
  * 192.168.2.17               - FAILED!!! ------------------------------------------------------
    Failed to connect to the host via ssh: Warning: Permanently added '192.168.2.17' (ED25519) to the list of known hosts.
    ubuntu@192.168.2.17: Permission denied (publickey,password).                                                               

# STATS *******************************************************************************************************************
192.168.2.14    : ok=0  changed=0       failed=0        unreachable=1   rescued=0       ignored=0
192.168.2.15    : ok=0  changed=0       failed=0        unreachable=1   rescued=0       ignored=0
192.168.2.16    : ok=0  changed=0       failed=0        unreachable=1   rescued=0       ignored=0
192.168.2.17    : ok=0  changed=0       failed=0        unreachable=1   rescued=0       ignored=0

What is the problem? Is it possible to run experiments on a single machine?