ethstats-cli icon indicating copy to clipboard operation
ethstats-cli copied to clipboard

Docker container crashes on Ubuntu 18.04

Open jbroudou opened this issue 6 years ago • 2 comments

Describe the bug

The ethstats-cli docker container crashes with an exit code of 1 after about 10 minutes of running the container.

Output from the last few lines of the log are as follows

2019-06-21 09:43:45.269 - INFO: Sending message on topic: "usage"
2019-06-21 09:43:45.270 - DEBUG: Sent message on "usage" with payload: {"hostCpuLoad":59.217877094972074,"hostMemTotal":16818675712,"hostMemUsed":16663748608,"hostNetRxSec":3429638.6336396323,"hostNetTxSec":74000.19976028765,"hostFsRxSec":0,"hostFsWxSec":0,"hostDiskRIOSec":0,"hostDiskWIOSec":0,"nodeCpuLoad":0,"nodeMemLoad":0,"clientCpuLoad":1.37,"clientMemLoad":0.2}
2019-06-21 09:43:45.282 - DEBUG: Data received for topic: "usageResponse"
2019-06-21 09:43:45.666 - DEBUG: Check connection
2019-06-21 09:43:48.410 - DEBUG: Check if receiving new blocks => last checked block: null, last received block: null
2019-06-21 09:43:48.410 - DEBUG: Check if receiving new sync blocks => last checked sync block: 0, last received block: 0
2019-06-21 09:43:48.410 - INFO: No new blocks received for more than 300 seconds.
2019-06-21 09:43:48.411 - INFO: Reinitializing app...
2019-06-21 09:43:48.411 - DEBUG: Stop client
2019-06-21 09:43:48.412 - WARNING: Connection closed with ethstats server
2019-06-21 09:43:48.412 - ERROR: Connection ended with ethstats server
2019-06-21 09:43:48.413 - INFO: Exited with code: 1, signal: undefined

The container was started with the command docker run -it --restart always --net host -v /opt/ethstats-cli/:/root/.config/configstore/ alethio/ethstats-cli --register --account-email system-support@OBSCURED --node-name eth1-node-inspectablock

Environment (please complete the following information):

  • Ubuntu 18.04
  • Parity 2.5.2-beta

jbroudou avatar Jun 21 '19 09:06 jbroudou

Hi,

Based on your logs the app didn't received any new blocks from Parity. Because we had issues with the web3js package not receiving new blocks for various reasons we added a workaround to reinstatiate the connection to the node to fix the problem. But indeed it should not exit with the code error 1. Seems to be a bug. Will investigate more and fix it.

Thanks for your feedback.

baxy avatar Jun 21 '19 12:06 baxy

Thank you to all this community, you are very unique

hamid0785 avatar Apr 14 '21 09:04 hamid0785