Which variables in the gLiveView env file do I have to set so that this full detailed statistic appears? I’m not using cntools at the moment at the block machine. I use a seperate VM for calculating the leaderlogs with cncli. So perfect would be if I could refer to this seperate IP address in case cncli is required for showing the full details!
In order to “fully unleash” the gLiveView.sh blocks section, you will also need to run the following services o the block producer:
cncli sync
cncli.sh validate
cncli.sh leaderlog (this can also be executed manually every epoch)
You will also have to edit the env file in order to make all the services run correctly, but this is the idea.
Thereafter I transfered the blocklog.db to the blockproducer, started gLiveView. The additional statistic section appears now, however, the statistics in there are all showing 0.
As soon as I remove the blocklog.db, the statistics are correct again!
I specified both BLOCKLOG_DIR and DB_DIR in the env of gLiveView.
Does gLiveView itself need access to cncli?
EDIT: If it helps anyone else: I just checked the source code of gLiveView and noticed following line:
for status_type in $(sqlite3 “${BLOCKLOG_DB}” “SELECT status, COUNT(status) FROM blocklog WHERE epoch=${epochnum} GROUP BY status;” 2>/dev/null); do
I checked if sqlite3 was installed… Since it was missing I used:
You have to configure the paths in the “env” file used by gLiveView.sh to make it work correctly. And gLiveView.sh should have access to cncli, you have an environment variable for the path to it.
I believe you need at least the following environment variables to be correct:
CNCLI
BLOCKLOG_DIR
POOL_ID_FILENAME
POOL_VRF_VK_FILENAME
POOL_VRF_SK_FILENAME
POOL_HOTKEY_VK_FILENAME
POOL_HOTKEY_SK_FILENAME
in order to be able to use cntools.sh for all the tasks required for the blocks display.