I am facing a bug that I initially thought was on my end but I am now suspecting it is not. Any help MASSIVELY appreciated.
I grepped the logs and found this one error:
ERROR peer_loader.
py(55) There's no crep_root_hash to initialize.".
This is happening with a couple nodes of mine that are stuck in “EvaluateNetwork” state after starting up on TestNet. My firewall is open on the right ports, keystore and password are in right locations, and I am using the docker-compose off the docs.
I have three nodes stuck, two on testnet and one on main that I am helping another with. I tried a number of different ways to register the node / change the registration with preptools (setPRep) but still it does not seem to get past error. Also cleared data directory and resynced many times but still not getting past error. I also did a manual install with a bare bones server (no security hardening scripts / monitoring or any additional features / no ansible configuration steps) and still getting same error.
I checked the keystore and it is indeed matching what I registered with.
My nodes are 3.20.43.8 / 3.20.80.144 on testnet shown on the bottom of the monitor.
Started delving into source and exploring in the container but haven’t been able to deduce the error.
For the container logs I see this:
[2020-01-10 08:41:52.868] Your IP: 3.20.43.8
[2020-01-10 08:41:52.872] RPC_PORT: 9000 / RPC_WORKER: 3
[2020-01-10 08:41:52.876] DEFAULT_PATH=/data/PREP-TestNet in Docker Container
[2020-01-10 08:41:52.880] DEFAULT_LOG_PATH=/data/PREP-TestNet/log
[2020-01-10 08:41:52.884] DEFAULT_STORAGE_PATH=/data/PREP-TestNet/.storage
[2020-01-10 08:41:52.888] scoreRootPath=/data/PREP-TestNet/.score_data/score
[2020-01-10 08:41:52.891] stateDbRootPath=/data/PREP-TestNet/.score_data/db
[2020-01-10 08:41:52.895] GENESIS_DATA_PATH=/prep_peer/conf/genesis.json
[2020-01-10 08:41:52.898] P-REP package version info - prep-node_1912090356xb1e1fe
[2020-01-10 08:41:54.969] iconcommons 1.1.2
iconrpcserver 1.4.9
iconsdk 1.2.0
iconservice 1.5.20
loopchain 2.4.20
[2020-01-10 08:41:54.973] NETWORK_ENV=PREP-TestNet, SERVICE=zicon, ENDPOINT_URL=https://zicon.net.solidwallet.io, SERVICE_API = http
s://zicon.net.solidwallet.io/api/v3
[2020-01-10 08:41:56.022] This node is SubPRep - 0x1
[2020-01-10 08:41:58.255] == [OK] Write json file -> /prep_peer/conf/configure.json, 1.1 KB
Alive peer_list=['54.203.169.166:9000', '3.9.209.139:9000', '195.201.28.160:9000', '167.86.67.6:9000', '94.229.45.8:9000'], fastpeer_d
omains=['https://zicon.net.solidwallet.io', 'fastpeer0.icon:9000', 'fastpeer1.icon:9000', 'fastpeer2.icon:9000', 'fastpeer3.icon:9000'
, 'fastpeer4.icon:9000']
[2020-01-10 08:41:58.258] CHANNEL_MANAGE_DATA not found - /prep_peer/conf/channel_manange_data.json
0
[2020-01-10 08:41:58.348] START FASTEST MODE : NETWORK_NAME=ZiconPrepNet
[2020-01-10 08:41:58.356] [PASS] Already file - /data/PREP-TestNet/ZiconPrepNet_BH2563347_data-20200110_0800.tar.gz
Wait for rabbitmq-server(127.0.0.1) / USE_EXTERNAL_MQ: false - sleeping
...
[2020-01-10 10:41:42.512] Network: PREP-TestNet / RUN_MODE: '' / LOG_OUTPUT_TYPE: file
[2020-01-10 10:41:42.537] [OK] CHECK=0, Run loop-peer and loop-channel start -> ''
[2020-01-10 10:41:42.560] [OK] CHECK=0, Run iconservice start!
[2020-01-10 10:41:42.596] [OK] CHECK=0, Run iconrpcserver start!
completed with 0 plugins.
[*] To exit press CTRL+C
[2020-01-10 10:41:44 +0900] [512] [INFO] Starting gunicorn 19.9.0
[2020-01-10 10:41:44 +0900] [512] [INFO] Listening at: http://0.0.0.0:9000 (512)
[2020-01-10 10:41:44 +0900] [512] [INFO] Using worker: sanic.worker.GunicornWorker
[2020-01-10 10:41:44 +0900] [537] [INFO] Booting worker with pid: 537
[2020-01-10 10:41:44 +0900] [544] [INFO] Booting worker with pid: 544
[2020-01-10 10:41:44 +0900] [551] [INFO] Booting worker with pid: 551
[2020-01-10 10:42:27.642] Start Health check ... 30s, HEALTH_ENV_CHECK=true
[2020-01-10 10:42:57.647] Start PROC_HEALTH_CHECK ... 30s
[2020-01-10 10:42:57.696] Start API_HEALTH_CHECK ... 30s
[2020-01-10 10:42:58.785] == Alive peer_list=['44.225.138.147:9000', '35.180.186.51:9000', '157.245.40.25:9000', '163.172.4.189:9000
', '195.201.28.160:9000'], fastpeer_domains=['fastpeer0.icon', 'fastpeer1.icon', 'fastpeer2.icon', 'fastpeer3.icon', 'fastpeer4.icon']
[2020-01-10 10:42:58.789] Start BlockCheck
[2020-01-10 10:42:58.842] Time synchronization with NTP / NTP SERVER: time.google.com
10
Last my docker-compose
version: "3"
services:
prep-node:
image: "iconloop/prep-node:latest" # Added latest
container_name: "prep-testnet"
network_mode: host
restart: "always"
environment:
NETWORK_ENV: "PREP-TestNet"
CERT_PATH: "/cert"
LOOPCHAIN_LOG_LEVEL: "DEBUG"
ICON_LOG_LEVEL: "DEBUG"
FASTEST_START: "yes"
PRIVATE_KEY_FILENAME: "keystore" # this is the actual name
PRIVATE_PASSWORD: "the right password"
cap_add:
- SYS_TIME
volumes:
- ./data:/data # mount a data volumes
- ./cert:/cert # Automatically generate cert key files here
ports:
- 9000:9000
- 7100:7100