electrs: Electrs has a thread 'main' panicked error at launch

I configured electrs following the stadicus guide and have the following error on launch:

2021-07-29T00:00:07.422+01:00 - DEBUG - Server listening on 127.0.0.1:4224 thread ‘main’ panicked at ‘attempted to leave type lru::LruEntry<bitcoin_hashes::sha256d::Hash, (std::vec::Vec<bitcoin_hashes::sha256d::Hash>, usize)> uninitialized, which is invalid’, /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/mem/mod.rs:658:9 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace 2021-07-29T00:00:07.423+01:00 - DEBUG - Running accept thread

I’ve tried editing the electrs.conf file to include the Rust Backtrace variable but this didn’t change anything.

I’ve also looked at the bitcoin.conf file to make sure passwords and usernames are correct, I have also turned off ufw in case that was causing any issues.

Expected behavior Expected Electrs to start syncing but it crashed on launch

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 20 (11 by maintainers)

Most upvoted comments

You have to set RUST_BACKTRACE=1 as environment variable. E.g. type export RUST_BACKTRACE=1 in the shell before starting electrs to provide backtrace - please do.

Also, please fill the bug report template so that we know which electrs and platform do you use:

System running electrs

  • Deployment method: manual/native OS package/Docker
  • OS name and version (name of distribution and version in case of Linux)

Also, in your case, if you compiled electrs yourself, please tell us your Rust version (cargo --version and rustc --version), whether you compiled with --locked and which electrs version did you compile.

@flounderella Seems similar to https://github.com/romanz/electrs/issues/490 - let’s continue the discussion there.