Closed cezary-stroczynski closed 2 years ago
I wasn't able to reproduce, tested twice and each time the block in question was past without problem:
...
Jan 04 16:54:57.238 INFO Done processing trigger, gas_used: 66828316, data_source: Agreement, handler: handleAgreementTransfer, total_ms: 6, address: 0x67c9…880c, signature: Transfer(indexed address,indexed address,uint256), block_hash: 0xea9da04fefc2d523319c6dee7a5f39c5b5523fc0728a7efbb702b6f417cdc9e0, block_number: 11026798, sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: SubgraphInstanceManager
Jan 04 16:54:57.244 INFO Applying 9 entity operation(s), block_hash: 0xea9da04fefc2d523319c6dee7a5f39c5b5523fc0728a7efbb702b6f417cdc9e0, block_number: 11026798, sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: SubgraphInstanceManager
Jan 04 16:54:57.330 INFO Scanning blocks [11026799, 11026800], range_size: 2, sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: BlockStream
Jan 04 16:54:57.330 DEBG Requesting logs for blocks [11026799, 11026800], event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef, 0 contracts, sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: BlockStream
Jan 04 16:54:57.400 DEBG Found 2 relevant block(s), sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: BlockStream
Jan 04 16:54:57.402 DEBG Requesting 2 block(s), sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: BlockStream
Jan 04 16:54:57.498 DEBG Processing 105 triggers, sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: BlockStream
Jan 04 16:54:57.498 DEBG 52 candidate triggers in this block, block_hash: 0x6b090ecfb7f2ba08001a81a30a4eba7b28978055a9a6c068c37965c2972f4f62, block_number: 11026799, sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: SubgraphInstanceManager
Jan 04 16:54:57.506 INFO Done processing trigger, gas_used: 66838316, data_source: Agreement, handler: handleAgreementTransfer, total_ms: 6, address: 0x722d…2180, signature: Transfer(indexed address,indexed address,uint256), block_hash: 0x6b090ecfb7f2ba08001a81a30a4eba7b28978055a9a6c068c37965c2972f4f62, block_number: 11026799, sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: SubgraphInstanceManager
Jan 04 16:54:57.513 INFO Done processing trigger, gas_used: 66838316, data_source: Agreement, handler: handleAgreementTransfer, total_ms: 6, address: 0xdd46…816c, signature: Transfer(indexed address,indexed address,uint256), block_hash: 0x6b090ecfb7f2ba08001a81a30a4eba7b28978055a9a6c068c37965c2972f4f62, block_number: 11026799, sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: SubgraphInstanceManager
Jan 04 16:54:57.518 INFO Applying 3 entity operation(s), block_hash: 0x6b090ecfb7f2ba08001a81a30a4eba7b28978055a9a6c068c37965c2972f4f62, block_number: 11026799, sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: SubgraphInstanceManager
Jan 04 16:54:57.535 DEBG 53 candidate triggers in this block, block_hash: 0x5b7f304f328fdf98467508c626dc328e2beb76f260c826da6cba6a3f0f1b13e6, block_number: 11026800, sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: SubgraphInstanceManager
Jan 04 16:54:57.543 INFO Done processing trigger, gas_used: 66838316, data_source: Agreement, handler: handleAgreementTransfer, total_ms: 6, address: 0x2bef…90d0, signature: Transfer(indexed address,indexed address,uint256), block_hash: 0x5b7f304f328fdf98467508c626dc328e2beb76f260c826da6cba6a3f0f1b13e6, block_number: 11026800, sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: SubgraphInstanceManager
Jan 04 16:54:57.549 INFO Done processing trigger, gas_used: 66778316, data_source: Agreement, handler: handleAgreementTransfer, total_ms: 5, address: 0xfd61…5da8, signature: Transfer(indexed address,indexed address,uint256), block_hash: 0x5b7f304f328fdf98467508c626dc328e2beb76f260c826da6cba6a3f0f1b13e6, block_number: 11026800, sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: SubgraphInstanceManager
Jan 04 16:54:57.556 INFO Done processing trigger, gas_used: 66768316, data_source: Agreement, handler: handleAgreementTransfer, total_ms: 6, address: 0xfd61…5da8, signature: Transfer(indexed address,indexed address,uint256), block_hash: 0x5b7f304f328fdf98467508c626dc328e2beb76f260c826da6cba6a3f0f1b13e6, block_number: 11026800, sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: SubgraphInstanceManager
Jan 04 16:54:57.562 INFO Applying 4 entity operation(s), block_hash: 0x5b7f304f328fdf98467508c626dc328e2beb76f260c826da6cba6a3f0f1b13e6, block_number: 11026800, sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: SubgraphInstanceManager
Jan 04 16:54:57.664 INFO Scanning blocks [11026801, 11026801], range_size: 1, sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: BlockStream
Jan 04 16:54:57.664 DEBG Requesting logs for blocks [11026801, 11026801], event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef, 0 contracts, sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: BlockStream
Jan 04 16:54:57.734 DEBG Found 1 relevant block(s), sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: BlockStream
Jan 04 16:54:57.744 DEBG Requesting 1 block(s), sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: BlockStream
Jan 04 16:54:57.796 DEBG Processing 50 triggers, sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: BlockStream
Jan 04 16:54:57.797 DEBG 50 candidate triggers in this block, block_hash: 0x629325f5b90a2aac806d7d2ff56af77670e93129bfed2f22f88f939ef276ab91, block_number: 11026801, sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: SubgraphInstanceManager
Jan 04 16:54:57.860 INFO Scanning blocks [11026802, 11026803], range_size: 2, sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: BlockStream
Jan 04 16:54:57.861 DEBG Requesting logs for blocks [11026802, 11026803], event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef, 0 contracts, sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: BlockStream
Jan 04 16:54:57.939 DEBG Found 2 relevant block(s), sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: BlockStream
Jan 04 16:54:57.940 DEBG Requesting 2 block(s), sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: BlockStream
Jan 04 16:54:58.024 DEBG Processing 107 triggers, sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: BlockStream
Jan 04 16:54:58.025 DEBG 56 candidate triggers in this block, block_hash: 0x1fdf805790d40fad66cdb61eb09905b5757446230a06fac0bb459f4b4a6953a0, block_number: 11026802, sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: SubgraphInstanceManager
Jan 04 16:54:58.040 INFO Done processing trigger, gas_used: 66778316, data_source: Agreement, handler: handleAgreementTransfer, total_ms: 7, address: 0xc377…d114, signature: Transfer(indexed address,indexed address,uint256), block_hash: 0x1fdf805790d40fad66cdb61eb09905b5757446230a06fac0bb459f4b4a6953a0, block_number: 11026802, sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: SubgraphInstanceManager
Jan 04 16:54:58.047 INFO Done processing trigger, gas_used: 66828316, data_source: Agreement, handler: handleAgreementTransfer, total_ms: 6, address: 0xc778…d5ab, signature: Transfer(indexed address,indexed address,uint256), block_hash: 0x1fdf805790d40fad66cdb61eb09905b5757446230a06fac0bb459f4b4a6953a0, block_number: 11026802, sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: SubgraphInstanceManager
Jan 04 16:54:58.054 INFO Done processing trigger, gas_used: 66838316, data_source: Agreement, handler: handleAgreementTransfer, total_ms: 6, address: 0x4552…d245, signature: Transfer(indexed address,indexed address,uint256), block_hash: 0x1fdf805790d40fad66cdb61eb09905b5757446230a06fac0bb459f4b4a6953a0, block_number: 11026802, sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: SubgraphInstanceManager
Jan 04 16:54:58.060 INFO Done processing trigger, gas_used: 66788316, data_source: Agreement, handler: handleAgreementTransfer, total_ms: 6, address: 0x86f8…c401, signature: Transfer(indexed address,indexed address,uint256), block_hash: 0x1fdf805790d40fad66cdb61eb09905b5757446230a06fac0bb459f4b4a6953a0, block_number: 11026802, sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: SubgraphInstanceManager
Jan 04 16:54:58.067 INFO Done processing trigger, gas_used: 66788316, data_source: Agreement, handler: handleAgreementTransfer, total_ms: 6, address: 0xdbc9…fc4e, signature: Transfer(indexed address,indexed address,uint256), block_hash: 0x1fdf805790d40fad66cdb61eb09905b5757446230a06fac0bb459f4b4a6953a0, block_number: 11026802, sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: SubgraphInstanceManager
Jan 04 16:54:58.073 INFO Done processing trigger, gas_used: 66778316, data_source: Agreement, handler: handleAgreementTransfer, total_ms: 6, address: 0xc377…d114, signature: Transfer(indexed address,indexed address,uint256), block_hash: 0x1fdf805790d40fad66cdb61eb09905b5757446230a06fac0bb459f4b4a6953a0, block_number: 11026802, sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: SubgraphInstanceManager
Jan 04 16:54:58.080 INFO Applying 7 entity operation(s), block_hash: 0x1fdf805790d40fad66cdb61eb09905b5757446230a06fac0bb459f4b4a6953a0, block_number: 11026802, sgd: 1, subgraph_id: QmZL8oBTgaUbjN6KmdDQnCquVEtVpWtoMjnsbsZvPSQhp7, component: SubgraphInstanceManager
...
Maybe it's fixed in master
branch? Can you try with latest version of the code?
Closing issue, feel free to re-open with more details if it's still a problem.
I am having this issue in Rinkeby.
Block stream produced a non-fatal error, error: block #11289155 (45bfc1bf0f7e99448707d088c5258157cd403274773686493e7342747b73f075) not found in
triggers_by_block``
@maoueh , @cezary-stroczynski Can you please help me?
@fortunaphantom I'm facing a similar error:
Block stream produced a non-fatal error, error: Failed to obtain triggers for block 8515355
Did you fix yours?
I am having this issue in Rinkeby.
Block stream produced a non-fatal error, error: block #11289155 (45bfc1bf0f7e99448707d088c5258157cd403274773686493e7342747b73f075) not found in
triggers_by_block`` @maoueh , @cezary-stroczynski Can you please help me?
I have the same issue did you fix it?
@nekooei Can you open a new issue with the needed details like the complete logs, will try to take a closer look.
Just FYI - I found what the issue is.
Basically if for some reason your node contains a fork and returns removed:true
block in eth_getLogs
request - The Graph Index node will not interpret this and make subgraph stuck.
Probably, this is an expected behavior:
https://github.com/graphprotocol/graph-node/blob/master/chain/ethereum/src/ethereum_adapter.rs#L1708C1-L1716C22
In these lines of code authors wrote that this function will not properly handle if the chain is a subject of reorgs.
That just caused with me.
In short: when I deploy THIS simple code I got the error:
It always occurs on the same block: 11026800 on Ropsten You can see the error in live version HERE (needs to extend log range to include Debug).
Current behaviour: In the provided code, there is a handler (handleAgreementTransfer) for standard ERC20 Transfer event. There is no provided contract address in subgraph.yaml, so the handler save all the Transfer events it encounter. Subgraph is saving all the Transfer events properly till the block 11026800, when the error occurs. It always happens on the same block: 11026800. I tested this behaviour on hosted service and on local graph-node. Both are giving the same result. After errror Subgraph stoped indexing any new blocks. The error is probably produced from THIS place in the code.
Steps to reproduce:
yarn install
andyarn codegen
GRAPH_LOG
todebug
andethereum
toropsten:<your RPC>
Expected behavior: It should save all Transfer events till the current block and not produce any errors.