coffee-tools / folgore

Universal Bitcoin backend for core lightning with BIP 157 support full based on the btcli4j Kotlin plugin! Ah, yes it is written in Rust
BSD 3-Clause "New" or "Revised" License
8 stars 5 forks source link

esplora estimate fee crash #60

Closed vincenzopalazzo closed 5 months ago

vincenzopalazzo commented 6 months ago
2023-12-29T23:17:03.636Z UNUSUAL plugin-folgore_plugin: client `esplora` return an error: code: -1, msg: Recovery strategy (TimeoutRety) fails: `code: -1, msg: Ureq(Transport(Transport { kind: Dns, message: Some(\"resolve dns name 'mempool.space:443'\"), url: Some(Url { scheme: \"https\", cannot_be_a_base: false, username: \"\", password: None, host: Some(Domain(\"mempool.space\")), port: None, path: \"/testnet/api/fee-estimates\", query: None, fragment: None }), source: Some(Custom { kind: Uncategorized, error: \"failed to lookup address information: Temporary failure in name resolution\" }) }))`
2023-12-29T23:17:03.636Z DEBUG   plugin-folgore_plugin: Err(PluginError { code: -1, msg: \"Recovery strategy (TimeoutRety) fails: `code: -1, msg: Ureq(Transport(Transport { kind: Dns, message: Some(\\\"resolve dns name 'mempool.space:443'\\\"), url: Some(Url { scheme: \\\"https\\\", cannot_be_a_base: false, username: \\\"\\\", password: None, host: Some(Domain(\\\"mempool.space\\\")), port: None, path: \\\"/testnet/api/fee-estimates\\\", query: None, fragment: None }), source: Some(Custom { kind: Uncategorized, error: \\\"failed to lookup address information: Temporary failure in name resolution\\\" }) }))`\", data: None })
2023-12-29T23:17:03.636Z **BROKEN** lightningd: /home/vincent/github/work/rust-btc/folgore/target/release/folgore_plugin error: bad response to estimatefees (bad 'result' field), response was {"error":{"code":-1,"data":null,"message":"Recovery strategy (TimeoutRety) fails: `code: -1, msg: Ureq(Transport(Transport { kind: Dns, message: Some(\"resolve dns name 'mempool.space:443'\"), url: Some(Url { scheme: \"https\", cannot_be_a_base: false, username: \"\", password: None, host: Some(Domain(\"mempool.space\")), port: None, path: \"/testnet/api/fee-estimates\", query: None, fragment: None }), source: Some(Custom { kind: Uncategorized, error: \"failed to lookup address information: Temporary failure in name resolution\" }) }))`"},"id":"cln:estimatefees#9789","jsonrpc":"2.0"}
2023-12-29T23:17:03.681Z **BROKEN** lightningd: FATAL SIGNAL 6 (version v23.11-79-g9d63166-modded)
2023-12-29T23:17:03.682Z **BROKEN** lightningd: backtrace: common/daemon.c:38 (send_backtrace) 0x55e911d15e30
2023-12-29T23:17:03.682Z **BROKEN** lightningd: backtrace: common/daemon.c:75 (crashdump) 0x55e911d15e70
2023-12-29T23:17:03.682Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0x7f97fd1ad70f
2023-12-29T23:17:03.682Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0x7f97fd1fd83c
2023-12-29T23:17:03.682Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0x7f97fd1ad667
2023-12-29T23:17:03.682Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0x7f97fd1954b7
2023-12-29T23:17:03.682Z **BROKEN** lightningd: backtrace: lightningd/log.c:1025 (fatal_vfmt) 0x55e911cc5d0a
2023-12-29T23:17:03.682Z **BROKEN** lightningd: backtrace: lightningd/log.c:1035 (fatal) 0x55e911cc5da3
2023-12-29T23:17:03.682Z **BROKEN** lightningd: backtrace: lightningd/bitcoind.c:118 (bitcoin_plugin_error) 0x55e911c9d186
2023-12-29T23:17:03.682Z **BROKEN** lightningd: backtrace: lightningd/bitcoind.c:300 (estimatefees_callback) 0x55e911c9d701
2023-12-29T23:17:03.682Z **BROKEN** lightningd: backtrace: lightningd/plugin.c:660 (plugin_response_handle) 0x55e911ce5e49
2023-12-29T23:17:03.682Z **BROKEN** lightningd: backtrace: lightningd/plugin.c:772 (plugin_read_json_one) 0x55e911ce9356
2023-12-29T23:17:03.682Z **BROKEN** lightningd: backtrace: lightningd/plugin.c:823 (plugin_read_json) 0x55e911ce95ef
2023-12-29T23:17:03.682Z **BROKEN** lightningd: backtrace: ccan/ccan/io/io.c:59 (next_plan) 0x55e911e838fa
2023-12-29T23:17:03.682Z **BROKEN** lightningd: backtrace: ccan/ccan/io/io.c:407 (do_plan) 0x55e911e83d81
2023-12-29T23:17:03.682Z **BROKEN** lightningd: backtrace: ccan/ccan/io/io.c:417 (io_ready) 0x55e911e83e1a
2023-12-29T23:17:03.682Z **BROKEN** lightningd: backtrace: ccan/ccan/io/poll.c:453 (io_loop) 0x55e911e8567a
2023-12-29T23:17:03.682Z **BROKEN** lightningd: backtrace: lightningd/io_loop_with_timers.c:22 (io_loop_with_timers) 0x55e911cbe44f
2023-12-29T23:17:03.682Z **BROKEN** lightningd: backtrace: lightningd/lightningd.c:1334 (main) 0x55e911cc3595
2023-12-29T23:17:03.682Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0x7f97fd196ccf
2023-12-29T23:17:03.682Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0x7f97fd196d89
2023-12-29T23:17:03.682Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0x55e911c9bcc4
2023-12-29T23:17:03.682Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0xffffffffffffffff
vincenzopalazzo commented 5 months ago

Ok looks like the lookup fails, but this should be fine, I am looking to see why the retry logic is buggy

vincenzopalazzo commented 5 months ago

Ok now that the retry logic is patch, this should be fixed by https://github.com/coffee-tools/folgore/pull/63

So if this happens again we will look at it more close, but for now we close it