cant connect nodes

+1 vote
Ran through the MultiChain getting started guide and got stuck connecting my nodes in Google Cloud; what am I doing wrong?

node: gravid1

Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.15.0-1049-gcp x86_64)
 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage
0 packages can be updated.
0 updates are security updates.
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
hectortorres5123@instance-3:~$
hectortorres5123@instance-3:~$ sudo -i
root@instance-3:~# passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@instance-3:~# cd /tmp
root@instance-3:/tmp# wget https://www.multichain.com/download/multichain-2.0.3.tar.gz
--2019-11-16 14:01:13--  https://www.multichain.com/download/multichain-2.0.3.tar.gz
Resolving www.multichain.com (www.multichain.com)... 162.243.214.85
Connecting to www.multichain.com (www.multichain.com)|162.243.214.85|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 24227320 (23M) [application/x-gzip]
Saving to: ‘multichain-2.0.3.tar.gz’
multichain-2.0.3.tar.g 100%[============================>]  23.10M  10.6MB/s    in 2.2s    
2019-11-16 14:01:16 (10.6 MB/s) - ‘multichain-2.0.3.tar.gz’ saved [24227320/24227320]
root@instance-3:/tmp# tar -xvzf nultichain-2.0.3.tar.gz
tar (child): nultichain-2.0.3.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
root@instance-3:/tmp# tar -xvzf multichain-2.0.3.tar.gz
multichain-2.0.3/
multichain-2.0.3/multichain-util
multichain-2.0.3/multichain-cli
multichain-2.0.3/README.txt
multichain-2.0.3/multichaind
multichain-2.0.3/multichaind-cold
root@instance-3:/tmp# cd multichain-2.0.3
root@instance-3:/tmp/multichain-2.0.3# mv multichaind multichain-cli multichain-util /usr/local/bin
root@instance-3:/tmp/multichain-2.0.3# exit
logout
hectortorres5123@instance-3:~$
hectortorres5123@instance-3:~$ multichain-util create gravid1
MultiChain 2.0.3 Utilities (latest protocol 20011)
Blockchain parameter set was successfully generated.
You can edit it in /home/hectortorres5123/.multichain/gravid1/params.dat before running multichaind for the first time.

To generate blockchain please run "multichaind gravid1 -daemon".
hectortorres5123@instance-3:~$ multichaind gravid1 -daemon

MultiChain 2.0.3 Daemon (Community Edition, latest protocol 20011)

Starting up node...

Looking for genesis block...
Genesis block found

Other nodes can connect to this node using:
multichaind gravid1@10.128.0.4:8369

Listening for API requests on port 8368 (local only - see rpcallowip setting)

Node ready.

hectortorres5123@instance-3:~$
hectortorres5123@instance-3:~$ multichaind multichaind gravid2@10.128.0.3:6461

MultiChain 2.0.3 Daemon (Community Edition, latest protocol 20011)

ERROR: Parameter set for blockchain multichaind is not complete.

If you want to create new blockchain please run one of the following:

  multichain-util create multichaind
  multichain-util clone <old-blockchain-name> multichaind

And rerun multichaind multichaind

If you want to connect to existing blockchain please specify seed node:

  multichaind multichaind@<seed-node-ip>
  multichaind multichaind@<seed-node-ip>:<seed-node-port>

 

node: gravid2

Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.15.0-1049-gcp x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

 * Kata Containers are now fully integrated in Charmed Kubernetes 1.16!
   Yes, charms take the Krazy out of K8s Kata Kluster Konstruction.

     https://ubuntu.com/kubernetes/docs/release-notes

0 packages can be updated.
0 updates are security updates.

 

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

hectortorres5123@instance-2:~$ multichaind multichaind gravid1@10.128.0.4:8369
multichaind: command not found
hectortorres5123@instance-2:~$ multichaind multichaind gravid1@10.128.0.4:8369
multichaind: command not found
hectortorres5123@instance-2:~$ multichaind gravid1@10.128.0.4:8369
multichaind: command not found
hectortorres5123@instance-2:~$ multichaind multichaind gravid1@10.128.0.4:8369
multichaind: command not found
hectortorres5123@instance-2:~$ sudo -i
root@instance-2:~# password
No command 'password' found, did you mean:
 Command 'assword' from package 'assword' (universe)
password: command not found
root@instance-2:~# passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@instance-2:~# su
root@instance-2:~#
root@instance-2:~# cd /tmp
root@instance-2:/tmp# wget https://www.multichain.com/download/multichain-2.0.3.tar.gz
--2019-11-16 14:07:49--  https://www.multichain.com/download/multichain-2.0.3.tar.gz
Resolving www.multichain.com (www.multichain.com)... 162.243.214.85
Connecting to www.multichain.com (www.multichain.com)|162.243.214.85|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 24227320 (23M) [application/x-gzip]
Saving to: ‘multichain-2.0.3.tar.gz’

multichain-2.0.3.tar.gz                           100%[==========================================================================================================>]  23.10M  10.8MB/s    in 2.1s    

2019-11-16 14:07:51 (10.8 MB/s) - ‘multichain-2.0.3.tar.gz’ saved [24227320/24227320]

root@instance-2:/tmp# tar -xvzf multichain-2.0.3.tar.gz
multichain-2.0.3/
multichain-2.0.3/multichain-util
multichain-2.0.3/multichain-cli
multichain-2.0.3/README.txt
multichain-2.0.3/multichaind
multichain-2.0.3/multichaind-cold
root@instance-2:/tmp# cd multichain-2.0.3
root@instance-2:/tmp/multichain-2.0.3# mv multichaind multichain-cli multichain-util /usr/local/bin
root@instance-2:/tmp/multichain-2.0.3# multichain-util create gravid2

MultiChain 2.0.3 Utilities (latest protocol 20011)

Blockchain parameter set was successfully generated.
You can edit it in /root/.multichain/gravid2/params.dat before running multichaind for the first time.

To generate blockchain please run "multichaind gravid2 -daemon".
root@instance-2:/tmp/multichain-2.0.3# multichaind gravid2 -daemon

MultiChain 2.0.3 Daemon (Community Edition, latest protocol 20011)

Starting up node...

Looking for genesis block...
Genesis block found

Other nodes can connect to this node using:
multichaind gravid2@10.128.0.3:6461

Listening for API requests on port 6460 (local only - see rpcallowip setting)

Node ready.

root@instance-2:/tmp/multichain-2.0.3# multichaind multichaind gravid1@10.128.0.4:8369

MultiChain 2.0.3 Daemon (Community Edition, latest protocol 20011)

ERROR: Parameter set for blockchain multichaind is not complete.

If you want to create new blockchain please run one of the following:

  multichain-util create multichaind
  multichain-util clone <old-blockchain-name> multichaind

And rerun multichaind multichaind

If you want to connect to existing blockchain please specify seed node:

  multichaind multichaind@<seed-node-ip>
  multichaind multichaind@<seed-node-ip>:<seed-node-port>

root@instance-2:/tmp/multichain-2.0.3#
asked Nov 21 by HTorres

1 Answer

0 votes

There seem to be a couple of problems with what you are doing:

  1. You are entering the multichaind command twice on the command line.
  2. Sometimes you are changing the blockchain name and/or creating more than one chain.

Please go through section 1 and 2 of the Getting Started guide again, to see an example.

answered Nov 26 by MultiChain
...