The template located in the developer docs appears to have fixed the problem with generating the genesis accounts but it still fails to create the network. I got the following output when I tried to create the network.
Created new genesis wallet: /home/rick/net1/Wallet1.rootkey, /home/rick/net1/Wallet1.300.1000300.partkey
Created new genesis wallet: /home/rick/net1/Wallet2.rootkey, /home/rick/net1/Wallet2.300.1000300.partkey
Created new genesis wallet: /home/rick/net1/Wallet3.rootkey, /home/rick/net1/Wallet3.300.1000300.partkey
Error creating private network: exit status 1
If this is the command you used can you alter it:
./goal network create -r ~/net1 -d ~/data-net1 -n private -t ./template.json
to
./goal network create -r ~/net1 --n private-net -t ./template.json
-d is for a specific nodes data directory. In the case of the template you are using it should have a primary and a node directory that are the specific data directories for each of the two nodes. After you start the network you should be able to run
I tried creating the network without the “-d” option and it still fails to create the network.
$ ./goal network create -r ~/net1 -n private -t ./priv-template.json
Created new genesis wallet: /home/rick/net1/Wallet1.rootkey, /home/rick/net1/Wallet1.300.1000300.partkey
Created new genesis wallet: /home/rick/net1/Wallet2.rootkey, /home/rick/net1/Wallet2.300.1000300.partkey
Created new genesis wallet: /home/rick/net1/Wallet3.rootkey, /home/rick/net1/Wallet3.300.1000300.partkey
Error creating private network: exit status 1
The template you pointed me to creates the wallets and then errors out. As Dave stated, the folders are removed if the command fails.
The file that Dave uploaded to GitHub fails with the following error:
Error creating private network: json: cannot unmarshal number into Go struct field WalletData.Online of type bool
I compared the two template files and noticed that the one you pointed me to has the “Online” attribute of the Wallets as a bool. The file Dave uploaded to GitHub sets “Online” to a binary value.
I installed the Node software last night. I have not tried to install and run the software on the testnet yet. I wanted to try out a private net before running a node on the testnet
Jason and Dave, Thanks for your help. Everything is working now. I did a clean install on another machine and setup a testnet node first and then got the private network up and running.