ton-blockchain / mytonctrl

A tool to run and maintain a TON node/validator
GNU General Public License v3.0
272 stars 151 forks source link

MyTonCtrl does not initialise validator config at start occasionally #161

Open begetan opened 9 months ago

begetan commented 9 months ago

We run multiply nodes and perform migration/changes quite frequently. We noticed that MyTonCtrl utility doesn't configure validator settings occasionally after the initial installation. It is happening quite often after the TON network throttling due to the utilisation spike.

In this case:

  1. No information about validator part in output of status command
  2. Local wallet is in unknown type in wl command
  3. We discovered that mytoncore.db missed related parameters:
   "validatorWalletName": "validator_wallet_001",
    "adnlAddr": "xxxx"

We have tried to add the missing parameters manually, but observed validator process instability and warning about adnl errors:

[ 1][t 7][2024-01-22 11:51:30.538971216][manager.cpp:2380][!manager]    STATUS: last_masterchain_block_ago=328.5s last_known_key_block_ago=1976.5s shard_client_ago=344.5s
[ 0][t 7][2024-01-22 11:51:39.783803855][adnl-peer-table.cpp:234][!PeerTable][&it != local_ids_.end()]  dst=Y1pSAcU0Mv/hqOJUp9sSuD8/T7qEi84/q3IC9jYrD9w=
[ 0][t 7][2024-01-22 11:53:14.834421801][adnl-peer-table.cpp:234][!PeerTable][&it != local_ids_.end()]  dst=Y1pSAcU0Mv/hqOJUp9sSuD8/T7qEi84/q3IC9jYrD9w=

image

igroman787 commented 9 months ago

This happens when you skip the last installation step python3 /usr/src/mytonctrl/mytoncore.py -e enableVC If this error occurs again, please send the installation logs that are displayed in the console.

begetan commented 9 months ago

We follow the standard installation procedure without any changes, so it is due to mytocntrl installation internal flow. We will provide the log details once it will happen again