snet-daemon
snet-daemon copied to clipboard
Daemon regularily logs: "error determining current block" error="Post http://127.0.0.1:8545: EOF"
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?
we will watch the occurrence of this error on kovan and ropsten on the beta code base
@anandrgitnirman can you confirm if this error is seen still?
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
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.