electrs: Bug: Upgraded electrs 0.8.11 --> 0.9.0 and when start the core-dump
Describe the bug Have upgraded upgraded electrs from 0.8.11 to 0.9.0 and when starting via systecrl I get: sudo systemctl status electrs.service ● electrs.service - Electrs Loaded: loaded (/etc/systemd/system/electrs.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: core-dump) since Wed 2021-10-06 13:08:49 SAST; 5s ago Process: 169369 ExecStart=/home/marius/electrs/target/release/electrs --db-dir ./db --electrum-rpc-addr=0.0.0.0:50001 (code=dumped, signal=ILL) Main PID: 169369 (code=dumped, signal=ILL)
Oct 06 13:08:49 mbbtcnode systemd[1]: electrs.service: Failed with result ‘core-dump’.
Electrs version Latest: 0.9.0
To Reproduce Upgraded using steps here: https://github.com/romanz/electrs/blob/master/doc/usage.md
Expected behavior Electrs to be running
Configuration
electrs.toml
type error message here
Environment variables: ELECTRS_X=Y;...
Arguments: --foo
System running electrs Linux running Ubuntu 20.04 bitcoin core v22 Rust version: stable-x86_64-unknown-linux-gnu unchanged - rustc 1.55.0 (c8dfcfe04 2021-09-06)
Electrum client Client name (if not upstream desktop Electrum) and version:
Additional context Add any other context about the problem here.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 48 (25 by maintainers)
Commits related to this issue
- Move CI-related Dockerfile and add a simpler one for standalone builds Following https://github.com/romanz/electrs/issues/536#issuecomment-939525077 — committed to romanz/electrs by romanz 3 years ago
- Move CI-related Dockerfile and add a simpler one for standalone builds Following https://github.com/romanz/electrs/issues/536#issuecomment-939525077 — committed to romanz/electrs by romanz 3 years ago
- Move CI-related Dockerfile and add a simpler one for standalone builds Following https://github.com/romanz/electrs/issues/536#issuecomment-939525077 — committed to romanz/electrs by romanz 3 years ago
- Move CI-related Dockerfile and add a simpler one for standalone builds Following https://github.com/romanz/electrs/issues/536#issuecomment-939525077 — committed to romanz/electrs by romanz 3 years ago
- Build rocksdb with conditional SSE support See https://github.com/romanz/rust-rocksdb/commit/4935c2860951e73b412280ede57ce9d0cb09c541. Should fix https://github.com/romanz/electrs/issues/536. — committed to romanz/electrs by romanz 3 years ago
- Build rocksdb with conditional SSE support See https://github.com/romanz/rust-rocksdb/commit/4935c2860951e73b412280ede57ce9d0cb09c541. Should fix https://github.com/romanz/electrs/issues/536. — committed to romanz/electrs by romanz 3 years ago
Thanks @romanz, updated today to v0.9.2 and started electrs as a service.
Took about 9 hours to rebuild the db and it is running perfectly.
Thanks for resolving this issue.
i have manually run electrs with the following command:
/home/marius/electrs/target/release/electrs -vvv --db-dir ./db --electrum-rpc-addr="0.0.0.0:50001"and attached the output before I manually stopped it. No core dump and it seemed to be working Electrs running - 20211025.txtThanks, it now builds successfully. Will spend some time late today to see if this build run.
Seems to be working but electrs is failing since it cannot find bitcoin core (which is correct since there is no bitcoin core in the docker image) in the docker but no core dump
Here is the recording: https://asciinema.org/a/WkhPRSsL726KiiXS7oEfXrb2A
I forgot
apt-get update, please run it before installing.That make sense will try apt-get instead of apt git
Maybe we’ll need to cherry-pick https://github.com/rust-rocksdb/rust-rocksdb/commit/81a9edea83473012378e808606cdd92c1212c076 into our RocksDB fork… See https://github.com/rust-rocksdb/rust-rocksdb/issues/327 for more details.
Also tried with dynamic: ROCKSDB_INCLUDE_DIR=/usr/include ROCKSDB_LIB_DIR=/usr/lib cargo build --locked --release and the same result: ● electrs.service - Electrs Loaded: loaded (/etc/systemd/system/electrs.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: core-dump) since Wed 2021-10-06 16:49:32 SAST; 15s ago Process: 2429 ExecStart=/home/marius/electrs/target/release/electrs --db-dir ./db --electrum-rpc-addr=0.0.0.0:50001 (code=dumped, signal=ILL) Main PID: 2429 (code=dumped, signal=ILL)
Oct 06 16:49:32 mbbtcnode systemd[1]: electrs.service: Failed with result ‘core-dump’.
Did you compile with static or dynamic linking? You could try the other.