How to set up a multiple libra nodes local network?

I have found that many topics are based on the previous edition of Libra. I am confused about setting up a 4 nodes local network now. I combining with many topics and run as follows:
cargo run -p libra-swarm – -s -n 4 --libra-node $SCRIPT_PATH/…/…/target/$RELEASE/libra-node --cli-path $SCRIPT_PATH/…/…/target/RELEASE/cli "@"

while, error:
Finished dev [unoptimized + debuginfo] target(s) in 1.37s

Running target/debug/libra-swarm -s -n 4 --libra-node /../../target//libra-node --cli-path /../../target//cli

2020-10-27T11:03:11.781308Z [main] INFO testsuite/libra-swarm/src/swarm.rs:294 logs for validator at Temporary(TempPath { path_buf: “/var/folders/gq/b___dnb57qn6qqfj2zrxld280000gn/T/51706bb10d9d91579adf8706d8356857”, persist: false })

2020-10-27T11:03:13.353666Z [main] INFO storage/libradb/src/lib.rs:158 Opened LibraDB. {“path”:"/var/folders/gq/b___dnb57qn6qqfj2zrxld280000gn/T/cd2fc7d2371b069b6abfc569a1f1f182/libradb",“time_ms”:“95”}

2020-10-27T11:03:13.358181Z [main] INFO storage/libradb/src/lib.rs:737 Got latest TreeState. {“description”:“DB is empty, has no transaction or state.”,“num_transactions”:0,“state_root_hash”:“53504152”}

2020-10-27T11:03:13.359886Z [main] INFO execution/executor/src/lib.rs:721 execute_block {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“block_executor”}

2020-10-27T11:03:13.360591Z [main] INFO language/libra-vm/src/libra_transaction_executor.rs:620 Executing block, transaction count: 1 {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“execution”,“txn_id”:0}

2020-10-27T11:03:13.364181Z [main] INFO language/libra-vm/src/libra_transaction_executor.rs:706 Reconfiguration occurred: restart required {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“execution”,“txn_id”:0}

2020-10-27T11:03:13.394703Z [main] INFO execution/executor/src/db_bootstrapper.rs:158 Genesis calculated: ledger_info_with_sigs V0(LedgerInfoWithV0 { ledger_info: LedgerInfo { commit_info: BlockInfo { epoch: 0, round: 0, id: HashValue(0000000000000000000000000000000000000000000000000000000000000000), executed_state_id: HashValue(1411e9d903239d94aacf83ebbeedb24da6521b6a896e20782475b44721a0367f), version: 0, timestamp_usecs: 0, next_epoch_state: Some(EpochState [epoch: 1, validator: ValidatorSet: [3bcb0424: 1, 9672771f: 1, b5b333aa: 1, dc1090de: 1, ]]) }, consensus_data_hash: HashValue(0000000000000000000000000000000000000000000000000000000000000000) }, signatures: {} }), waypoint Waypoint { version: 0, value: HashValue(a5f97872cd28ac2aa94c97ea244a3e086dff07c9a699b8975b0c7c8840db663e) }

2020-10-27T11:03:14.217357Z [main] INFO storage/libradb/src/lib.rs:158 Opened LibraDB. {“path”:"/var/folders/gq/b___dnb57qn6qqfj2zrxld280000gn/T/b59db1a2ce887df5e0ffc26f0b8969c9/libradb",“time_ms”:“88”}

2020-10-27T11:03:14.220093Z [main] INFO storage/libradb/src/lib.rs:737 Got latest TreeState. {“description”:“DB is empty, has no transaction or state.”,“num_transactions”:0,“state_root_hash”:“53504152”}

2020-10-27T11:03:14.220390Z [main] INFO execution/executor/src/lib.rs:721 execute_block {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“block_executor”}

2020-10-27T11:03:14.220841Z [main] INFO language/libra-vm/src/libra_transaction_executor.rs:620 Executing block, transaction count: 1 {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“execution”,“txn_id”:0}

2020-10-27T11:03:14.221792Z [main] INFO language/libra-vm/src/libra_transaction_executor.rs:706 Reconfiguration occurred: restart required {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“execution”,“txn_id”:0}

2020-10-27T11:03:14.251497Z [main] INFO execution/executor/src/db_bootstrapper.rs:158 Genesis calculated: ledger_info_with_sigs V0(LedgerInfoWithV0 { ledger_info: LedgerInfo { commit_info: BlockInfo { epoch: 0, round: 0, id: HashValue(0000000000000000000000000000000000000000000000000000000000000000), executed_state_id: HashValue(1411e9d903239d94aacf83ebbeedb24da6521b6a896e20782475b44721a0367f), version: 0, timestamp_usecs: 0, next_epoch_state: Some(EpochState [epoch: 1, validator: ValidatorSet: [3bcb0424: 1, 9672771f: 1, b5b333aa: 1, dc1090de: 1, ]]) }, consensus_data_hash: HashValue(0000000000000000000000000000000000000000000000000000000000000000) }, signatures: {} }), waypoint Waypoint { version: 0, value: HashValue(a5f97872cd28ac2aa94c97ea244a3e086dff07c9a699b8975b0c7c8840db663e) }

2020-10-27T11:03:14.251757Z [main] INFO storage/libradb/src/lib.rs:737 Got latest TreeState. {“description”:“DB is empty, has no transaction or state.”,“num_transactions”:0,“state_root_hash”:“53504152”}

2020-10-27T11:03:14.252069Z [main] INFO execution/executor/src/lib.rs:721 execute_block {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“block_executor”}

2020-10-27T11:03:14.252463Z [main] INFO language/libra-vm/src/libra_transaction_executor.rs:620 Executing block, transaction count: 1 {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“execution”,“txn_id”:0}

2020-10-27T11:03:14.253421Z [main] INFO language/libra-vm/src/libra_transaction_executor.rs:706 Reconfiguration occurred: restart required {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“execution”,“txn_id”:0}

2020-10-27T11:03:14.278400Z [main] INFO execution/executor/src/db_bootstrapper.rs:158 Genesis calculated: ledger_info_with_sigs V0(LedgerInfoWithV0 { ledger_info: LedgerInfo { commit_info: BlockInfo { epoch: 0, round: 0, id: HashValue(0000000000000000000000000000000000000000000000000000000000000000), executed_state_id: HashValue(1411e9d903239d94aacf83ebbeedb24da6521b6a896e20782475b44721a0367f), version: 0, timestamp_usecs: 0, next_epoch_state: Some(EpochState [epoch: 1, validator: ValidatorSet: [3bcb0424: 1, 9672771f: 1, b5b333aa: 1, dc1090de: 1, ]]) }, consensus_data_hash: HashValue(0000000000000000000000000000000000000000000000000000000000000000) }, signatures: {} }), waypoint Waypoint { version: 0, value: HashValue(a5f97872cd28ac2aa94c97ea244a3e086dff07c9a699b8975b0c7c8840db663e) }

2020-10-27T11:03:14.278586Z [main] INFO execution/executor/src/lib.rs:790 commit_block {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“block_executor”}

2020-10-27T11:03:14.309845Z [main] INFO execution/executor/src/speculation_cache/mod.rs:193 Updated with a new root block as a virtual block of reconfiguration block {“name”:“speculation_cache”,“original_reconfiguration_block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“root_block_id”:“52c2caabf24c3417d2e68240020da35401e9f85095b50d59ac5c4e4a02fa1277”}

2020-10-27T11:03:14.310161Z [main] INFO execution/executor/src/db_bootstrapper.rs:91 Genesis commited.

2020-10-27T11:03:15.150538Z [main] INFO storage/libradb/src/lib.rs:158 Opened LibraDB. {“path”:"/var/folders/gq/b___dnb57qn6qqfj2zrxld280000gn/T/553e316e89a361bb4c118dbc5c8ef8d9/libradb",“time_ms”:“89”}

2020-10-27T11:03:15.152549Z [main] INFO storage/libradb/src/lib.rs:737 Got latest TreeState. {“description”:“DB is empty, has no transaction or state.”,“num_transactions”:0,“state_root_hash”:“53504152”}

2020-10-27T11:03:15.152794Z [main] INFO execution/executor/src/lib.rs:721 execute_block {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“block_executor”}

2020-10-27T11:03:15.153189Z [main] INFO language/libra-vm/src/libra_transaction_executor.rs:620 Executing block, transaction count: 1 {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“execution”,“txn_id”:0}

2020-10-27T11:03:15.154410Z [main] INFO language/libra-vm/src/libra_transaction_executor.rs:706 Reconfiguration occurred: restart required {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“execution”,“txn_id”:0}

2020-10-27T11:03:15.178377Z [main] INFO execution/executor/src/db_bootstrapper.rs:158 Genesis calculated: ledger_info_with_sigs V0(LedgerInfoWithV0 { ledger_info: LedgerInfo { commit_info: BlockInfo { epoch: 0, round: 0, id: HashValue(0000000000000000000000000000000000000000000000000000000000000000), executed_state_id: HashValue(1411e9d903239d94aacf83ebbeedb24da6521b6a896e20782475b44721a0367f), version: 0, timestamp_usecs: 0, next_epoch_state: Some(EpochState [epoch: 1, validator: ValidatorSet: [3bcb0424: 1, 9672771f: 1, b5b333aa: 1, dc1090de: 1, ]]) }, consensus_data_hash: HashValue(0000000000000000000000000000000000000000000000000000000000000000) }, signatures: {} }), waypoint Waypoint { version: 0, value: HashValue(a5f97872cd28ac2aa94c97ea244a3e086dff07c9a699b8975b0c7c8840db663e) }

2020-10-27T11:03:15.178610Z [main] INFO storage/libradb/src/lib.rs:737 Got latest TreeState. {“description”:“DB is empty, has no transaction or state.”,“num_transactions”:0,“state_root_hash”:“53504152”}

2020-10-27T11:03:15.178838Z [main] INFO execution/executor/src/lib.rs:721 execute_block {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“block_executor”}

2020-10-27T11:03:15.179202Z [main] INFO language/libra-vm/src/libra_transaction_executor.rs:620 Executing block, transaction count: 1 {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“execution”,“txn_id”:0}

2020-10-27T11:03:15.180117Z [main] INFO language/libra-vm/src/libra_transaction_executor.rs:706 Reconfiguration occurred: restart required {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“execution”,“txn_id”:0}

2020-10-27T11:03:15.204988Z [main] INFO execution/executor/src/db_bootstrapper.rs:158 Genesis calculated: ledger_info_with_sigs V0(LedgerInfoWithV0 { ledger_info: LedgerInfo { commit_info: BlockInfo { epoch: 0, round: 0, id: HashValue(0000000000000000000000000000000000000000000000000000000000000000), executed_state_id: HashValue(1411e9d903239d94aacf83ebbeedb24da6521b6a896e20782475b44721a0367f), version: 0, timestamp_usecs: 0, next_epoch_state: Some(EpochState [epoch: 1, validator: ValidatorSet: [3bcb0424: 1, 9672771f: 1, b5b333aa: 1, dc1090de: 1, ]]) }, consensus_data_hash: HashValue(0000000000000000000000000000000000000000000000000000000000000000) }, signatures: {} }), waypoint Waypoint { version: 0, value: HashValue(a5f97872cd28ac2aa94c97ea244a3e086dff07c9a699b8975b0c7c8840db663e) }

2020-10-27T11:03:15.205085Z [main] INFO execution/executor/src/lib.rs:790 commit_block {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“block_executor”}

2020-10-27T11:03:15.229511Z [main] INFO execution/executor/src/speculation_cache/mod.rs:193 Updated with a new root block as a virtual block of reconfiguration block {“name”:“speculation_cache”,“original_reconfiguration_block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“root_block_id”:“52c2caabf24c3417d2e68240020da35401e9f85095b50d59ac5c4e4a02fa1277”}

2020-10-27T11:03:15.229793Z [main] INFO execution/executor/src/db_bootstrapper.rs:91 Genesis commited.

2020-10-27T11:03:16.058552Z [main] INFO storage/libradb/src/lib.rs:158 Opened LibraDB. {“path”:"/var/folders/gq/b___dnb57qn6qqfj2zrxld280000gn/T/4628de11f4c8b44e9225e6b5892cf009/libradb",“time_ms”:“83”}

2020-10-27T11:03:16.060595Z [main] INFO storage/libradb/src/lib.rs:737 Got latest TreeState. {“description”:“DB is empty, has no transaction or state.”,“num_transactions”:0,“state_root_hash”:“53504152”}

2020-10-27T11:03:16.060840Z [main] INFO execution/executor/src/lib.rs:721 execute_block {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“block_executor”}

2020-10-27T11:03:16.061457Z [main] INFO language/libra-vm/src/libra_transaction_executor.rs:620 Executing block, transaction count: 1 {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“execution”,“txn_id”:0}

2020-10-27T11:03:16.062491Z [main] INFO language/libra-vm/src/libra_transaction_executor.rs:706 Reconfiguration occurred: restart required {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“execution”,“txn_id”:0}

2020-10-27T11:03:16.104728Z [main] INFO execution/executor/src/db_bootstrapper.rs:158 Genesis calculated: ledger_info_with_sigs V0(LedgerInfoWithV0 { ledger_info: LedgerInfo { commit_info: BlockInfo { epoch: 0, round: 0, id: HashValue(0000000000000000000000000000000000000000000000000000000000000000), executed_state_id: HashValue(1411e9d903239d94aacf83ebbeedb24da6521b6a896e20782475b44721a0367f), version: 0, timestamp_usecs: 0, next_epoch_state: Some(EpochState [epoch: 1, validator: ValidatorSet: [3bcb0424: 1, 9672771f: 1, b5b333aa: 1, dc1090de: 1, ]]) }, consensus_data_hash: HashValue(0000000000000000000000000000000000000000000000000000000000000000) }, signatures: {} }), waypoint Waypoint { version: 0, value: HashValue(a5f97872cd28ac2aa94c97ea244a3e086dff07c9a699b8975b0c7c8840db663e) }

2020-10-27T11:03:16.105042Z [main] INFO storage/libradb/src/lib.rs:737 Got latest TreeState. {“description”:“DB is empty, has no transaction or state.”,“num_transactions”:0,“state_root_hash”:“53504152”}

2020-10-27T11:03:16.105335Z [main] INFO execution/executor/src/lib.rs:721 execute_block {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“block_executor”}

2020-10-27T11:03:16.105827Z [main] INFO language/libra-vm/src/libra_transaction_executor.rs:620 Executing block, transaction count: 1 {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“execution”,“txn_id”:0}

2020-10-27T11:03:16.106859Z [main] INFO language/libra-vm/src/libra_transaction_executor.rs:706 Reconfiguration occurred: restart required {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“execution”,“txn_id”:0}

2020-10-27T11:03:16.130871Z [main] INFO execution/executor/src/db_bootstrapper.rs:158 Genesis calculated: ledger_info_with_sigs V0(LedgerInfoWithV0 { ledger_info: LedgerInfo { commit_info: BlockInfo { epoch: 0, round: 0, id: HashValue(0000000000000000000000000000000000000000000000000000000000000000), executed_state_id: HashValue(1411e9d903239d94aacf83ebbeedb24da6521b6a896e20782475b44721a0367f), version: 0, timestamp_usecs: 0, next_epoch_state: Some(EpochState [epoch: 1, validator: ValidatorSet: [3bcb0424: 1, 9672771f: 1, b5b333aa: 1, dc1090de: 1, ]]) }, consensus_data_hash: HashValue(0000000000000000000000000000000000000000000000000000000000000000) }, signatures: {} }), waypoint Waypoint { version: 0, value: HashValue(a5f97872cd28ac2aa94c97ea244a3e086dff07c9a699b8975b0c7c8840db663e) }

2020-10-27T11:03:16.130933Z [main] INFO execution/executor/src/lib.rs:790 commit_block {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“block_executor”}

2020-10-27T11:03:16.155772Z [main] INFO execution/executor/src/speculation_cache/mod.rs:193 Updated with a new root block as a virtual block of reconfiguration block {“name”:“speculation_cache”,“original_reconfiguration_block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“root_block_id”:“52c2caabf24c3417d2e68240020da35401e9f85095b50d59ac5c4e4a02fa1277”}

2020-10-27T11:03:16.156079Z [main] INFO execution/executor/src/db_bootstrapper.rs:91 Genesis commited.

2020-10-27T11:03:16.977316Z [main] INFO storage/libradb/src/lib.rs:158 Opened LibraDB. {“path”:"/var/folders/gq/b___dnb57qn6qqfj2zrxld280000gn/T/41b8766be0568a480db2e0d489ac9ffd/libradb",“time_ms”:“96”}

2020-10-27T11:03:16.979356Z [main] INFO storage/libradb/src/lib.rs:737 Got latest TreeState. {“description”:“DB is empty, has no transaction or state.”,“num_transactions”:0,“state_root_hash”:“53504152”}

2020-10-27T11:03:16.979599Z [main] INFO execution/executor/src/lib.rs:721 execute_block {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“block_executor”}

2020-10-27T11:03:16.979996Z [main] INFO language/libra-vm/src/libra_transaction_executor.rs:620 Executing block, transaction count: 1 {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“execution”,“txn_id”:0}

2020-10-27T11:03:16.980997Z [main] INFO language/libra-vm/src/libra_transaction_executor.rs:706 Reconfiguration occurred: restart required {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“execution”,“txn_id”:0}

2020-10-27T11:03:17.004889Z [main] INFO execution/executor/src/db_bootstrapper.rs:158 Genesis calculated: ledger_info_with_sigs V0(LedgerInfoWithV0 { ledger_info: LedgerInfo { commit_info: BlockInfo { epoch: 0, round: 0, id: HashValue(0000000000000000000000000000000000000000000000000000000000000000), executed_state_id: HashValue(1411e9d903239d94aacf83ebbeedb24da6521b6a896e20782475b44721a0367f), version: 0, timestamp_usecs: 0, next_epoch_state: Some(EpochState [epoch: 1, validator: ValidatorSet: [3bcb0424: 1, 9672771f: 1, b5b333aa: 1, dc1090de: 1, ]]) }, consensus_data_hash: HashValue(0000000000000000000000000000000000000000000000000000000000000000) }, signatures: {} }), waypoint Waypoint { version: 0, value: HashValue(a5f97872cd28ac2aa94c97ea244a3e086dff07c9a699b8975b0c7c8840db663e) }

2020-10-27T11:03:17.005132Z [main] INFO storage/libradb/src/lib.rs:737 Got latest TreeState. {“description”:“DB is empty, has no transaction or state.”,“num_transactions”:0,“state_root_hash”:“53504152”}

2020-10-27T11:03:17.005363Z [main] INFO execution/executor/src/lib.rs:721 execute_block {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“block_executor”}

2020-10-27T11:03:17.005732Z [main] INFO language/libra-vm/src/libra_transaction_executor.rs:620 Executing block, transaction count: 1 {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“execution”,“txn_id”:0}

2020-10-27T11:03:17.006651Z [main] INFO language/libra-vm/src/libra_transaction_executor.rs:706 Reconfiguration occurred: restart required {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“execution”,“txn_id”:0}

2020-10-27T11:03:17.039914Z [main] INFO execution/executor/src/db_bootstrapper.rs:158 Genesis calculated: ledger_info_with_sigs V0(LedgerInfoWithV0 { ledger_info: LedgerInfo { commit_info: BlockInfo { epoch: 0, round: 0, id: HashValue(0000000000000000000000000000000000000000000000000000000000000000), executed_state_id: HashValue(1411e9d903239d94aacf83ebbeedb24da6521b6a896e20782475b44721a0367f), version: 0, timestamp_usecs: 0, next_epoch_state: Some(EpochState [epoch: 1, validator: ValidatorSet: [3bcb0424: 1, 9672771f: 1, b5b333aa: 1, dc1090de: 1, ]]) }, consensus_data_hash: HashValue(0000000000000000000000000000000000000000000000000000000000000000) }, signatures: {} }), waypoint Waypoint { version: 0, value: HashValue(a5f97872cd28ac2aa94c97ea244a3e086dff07c9a699b8975b0c7c8840db663e) }

2020-10-27T11:03:17.040029Z [main] INFO execution/executor/src/lib.rs:790 commit_block {“block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“name”:“block_executor”}

2020-10-27T11:03:17.064659Z [main] INFO execution/executor/src/speculation_cache/mod.rs:193 Updated with a new root block as a virtual block of reconfiguration block {“name”:“speculation_cache”,“original_reconfiguration_block_id”:“0000000000000000000000000000000000000000000000000000000000000000”,“root_block_id”:“52c2caabf24c3417d2e68240020da35401e9f85095b50d59ac5c4e4a02fa1277”}

2020-10-27T11:03:17.064940Z [main] INFO execution/executor/src/db_bootstrapper.rs:91 Genesis commited.

thread ‘main’ panicked at 'called Result::unwrap() on an Err value: Error launching node process with binary: “/…/…/target//libra-node”

Caused by:

No such file or directory (os error 2)’, testsuite/libra-swarm/src/swarm.rs:336:14

note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

logs located at “/var/folders/gq/b___dnb57qn6qqfj2zrxld280000gn/T/51706bb10d9d91579adf8706d8356857”

Any suggestions/inputs on how can I approach this? Or anyone can share the correct method to set up a multi-nodes local network

Hi,

If you’re trying to setup a local network for testing, starting a single validator would be easier to deal with, you can follow the instruction here https://developers.libra.org/docs/run-local-network

If you want to use libra-swarm to start multiple nodes, here’s a script to help you do this https://github.com/libra/libra/blob/master/scripts/cli/start_cli_swarm.sh
You can edit this script to add more option (-n 4 to specify 4 validator nodes) or change the variables as needed.
usage:
libra-swarm --cli-path <cli-path> --libra-node <libra-node> --num-full-nodes <num-full-nodes> --num-nodes <num-nodes> --start-client

We’ve cut the release branch recently, you can use the release branch for your testing https://github.com/libra/libra/tree/release-1.0

1 Like

Thanks for that!

After running libra-swarm, I got this output :

To run the Libra CLI client in a separate process and connect to the validator nodes you just spawned, use this command:
cli -u http://localhost:61277 -m “/var/folders/gq/b___dnb57qn6qqfj2zrxld280000gn/T/74ef7d7cff3d5205afbd95841717b583/mint.key” --waypoint 0:a8cb94d6ad65cd41b173e1db297115b9ae127d743252eb05fb6903ced0aff99a --chain-id 4

To run transaction generator run:
cluster-test --mint-file “/var/folders/gq/b___dnb57qn6qqfj2zrxld280000gn/T/74ef7d7cff3d5205afbd95841717b583/mint.key” --swarm --peers “localhost:61277,localhost:61293,localhost:61309,localhost:61325” --emit-tx --workers-per-ac 1

To run health check:
cluster-test --mint-file “/var/folders/gq/b___dnb57qn6qqfj2zrxld280000gn/T/74ef7d7cff3d5205afbd95841717b583/mint.key” --swarm --peers “localhost:61277:61271,localhost:61293:61287,localhost:61309:61303,localhost:61325:61319” --health-check --duration 30

And unfortunately, something wrong with the last command:

After running
cargo run -p cluster-test – --mint-file “/var/folders/gq/b___dnb57qn6qqfj2zrxld280000gn/T/fb54eec69a30e82ccbec07e4e951e83b/mint.key” --swarm --peers “localhost:52050:52044,localhost:52066:52060,localhost:52082:52076,localhost:52098:52092” --health-check --duration 30

output:
Finished dev [unoptimized + debuginfo] target(s) in 1.48s

Running target/debug/cluster-test --mint-file /var/folders/gq/b___dnb57qn6qqfj2zrxld280000gn/T/fb54eec69a30e82ccbec07e4e951e83b/mint.key --swarm --peers 'localhost:52050:52044,localhost:52066:52060,localhost:52082:52076,localhost:52098:52092' --health-check --duration 30

thread ‘main’ panicked at ‘Instance was not started with k8s’, testsuite/cluster-test/src/instance.rs:280:9

note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

Then I tried " export RUST_BACKTRACE=1".
It didn’t work. How about dealing with it?

Looking forward to the answer.

Hi,

Two things to check here:

  • make sure you have all the dependencies installed, you can run this script to help you set things up in libra repo. ./scripts/dev_setup.sh
  • Make sure you are on the release branch.

Thanks,
Sherry

Sorry I’ve missed the error message you pasted. the health check command is expected to only work when the node is deployed in a kubernetes cluster. You can safely ignore that.
See more detail about cluster-test here https://github.com/libra/libra/tree/master/testsuite/cluster-test

1 Like

One can directly call scripts/cli/start_cli_swarm.sh with “--” in order to pass arguments directly to libra-swarm :slightly_smiling_face:

Like this:
./scripts/cli/start_cli_swarm.sh -- -n 4

Great! It works! Thanks for that.

1 Like