ton-blockchain / mytonctrl

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

Failed update removes mytonctrl #350

Open FalcoXYZ opened 4 weeks ago

FalcoXYZ commented 4 weeks ago

During updating of mytonctrl using update, the network connection of the node had a hiccup. This caused the git clone command to stop working, which resulted in mytonctrl being completely removed from the system.

I would suggest maybe cloning the repo to a temp directory, before actually removing it from the system. This way, you can be sure that mytonctrl is fully cloned before removing it. Below is the log file.

https://github.com/ton-blockchain/mytonctrl.git -> master
Cloning into 'mytonctrl'...
remote: Enumerating objects: 3962, done.
remote: Counting objects: 100% (110/110), done.
remote: Compressing objects: 100% (75/75), done.
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
error: 10 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

ls /usr/src/mytonctrl
ls: cannot access '/usr/src/mytonctrl': No such file or directory

mytonctrl
/usr/bin/python3: No module named mytonctrl
ingria commented 4 days ago

I have also encountered this problem