ton-blockchain / mytonctrl

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

Installation of Mytonctrl2 testnet cannot be sync #295

Open howardchang7414 opened 5 months ago

howardchang7414 commented 5 months ago

[dht-query.cpp:124][!FindNodesQuery][&DHT_INFO] 0x7fa3f7bcaf40: failed find nodes query BEBgX9K/q4C/LjLtxI9IT7pVFJP4QC7I0paN37Kyd1I=->l9EF3EF5nxPlmkSkop6TjtzvtfZ97T6IyJ6WTxOHQhg=: [Error : 652 : adnl query timeout]

What are the possible causes of error 652 and how to solve this problem? What method to use for adnl query in mytonctrl, http or other? We can access the service but cannot use mytonctrl. In testnet env.

ton-devops commented 4 months ago

may be help usage specific ton version - 5380e6f. See @testnetstatus latest message

howardchang7414 commented 4 months ago

@ton-devops I don't understand what you mean. Can you describe it in detail?

ton-devops commented 4 months ago
Please upgrade testnet validators to the latest commit in testnet branch (`5380e6f`).
This update makes backward-incompatible change to block.tlb:  ConfigParam 43, in particular size_limits_config_v2#02 constructor. Note, however, that this constructor was never used in both testnet/mainnet yet.
howardchang7414 commented 4 months ago

@ton-devops I can't found the 5380e6f commit. mytonctrl2_testnet or testnet?

ton-devops commented 4 months ago

5380e6f this commit - repo ton, mytonctrl not support set specific ton version(branch/commit/tag)

Alternatively, use a fork that supports specifying the version - https://github.com/tonstakers/mytonctrl-v2

example mytonctrl-v2.sh -b master -n testnet -v 5380e6f

-b -- version mytonctrl -n -- ton networks -v -- version ton node

howardchang7414 commented 4 months ago

@ton-devops I try this and get the same error. mytonctrl-v2.sh -b master -n testnet -v 5380e6f. [Error: 652: adnl query timed out]

I think the problem is on the network. The host can access the dht service through the ip+port. But mytonctrl gets adnl query timeout. Do you know what method is used to get adnl in mytonctrl.

ton-devops commented 4 months ago

Do you know what method is used to get adnl in mytonctrl. - sorry, no

check your firewall rules - need open node port (udp)

find port jq -r '.addrs[0].port' /var/ton-work/db/config.json example port 38973

example comand ufw allow 38973/udp

howardchang7414 commented 4 months ago

@ton-devops Open UDP port is been done before. Are there any other possible reasons for this problem?