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

Most upvoted comments

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.txt

Please try running from the latest p2p-bullseye branch -> a45ee9c:

$ git clone -b p2p-bullseye https://github.com/romanz/electrs
$ cd electrs 
$ docker build . --rm -t electrs:latest

Thanks, 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.

I believe @romanz meant apt-get instead of apt git 😃

That make sense will try apt-get instead of apt git

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.