smartcontractkit / chainlink

node of the decentralized oracle network, bridging on and off-chain computation
https://chain.link
Other
6.98k stars 1.7k forks source link

[NODE] BumpGasUntilSafe FindTxByAttempt #3000

Closed danielimkk closed 3 years ago

danielimkk commented 4 years ago

Description I tried to go through the example of getting ethereum price using my chainlink node. Here is the link for a guide. Tried both infura and my own endpoint, getting the same error. So the job runs successfully to some point, completing following tasks: Httpget, JsonParse, Multiply, Ethuint and at Ethtx it gets stuck in pending state. Logs show an error: ethtx adapter perform resuming: bumpgasuntilsafe findtxbyattempt: record not found adapters/eth_tx.go:144

Basic Information

Environment Variables CHAINLINK_TLS_PORT: 0 SECURE_COOKIES: "false" ALLOW_ORIGINS: "*" TLS_KEY_PATH: /root/.chainlink/tls/server.key DATABASE_URL: postgresql://:@localhost:5432/chainlink-db?sslmode=disable ETH_CHAIN_ID=42 ETH_URL=

Steps to Reproduce Follow this guide

Additional Information I tried to change the gas default price from 20000000000 to 30000000000, as was suggested on stackoverflow, that didn't help as well.

samsondav commented 4 years ago

@danielimkk this is a known issue with node versions <= 0.8.6 and Kovan network.

You might like to try the 0.8.7 release which includes an experimental new TxManager which fixes this problem. You can enable it by booting the node with the env var ENABLE_BULLETPROOF_TX_MANAGER=true.

ztnark commented 4 years ago

I am seeing the same issue...

Using ENABLE_BULLETPROOF_TX_MANAGER=true, it gets stuck in a loop attempting to send/confirm txs. Outgoing txs never appear in the block explorer.

2020-07-26T04:17:04Z [DEBUG] Calling eth client RPC method "eth_getTransactionReceipt" eth/client.go:215       args=["0x38544a40ca790c802a92cb27645fbd7bf8723c4454e16c52001dbe822aa8239c"]
2020-07-26T04:17:04Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0xf72dc59f0deaafee9ab6152481770a2d9def462c9a068977e4e516f15f85f373
2020-07-26T04:17:04Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0x571e4b83aa8324373ed4280eaec344532acd029a5c1664800a08ccf2ec69b149
2020-07-26T04:17:04Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0x495f47915b58543c91d8ac8b00bd3945c9f3562d4650b827370b945dd22e2135
2020-07-26T04:17:04Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0x0b3c7e09a9bb3417b85563d82fd9ae0b5889edf6602e9a7e7b123b3d6abc1b22
2020-07-26T04:17:04Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0xd17a5f8a0066ef6b945dd0104c1ce3579971b151d2831e6b96011c0e5a7fb87b
2020-07-26T04:17:04Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0x44093f65061025c746be217c82eb2d423769e486d6800e39284b91f691bc9623
2020-07-26T04:17:04Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0x4a7985fcfe9b82292f41cbc19caaa6a8c5babefd75a8e2d091912cc947b32caf
2020-07-26T04:17:04Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0x9b83de7fad83161a518720dd463e95b9f6f3048cc81e2ec52d10d052bbd4c8b0
2020-07-26T04:17:04Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0x3af67c83b73aa915ae04d51d740332c0a0a4381736b09ff4d1638276614e9142
2020-07-26T04:17:04Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0x7192b910515c0b532fd6ef5111560e7923339df97de2713bdbb67be89eef487a
2020-07-26T04:17:04Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0xf6da4660b114b9e7bf36135aa43c46d0083163bda84c2e3f6d12ae0754ed76e9
2020-07-26T04:17:05Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0xdba61be0fc1b85f59f024f4473cf241fbb48c6859f0673b64160a9eb34ab4a32
2020-07-26T04:17:05Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0xe5df560891c3993e6b77667c8dce7427cf70c90a216eb25eaaae0f425116492b
2020-07-26T04:17:05Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0x3bc29e0a074bf2801e61a6c7a8b0ac8f1e32c83c0335926e58c51bd0128ebdb4
2020-07-26T04:17:05Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0xf335ebd450e895135fec4f6533a82db6df8dd4d3ab287e29edec19418c14ac75
2020-07-26T04:17:05Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0x63d5103453e2af1d306f69c9b7d1c25156826e351ce95139faa3678c074024a6
2020-07-26T04:17:05Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0x871cead73172160d0a4d6d389de98433df68ce69043214edfc1e8b49fc2e676e
2020-07-26T04:17:05Z [DEBUG] Executed task ethtx                                services/run_executor.go:77 creation_height=8368224 elapsed=0.176847935 external_id=0xd9af29a812ba210f4e2b5bb63fab05bae5850f5271493784750e2041a1686e48 input_amount=1.000000000000000000 job=72a99e92b79444d4a581d08fabe51dda observed_height=8368677 run=41f2644e1202412693e049774b781e85 status=pending_outgoing_confirmations task=5583505e67ff45b388e27e4c2becad01
2020-07-26T04:17:05Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0x1cfd5931dd77c480f171ceed5f5e10f3c8553e9b40168521b4982fcb98f19363
2020-07-26T04:17:05Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0x6b8dde1e956ac74bc12ec19f959d92f32e64e05face8f35917e81da1848c9234
2020-07-26T04:17:05Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0xe278691b387011f8615ff47dcb828fe3a0d4d63fae7f95fa6b13da0e0202b5de
2020-07-26T04:17:05Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0x62f0cd52cb2b9cb16f98e98af08352b647908cb451e97779d5cc96a552d6bcfb
2020-07-26T04:17:05Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0x2a9f6689cc008efb2dc4929da2ab75f0a19edce25906934e87840f3126b52264
2020-07-26T04:17:05Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0x799333ab4305f8b1f0c61f6f09dfbe596c57a517b29a1ea3aba87016e628894e
2020-07-26T04:17:05Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0x029d24bdbf768882021c17487004952026482fab50cc255d8be1e0ca89b360f1
2020-07-26T04:17:05Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0x5bc244ff0246dc866111fd6b9d7220bc89aac2b86a3610209a28072e63555bf9
2020-07-26T04:17:05Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0x327b5af7dec424a1b48d374001f0932ebb99e89f838974a1c4c72aeac64f8eab
2020-07-26T04:17:05Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0x15685ec232346f707e4236ce364e8c02900744b1cab65fccfdebd3b7c81cbcd6
2020-07-26T04:17:06Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0xd625fbea14f2e34e5ab1c4497ff7c836524f41cc8e1f50caabcc0d6e0ae12b69
2020-07-26T04:17:06Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0x2973f8b598f494ee2a6509039b2e983e87f75623637dac54581837618cc5db9b
2020-07-26T04:17:06Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0x4a2ec0909c8b491b803fa7fc64111bc31fb1e5727f4eef8639e66c87d45e9f90
2020-07-26T04:17:06Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0x513c20c0b323f4ccb42bf6444d9d5e2d7929335b6cec827847a338a10a2a662b
2020-07-26T04:17:06Z [DEBUG] EthConfirmer: still waiting for receipt            bulletprooftxmanager/eth_confirmer.go:135 txHash=0x14fbb3b160b4e62b00431fee3d3dddea274c4d5ee7220f7f15d9a96e0a33adc4
2020-07-26T04:17:06Z [DEBUG] EthConfirmer: running BumpGasWhereNecessary        bulletprooftxmanager/eth_confirmer.go:89 headNum=8368678
2020-07-26T04:17:06Z [DEBUG] EthConfirmer: running EnsureConfirmedTransactionsInLongestChain bulletprooftxmanager/eth_confirmer.go:94 headNum=8368678
2020-07-26T04:17:06Z [DEBUG] HeadTracker finished processing head 8368678 in 6.141322162s services/head_tracker.go:270 blockNumber=8368678 time=6.141322162
PatrickAlphaC commented 4 years ago

Could could also each try GAS_UPDATER_ENABLED=true in your .env file

PatrickAlphaC commented 3 years ago

Closing due to inactivity