Skip to content

Rustls failure on network startupΒ #11164

@akru

Description

@akru

Is there an existing issue?

  • I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • This is not a support question.

Description of bug

Description

The problem rises after uplift to latest stable polkadot-sdk, node fails for live networks, --dev still works normal.

Configuration

Error log

Version: robonomics-ca86f71a059 :: polkadot omni node v1.21.0

   0: sp_panic_handler::set::{{closure}}
   1: std::panicking::rust_panic_with_hook
   2: std::panicking::begin_panic_handler::{{closure}}
   3: std::sys::backtrace::__rust_end_short_backtrace
   4: __rustc::rust_begin_unwind
   5: core::panicking::panic_fmt
   6: core::option::expect_failed
   7: rustls::client::client_conn::ClientConfig::builder_with_protocol_versions
   8: rustls::client::client_conn::ClientConfig::builder
   9: tokio_tungstenite::tls::encryption::rustls::wrap_stream::{{closure}}
  10: <tokio::time::timeout::Timeout<T> as core::future::future::Future>::poll
  11: <litep2p::transport::websocket::WebSocketTransport as litep2p::transport::Transport>::open::{{closure}}::{{closure}}
  12: futures_util::stream::stream::StreamExt::poll_next_unpin
  13: <futures_util::abortable::Abortable<Fut> as core::future::future::Future>::poll
  14: <futures_util::future::future::map::Map<Fut,F> as core::future::future::Future>::poll
  15: <futures_util::future::try_future::UnwrapOrElse<Fut,F> as core::future::future::Future>::poll
  16: <futures_util::stream::futures_unordered::FuturesUnordered<Fut> as futures_core::stream::Stream>::poll_next
  17: <litep2p::transport::websocket::WebSocketTransport as futures_core::stream::Stream>::poll_next
  18: <litep2p::transport::manager::TransportContext as futures_core::stream::Stream>::poll_next
  19: litep2p::transport::manager::TransportManager::next::{{closure}}
  20: <core::future::poll_fn::PollFn<F> as core::future::future::Future>::poll
  21: <sc_network::litep2p::Litep2pNetworkBackend as sc_network::service::traits::NetworkBackend<B,H>>::run::{{closure}}
  22: sc_service::build_network_future::{{closure}}::{{closure}}::{{closure}}
  23: <futures_util::future::poll_fn::PollFn<F> as core::future::future::Future>::poll
  24: <sc_service::task_manager::prometheus_future::PrometheusFuture<T> as core::future::future::Future>::poll
  25: <futures_util::future::select::Select<A,B> as core::future::future::Future>::poll
  26: <tracing_futures::Instrumented<T> as core::future::future::Future>::poll
  27: tokio::runtime::park::CachedParkThread::block_on
  28: tokio::runtime::handle::Handle::block_on
  29: <tokio::runtime::blocking::task::BlockingTask<T> as core::future::future::Future>::poll
  30: tokio::runtime::task::core::Core<T,S>::poll
  31: tokio::runtime::task::harness::Harness<T,S>::poll
  32: tokio::runtime::blocking::pool::Inner::run
  33: std::sys::backtrace::__rust_begin_short_backtrace
  34: core::ops::function::FnOnce::call_once{{vtable.shim}}
  35: std::sys::pal::unix::thread::Thread::new::thread_start
  36: start_thread
  37: __GI___clone3


Thread 'tokio-runtime-worker' panicked at '
Could not automatically determine the process-level CryptoProvider from Rustls crate features.
Call CryptoProvider::install_default() before this point to select a provider manually, or make sure exactly one of the 'aws-lc-rs' and 'ring' features is enabled.
See the documentation of the CryptoProvider type for more information.
            ', /home/akru/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.23.36/src/crypto/mod.rs:249

Steps to reproduce

No response

Metadata

Metadata

Assignees

Labels

I10-unconfirmedIssue might be valid, but it's not yet known.I2-bugThe node fails to follow expected behavior.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions