Qwinn1 / forktools

Several command line tools to greatly simplify CLI maintenance of one or many forks of Chia crypto coins
GNU General Public License v3.0
39 stars 8 forks source link

forklist command detects wrong chia-blockchain status #23

Open buglantiss opened 2 years ago

buglantiss commented 2 years ago
user@chia-machine:~$ echo "--- forklist check:" && forklist chia | sed '/^$/d' && echo "--- now chia internal check:" && chia show -s | grep Status && chia version
--- forklist check:
'forklist chia' initiated on Mon Apr 18 21:49:25 CEST 2022...
Farmer count: 0
Harvester count: 0
Stopped count: 1
chia
--- now chia internal check:
Current Blockchain Status: Full Node Synced
1.3.2.dev162
Qwinn1 commented 2 years ago

Are you trying to run chia within a VM and monitoring it (running forktools) from outside the VM? Because that could yield this result. To not show as "stopped", forktools has to be able to run ps -ef and see the farmer and full node processes.

Qwinn1 commented 2 years ago

Show me the output of ps -ef | grep chia please.

buglantiss commented 2 years ago

chia is running normally, not inside VM

on another machine the problem still persists:

user@chia-machine:~$ forkmon
'forkmon' initiated on Tue Apr 26 02:05:59 CEST 2022...

------------------------------------------------------------------- FARMERS: 5 -------------------------------------------------------------------
                                  Procs                                                  Memory   NoHarv       Address               Last
Farmer            Version         DNFHW  Status   #Peers   #Plots  Height  Netspace       Usage   Errors       Balance    ETW        Block   Effort
---------------------------------------------------------------------------------------------------------------------------------------------------
chives            1.2.11+og.1.1.0 1+111  Farming      11     5416 1358644   270 PiB     2343 MB       0       5078 XCC    1d4h    17h23m ago    60%
flax              0.1.8+og.1.1.0  1+111  Farming       8     7153 1484763   2.6 EiB     1120 MB      19        291 XFX    1d3h    113d9h ago 10038%
hddcoin           2.0.2+og.1.1.0  1+111  Farming       8     7153 1371780   2.5 EiB     2738 MB       3        178 HDD    18h53m 114d20h ago 14592%
sit               Venus 1.2.2(Ven 1+111  Farming       4     7153  788676   486 PiB     2125 MB     159          0 SIT    3h46m      Never     303%
stai              1.2.2+og.1.1.0  1+111  Farming       8     7153  969531   1.6 EiB      993 MB      66          1 STAI   11h6m     1h7m ago    10%

------------------------------------------------------------- HARVESTERS: 5 ----------------------------------------------------------------

                                                               Plot    Plot   Average    Average    Longest    Longest   5 Sec  5 Sec  Proofs
                                  Procs                Last  Errors  Errors  Response   Response   Response   Response   Warns  Warns   Since
Harvester         Version         DNFHW   #Plots    Harvest   Today   Y/Day     Today  Yesterday      Today  Yesterday   Today  Y/Day   Y/Day
---------------------------------------------------------------------------------------------------------------------------------------------
chives            1.2.11+og.1.1.0 1+111       56     7s ago       0       0     1.09s      0.54s      8.22s      7.14s       3      5      16
flax              0.1.8+og.1.1.0  1+111     5349     2s ago       0       0     3.00s      0.00s     15.44s      0.00s     173      0    1743
hddcoin           2.0.2+og.1.1.0  1+111     5349    12s ago       0       0     9.14s     28.75s     59.13s    137.64s    3899    994    2377
sit               Venus 1.2.2(Ven 1+111     5349     1s ago       0     748    88.55s     80.91s    749.81s    847.61s    6411  26962       0
stai              1.2.2+og.1.1.0  1+111     5349     2s ago       0       2     2.37s      3.89s     11.92s     24.68s     140    229    3053

---------- STOPPED FORKS: 1 -----------
Stopped                           Procs
Forks             Version         DNFHW
---------------------------------------
chia              1.3.4+og.1.1.0  00000

below you can check the output of ps -ef | grep chia

user@chia-machine:~$ ps -ef | grep chia
user        154794       1  0 kwi25 ?        00:01:03 chia_daemon
user        528994  154794  3 01:41 ?        00:00:48 chia_harvester
user        528999  154794  0 01:41 ?        00:00:11 chia_farmer
user        529492  154794  6 01:41 ?        00:01:27 chia_full_node
user        529573  154794  0 01:41 ?        00:00:09 chia_wallet
user        529762  529492  0 01:41 ?        00:00:07 chia_full_node_worker
user        529763  529492  0 01:41 ?        00:00:08 chia_full_node_worker
user        530744  529492  0 01:42 ?        00:00:00 chia_full_node_worker
user        530745  529492  0 01:42 ?        00:00:00 chia_full_node_worker
user        530746  529492  0 01:42 ?        00:00:01 chia_full_node_worker
user        530747  529492  0 01:42 ?        00:00:00 chia_full_node_worker
user        530748  529492  0 01:42 ?        00:00:00 chia_full_node_worker
user        530750  529492  0 01:42 ?        00:00:01 chia_full_node_worker
user        530751  529492  0 01:42 ?        00:00:01 chia_full_node_worker
user        530752  529492  0 01:42 ?        00:00:01 chia_full_node_worker
user        530753  529492  0 01:42 ?        00:00:00 chia_full_node_worker
user        530754  529492  0 01:42 ?        00:00:00 chia_full_node_worker
user        530755  529492  0 01:42 ?        00:00:00 chia_full_node_worker
user        530756  529492  0 01:42 ?        00:00:00 chia_full_node_worker
user        530757  529492  0 01:42 ?        00:00:01 chia_full_node_worker
user        530758  529492  0 01:42 ?        00:00:00 chia_full_node_worker
user        530759  529492  0 01:42 ?        00:00:00 chia_full_node_worker
user        530760  529492  0 01:42 ?        00:00:00 chia_full_node_worker
user        530761  529492  0 01:42 ?        00:00:00 chia_full_node_worker
user        530762  529492  0 01:42 ?        00:00:00 chia_full_node_worker
user        530763  529492  0 01:42 ?        00:00:00 chia_full_node_worker
user        530764  529492  0 01:42 ?        00:00:00 chia_full_node_worker
user        530765  529492  0 01:42 ?        00:00:01 chia_full_node_worker
user        530766  529492  0 01:42 ?        00:00:00 chia_full_node_worker
user        530767  529492  0 01:42 ?        00:00:00 chia_full_node_worker
user        530768  529492  0 01:42 ?        00:00:00 chia_full_node_worker
user        583058  483342  0 02:03 pts/2    00:00:00 grep --color=auto chia
Qwinn1 commented 1 year ago

Totally apologize that I lost track of this. On the other hand, I've made a lot of changes and revisions to the way that logic works since (on testing branch anyway - run bash installfttest.sh to get onto it) and I'd be surprised if you were still having this issue. Do let me know if it ever resolved for you, or not, and either way, apologies.