Closed asmexcaliburwoods closed 1 year ago
ls -alR /usr/local/bin/mytoncore/
/usr/local/bin/mytoncore/:
итого 12K
drwxr-xr-x 3 root root 4,0K 2021-10-20 18:58:04 +08 nanoseconds:248967123 ADC .
drwxr-xr-x 5 root root 4,0K 2021-10-20 18:58:04 +08 nanoseconds:248967123 ADC ..
drwxr-xr-x 2 root root 4,0K 2021-10-20 18:58:04 +08 nanoseconds:248967123 ADC wallets
/usr/local/bin/mytoncore/wallets:
итого 8,0K
drwxr-xr-x 2 root root 4,0K 2021-10-20 18:58:04 +08 nanoseconds:248967123 ADC .
drwxr-xr-x 3 root root 4,0K 2021-10-20 18:58:04 +08 nanoseconds:248967123 ADC ..
Ok
ls -alR /usr/local/bin/mytonctrl/
/usr/local/bin/mytonctrl/:
итого 20K
drwxr-xr-x 2 root root 4,0K 2021-10-20 18:58:14 +08 nanoseconds:260871270 ADC .
drwxr-xr-x 5 root root 4,0K 2021-10-20 18:58:04 +08 nanoseconds:248967123 ADC ..
-rw-r--r-- 1 root root 296 2021-10-20 19:41:32 +08 nanoseconds:789011396 ADC mytonctrl.db
-rw-r--r-- 1 root root 2,9K 2021-10-20 19:42:04 +08 nanoseconds:293008851 ADC mytonctrl.log
-rw-r--r-- 1 root root 5 2021-10-20 19:42:03 +08 nanoseconds:293009126 ADC mytonctrl.pid
Ok
I feel that MyPyClass
gets created with arg file=".../mytonctrl/"
at some places, and gets created with with arg file=".../mytoncore/"
at some other places, and https://github.com/igroman787/mypylib/blob/e194d7e8e3151549f56419d6377c16cb1e2f2e8f/mypylib.py#L306 MyPyClass::GetMyFullName
returns wrong value.
I launch mytonctrl
under root
.
The .db
file exists at /usr/local/bin/mytonctrl/mytonctrl.db
and the mytonctrl
command indirectly (via MyPyClass::dbLoad
https://github.com/igroman787/mypylib/blob/e194d7e8e3151549f56419d6377c16cb1e2f2e8f/mypylib.py#L531 ) tries to read /usr/local/bin/mytoncore/mytoncore.db
where it doesn't exist.
UPDATE: After many rounds of rm
of a lot of things and after many reinstalls with edited .py
files and installers scripts files, this is no longer the case, see the following comment.
One workaround is:
sudo cp -v /usr/local/bin/mytoncore/mytoncore.db /usr/local/bin/mytonctrl/mytonctrl.db
You can also verify that you have a correctly initialized mytoncore db:
sudo cat /usr/local/bin/mytoncore/mytoncore.db
Its output should be like:
{
"config": {
"logLevel": "debug",
"isLocaldbSaving": true
},
"fift": {
"appPath": "/usr/bin/ton/crypto/fift",
"libsPath": "/usr/src/ton/crypto/fift/lib",
"smartcontsPath": "/usr/src/ton/crypto/smartcont"
},
"liteClient": {
"appPath": "/usr/bin/ton/lite-client/lite-client",
"configPath": "/usr/bin/ton/global.config.json"
},
"miner": {
"appPath": "/usr/bin/ton/crypto/pow-miner"
},
"sendTelemetry": false
}
Problem No such file or directory: '/usr/local/bin/mytoncore/mytoncore.db'
may pop up due to the fact that the program is running under a different user. For example, it was installed by the superuser. Then the configuration file will be located here: /usr/local/bin/mytoncore/mytoncore.db
. And when run as a user, the configuration file will be expected here: /home/{user}/.local/share/mytoncore/mytoncore.db
Another warning message No such file or directory: '/usr/local/bin/mytonctrl/mytonctrl.db
may appear when you first start the program - this is normal
#9
defect reappearedDUP of #9
Let's fix this, I'm an sw dev too...
TLDR
Occurs at: commit a3a8cc8003734a326f816546025621c0024a2f3e
Details and logs
Just installed
mytonctrl
on Ubuntu 18.04.xunder 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 contentsudo 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
Versions