Node client Crashed when launch a Local Network

Hello ,
The installstion was fine but … :smiley:
i’m trying to run a Local Network on this machine :

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.4 LTS"
NAME="Ubuntu"
VERSION="18.04.4 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.4 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

But i got this message :

"localhost:32773" --emit-tx --workers-per-ac 1
Loading client...
ERROR 2020-05-05 06:04:06 common/crash-handler/src/lib.rs:38 details = '''panicked at 'called `Option::unwrap()` on a `None` value', client/cli/src/main.rs:85:9'''
backtrace = '''
   0:     0x5627c2d40b9d - backtrace::backtrace::libunwind::trace::h9134a8721401234b
                               at /home/rahma/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/libunwind.rs:86
                           backtrace::backtrace::trace_unsynchronized::h74e140a14a1f1dae
                               at /home/rahma/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/mod.rs:66
   1:     0x5627c2d40b1e - backtrace::backtrace::trace::h1defcd00b9a88cfd
                               at /home/rahma/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/mod.rs:53
   2:     0x5627c2d3830d - backtrace::capture::Backtrace::create::h143b1894b872deb6
                               at /home/rahma/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/capture.rs:164
   3:     0x5627c2d38225 - backtrace::capture::Backtrace::new::hca3c1e6f9d02b01f
                               at /home/rahma/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/capture.rs:128
   4:     0x5627c2d2aa9b - crash_handler::handle_panic::hb2036a4f31d31476
                               at common/crash-handler/src/lib.rs:35
   5:     0x5627c2d2ba56 - crash_handler::setup_panic_handler::{{closure}}::h0a96609e47205d30
                               at common/crash-handler/src/lib.rs:27
   6:     0x5627c3af8005 - std::panicking::rust_panic_with_hook::hb976084785e50594
                               at src/libstd/panicking.rs:474
   7:     0x5627c3af7b1b - rust_begin_unwind
                               at src/libstd/panicking.rs:378
   8:     0x5627c3b1b021 - core::panicking::panic_fmt::h45f7d6868edb5678
                               at src/libcore/panicking.rs:85
   9:     0x5627c3b1af6d - core::panicking::panic::h0fd4184f909d9498
                               at src/libcore/panicking.rs:52
  10:     0x5627c2c8056d - core::option::Option<T>::unwrap::h44e30e3866aac13c
                               at /rustc/4fb7144ed159f94491249e86d5bbd033b5d60550/src/libcore/macros/mod.rs:10
  11:     0x5627c2c6df23 - cli::main::{{closure}}::hd38aa830d042239e
                               at client/cli/src/main.rs:85
  12:     0x5627c2c7de9a - core::option::Option<T>::unwrap_or_else::h7da509af933eda82
                               at /rustc/4fb7144ed159f94491249e86d5bbd033b5d60550/src/libcore/option.rs:428
  13:     0x5627c2c68945 - cli::main::hf2ed74c0ff11d786
                               at client/cli/src/main.rs:84
  14:     0x5627c2c6647b - std::rt::lang_start::{{closure}}::hbbc6ec82d3b45aa9
                               at /rustc/4fb7144ed159f94491249e86d5bbd033b5d60550/src/libstd/rt.rs:67
  15:     0x5627c3af79f3 - std::rt::lang_start_internal::{{closure}}::hc0a1280e68ffc5da
                               at src/libstd/rt.rs:52
                           std::panicking::try::do_call::h1d43a4d29f303ef5
                               at src/libstd/panicking.rs:303
  16:     0x5627c3b00947 - __rust_maybe_catch_panic
                               at src/libpanic_unwind/lib.rs:86
  17:     0x5627c3af844c - std::panicking::try::h5ef738612ab0072d
                               at src/libstd/panicking.rs:281
                           std::panic::catch_unwind::h1df9a04c7f1c6fc3
                               at src/libstd/panic.rs:394
                           std::rt::lang_start_internal::h97d4af4643f4b0e4
                               at src/libstd/rt.rs:51
  18:     0x5627c2c66457 - std::rt::lang_start::hfb97c0bc01172405
                               at /rustc/4fb7144ed159f94491249e86d5bbd033b5d60550/src/libstd/rt.rs:67
  19:     0x5627c2c6bbea - main
  20:     0x7f3c8d75fb97 - __libc_start_main
  21:     0x5627c2c64d2a - _start
  22:                0x0 - <unknown>
'''

Exit client.
Exit libra-swarm.

After Update m cargo rebuild nothing works.

Here the logs :

Using node config NodeConfig { admission_control: AdmissionControlConfig { address: V4(0.0.0.0:37845), need_to_check_mempool_before_validation: false, max_concurrent_inbound_syncs: 100, upstream_proxy_timeout: 1s }, rpc: RpcConfig { address: V4(0.0.0.0:37673) }, base: BaseConfig { data_dir: "swarm_dir/0", role: Validator, waypoint: Some(Waypoint { version: 0, value: HashValue(3973c12fbf9dcabba1d5944f7705bd7e20391b702000de1655b57fdecc4108d7) }) }, consensus: ConsensusConfig { max_block_size: 1000, contiguous_rounds: 2, max_pruned_blocks_in_mem: 10000, pacemaker_initial_timeout_ms: 1000, proposer_type: LeaderReputation(LeaderReputationConfig { active_weights: 99, inactive_weights: 1 }), safety_rules: SafetyRulesConfig { backend: OnDiskStorage(OnDiskStorageConfig { default: true, path: "safety_rules.toml", data_dir: "swarm_dir/0" }), service: Thread } }, debug_interface: DebugInterfaceConfig { admission_control_node_debug_port: 39965, metrics_server_port: 35385, public_metrics_server_port: 36689, address: "0.0.0.0" }, execution: ExecutionConfig { genesis: Some(...), genesis_file_location: "genesis.blob" }, full_node_networks: [], logger: LoggerConfig { is_async: true, chan_size: 256, level: Info }, metrics: MetricsConfig { collection_interval_ms: 1000, dir: "metrics", enabled: false, data_dir: "swarm_dir/0" }, mempool: MempoolConfig { broadcast_transactions: true, shared_mempool_tick_interval_ms: 50, shared_mempool_batch_size: 100, shared_mempool_max_concurrent_inbound_syncs: 100, shared_mempool_min_broadcast_recipient_count: None, capacity: 1000000, capacity_per_user: 100, system_transaction_timeout_secs: 86400, system_transaction_gc_interval_ms: 180000 }, state_sync: StateSyncConfig { chunk_limit: 250, tick_interval_ms: 100, long_poll_timeout_ms: 30000, max_chunk_limit: 1000, max_timeout_ms: 120000 }, storage: StorageConfig { address: V4(127.0.0.1:37855), simple_address: V4(127.0.0.1:42739), dir: "libradb/db", grpc_max_receive_len: Some(100000000), data_dir: "swarm_dir/0" }, test: Some(TestConfig { auth_key: Some(AuthenticationKey([23, 150, 130, 76, 220, 195, 171, 32, 92, 37, 242, 96, 225, 93, 198, 112, 89, 66, 211, 86, 241, 20, 8, 157, 74, 70, 242, 243, 176, 177, 91, 82])), account_keypair: Some(KeyPair { private_key: Some(<elided secret for Ed25519PrivateKey>), public_key: Ed25519PublicKey(1a3201a76a32a948bb8b89496d137243df86fddcbac2bec67baaf78a5a36d3d1) }), consensus_keypair: Some(KeyPair { private_key: Some(<elided secret for Ed25519PrivateKey>), public_key: Ed25519PublicKey(1b14e0767993630a34eb6e9f2bd38a240baf870bfaea25797525b6442d3d0b1a) }), temp_dir: None, publishing_option: None }), upstream: UpstreamConfig { primary_networks: [5942d356f114089d4a46f2f3b0b15b52], upstream_peers: {}, fallback_networks: [] }, validator_network: Some(NetworkConfig { peer_id: 5942d356f114089d4a46f2f3b0b15b52, listen_address: "/ip4/0.0.0.0/tcp/38777", advertised_address: "/ip4/0.0.0.0/tcp/38777", discovery_interval_ms: 1000, connectivity_check_interval_ms: 5000, enable_noise: true, enable_remote_authentication: true, discovery_method: Gossip, network_peers: <0 keys>, network_peers_file: "", seed_peers: SeedPeersConfig { seed_peers: {5942d356f114089d4a46f2f3b0b15b52: ["/ip4/0.0.0.0/tcp/38777"]} }, seed_peers_file: "5942d356f114089d4a46f2f3b0b15b52.seed_peers.toml", network_keypairs: Some(NetworkKeyPairs { identity_keypair: KeyPair { private_key: Some(<elided secret for PrivateKey>), public_key: PublicKey([125, 96, 18, 168, 77, 157, 238, 97, 117, 136, 217, 86, 66, 97, 66, 186, 208, 118, 162, 138, 113, 15, 36, 91, 175, 179, 150, 58, 194, 31, 19, 51]) }, signing_keypair: KeyPair { private_key: Some(<elided secret for Ed25519PrivateKey>), public_key: Ed25519PublicKey(2aa72f30d32981edc01a2de1ce44f119608801bab2284a4495123e27a184e201) } }) }) }

thanks for your help .

sincerely Rahma

up

and after trying resolved it myself , it seems an issue with the validator peers :

Node: 2 did not report libra_network_peers{role_type=validator,state=connected}
Wait for connectivity attempt: 1
Node: 2 did not report libra_network_peers{role_type=validator,state=connected}
Wait for connectivity attempt: 2
Node: 2 did not report libra_network_peers{role_type=validator,state=connected}
Wait for connectivity attempt: 3
Node: 2 did not report libra_network_peers{role_type=validator,state=connected}
Wait for connectivity attempt: 4
Node: 2 did not report libra_network_peers{role_type=validator,state=connected}

This looks like the same issue that was reported in Error running libra-swarm.

This was fixed in https://github.com/libra/libra/pull/3655
Update your sources to include that and try again

hello ,

it’s resolve the libra local network but ALL my scripts and modules have to be formated with this new… thing :sweat_smile:

for example all public procedure must be followed by “fun”.

i mean like this :

public fun ring () {}

but before without the ‘fun’.
Same for copy and move got more errors like Expected name value .

I don’t see in any docs how to fix this.

I think Libra documentation should be really maintaining ASAP .

As a not Rust developer , fix all those issue are frustrating. :sweat_smile:

ho and if i make the mistake to update the build (cargo update) got many errors about files with missing requirement.

The changes you’re seeing now are because we have switched to use the Move source language. Previously we were using the Move IR as a way to get started before the Move source language was ready. Better documentation will be coming, but for now, you can see some basic examples in https://developers.libra.org/docs/run-move-locally