blockscout / blockscout

Blockchain explorer for Ethereum based network and a tool for inspecting and analyzing EVM based blockchains.
http://docs.blockscout.com
GNU General Public License v3.0
3.62k stars 2.42k forks source link

Filecoin: stucked pending address operations #10783

Open fedor-ivn opened 1 month ago

fedor-ivn commented 1 month ago

Amount of pending address operations was decreasing, but then rapidly increased and stucked

Image

fedor-ivn commented 1 month ago

For the addresses, that failed to fetch, we can introduce the fallback option and try to figure out the address without calling the API.

fedor-ivn commented 1 month ago

The reason for "stuck" might be such that the queue is full of addresses that already failed to fetch.

fedor-ivn commented 2 weeks ago

It seems like the problem has occurred again, but the cause might be different this time.

Image

{"time":"2024-10-29T14:03:12.786Z","severity":"error","message":"Error updating address and removing pending operation: {:error, :acquire_pending_address_operation, :not_found, %{acquire_address: %Explorer.Chain.Address{__meta__: #Ecto.Schema.Metadata<:loaded, \"addresses\">, hash: %Explorer.Chain.Hash{byte_count: 20, bytes: <<255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, 95, 94>>}, fetched_coin_balance: #Explorer.Chain.Wei<207236925143837812868>, fetched_coin_balance_block_number: 4396805, contract_code: nil, nonce: 155270, decompiled: false, verified: false, has_decompiled_code?: nil, stale?: nil, transactions_count: nil, token_transfers_count: nil, gas_used: nil, ens_domain_name: nil, metadata: nil, implementation: nil, smart_contract: #Ecto.Association.NotLoaded<association :smart_contract is not loaded>, token: #Ecto.Association.NotLoaded<association :token is not loaded>, proxy_implementations: #Ecto.Association.NotLoaded<association :proxy_implementations is not loaded>, contracts_creation_internal_transaction: #Ecto.Association.NotLoaded<association :contracts_creation_internal_transaction is not loaded>, contracts_creation_transaction: #Ecto.Association.NotLoaded<association :contracts_creation_transaction is not loaded>, names: #Ecto.Association.NotLoaded<association :names is not loaded>, decompiled_smart_contracts: #Ecto.Association.NotLoaded<association :decompiled_smart_contracts is not loaded>, withdrawals: #Ecto.Association.NotLoaded<association :withdrawals is not loaded>, inserted_at: ~U[2024-01-24 05:29:37.876170Z], updated_at: ~U[2024-10-29 14:03:06.702959Z], filecoin_id: %Explorer.Chain.Filecoin.IDAddress{value: \"޾m\"}, filecoin_robust: %Explorer.Chain.Filecoin.NativeAddress{protocol_indicator: 3, actor_id: nil, payload: <<144, 157, 102, 3, 146, 21, 9, 222, 1, 55, 51, 164, 32, 58, ...>>, checksum: <<77, 108, 36, 178>>}, filecoin_actor_type: :account}}}","metadata":{"fetcher":"filecoin_address_info"}}