Running Iroha multiple nodes on different servers

186 views Asked by At

I have 2 ubuntu machines

  1. Ubuntu server
  2. Ubuntu server

The problem which i am facing is that i am unable to run 2nd Node as a peer of first Node.... I have tried with different type of genesis files like :

  1. Providing both Peers info in genesis
    {
       "addPeer":{
          "peer":{
             "address":"110.39.197.250:10001",
             "peerKey":"d04da271b57fe63426ae1dc97f6952104037411fcf4f3b739dc217f45e5fc99b"
          }
       }
    },
    {
       "addPeer":{
          "peer":{
             "address":"135.148.120.71:10001",
             "peerKey":"d64606f47120a1c62a7b7a8869acee11c50b287dbfe18de30556ce98cf478db9"
          }
       }
    },
**FYI**
**........  110.39.197.250  ==> local machine ip
  ........  135.148.120.71  ==> server ip
  ........  Running point 1 results in error with exiting of related Iroha Node**
  1. `Providing only current node info in genesis see genesis file here for both Nodes Also you can see config file for both Nodes
"addPeer": {
              "peer": {
                "address": "127.0.0.1:10001",
                "peerKey": "d04da271b57fe63426ae1dc97f6952104037411fcf4f3b739dc217f45e5fc99b"
              }
            }

FYI // like same way provide node info in 2nd running node genesis and then run Addpeer in cli then this error comes and both of the nodes stop working

see Error image on running point 2

I am not sure what is the correct way to run Iroha nodes on different servers and then add 2nd node as a peer of 1st one....Even i have not found any helping document ..The only help which i found was to deploy multiple nodes on single machine using docker but i want to deploy on different machines and use them as a peer. Please guide me

0

There are 0 answers