snet-daemon icon indicating copy to clipboard operation
snet-daemon copied to clipboard

Daemon regularily logs: "error determining current block" error="Post http://127.0.0.1:8545: EOF"

Open vsbogd opened this issue 7 years ago • 4 comments

The following error is printed by daemon periodically:

time="2018-10-22T07:17:15Z" level=error msg="error determining current block" error="Post http://127.0.0.1:8545: EOF" time="2018-10-22T07:19:35Z" level=error msg="error determining current block" error="Post http://127.0.0.1:8545: EOF" time="2018-10-22T07:21:00Z" level=error msg="error determining current block" error="Post http://127.0.0.1:8545: EOF" time="2018-10-22T07:23:20Z" level=error msg="error determining current block" error="Post http://127.0.0.1:8545: EOF" time="2018-10-22T07:27:45Z" level=error msg="error determining current block" error="Post http://127.0.0.1:8545: EOF"

Error is printed at https://github.com/singnet/snet-daemon/blob/73a8ce2bf741fcf9d61faf61fcb1d2723f6cb744/blockchain/tasks.go#L92

Period is not stable. It is reproducible on ganache-cli Ethereum environment. This issue can affect MPE behavior as well as the same code is used to determine current Ethereum block to validate payment channel expiration date (see https://github.com/singnet/snet-daemon/blob/73a8ce2bf741fcf9d61faf61fcb1d2723f6cb744/blockchain/blockchain.go#L146)

The questions are:

  • is it reproducible in test net?
  • if it is reproducible what is the root cause?

vsbogd avatar Nov 06 '18 09:11 vsbogd

we will watch the occurrence of this error on kovan and ropsten on the beta code base

ghost avatar Jan 21 '19 06:01 ghost

@anandrgitnirman can you confirm if this error is seen still?

raamb avatar Mar 20 '19 13:03 raamb

i dont see this anymore, posted in group for others to opine , if others dont see it anymore we can close this one for now

anandrgitnirman avatar Mar 22 '19 05:03 anandrgitnirman

To ensure the error is not reproducible one need to analyze logs of payment processing. Code gets current Ethereum block to validate payment expiration date.

vsbogd avatar Mar 25 '19 15:03 vsbogd