Chia-Network / bladebit

A high-performance k32-only, Chia (XCH) plotter supporting in-RAM and disk-based plotting
Apache License 2.0
337 stars 108 forks source link

My plots don't appear to count towards pool plots in the Chia GUI #125

Closed TheOzzOne closed 2 years ago

TheOzzOne commented 2 years ago

Unsure if this is related to the issue(s) in #122 where I reported bladebit stopped respecting destination file path.

It no longer appears that bladebit respects the pool contract address via the -c flag, all of the plots I have made appear to be solo plots, and no longer count toward my pool total in the Chia GUI, although they still appear to be valid plots, but not associated to an NFT.

Plots created with MadMax still appear to increase the count of plots, leading me to believe it's not a Chia GUI issue.

I am unsure how to test or prove this further, but happy to help troubleshoot in any way that I can.

guitengyue commented 2 years ago

I ran into this problem just like you

guitengyue commented 2 years ago
QQ20211012-232339@2x

the plots which use bladebit are all invaid.

harold-b commented 2 years ago

There haven't been any changes at all to nft contract-based memo generation or argument parsing since version 1. See src/main.cpp:here: https://github.com/Chia-Network/bladebit/compare/24501bb..8bb92eb

Perhaps you are running into file permissions issues.

Or perhaps you are running into something similar to what these folks are running into.

harold-b commented 2 years ago

the plots which use bladebit are all invaid.

Try checking your file permissions and the log under .chia/logs. Otherwise you might be having hardware/network issues or corrupted them while copying. What result did you get when running chia plots check?

guitengyue commented 2 years ago

the plots which use bladebit are all invaid.

Try checking your file permissions and the log under .chia/logs. Otherwise you might be having hardware/network issues or corrupted them while copying. What result did you get when running chia plots check?

I use freenas to store files and write directly to the freenas pool with nfs. Now I have deleted the files,I will try tomorrow. thank you

guitengyue commented 2 years ago

the plots which use bladebit are all invaid.

Try checking your file permissions and the log under .chia/logs. Otherwise you might be having hardware/network issues or corrupted them while copying. What result did you get when running chia plots check?

2021-10-12T20:57:27.976 harvester chia.plotting.manager   : ERROR    Failed to open file \\192.168.0.150\gx17-24\plot-k32-2021-10-12-20-40-5ce6571561133df0c444dd45a1bc28fdd1ed4660f2dd9a25d22b8154465959fe.plot. Invalid file \\192.168.0.150\gx17-24\plot-k32-2021-10-12-20-40-5ce6571561133df0c444dd45a1bc28fdd1ed4660f2dd9a25d22b8154465959fe.plot Traceback (most recent call last):
  File "chia\plotting\manager.py", line 290, in process_file
ValueError: Invalid file \\192.168.0.150\gx17-24\plot-k32-2021-10-12-20-40-5ce6571561133df0c444dd45a1bc28fdd1ed4660f2dd9a25d22b8154465959fe.plot

2021-10-12T20:57:28.934 harvester chia.plotting.manager   : ERROR    Failed to open file \\192.168.0.150\gx17-24\plot-k32-2021-10-12-19-59-55017ed58998f847f3b48c0acb7054cf885322d4fb4d50bb86e27b2f153999aa.plot. Invalid file \\192.168.0.150\gx17-24\plot-k32-2021-10-12-19-59-55017ed58998f847f3b48c0acb7054cf885322d4fb4d50bb86e27b2f153999aa.plot Traceback (most recent call last):
  File "chia\plotting\manager.py", line 290, in process_file
ValueError: Invalid file \\192.168.0.150\gx17-24\plot-k32-2021-10-12-19-59-55017ed58998f847f3b48c0acb7054cf885322d4fb4d50bb86e27b2f153999aa.plot

how can i modify the file permissions?

harold-b commented 2 years ago

how can I modify the file permissions?

Sorry, looks like you're on windows. I assumed Linux.

The logged output comes from chiapos's DiskProver at this line. It simply fails to open the file using a standard input stream. That is, it is not anything bladebit-related. Something is happening in your setup where chia does not have the ability to open files on that network-mapped path.

guitengyue commented 2 years ago

how can I modify the file permissions?

Sorry, looks like you're on windows. I assumed Linux.

The logged output comes from chiapos's DiskProver at this line. It simply fails to open the file using a standard input stream. That is, it is not anything bladebit-related. Something is happening in your setup where chia does not have the ability to open files on that network-mapped path.

no ,I run bladebit on ubuntu20.04,and mount the freenas pool storage by nfs share to the ubuntu. And I use chia gui which on windows to farm the plot on freenas by smb share It is normal to use maxmad in the same way.

harold-b commented 2 years ago

Got it, the backslashes made me assume otherwise.

In which case, if it's a permissions issue you'll have to ensure they are readable by the same user running chia by using chmod and chown.

Could be something like:

sudo chown USER:USER PLOT_FILE
sudo chmod 440 PLOT_FILE

Where USER is the user running the chia process and PLOT_FILE is the plot file path.

TheOzzOne commented 2 years ago

Sorry I haven't been active in this thread, it's been a hell of a week. I hope to test your suggestions.

guitengyue commented 2 years ago

Got it, the backslashes made me assume otherwise.

In which case, if it's a permissions issue you'll have to ensure they are readable by the same user running chia by using chmod and chown.

Could be something like:

sudo chown USER:USER PLOT_FILE
sudo chmod 440 PLOT_FILE

Where USER is the user running the chia process and PLOT_FILE is the plot file path.

i slove it. thank you very much!

TheOzzOne commented 2 years ago

I will do more testing tonight, but changing the permissions and user / group ownership did not resolve the issue for me.

guitengyue commented 2 years ago

I will do more testing tonight, but changing the permissions and user / group ownership did not resolve the issue for me.

The first time I mkdir the destination hdd in mnt, so i must use "sudo", then I use "chmod" changing the permissions, everything is ok now

TheOzzOne commented 2 years ago

Without making any changes, this now appears to be resolved. I created an additional 28 plots to test, and after rebooting the Chia GUI, they appear under the correct NFT for the pool I am plotting. Very strange, but very obviously a chia problem, not a bladebit problem.

Thank you for your patience on this issue.

harold-b commented 2 years ago

No problem, glad it was resolved.