Comments (10)
Thanks for reporting this issue!
I'll add a log statement to better understand this issue.
from electrs.
@romanz thanks. Restarted with latest master
from electrs.
FWIW I got exactly the same error.
from electrs.
@greenaddress @gabridome Thanks for helping reproducing the issue!
Could you please try the following version 57eb81e?
It should only log this error, since it should be transient (getrawmempool()
and getrawtransaction()
can get out of sync after a block is found / transaction is replaced by RBF exactly between these RPCs).
from electrs.
I will try it now. In the meanwhile you maybe interested in the log of the crash I had five minutes ago with the latest commit:
2018-07-16T12:20:25.177+02:00 - WARN - no mempool entry ae0e91bbd9b96f6cbcaa89e9403580c921bc116aafc197be885ebb9f1a6c5048: RPC failed: {"method":"getmempoolentry","params":["ae0e91bbd9b96f6cbcaa89e9403580c921bc116aafc197be885ebb9f1a6c5048"]}
2018-07-16T12:20:25.177+02:00 - WARN - no mempool entry f58deb6363b196edccd3e2e99557bafc5649055a7621d019bf9502981624e59e: RPC failed: {"method":"getmempoolentry","params":["f58deb6363b196edccd3e2e99557bafc5649055a7621d019bf9502981624e59e"]}
2018-07-16T12:20:25.177+02:00 - WARN - failed to get transactions []: RPC failed: []
2018-07-16T12:20:30.178+02:00 - ERROR - server failed: Error: RPC failed: {"method":"getbestblockhash","params":[]}
Caused by: request failed: {"result":null,"error":{"code":-5,"message":"Transaction not in mempool"},"id":null}
stack backtrace:
0: 0x55b5394c730c - backtrace::backtrace::trace::hd402417859783b40
1: 0x55b5394c6962 - backtrace::capture::Backtrace::new_unresolved::hce1354e135c2f28e
2: 0x55b5394c6237 - error_chain::backtrace::imp::InternalBacktrace::new::habdd565038f6f85c
3: 0x55b5394c65a4 - <error_chain::State as core::default::Default>::default::hee976682d00eb04c
4: 0x55b539491078 - electrs::daemon::Daemon::call_jsonrpc::he1590ae21e77a3d8
5: 0x55b5394918c6 - electrs::daemon::Daemon::request::h2a3f07a1273cf39c
6: 0x55b539491fcd - electrs::daemon::Daemon::getbestblockhash::h897efc5c99f6fa52
7: 0x55b53946abd6 - electrs::app::App::update::h9aa7658f54799234
8: 0x55b5393eec93 - electrs::main::hb7893ebc8a38666e
9: 0x55b5393f3f52 - std::rt::lang_start::{{closure}}::h825937f5b6ee0646
10: 0x55b5398f82a2 - std::rt::lang_start_internal::{{closure}}::h342eaeec3a520255
at libstd/rt.rs:59
- std::panicking::try::do_call::h8b090b6144a018fb
at libstd/panicking.rs:310
11: 0x55b539916209 - __rust_maybe_catch_panic
at libpanic_unwind/lib.rs:105
12: 0x55b5398ff795 - std::panicking::try::h11349d7f0dce3b3c
at libstd/panicking.rs:289
- std::panic::catch_unwind::hfbb0f172d1ed4df2
at libstd/panic.rs:374
- std::rt::lang_start_internal::h6c73689767a9401e
at libstd/rt.rs:58
13: 0x55b5393ef463 - main
14: 0x7fd8120b082f - __libc_start_main
15: 0x55b5393ecaf8 - _start
16: 0x0 - <unknown>
from electrs.
@gabridome Thanks for testing!
Could you please re-run with the latest changes 2a3678e (more logging and special handling of empty argument list)?
from electrs.
This for the moment, was with the merge with 57eb81e:
2018-07-16T12:46:27.946+02:00 - WARN - no mempool entry 10d705eb56478c925b61e9bb87f6b3b355302dea64b9f2b1396ba5f4c18518e3: missing fees section
2018-07-16T12:46:27.947+02:00 - WARN - failed to get transactions []: non-array replies: Object({"error": Null, "id": Null, "result": Object({"ancestorcount": Number(1), "ancestorfees": Number(10000), "ancestorsize": Number(374), "depends": Array([]), "descendantcount": Number(1), "descendantfees": Number(10000), "descendantsize": Number(374), "fee": Number(0.0001), "height": Number(532142), "modifiedfee": Number(0.0001), "size": Number(374), "time": Number(1531737881), "wtxid": String("24a8d84ed60783207937d80e4ce37bc2a5ba833e7842047f393c592fc37f853d")})})
2018-07-16T12:46:32.947+02:00 - ERROR - server failed: Error: invalid blockhash
Caused by: non-string value
stack backtrace:
0: 0x55587b39030c - backtrace::backtrace::trace::hd402417859783b40
1: 0x55587b38f962 - backtrace::capture::Backtrace::new_unresolved::hce1354e135c2f28e
2: 0x55587b38f237 - error_chain::backtrace::imp::InternalBacktrace::new::habdd565038f6f85c
3: 0x55587b38f5a4 - <error_chain::State as core::default::Default>::default::hee976682d00eb04c
4: 0x55587b3564f5 - electrs::daemon::parse_hash::h93f9be35b39a7f95
5: 0x55587b35b01e - electrs::daemon::Daemon::getbestblockhash::h897efc5c99f6fa52
6: 0x55587b333bd6 - electrs::app::App::update::h9aa7658f54799234
7: 0x55587b2b7c93 - electrs::main::hb7893ebc8a38666e
8: 0x55587b2bcf52 - std::rt::lang_start::{{closure}}::h825937f5b6ee0646
9: 0x55587b7c12a2 - std::rt::lang_start_internal::{{closure}}::h342eaeec3a520255
at libstd/rt.rs:59
- std::panicking::try::do_call::h8b090b6144a018fb
at libstd/panicking.rs:310
10: 0x55587b7df209 - __rust_maybe_catch_panic
at libpanic_unwind/lib.rs:105
11: 0x55587b7c8795 - std::panicking::try::h11349d7f0dce3b3c
at libstd/panicking.rs:289
- std::panic::catch_unwind::hfbb0f172d1ed4df2
at libstd/panic.rs:374
- std::rt::lang_start_internal::h6c73689767a9401e
at libstd/rt.rs:58
12: 0x55587b2b8463 - main
13: 0x7f2a11ff382f - __libc_start_main
14: 0x55587b2b5af8 - _start
15: 0x0 - <unknown>
I will merge and compile immediately 2a3678e.
from electrs.
Let's investigate this bug (invalid blockhash) @ #24.
FTR, it didn't reproduce on my machine :(
from electrs.
@gabridome Feel free to join our debugging session on https://gitter.im/romanz/electrs :)
from electrs.
Should be resolved together with #24
from electrs.
Related Issues (20)
- Bug: Crash on start if can't connected to bitcoind HOT 3
- Bug: UnknownSegwitFlag(0) HOT 6
- Thread main panicked - ARM64 HOT 3
- Bug: Addresses affected by descendant transactions are not notified on transaction replacement HOT 4
- Feature: Separate daemon + rocksdb from electrs interface HOT 4
- `electrs` uses `bitcoincore-rpc` HOT 4
- Rocksdb version HOT 7
- Feature: support testnet4 HOT 4
- Build:
- Bug: Failure when bitcoind has not yet loaded mempool HOT 1
- Bug: unused config fields (silently ignored config flags) HOT 2
- Indexing fails at Block 1 (00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048) HOT 5
- electrs stops when looking up for addresses with a lot of transactions
- Config: confused by skip_block_download_wait HOT 2
- Config:Indexing is not started HOT 4
- Bug: Electrs fails when bitcoind has blocksonly=1 HOT 4
- Getting receiving on an empty and disconnected channel running in docker HOT 14
- Unable to get UTXO of an address - /address/:address/utxo
- Bug: Segmentation Fault Error at indexing blocks [180001..182000] HOT 8
- u
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electrs.