Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installer Broken #311

Open
fdask opened this issue Jul 24, 2024 · 1 comment
Open

Installer Broken #311

fdask opened this issue Jul 24, 2024 · 1 comment

Comments

@fdask
Copy link

fdask commented Jul 24, 2024

Having issues getting started running a validator node.

Ubuntu 22.04

I'm following the guide here: https://docs.ton.org/participate/run-nodes/full-node

First it has you create a user with sudo power. Which I did.
Then you are to run the install script.

In my case, I cannot log directly into the server as the new user due to company security protocols. So I edited the install.sh script near the bottom where it checks for the $user variable, and hardcoded in my user. Then I sudo bash install.sh -m full.

This seems to work as expected, however when I start mytonctrl, and do a status command, my output is missing the validator section shown in the screenshots.

ton@ton--mainnet--test-1:~$ mytonctrl
[debug]   24.07.2024, 14:06:50.179 (UTC)  <MainThread>  Thread self_test started
[debug]   24.07.2024, 14:06:50.179 (UTC)  <MainThread>  Thread write_log started
[info]    24.07.2024, 14:06:50.179 (UTC)  <MainThread>  Start program `/usr/src/mytonctrl/mytonctrl.py`
Welcome to the console. Enter 'help' to display the help menu.
============================================================================================
This version is outdated. Please update to the second version: `update mytonctrl2`
============================================================================================
MyTonCtrl> status
[debug]   24.07.2024, 14:06:53.470 (UTC)  <MainThread>  start GetRootWorkchainEnabledTime function
[debug]   24.07.2024, 14:06:53.470 (UTC)  <MainThread>  start GetConfig function (12)
[warning] 24.07.2024, 14:06:53.478 (UTC)  <MainThread>  GetValidatorStatus warning: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
[debug]   24.07.2024, 14:06:54.108 (UTC)  <MainThread>  start GetConfig34 function
[debug]   24.07.2024, 14:06:54.848 (UTC)  <MainThread>  start GetConfig36 function
[debug]   24.07.2024, 14:06:55.523 (UTC)  <MainThread>  start GetValidatorsLoad function (1721827955, 1721829955)
[debug]   24.07.2024, 14:07:04.972 (UTC)  <MainThread>  start GetValidatorEfficiency function
[warning] 24.07.2024, 14:07:04.972 (UTC)  <MainThread>  GetValidatorEfficiency warning: efficiency not found.
[warning] 24.07.2024, 14:07:04.980 (UTC)  <MainThread>  GetValidatorStatus warning: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
[debug]   24.07.2024, 14:07:05.602 (UTC)  <MainThread>  start GetConfig function (15)
[debug]   24.07.2024, 14:07:06.471 (UTC)  <MainThread>  start GetConfig function (17)
[debug]   24.07.2024, 14:07:07.277 (UTC)  <MainThread>  start GetFullConfigAddr function
[debug]   24.07.2024, 14:07:07.901 (UTC)  <MainThread>  start GetFullElectorAddr function
[debug]   24.07.2024, 14:07:10.583 (UTC)  <MainThread>  start GetActiveElectionId function
[warning] 24.07.2024, 14:07:12.287 (UTC)  <MainThread>  GetValidatorIndex warning: index not found.
[debug]   24.07.2024, 14:07:12.288 (UTC)  <MainThread>  start GetValidatorWallet function
[debug]   24.07.2024, 14:07:12.288 (UTC)  <MainThread>  start GetLocalWallet function
[debug]   24.07.2024, 14:07:12.288 (UTC)  <MainThread>  start GetDbSize function
[debug]   24.07.2024, 14:07:12.289 (UTC)  <MainThread>  start GetOffersNumber function
[debug]   24.07.2024, 14:07:12.289 (UTC)  <MainThread>  start GetOffers function
[debug]   24.07.2024, 14:07:13.424 (UTC)  <MainThread>  start GetComplaintsNumber function
[debug]   24.07.2024, 14:07:13.424 (UTC)  <MainThread>  start GetConfig32 function
[debug]   24.07.2024, 14:07:14.167 (UTC)  <MainThread>  start GetComplaints function
===[ TON network status ]===
Transactions per second (TPS): , , 
Number of validators: 259(394)
Number of shardchains: 2
Number of offers: 0(0)
Number of complaints: 0(0)
Election status: open

===[ TON network configuration ]===
Configurator address: -1:5555555555555555555555555555555555555555555555555555555555555555
Elector address: -1:3333333333333333333333333333333333333333333333333333333333333333
Validation period: 65536, Duration of elections: 32768-8192, Hold period: 32768
Minimum stake: 300000.0, Maximum stake: 10000000.0

===[ TON timestamps ]===
TON network was launched: 15.11.2019 12:44:14
Start of the validation cycle: 24.07.2024 18:59:20
End of the validation cycle: 25.07.2024 13:11:36
Start of elections: 24.07.2024 09:53:12
End of elections: 24.07.2024 16:42:48
Beginning of the next elections: 25.07.2024 04:05:28

It's simply not there, and there is an error "GetValidatorStatus warning: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'".

I tried upgrading to mytonctrl2 by issuing the command: update https://github.com/ton-blockchain/mytonctrl/tree/mytonctrl2
but this seems to break things even worse, as after the upgrade, issuing a status command only gives me

ton@ton--mainnet--test-1:~$ mytonctrl
[info]    24.07.2024, 17:58:58.623 (UTC)  <MainThread>  Start program `/home/ton/mytonctrl.py`
Welcome to the console. Enter 'help' to display the help menu.
[debug]   24.07.2024, 17:58:58.644 (UTC)  <MainThread>  start GetValidatorStatus function
[warning] 24.07.2024, 17:58:58.651 (UTC)  <MainThread>  GetValidatorStatus warning: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
============================================================================================
 Node is out of sync. The displayed status is incomplete. 
============================================================================================
MyTonCtrl> status
[debug]   24.07.2024, 17:59:05.896 (UTC)  <MainThread>  start GetValidatorWallet function
[debug]   24.07.2024, 17:59:05.896 (UTC)  <MainThread>  start GetLocalWallet function
[debug]   24.07.2024, 17:59:05.896 (UTC)  <MainThread>  start GetDbSize function

The error is still there, and there is no actual status output.

Can someone help here? I really want to run a full node/validator on TON and have been at this for several days now.

@nikitkazhopik
Copy link

hey bro did you fix that? or got any info?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@fdask @nikitkazhopik and others