guydavis / machinaris

An easy-to-use WebUI for crypto plotting and farming. Offers Bladebit, Gigahorse, MadMax, Chiadog and Plotman in a Docker container. Supports Chia, MMX, Chives, Flax, and HDDCoin among others.
Apache License 2.0
339 stars 69 forks source link

Plot Count Does Not Update #264

Closed cjackson234 closed 3 years ago

cjackson234 commented 3 years ago

Describe the bug Total Plots does not update on the index page. The Farming tab (/farming/plots) shows the correct count.

To Reproduce

Steps to reproduce the behavior, e.g.:

  1. Wait for app to finish loading
  2. Add plots to a watched folder
  3. Farming tab updates
  4. Index does not

Expected behavior I would expect the page would periodically poll to updated

System setup:

guydavis commented 3 years ago

Hi, sorry to hear you're encountering this. Please attach your log file: /mnt/user/appdata/machinaris/machinaris/logs/apisrv.log

Also, please enter the Docker tab console for Machinaris (via the Unraid UI) and type: chia farm summary. Please attach output here.

Thanks.

cjackson234 commented 3 years ago

apisrv.log

chia farm summary

Farming status: Farming Total chia farmed: 0.0 User transaction fees: 0.0 Block rewards: 0.0 Last height farmed: 0 Local Harvester 1237 plots of size: 122.429 TiB Remote Harvester for IP: 192.168.86.208 171 plots of size: 16.924 TiB Plot count for all harvesters: 1408 Total size of plots: 139.353 TiB Estimated network space: 33.893 EiB Expected time to win: 1 month and 3 weeks

image

This disparity increases over time. Only a restart of the container fixes it for me.

guydavis commented 3 years ago

Thanks for the log. It contains no errors on updating status, however there are a number of duplicated plot listings, perhaps due to mounting. Would you mind sharing from your Machinaris fullnode/controller:

chia plots show
env | grep plots_dir
ls /

I see you have a remote harvester. Please also share the top-level Workers page, along with the specific Worker page for each of your two workers (fullnode & harvester). In particular, I'm interested to see if you have a Warning displayed for either/both of them.

cjackson234 commented 3 years ago

env | grep plots_dir ls /Directories where plots are being searched for: Note that subdirectories must be added manually Add with 'chia plots add -d [dir]' and remove with 'chia plots remove -d [dir]' Scan and check plots with 'chia plots check'

/plots /plots2 /plots3 /plots4 /plots5 /plots6 /plots7 /plots8 /plots9 plots_dir=/plots:/plots2:/plots3:/plots4:/plots5:/plots6:/plots7:/plots8:/plots9

: dev id_rsa machinaris plots2 plots7 run usr bin etc lib media plots3 plots8 sbin var boot flax-blockchain lib32 mnt plots4 plots9 srv chia-blockchain flaxdog lib64 opt plots5 proc sys chiadog home libx32 plots plots6 root tmp

cjackson234 commented 3 years ago

image

cjackson234 commented 3 years ago

image

cjackson234 commented 3 years ago

image

cjackson234 commented 3 years ago

It's important to note the the new plots are being adding to the full node NOT the harvester only node.

guydavis commented 3 years ago

Interesting, so I recommend is correcting the duplicate plots being held on both your /plots5 and /plots9 location, plus also seems like '/plots' and '/plots2'. Correcting the duplication should help reveal further issues.

Here are some selected examples from the apisrv.log you provided:

[2021-09-01 16:16:49 -0400] [1347] [INFO] Skipping addition of plot at /plots9/plot-k32-2021-08-29-22-10-8a969f93f348c95048c9085467cbf96463b28b1b1abc624505658c72b215c065.plot because same plot_id found at /plots5/plot-k32-2021-08-29-22-10-8a969f93f348c95048c9085467cbf96463b28b1b1abc624505658c72b215c065.plot
[2021-09-01 16:16:49 -0400] [1347] [INFO] Skipping addition of plot at /plots2/plot-k32-2021-07-18-05-06-67eb287ae9b66f33e31f2bbf3c8706eecc5cd38522e96c641d28140cf1916d6f.plot because same plot_id found at /plots/plot-k32-2021-07-18-05-06-67eb287ae9b66f33e31f2bbf3c8706eecc5cd38522e96c641d28140cf1916d6f.plot
guydavis commented 3 years ago

Any luck with this? I also recommend trying the latest ":test" image by adding that suffix to the Docker run/compose you are launching with.

cjackson234 commented 3 years ago

None. I'll try the test branch shortly.

On Sat, Sep 4, 2021, 11:12 AM Guy Davis @.***> wrote:

Any luck with this? I also recommend trying the latest ":test https://github.com/guydavis/machinaris/wiki/Releases#release-streams" image by adding that suffix to the Docker run/compose you are launching with.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/guydavis/machinaris/issues/264#issuecomment-912989676, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAU2FXHWR473UP52PWKX32DUAIZMLANCNFSM5DHVUWCA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

cjackson234 commented 3 years ago

Farming tab - Showing 1 to 25 of 172 entries

Summary tab - 1513 plots

guydavis commented 3 years ago

Right, you have 3 Machinaris installs as per screenshot above. Did you upgrade all 3 or just the Machinaris fullnode/controller named 'Elias'?

guydavis commented 3 years ago

Interesting, so I recommend is correcting the duplicate plots being held on both your /plots5 and /plots9 location, plus also seems like '/plots' and '/plots2'. Correcting the duplication should help reveal further issues.

Here are some selected examples from the apisrv.log you provided:

[2021-09-01 16:16:49 -0400] [1347] [INFO] Skipping addition of plot at /plots9/plot-k32-2021-08-29-22-10-8a969f93f348c95048c9085467cbf96463b28b1b1abc624505658c72b215c065.plot because same plot_id found at /plots5/plot-k32-2021-08-29-22-10-8a969f93f348c95048c9085467cbf96463b28b1b1abc624505658c72b215c065.plot
[2021-09-01 16:16:49 -0400] [1347] [INFO] Skipping addition of plot at /plots2/plot-k32-2021-07-18-05-06-67eb287ae9b66f33e31f2bbf3c8706eecc5cd38522e96c641d28140cf1916d6f.plot because same plot_id found at /plots/plot-k32-2021-07-18-05-06-67eb287ae9b66f33e31f2bbf3c8706eecc5cd38522e96c641d28140cf1916d6f.plot

Also, did you sort out the duplicate plots that seem to be in multiple folders as per this comment from a few days back?

cjackson234 commented 3 years ago

Just the full node Elias gets updated. The plotter wouldn't effect counts and the harvester GlaDOS is all that is listed in the counts on the farmer screen. That means that Elias on the new code branch is likely the issue.

cjackson234 commented 3 years ago

Not sure dupes are what is causing this, but I can test that quickly as well.

guydavis commented 3 years ago

Please attach: machinaris/logs/apisrv.log

cjackson234 commented 3 years ago

apisrv.log

guydavis commented 3 years ago

Hi, thanks for the logs. I see database lock issues, so let's reset it:

  1. Stop Machinaris container
  2. Delete this file: ~/.machinaris/machinaris/dbs/machinaris.db
  3. Unraid Admin UI - Docker tab - edit Machinaris container, add :test to end of the Repository line.
  4. Start Machinaris conainer

Give it about 10-15 minutes to get started fully and populate some status. Please let me know if that helps.

cjackson234 commented 3 years ago

Updating counts still does not work. Also, the farming page is incorrect again.

guydavis commented 3 years ago

Alright, please upgrade to the latest release v0.5.5 of Machinaris (on all your installs, controller and workers). Then please allow 30 minutes for status to update. Please share screenshots of the following using the latest version:

cjackson234 commented 3 years ago

image image image

cjackson234 commented 3 years ago

That's better, but its still updating. I have to restart a few times a day to get counts to update

guydavis commented 3 years ago

Great. Good to see counts agreeing. Latest is version 0.5.6. Please update all your Machinaris installs when you get a chance.