tangle-network / tangle

Modular restaking infrastructure for developers, restakers, and operators.
https://www.tangle.tools/
GNU General Public License v3.0
51 stars 24 forks source link

Thread 'main' panicked at 'file should open read only: Os { code: 2, kind: NotFound, message: "No such file or directory" }' #332

Closed msobh13 closed 11 months ago

msobh13 commented 11 months ago

First run got this err and asked to report as bug

====================

Version: 0.5.0-e892e17-x86_64-linux-gnu

0: sp_panic_handler::set::{{closure}} 1: <alloc::boxed::Box<F,A> as core::ops::function::Fn>::call at /rustc/4c8bb79d9f565115637cc6da739f8389e79f3a29/library/alloc/src/boxed.rs:2021:9 std::panicking::rust_panic_with_hook at /rustc/4c8bb79d9f565115637cc6da739f8389e79f3a29/library/std/src/panicking.rs:709:13 2: std::panicking::begin_panic_handler::{{closure}} at /rustc/4c8bb79d9f565115637cc6da739f8389e79f3a29/library/std/src/panicking.rs:597:13 3: std::sys_common::backtrace::rust_end_short_backtrace at /rustc/4c8bb79d9f565115637cc6da739f8389e79f3a29/library/std/src/sys_common/backtrace.rs:151:18 4: rust_begin_unwind at /rustc/4c8bb79d9f565115637cc6da739f8389e79f3a29/library/std/src/panicking.rs:593:5 5: core::panicking::panic_fmt at /rustc/4c8bb79d9f565115637cc6da739f8389e79f3a29/library/core/src/panicking.rs:67:14 6: core::result::unwrap_failed at /rustc/4c8bb79d9f565115637cc6da739f8389e79f3a29/library/core/src/result.rs:1651:5 7: tangle_standalone::distributions::testnet::read_contents 8: tangle_standalone::distributions::testnet::read_contents_to_evm_accounts 9: tangle_standalone::distributions::testnet::get_evm_balance_distribution 10: tangle_standalone::chain_spec::local_testnet_config::{{closure}} 11: sc_chain_spec::chain_spec::GenesisSource::resolve 12: <sc_chain_spec::chain_spec::ChainSpec<G,E> as sp_runtime::BuildStorage>::assimilate_storage 13: sp_runtime::BuildStorage::build_storage 14: sc_chain_spec::genesis::GenesisBlockBuilder<Block,B,E>::new 15: sc_service::builder::new_full_parts 16: tangle_standalone::service::new_partial 17: tangle_standalone::service::new_full::{{closure}} 18: <futures_util::future::future::map::Map<Fut,F> as core::future::future::Future>::poll 19: tokio::runtime::park::CachedParkThread::block_on 20: tokio::runtime::context::runtime::enter_runtime 21: tokio::runtime::runtime::Runtime::block_on 22: sc_cli::runner::Runner::run_node_until_exit 23: tangle_standalone::main 24: std::sys_common::backtrace::rust_begin_short_backtrace 25: std::rt::lang_start::{{closure}} 26: core::ops::function::impls::<impl core::ops::function::FnOnce for &F>::call_once at /rustc/4c8bb79d9f565115637cc6da739f8389e79f3a29/library/core/src/ops/function.rs:284:13 std::panicking::try::do_call at /rustc/4c8bb79d9f565115637cc6da739f8389e79f3a29/library/std/src/panicking.rs:500:40 std::panicking::try at /rustc/4c8bb79d9f565115637cc6da739f8389e79f3a29/library/std/src/panicking.rs:464:19 std::panic::catch_unwind at /rustc/4c8bb79d9f565115637cc6da739f8389e79f3a29/library/std/src/panic.rs:142:14 std::rt::lang_start_internal::{{closure}} at /rustc/4c8bb79d9f565115637cc6da739f8389e79f3a29/library/std/src/rt.rs:148:48 std::panicking::try::do_call at /rustc/4c8bb79d9f565115637cc6da739f8389e79f3a29/library/std/src/panicking.rs:500:40 std::panicking::try at /rustc/4c8bb79d9f565115637cc6da739f8389e79f3a29/library/std/src/panicking.rs:464:19 std::panic::catch_unwind at /rustc/4c8bb79d9f565115637cc6da739f8389e79f3a29/library/std/src/panic.rs:142:14 std::rt::lang_start_internal at /rustc/4c8bb79d9f565115637cc6da739f8389e79f3a29/library/std/src/rt.rs:148:20 27: main 28: 29: __libc_start_main 30: _start

Thread 'main' panicked at 'file should open read only: Os { code: 2, kind: NotFound, message: "No such file or directory" }', standalone/node/src/distributions/testnet.rs:25

This is a bug. Please report it at:

    https://github.com/webb-tools/tangle/issues
1xstj commented 11 months ago

The root cause here was using an incomplete start command, fixed