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)
You have to set
RUST_BACKTRACE=1as environment variable. E.g. typeexport RUST_BACKTRACE=1in the shell before startingelectrsto provide backtrace - please do.Also, please fill the bug report template so that we know which
electrsand platform do you use:System running electrs
Also, in your case, if you compiled
electrsyourself, please tell us your Rust version (cargo --versionandrustc --version), whether you compiled with--lockedand whichelectrsversion did you compile.@flounderella Seems similar to https://github.com/romanz/electrs/issues/490 - let’s continue the discussion there.