-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Upgraded electrs 0.8.11 --> 0.9.0 and when start the core-dump #536
Comments
Many thanks for reporting this issue! |
Maybe also share core dump? Unless you're using |
Machine: |
Since you used systemd |
From the above command: |
Had a look at #193 , do you think downgrading rocksdb to 0.12.2 will help? |
I have run electrs also with -vvv: |
Did you compile with static or dynamic linking? You could try the other. |
Compiled with static: cargo build --locked --release |
Also tried with dynamic: ROCKSDB_INCLUDE_DIR=/usr/include ROCKSDB_LIB_DIR=/usr/lib cargo build --locked --release Oct 06 16:49:32 mbbtcnode systemd[1]: electrs.service: Failed with result 'core-dump'. |
Could you please try running using Docker on Debian 11, from
If possible, please use https://asciinema.org/ to record and share the build log/errors. |
Maybe we'll need to cherry-pick rust-rocksdb/rust-rocksdb@81a9ede into our RocksDB fork... |
@mariusb Could you please run the following on your machine:
|
If the above fails, could you please also run:
|
Good morning -- output from the above: Caused by: |
And from the above: Caused by: |
Also tried this, am not a docker expert but got an error on the second line. |
I believe @romanz meant |
That make sense will try apt-get instead of apt git |
Gave the docker another try with apt-get install and get Unable to locate package See recording: https://asciinema.org/a/Ji4vncM2iXdRB7DSXk05cgY7P |
I forgot |
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 |
Thanks! You can try adding |
Even with this suggestion it did not find bitcoin core - here is the command I used to start docker: Here is the final part of the docker output:
|
It seems that your bitcoind cookie is not stored under
|
The reason why I do not have a cookie file is that I have rpcuser & rpcpassword in my bitcoin.conf file which I need to connect Specter wallet to my bitcoin core node. |
I can suggest using the following
You can build an image and tag it using:
Them you can run it:
|
Got it, thanks! |
|
Sorry by mistake closed the issue Hmm tried to build the docker from this and get the following error:
|
Please try running from the latest
|
Thanks, it now builds successfully. Will spend some time late today to see if this build run. |
Closing for now, since the original core dump issue seems to be "worked-around" :) |
Seems to happen also in #592. |
@mariusb Could you please try to build and run the following branch on your platform: |
Hi @romanz, should I build it in the docker image or in the standard electrs install? |
Please try the standard electrs install (without the Docker).
|
Ok, will do that, am just busy with other things and should get to it in a couple of hours. I am not a git expert so can you share the correct git command to check out the relevant branch. |
No worries, many thanks for the help!
|
have build with -vvv from the sse-cond branch. |
i have manually run electrs with the following command: |
Cool, many thanks!
|
See romanz/rust-rocksdb@4935c28. Should fix #536.
See romanz/rust-rocksdb@4935c28. Should fix #536.
Should be resolved by #595. |
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. |
Cool, happy it worked :) |
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
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.
The text was updated successfully, but these errors were encountered: