Closed ksemaev closed 4 years ago
Seems like a fork has happened, which impacted also us and adalite-importer (the piece importing into SQL: https://github.com/vacuumlabs/adalite-importer) mishandled this exception. This is related cardano-http-bridge log on our side:
INFO 2020-04-09T17:22:40Z: protocol::ntt: HANDSHAKE OK
INFO 2020-04-09T17:22:41Z: protocol::protocol: creating initial light connection 1024
INFO 2020-04-09T17:22:41Z: protocol::protocol: subscribing on light connection 1024
INFO 2020-04-09T17:23:33Z: protocol::protocol: new async light connection 67315 from node 53094fe718b43a0767
INFO 2020-04-09T17:23:34Z: protocol::protocol: received 1 asynchronous headers
INFO 2020-04-09T17:23:34Z: exe_common::sync: Network TIP is : 9a7e65978d2b3ba1f8ebe821f625d1dc9a491d3d72ebeb6c40ff4050a0dba0d1 (185.16496) <- a9907005960490ffd2579697c3ed3d997af3cd9575714dc84dc83c4f50df8b9a
INFO 2020-04-09T17:23:34Z: exe_common::sync: Fetching from : ee8b35b3ea713f57c5000b942178cef876d17a90be44a1830f9b2f0e187b9914 (185.16492)
INFO 2020-04-09T17:23:34Z: exe_common::sync: First unstable epoch : 185
WARN 2020-04-09T17:23:34Z: exe_common::sync: Detected fork: local tip is no longer part of the chain: BlockRef { hash: HeaderHash(Blake2b256(0xee8b35b3ea713f57c5000b942178cef876d17a90be44a1830f9b2f0e187b9914)), date: Normal(EpochSlotId { epoch: 185, slotid: 16492 }), parent: HeaderHash(Blake2b256(0xe31dce51cfc5bdb580723bcc2cb63f964a834331481cecc99bceb5b3b589ee26)) }
ERROR 2020-04-09T17:23:43Z: cardano_http_bridge::handlers::status: error while reading difficulty from HEAD: BlockNotFound([238, 139, 53, 179, 234, 113, 63, 87, 197, 0, 11, 148, 33, 120, 206, 248, 118, 209, 122, 144, 190, 68, 161, 131, 15, 155, 47, 14, 24, 123, 153, 20])
INFO 2020-04-09T17:26:20Z: protocol::protocol: new async light connection 67317 from node 5342b99e2fdd8653de
INFO 2020-04-09T17:27:35Z: protocol::protocol: new async light connection 67318 from node 53c4642afb31aa9635
INFO 2020-04-09T17:27:35Z: protocol::protocol: received 1 asynchronous headers
INFO 2020-04-09T17:27:35Z: exe_common::sync: Network TIP is : 64a5cf5dd32cb748389975c19907b735a6321f12cc7b751e3a0c7149af0f22b0 (185.16508) <- 13415357b96bc045798bb9ea9350f1bd489ca229dc7ea85f046b106a58fe05f4
It has spontaneously recovered, but the adalite-importer part crashed, investigating. In our case it was enough to restart adalite-importer and it's working fine so far
I asked this question in tangata-manu repo as that's the repo adalite-importer is forked from: https://github.com/Emurgo/tangata-manu/issues/163
got reply from tangata-manu devs, apparently (at least our outage) has been related to having the adalite-importer docker image based on tangata-manu's master
branch instead of master-shelley
, i.e. it was outdated and likely lacking logic to handle such exceptions, we will update adalite-importer in the upcoming days, meanwhile a restart should fix it
@refi93 TY for investigation. In our case the cause was cardano-http-bridge
getting stuck, so we just restored it from recent backup, and it successfully passed the fork.
Hi guys.
Cardano-http-bridge went in crash loop with
Can't create an issue in https://github.com/vacuumlabs/cardano-http-bridge so posting here :)
It results adalite-importer failing (I assume it can't connect) with error like:
Please advice