Git Product home page Git Product logo

mytonctrl's Introduction

GitHub stars GitHub forks GitHub issues GitHub pull requests GitHub last commit GitHub license

MyTonCtrl

Данный текст доступен на русском языке.

Contents

What is MyTonCtrl?

MyTonCtrl is a console application that serves as a convenient wrapper for fift, lite-client, and validator-engine-console. It has been specifically developed to streamline wallet, domain, and validator management tasks on the Linux operating system.

MyTonCtrl Status

Functionality

  • Show TON network status
  • Management of local wallets
    • Create local wallet
    • Activate local wallet
    • Show local wallets
    • Import wallet from file (.pk)
    • Save wallet address to file (.addr)
    • Delete local wallet
  • Show account status
    • Show account balance
    • Show account history
    • Show account status from bookmarks
  • Transferring funds to the wallet
    • Transfer of a fixed amount
    • Transfer of the entire amount (all)
    • Transfer of the entire amount with wallet deactivation (alld)
    • Transferring funds to the wallet from bookmarks
    • Transferring funds to a wallet through a chain of self-deleting wallets
  • Manage bookmarks
    • Add account to bookmarks
    • Show bookmarks
    • Delete bookmark
  • Offer management
    • Show offers
    • Vote for the proposal
    • Automatic voting for previously voted proposals
  • Domain management
    • Rent a new domain
    • Show rented domains
    • Show domain status
    • Delete domain
    • Automatic domain renewal
  • Controlling the validator
    • Participate in the election of a validator
    • Return bet + reward
    • Autostart validator on abnormal termination (systemd)
    • Send validator statistics to https://toncenter.com

List of tested operating systems

Operating System Status
Ubuntu 16.04 LTS (Xenial Xerus) Error: TON compilation error
Ubuntu 18.04 LTS (Bionic Beaver) OK
Ubuntu 20.04 LTS (Focal Fossa) OK
Ubuntu 22.04 LTS (Jammy Jellyfish) OK
Debian 8 Error: Unable to locate package libgsl-dev
Debian 9 Error: TON compilation error
Debian 10 OK

Installation

Installation scripts overview

  • toninstaller.sh: clones TON and mytonctrl sources to /usr/src/ton and/usr/src/mytonctrl folders, compiles programs from sources and writes them to /usr/bin/.
  • mytoninstaller.py: configures the validator and mytonctrl; generates validator connection keys.

Installation modes

There are two installation modes: lite andfull. They both compile and install TON components. However the lite version does not configure or run the node/validator.

Installation for Ubuntu

  1. Download and execute the install.sh script in the desired installation mode. During installation the script prompts you for the superuser password several times.

    wget https://raw.githubusercontent.com/ton-blockchain/mytonctrl/master/scripts/install.sh
    sudo bash install.sh -m <mode>
  2. Done. You can try to run the mytonctrl console now.

    mytonctrl

Installation for Debian

  1. Download and execute the install.sh script in the desired installation mode. During installation the script prompts you for the superuser password several times.

    wget https://raw.githubusercontent.com/ton-blockchain/mytonctrl/master/scripts/install.sh
    su root -c 'bash install.sh -m <mode>'
  2. Done. You can try to run the mytonctrl console now.

    mytonctrl

MyTonCtrl Documentation

This repository contains the following technical documents for MyTonCtrl, categorized by language. Simply click the links below to navigate to the document you're interested in.

FAQ Import Wallets Ubuntu Manual Nominator Pool
English (EN) Link Link Link Link
Russian (RU) Link Link Link Link
Traditional Chinese Link Link Link Link

Telemetry

By default, mytonctrl sends validator statistics to the https://toncenter.com server. It is necessary to identify network abnormalities, as well as to quickly give feedback to developers. To disable telemetry during installation, use the -t flag:

sudo bash install.sh -m <mode> -t

To disable telemetry after installation, do the following:

MyTonCtrl> set sendTelemetry false

MyTonCtrl installer mode

Web admin panel

To control the node/validator through the browser, you need to install an additional module: mytonctrl -> installer -> enable JR

Next, you need to create a password for connection: mytonctrl -> installer -> setwebpass

Ready. Now you can go to https://tonadmin.org site and log in with your credentials. git: https://github.com/igroman787/mtc-jsonrpc

Local copy of toncenter

To set up a local https://toncenter.com copy on your server, install an additional module: mytonctrl ->installer -> enable PT

Ready. A local copy of toncenter is available at http://<server-ip-address>:8000 git: https://github.com/igroman787/pytonv3

Useful links

mytonctrl's People

Contributors

akifoq avatar awesome-doge avatar condor-the-bird avatar dariotarantini avatar dinamicby avatar emelyanenkok avatar ex3ndr avatar gusarich avatar highfeed avatar igroman787 avatar ingria avatar kyborg2011 avatar ndatg avatar neodix42 avatar self-perfection avatar sonofmom avatar troman29 avatar yma-het avatar yungwine avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mytonctrl's Issues

toncenter index page

Run
/usr/bin/python3 -m pyTON --liteserverconfig /usr/bin/ton/local.config.json --libtonlibjson /usr/bin/ton/tonlib/libtonlibjson.so

Get http://ip:8000

Error console

FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpv0vd_qdg' Unhandled exception Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/aiohttp-3.8.1-py3.8-linux-x86_64.egg/aiohttp/web_protocol.py", line 514, in start resp, reset = await task File "/usr/local/lib/python3.8/dist-packages/aiohttp-3.8.1-py3.8-linux-x86_64.egg/aiohttp/web_protocol.py", line 460, in _handle_request reset = await self.finish_response(request, resp, start_time) File "/usr/local/lib/python3.8/dist-packages/aiohttp-3.8.1-py3.8-linux-x86_64.egg/aiohttp/web_protocol.py", line 613, in finish_response await prepare_meth(request) File "/usr/local/lib/python3.8/dist-packages/aiohttp-3.8.1-py3.8-linux-x86_64.egg/aiohttp/web_fileresponse.py", line 142, in prepare st: os.stat_result = await loop.run_in_executor(None, filepath.stat) File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/usr/lib/python3.8/pathlib.py", line 1198, in stat return self._accessor.stat(self) FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpf3st1jyu'

Is local validator wallet address correct?

Hi!

We've started mon process but we have

Local validator wallet address: kf8gGTuya0marR3tNRjipI_Mryik_6X683RgJOPxOK6d8yGS
Is it correct?

Even though we have set our wallet like this:

moff
set powAddr “auto”
set minerAddr “EQDCulTFDHn4O6tLYzssDmKtpr7bSt2G2nHuPogmcI2VgfYe”
mon

photo_2021-08-06 09 02 40

Nominator pool problem

Hi,

I've make settings up to instruction and everything looks good, but nothing happens. Validator didn't start process.

Any ideas please?

2022-05-30_09-10-42

удаленный кошелек - не работает status

После удаления дефолтного кошелька через dw (dw validator_wallet_001), теперь не работает status. Выходит такая ошибка:
Error: GetWalletFromFile error: Private key not found: /usr/local/bin/mytoncore/wallets/validator_wallet_001
Что нужно сделать и как корректно удалять кошельки?
Подскажите, при создании ноды создается деф кошелек, но его адрес не совпадает с адресом локального валидатора, почему?
И вопрос есть ли где то полный faq по работе ноды, сети, список всех команд и подкоманд mytonctrl (set, get). И возможно ли еще запустить ноду в тестнете?

How to add comment to "mg" command?

Exmo exchange requires "invoice" in order to make deposit. As far as i understand they have single outbound address, and then process txns by "invoice"

Can you please tell how to specify comment in "mg" tonctrl command while sending tokens?

image

Thanks

Lite Server setup [Error : 500 : LITE_SERVER_NETWORKadnl query timeout]

Hello. I did set up a new Lite Server 2 days ago.

Steps:
sudo bash install.sh -m full
share UPD port
share TCP port liteserves from exported config

mytonctrl>>installer>>status
Full node status: True
Mytoncore status: True
V.console status: True
Liteserver status: True

Tested configured Lite Server at PC under windows 10 with miner
https://github.com/tontechio/pow-miner-gpu/releases
logs:
.........

[ 1][t 1][2021-11-19 11:17:58.8434486][tonlib-cli.cpp:907][!console]	[Error : 500 : LITE_SERVER_NETWORKadnl query timeout]
[ 1][t 2][2021-11-19 11:17:58.8439667][tonlib-cli.cpp:755][!PowMiner]	pminer: [Error : 500 : LITE_SERVER_NETWORKadnl query timeout] (#576212490)

.........

May I fix that?

Thanks for patient

Full node sync issue

I have follow the guide and installed.

But I wait for around 1 hours and print the status

Load average[8]: 0.31, 0.42, 0.74
Network load average (Mbit/s): 18.52, 22.83, 0.0
Disks load average (MB/s): vda:[0.03, 0.46%]
Mytoncore status: working
Local validator status: working
Local validator out of sync: 1650426946 s
Local validator database size: 0.02 Gb

Anyone know how to boost up the sync speed?

Thank you.

FileNotFoundError: [Errno 2] No such file or directory: 'systemctl'

Commands:
wget https://raw.githubusercontent.com/igroman787/mytonctrl/master/scripts/install.sh sudo bash install.sh -m full
OS
NAME="Ubuntu" VERSION="20.04.3 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.3 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal

Error Log:

[6/6] TON software installation complete [3/4] Launching the mytoninstaller.py [debug] 24.12.2021, 07:39:09.915 (UTC) <Logging> Start WritingLogFile thread. [debug] 24.12.2021, 07:39:09.916 (UTC) <SelfTesting> Start SelfTesting thread. [info] 24.12.2021, 07:39:09.916 (UTC) <MainThread> Start program '/usr/src/mytonctrl/mytoninstaller.py' [debug] 24.12.2021, 07:39:09.916 (UTC) <MainThread> start FirstMytoncoreSettings fuction Traceback (most recent call last): File "/usr/src/mytonctrl/mytoninstaller.py", line 956, in <module> General() File "/usr/src/mytonctrl/mytoninstaller.py", line 218, in General FirstMytoncoreSettings() File "/usr/src/mytonctrl/mytoninstaller.py", line 298, in FirstMytoncoreSettings Add2Systemd(name="mytoncore", user=user, start="/usr/bin/python3 /usr/src/mytonctrl/mytoncore.py") File "/usr/src/mytonctrl/mypylib/mypylib.py", line 911, in Add2Systemd subprocess.run(args) File "/usr/lib/python3.8/subprocess.py", line 493, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.8/subprocess.py", line 858, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'systemctl'

how to uninstall mytonctrl

hi, installed mytonctrl in ubuntu 20.4 after that i moved to another high conf cpu system now i need unistall/delete mytonctrl from old system

Run mytonctrl in testnet

Initially I've installed mytonctrl and it ran perfectly. Synchronization completed and my validator was up to date.
Then I decided to test my validator machine before running it on mainnet.
I uninstalled existing installation with uninstall.sh script, modified install.sh so it uses testnet config and performed the installation again. Installation passed without any errors. I can see that validators database is 5.51 Gb, but validator doesn’t syncs.

Did anyone had such problem?

Installing on WSL

Hi, I'm trying to install on Windows Subsystem for Linux (WSL) and instalation goes through fine

...
-- Found Readline: /usr/include
-- Found Readline: /usr/include /usr/lib/x86_64-linux-gnu/libreadline.so
-- Performing Test USABLE_READLINE_FOUND
-- Performing Test USABLE_READLINE_FOUND - Success
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Found GSL: /usr/include (found version "2.5")
-- Found mhd: /usr/include
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/bin/ton
[4/6] Source Compilation

but when I type mytonctrl I get:

user@rdshost:~$ mytonctrl
mytonctrl: command not found

I see that the process stopped after compilation. So I run sudo make && make install but still get mytonctrl: command not found

I would like to ask you about ton-coin Validators.

I would like to ask you about ton-coin Validators. Mytonctrl was executed. I checked the available menu through the help menu. I activated my wallet.
Is there any more detailed manual to proceed with Validator? I ask for your help.

импортировать кошелек

Не могу импортировать кошелек. Сделала - сохранить адрес кошелька, удалил его в mytonctrl, а импортировать назад не получается. Что я делаю не так? При этом в конце получился баг - дальше не стирается ( и так получается довольно часто)
ton
.

failed to compile

In file included from /usr/src/ton/third-party/abseil-cpp/absl/synchronization/internal/graphcycles.cc:42:
/usr/src/ton/third-party/abseil-cpp/absl/base/internal/spinlock.h:156:21: warning: bitwise operation between different enumeration types ('absl::base_internal::SpinLock::(unnamed enum at /usr/src/ton/third-party/abseil-cpp/absl/base/internal/spinlock.h:151:3)' and 'absl::base_internal::SpinLock::(unnamed enum at /usr/src/ton/third-party/abseil-cpp/absl/base/internal/spinlock.h:152:3)') [-Wanon-enum-enum-conversion]
    ~(kSpinLockHeld | kSpinLockCooperative | kSpinLockDisabledScheduling) };
      ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~
/usr/src/ton/third-party/abseil-cpp/absl/synchronization/internal/graphcycles.cc:451:26: error: no member named 'numeric_limits' in namespace 'std'
  if (x->version == std::numeric_limits<uint32_t>::max()) {
                    ~~~~~^
/usr/src/ton/third-party/abseil-cpp/absl/synchronization/internal/graphcycles.cc:451:41: error: unexpected type name 'uint32_t': expected expression
  if (x->version == std::numeric_limits<uint32_t>::max()) {
                                        ^
/usr/src/ton/third-party/abseil-cpp/absl/synchronization/internal/graphcycles.cc:451:52: error: no member named 'max' in the global namespace
  if (x->version == std::numeric_limits<uint32_t>::max()) {
                                                 ~~^
3 warnings and 3 errors generated.
make[3]: *** [third-party/abseil-cpp/absl/synchronization/CMakeFiles/absl_graphcycles_internal.dir/build.make:82: third-party/abseil-cpp/absl/synchronization/CMakeFiles/absl_graphcycles_internal.dir/internal/graphcycles.cc.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:4975: third-party/abseil-cpp/absl/synchronization/CMakeFiles/absl_graphcycles_internal.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:8018: crypto/CMakeFiles/fift.dir/rule] Error 2
make: *** [Makefile:2053: fift] Error 2

os: Linux server 5.13.0-22-generic #22-Ubuntu SMP Fri Nov 5 13:21:36 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

can't compile

Trying to compile on Ubuntu 20.04.3 LTS usin install.sh:

[ 2%] Linking CXX static library libabsl_time_zone.a [ 2%] Built target absl_time_zone make[1]: *** [CMakeFiles/Makefile2:7999: crypto/CMakeFiles/fift.dir/rule] Error 2 make: *** [Makefile:2034: fift] Error 2
Have no idea, what's wrong.

Docker support?

Does it make any sense to run mytonctrl in Docker? Is there any working Dockerfile available for testing?

Thanks

how to install in manjaro?

[menso@menso-sudo TON_chain]$ sudo bash install.sh -m full
[1/4] Starting installation MyTonCtrl
[2/4] Checking for required TON components
--2021-08-11 19:28:05--  https://raw.githubusercontent.com/igroman787/mytonctrl/master/scripts/toninstaller.sh
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.109.133, 185.199.108.133, 185.199.111.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5139 (5.0K) [text/plain]
Saving to: ‘toninstaller.sh’

toninstaller.sh                     100%[===================================================================>]   5.02K  --.-KB/s    in 0.002s  

2021-08-11 19:28:06 (2.33 MB/s) - ‘toninstaller.sh’ saved [5139/5139]

[1/6] Installing required packages
Arch Linux detected.
This OS is not supported with this script at present. Sorry.
Please refer to https://github.com/igroman787/mytonctrl for setup information.

I know that it is not supported on my OS, but still, is there a way?

Compiler replacement with `ninja`

Goal: Replace cmake or make build commands with ninja.

According to @neodix42 there is a better way to compile, called ninja. So I conducted a test, and the following are the results of the experiment.

cmake-ninja-Precompiled(s) cmake-Precompiled(s) ninja-compiled(s) make-compiled(s) performance improvement
m1-max(1) 5 6 147 165
m1-max(2) 5 6 148 164
m1-max(3) 6 6 149 164
m1-max(4) 6 6 147 161
average 5.5 6 147.75 163.5 10%
3990x(1) 3 3 69 116
3990x(2) 2 3 70 115
3990x(3) 3 3 68 115
3990x(4) 3 4 69 116
average 2.75 3.25 69 115.5 40%

I'll start trying to replace the mytonctrl build process with ninja and commit.

Чтение команд из ARGV

Добрый день. Было бы супер удобно передавать команды через параметры запуска утилиты. Например: mytonctr nw и получить в STDOUT хотя бы такой же вывод как в интерактивном режиме.

Name        Workchain  Address
wallet_003  0          UQC1kGd6JNN_Nasdnjkh8wZ1nw5-hs0tB7Aq_MUOwl-r9fzqbdI

Тогда сторонние приложения смогут относительно просто использовать все возможности тулзы (своего рода АПИ). Сейчас большая проблема использовать функции кошелька Ton сторонними приложениями, написанными на стеке где еще нет поддержки сообщества (как в JS, например)

Amount of coins required?

The manual says I should check https://tonmon.xyz/ for the minimum amount required for activation. The mentioned "Participant stakes" is listed as "Participants stakes" on the chart, and the lowest number is 149k. Does that mean I need to send 149k TON to my wallet for activation? Coz that would equal around $300 000, which sounds like a pretty steep asking price.

pytonv3 not working

image

If you don't run pytonv3 in project (pytonv3 project) root - it doesn't work.
By default systemd service created by mytoncrtl is not specify pytonv3 root.

I have tested on:
Ubuntu 18.04 / latest arch linux

Stop installing on stage 4/6

Running commands:

wget https://raw.githubusercontent.com/igroman787/mytonctrl/master/scripts/install.sh
sudo bash install.sh -m lite

Stops on stage 4:
image

some troubles

(sorry for my not perfect English)

I had some troubles using mytonctrl utility.

I use Fedora Linux and mytonctrl is not supported for my OS, so first I tried to install mytonctrl into Debian official Docker container (latest tag).

In the official Debian Docker container by default not installed some packages as "wget" and "systemd" ("systemd" is needed to run "systemctl" command). "wget" is easy to install, but install and customize "systemd" is a bit difficult.

So then mytonctrl is not simple one-script install in this way.

In the installation process raised such exception.

[100%] Built target json2tlo
Scanning dependencies of target http-proxy
[100%] Building CXX object http/CMakeFiles/http-proxy.dir/http-proxy.cpp.o
[100%] Linking CXX executable http-proxy
[100%] Built target http-proxy
Scanning dependencies of target rldp-http-proxy
[100%] Building CXX object rldp-http-proxy/CMakeFiles/rldp-http-proxy.dir/rldp-http-proxy.cpp.o
[100%] Linking CXX executable rldp-http-proxy
[100%] Built target rldp-http-proxy
[6/6] TON software installation complete
[3/4] Launching the mytoninstaller.py
[debug] 15.06.2021, 15:02:06.585 (UTC) Start WritingLogFile thread.
[debug] 15.06.2021, 15:02:06.586 (UTC) Start SelfTesting thread.
[info] 15.06.2021, 15:02:06.586 (UTC) Start program '/usr/src/mytonctrl/mytoninstaller.py'
[debug] 15.06.2021, 15:02:06.586 (UTC) start FirstMytoncoreSettings fuction
Traceback (most recent call last):
File "/usr/src/mytonctrl/mytoninstaller.py", line 535, in
General()
File "/usr/src/mytonctrl/mytoninstaller.py", line 118, in General
FirstMytoncoreSettings()
File "/usr/src/mytonctrl/mytoninstaller.py", line 202, in FirstMytoncoreSettings
Add2Systemd(name="mytoncore", user=user, start="/usr/bin/python3 /usr/src/mytonctrl/mytoncore.py")
File "/usr/src/mytonctrl/mypylib/mypylib.py", line 951, in Add2Systemd
subprocess.run(args)
File "/usr/lib/python3.7/subprocess.py", line 472, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.7/subprocess.py", line 775, in init
restore_signals, start_new_session)
File "/usr/lib/python3.7/subprocess.py", line 1522, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'systemctl': 'systemctl'
root@11bc55ae6036:~#

On the third try I got:

"[4/4] Mytonctrl installation completed"

After installation, I got some problems.

image

image

In the official Ubuntu Docker container (ubuntu:20.04) situation is the same as in the official Debian Docker container.

Then I tried to use mytonctrl in Debian (10.9.0) via VirtualBox.

image

And then I tried to use mytonctrl in Ubuntu (20.04.2.0) via VirtualBox.

image

If you need additional information you can write me on Telegram: https://t.me/mourrit.

Ошибка установки на русскоязычной версии ubuntu

При установке на ubuntu с русским языком, на этапе вызова toninstaller.sh, появляется ошибка:

Collecting psutil
  Using cached https://files.pythonhosted.org/packages/c4/b8/3512f0e93e0db23a71d82485ba256071ebef99b227351f0f5540f744af41/psutil-5.7.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ModuleNotFoundError: No module named 'setuptools'
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-rmblts3l/psutil/

Решилось путём выполнения
sudo pip3 install --upgrade pip setuptools wheel (скорее всего не обязательно)
sudo pip3 install python-language-server

Предлагаю добавить в установочный скрипт эти строчки

mytonctrl status will fail on new net

On newly initialized network getconfig 32 (last validation cycle) returns null, this causes GetConfig32 function to fail with

Error: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

Need help installing

Thought it might be as easy as sudo apt-get --purge remove mytoncontrol but no such luck. Can I get some help rolling the installation back?

[UBUNTU] MyTonCtrl Status throwing error

First of all, I'm sorry if my english is bad.

Hi everyone, i'm triyng to install myTonCtrl in my Azure VPS but after the installation process i'm getting this error when try to run the status command:

MyTonCtrl> status
Error: 'NoneType' object has no attribute 'GetValidatorStatus'

I have no idea what to do, can someone help me please?

[solved]Local db is not syncing

Hi,

Everything is seems to be ok - validator process work, network traffic work, but local db is still not syncing yet (few days) and sync time increasing =(

any advice, please?

Network load average (Mbit/s): 16.06, 16.89, 18.29
Disks load average (MB/s): sda:[0.01, 0.13%], sdb:[0.0, 0.0%]
Mytoncore status: working
Local validator status: working
Local validator out of sync: 1646046619 s
Local validator database size: 4.87 Gb

[Defect] And again: `dbLoad: [Errno 2] No such file or directory: '/usr/local/bin/mytoncore/mytoncore.db'` (#9 reappeared)

#9 defect reappeared

DUP of #9

Let's fix this, I'm an sw dev too...

TLDR

Occurs at: commit a3a8cc8

[warning] 20.10.2021, 11:26:54.008 (UTC)  <MainThread>  dbLoad: [Errno 2] No such file or directory: '/usr/local/bin/mytoncore/mytoncore.db'

pwd
/usr/src/mytonctrl

git log
commit a3a8cc8003734a326f816546025621c0024a2f3e (HEAD -> master, origin/master, origin/HEAD)
Author: Igroman787 <[email protected]>
Date:   Sat Sep 25 12:04:05 2021 +0300
...

git branch
* master

git remote get-url origin
https://github.com/igroman787/mytonctrl.git


date
+2021-10-20 11:30:24 UTC

Details and logs

Just installed mytonctrl on Ubuntu 18.04.x

under root; pwd: /home/user/vcs/ton/mytonctrlsolyanka; date: +2021-10-20 10:38:14 UTC nanoseconds:623394757 Ante De Christ; host: atthemountainkingscave

wget -t0 https://raw.githubusercontent.com/igroman787/mytonctrl/master/scripts/install.sh

// wget -t0 means infinite retries to fetch the full stream content

sudo bash install.sh -m lite

...

// -- The C compiler identification is Clang 6.0.0
// -- The CXX compiler identification is Clang 6.0.0

// a lot of C++ warns

[5/6] Downloading config files
--2021-10-20 18:57:11--  https://newton-blockchain.github.io/global.config.json
Распознаётся newton-blockchain.github.io (newton-blockchain.github.io)… 185.199.111.153, 185.199.108.153, 185.199.110.153, ...
Подключение к newton-blockchain.github.io (newton-blockchain.github.io)|185.199.111.153|:443... соединение установлено.
HTTP-запрос отправлен. Ожидание ответа… 200 OK
Длина: 27926 (27K) [application/json]
Сохранение в: «global.config.json»

global.config.json  100%[===================>]  27,27K  --.-KB/s    за 0,02s   

2021-10-20 18:57:11 (1,24 MB/s) - «global.config.json» сохранён [27926/27926]

[6/6] TON software installation complete
[3/4] Launching the mytoninstaller.py
[debug]   20.10.2021, 10:57:12.192 (UTC)  <Logging>     Start WritingLogFile thread.
[debug]   20.10.2021, 10:57:12.192 (UTC)  <SelfTesting> Start SelfTesting thread.
[info]    20.10.2021, 10:57:12.192 (UTC)  <MainThread>  Start program '/usr/src/mytonctrl/mytoninstaller.py'
[debug]   20.10.2021, 10:57:12.192 (UTC)  <MainThread>  start FirstMytoncoreSettings fuction
Created symlink /etc/systemd/system/multi-user.target.wants/mytoncore.service → /etc/systemd/system/mytoncore.service.
[debug]   20.10.2021, 10:57:12.543 (UTC)  <MainThread>  Start/restart mytoncore service
[debug]   20.10.2021, 10:57:12.549 (UTC)  <MainThread>  start CreateSymlinks fuction
[4/4] Mytonctrl installation completed
// my PS1 tells: exit status: 0


cd

pwd
/root

mytonctrl 
[warning] 20.10.2021, 11:32:19.840 (UTC)  <MainThread>  dbLoad: [Errno 2] No such file or directory: '/usr/local/bin/mytoncore/mytoncore.db'
[warning] 20.10.2021, 11:32:19.840 (UTC)  <MainThread>  dbLoad: [Errno 2] No such file or directory: '/usr/local/bin/mytoncore/mytoncore.db'
[warning] 20.10.2021, 11:32:19.840 (UTC)  <MainThread>  The config file is broken
[debug]   20.10.2021, 11:32:19.841 (UTC)  <Logging>     Start WritingLogFile thread.
[debug]   20.10.2021, 11:32:19.842 (UTC)  <SelfTesting> Start SelfTesting thread.
[debug]   20.10.2021, 11:32:19.842 (UTC)  <LocdbSaving> Start LocaldbSaving thread.
[info]    20.10.2021, 11:32:19.842 (UTC)  <MainThread>  Start program '/usr/src/mytonctrl/mytonctrl.py'
Welcome to the console. Enter 'help' to display the help menu.
MyTonCtrl> `/* I pressed ^D */` Bye.
// my PS1 tells: exit status: 0

Versions

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.6 LTS
Release:        18.04
Codename:       bionic
Ok
uname -a
Linux host1 5.4.0-89-generic #100~18.04.1-Ubuntu SMP Wed Sep 29 10:59:42 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Ok
python3 --version
Python 3.6.9
Ok
date
+2021-10-20 11:24:01 UTC
Ok

mytonctrl help

I was able to successfully install mytonctrl on Ubuntu 20.04 to try to figure out how to mine from the pow givers. I am able to start mytonctrl and check the status. I followed the instructions in the mytonctrl/docs/en/manual_ubuntu.txt (step 5. bonus) and set the powAddr and set the minerAddr, but I could not see the command to start the miner inside mytonctrl. I guess I don't understand how setting these two configurations (powAddr and minerAddr) will start the mining process, or how can I see if I am mining successfully?

Is mytonctrl what I need to use to start mining?

Ubuntu 22.04 support

Currently ton installer fails with this error:

[ 55%] Linking CXX static library librocksdb.a
[ 55%] Built target rocksdb
make[1]: *** [CMakeFiles/Makefile2:7077: crypto/CMakeFiles/fift.dir/rule] Error 2
make: *** [Makefile:1882: fift] Error 2

Ubuntu 22.04 LTS

Disable Telemetry by default

It turns out that mytonctrl sends telemetry by default without asking. TON is have built in anonymization and this effectively negates it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.