Skip to content
This repository was archived by the owner on May 21, 2024. It is now read-only.
This repository was archived by the owner on May 21, 2024. It is now read-only.

Essential task relay-chain-rpc-worker failed. Shutting down service. #333

@BulatSaif

Description

@BulatSaif

Description
The Trappist node fails to start if --relay-chain-rpc-urls is set.

Steps to Reproduce

trappist-node \
            --name=${POD_NAME} \
            --base-path=/chain-data \
            --keystore-path=/keystore \
            --chain=/chain-data/chainspec.json \
            --database=paritydb \
            --state-pruning=archive \
            --prometheus-external \
            --prometheus-port 9615 \
            --unsafe-rpc-external \
            --rpc-port=9944 \
            --rpc-cors=all \
            --relay-chain-rpc-urls "wss://rococo-rpc.polkadot.io" \
            --listen-addr=/ip4/0.0.0.0/tcp/30334 \
            --public-addr=/ip4/${EXTERNAL_IP}/tcp/${PARA_CHAIN_P2P_PORT} \
            --telemetry-url='wss://***/submit/ 1' \
            --in-peers 75 \
            --out-peers 25

Expected vs. Actual Behavior
Trappist node fails to start

Environment
docker image: paritytech/trappist:trappist-v1.1.0

Logs, Errors or Screenshots

2024-01-26 14:47:02 Trappist Node
2024-01-26 14:47:02 ✌️  version 1.0.0-unknown
2024-01-26 14:47:02 ❤️  by Trappist Network <https://github.com/TrappistNetwork>, 2021-2024
2024-01-26 14:47:02 📋 Chain specification: Trappist Rococo
2024-01-26 14:47:02 🏷  Node name: rococo-trappist-paritydb-archive-backup-0
2024-01-26 14:47:02 👤 Role: FULL
2024-01-26 14:47:02 💾 Database: ParityDb at /chain-data/chains/trappist_rococo/paritydb/full
2024-01-26 14:47:04 Parachain id: Id(1836)
2024-01-26 14:47:04 Parachain Account: 5Ec4AhNv5SfEHfqX28Vsy8CS96urS9HGCtakwMztLNwDTAS6
2024-01-26 14:47:04 Parachain genesis state: 0x000000000000000000000000000000000000000000000000000000000000000000ea29c20c00a72a6eccc4bd62511fa9afd0e8d0e1a9cad989afcd4df40d2f645103170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c11131400
2024-01-26 14:47:04 Is collating: no
2024-01-26 14:47:04 [Parachain] Trying to connect to next external relaychain node. index=0 url="wss://rococo-rpc.polkadot.io:443/"
2024-01-26 14:47:04 [Parachain] No valid RPC url found. Stopping RPC worker.
2024-01-26 14:47:04 [Parachain] Essential task `relay-chain-rpc-worker` failed. Shutting down service.

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

Version: 1.0.0-unknown

   0: sp_panic_handler::set::{{closure}}
   1: <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call
             at rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/alloc/src/boxed.rs:1999:9
      std::panicking::rust_panic_with_hook
             at rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/panicking.rs:709:13
   2: std::panicking::begin_panic_handler::{{closure}}
             at rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/panicking.rs:597:13
   3: std::sys_common::backtrace::__rust_end_short_backtrace
             at rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/sys_common/backtrace.rs:151:18
   4: rust_begin_unwind
             at rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/panicking.rs:593:5
   5: core::panicking::panic_fmt
             at rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/core/src/panicking.rs:67:14
   6: core::result::unwrap_failed
             at rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/core/src/result.rs:1651:5
   7: cumulus_relay_chain_minimal_node::new_minimal_relay_chain::{{closure}}
   8: cumulus_relay_chain_minimal_node::build_interface::{{closure}}
   9: cumulus_client_service::build_relay_chain_interface::{{closure}}
  10: trappist_node::command::run::{{closure}}::{{closure}}
  11: tokio::runtime::park::CachedParkThread::block_on
  12: tokio::runtime::context::runtime::enter_runtime
  13: tokio::runtime::runtime::Runtime::block_on
  14: sc_cli::runner::Runner<C>::run_node_until_exit
  15: trappist_node::command::run
  16: trappist_node::main
  17: std::sys_common::backtrace::__rust_begin_short_backtrace
  18: std::rt::lang_start::{{closure}}
  19: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
             at rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/core/src/ops/function.rs:284:13
      std::panicking::try::do_call
             at rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/panicking.rs:500:40
      std::panicking::try
             at rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/panicking.rs:464:19
      std::panic::catch_unwind
             at rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/panic.rs:142:14
      std::rt::lang_start_internal::{{closure}}
             at rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/rt.rs:148:48
      std::panicking::try::do_call
             at rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/panicking.rs:500:40
      std::panicking::try
             at rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/panicking.rs:464:19
      std::panic::catch_unwind
             at rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/panic.rs:142:14
      std::rt::lang_start_internal
             at rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/rt.rs:148:20
  20: main
  21: __libc_start_main
  22: _start


Thread 'main' panicked at 'Genesis block hash is always available; qed: WorkerCommunicationError("Unexpected channel close on RPC worker side: oneshot canceled")', /usr/local/cargo/git/checkouts/polkadot-sdk-cff69157b985ed76/f60318f/cumulus/client/relay-chain-minimal-node/src/lib.rs:173

This is a bug. Please report it at:

	https://github.com/TrappistNetwork/trappist/issues/new

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions