Skip to content
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

plugin crash #47

Open
vincenzopalazzo opened this issue Sep 8, 2023 · 2 comments
Open

plugin crash #47

vincenzopalazzo opened this issue Sep 8, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@vincenzopalazzo
Copy link
Contributor

This is another crash that I found

2023-09-02T20:23:32.109Z UNUSUAL plugin-folgore_plugin: client `bitcoind` return an error: code: -1, msg: JSON-RPC error: JSON decode error: EOF while parsing a string at line 1 column 6553487
2023-09-02T20:23:32.689Z UNUSUAL plugin-folgore_plugin: client `esplora` return an error: code: -1, msg: HttpResponse(404)
2023-09-02T20:23:32.730Z **BROKEN** lightningd: /home/vincent/github/folgore/target/debug/folgore_plugin error: bad response to getrawblockbyheight (bad 'result' field: Parsing '{result:': object does not have member result), response was {"error":{"code":-1,"data":null,"message":"HttpResponse(404)"},"id":"cln:getrawblockbyheight#65","jsonrpc":"2.0"}
2023-09-02T20:23:32.731Z **BROKEN** lightningd: FATAL SIGNAL 6 (version v23.08-17-g990096f)
@vincenzopalazzo vincenzopalazzo added the bug Something isn't working label Sep 8, 2023
vincenzopalazzo added a commit that referenced this issue Sep 8, 2023
Sometimes we make a request for a block that do not exist
but we can know before times if this block exist or not.

So we try to make a check with the current blockchain height.

Link: #47
Signed-off-by: Vincenzo Palazzo <[email protected]>
vincenzopalazzo added a commit that referenced this issue Sep 11, 2023
Sometimes we make a request for a block that do not exist
but we can know before times if this block exist or not.

So we try to make a check with the current blockchain height.

Link: #47
Signed-off-by: Vincenzo Palazzo <[email protected]>
@vincenzopalazzo
Copy link
Contributor Author

09-23T10:57:31.190Z DEBUG   plugin-folgore_plugin: call get block by height
2023-09-23T10:57:31.201Z INFO    plugin-folgore_plugin: cln request {\"height\":808976}
2023-09-23T10:57:31.212Z DEBUG   plugin-folgore_plugin: JSON-RPC request: getblockcount []
2023-09-23T10:57:46.534Z DEBUG   plugin-folgore_plugin: JSON-RPC failed parsing reply of getblockcount: JsonRpc(Transport(SocketError(Os { code: 11, kind: WouldBlock, message: \"Resource temporarily unavailable\" })))
2023-09-23T10:57:46.550Z UNUSUAL plugin-folgore_plugin: client `bitcoind` return an error: code: -1, msg: JSON-RPC error: transport error: Couldn't connect to host: Resource temporarily unavailable (os error 11)
2023-09-23T10:57:46.565Z DEBUG   plugin-folgore_plugin: pulling stream from pool: https|mempool.space|443 -> Stream(RustlsStream)
2023-09-23T10:57:46.575Z DEBUG   plugin-folgore_plugin: peek on reused connection returned 1, not WouldBlock; discarding
2023-09-23T10:57:46.585Z DEBUG   plugin-folgore_plugin: dropping stream from pool; closed by server: Stream(RustlsStream)
2023-09-23T10:57:46.595Z DEBUG   plugin-folgore_plugin: dropping stream: Stream(RustlsStream)
2023-09-23T10:57:46.605Z DEBUG   plugin-folgore_plugin: connecting to mempool.space:443 at [2001:df6:7280::92:206]:443
2023-09-23T10:58:08.979Z DEBUG   gossipd: seeker: no peers, waiting
2023-09-23T10:58:16.568Z UNUSUAL plugin-folgore_plugin: client `esplora` return an error: code: -1, msg: Ureq(Transport(Transport { kind: Io, message: None, url: Some(Url { scheme: \"https\", cannot_be_a_base: false, username: \"\", password: None, host: Some(Domain(\"mempool.space\")), port: None, path: \"/api/v1/blocks/tip/height\", query: None, fragment: None }), source: Some(Custom { kind: TimedOut, error: \"timed out reading response\" }) }))
2023-09-23T10:58:16.602Z **BROKEN** lightningd: /home/vincent/github/folgore/target/debug/folgore_plugin error: bad response to getrawblockbyheight (bad 'result' field: Parsing '{result:': object does not have member result), response was {"error":{"code":-1,"data":null,"message":"Ureq(Transport(Transport { kind: Io, message: None, url: Some(Url { scheme: \"https\", cannot_be_a_base: false, username: \"\", password: None, host: Some(Domain(\"mempool.space\")), port: None, path: \"/api/v1/blocks/tip/height\", query: None, fragment: None }), source: Some(Custom { kind: TimedOut, error: \"timed out reading response\" }) }))"},"id":"cln:getrawblockbyheight#10080","jsonrpc":"2.0"}
2023-09-23T10:58:16.632Z **BROKEN** lightningd: FATAL SIGNAL 6 (version v23.08-17-g990096f)

Related to this.

Looks like that the retry strategy do not work at all

@vincenzopalazzo vincenzopalazzo self-assigned this Sep 23, 2023
@vincenzopalazzo

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant