input-output-hk / cardano-ops

NixOps deployment configuration for IOHK/Cardano devops
Apache License 2.0
65 stars 160 forks source link

missing shell scripts and errors when following readme instructions #392

Open nixinator opened 2 years ago

nixinator commented 2 years ago

cardano-ops/examples/shelley-testnet/README.md

says to run the shell script

create-shelley-genesis-and-keys

however, this does not exist in the repo, or at least in master, am i using the wrong branch?

however, there is

./scripts/create-genesis-and-keys.sh

however this fails with

`Generating new genesis and keys using following environments variables:

NB_BFT_NODES=1 (number of bft core nodes) NB_POOL_NODES=3 (number of staking pool nodes) K=2160 (Security parameter) F=0.050000 (Active slots coefficient) MAX_SUPPLY=45000000000000000 (Max Lovelace supply) SLOT_LENGTH=1 NETWORK_MAGIC=764824073 DELAY=30 (delay in minutes before genesis systemStart) DPARAM=0.25 (decentralization parameter) DOMAIN=cardano-ops.dev.cardano.org RELAYS=relays.cardano-ops.dev.cardano.org

sed: can't read genesis.spec.json: No such file or directory `

my

GENESIS_PATH=/root/cardano-ops/keys/genesis.json

and the script copies it from there to cardano-ops/scripts/genesis.spec.json

copy genesis.spec.json to caradano-ops/keys doesn't seem to work either.

Command failed: genesis create-staked Error: Error while decoding Shelley genesis at: "./genesis.spec.json" Error: "Error in $: key \"systemStart\" not found"

am i missing something here? or is the repo out of date, where the code has moved on, but the documentation is lagging behind.

i'm going to try the manual method here next. and see what joy i get.

https://github.com/input-output-hk/cardano-node/blob/62485960494d914f8efd06ed0d8357d41a8f9d26/doc/reference/shelley-genesis.md

nixinator commented 2 years ago

Sometimes i think i'm on the IOHK mothership traveling to the nearest Habitable planet.

i've been woken from hyper sleep early, none of the crew or passengers are around as they are all still in cryo sleep. Current time to destination is 90 years.

https://en.wikipedia.org/wiki/Passengers_(2016_film)