Chia-Network / chia-blockchain

Chia blockchain python implementation (full node, farmer, harvester, timelord, and wallet)
Apache License 2.0
10.82k stars 2.03k forks source link

[BUG] Invalid number of bytes 2 on retreived plots #4212

Closed happycouak closed 3 years ago

happycouak commented 3 years ago

Describe the bug Context: a farmer and a harvester, both with same keychain (.chia copied from farmer to harvester), (initialized on the farmer, added to the harvester with the mnemonic words) . The harvester creats plots and send them over internet to the farmer.

When the farmer check plots (chia plots check), I get the error on every plots produced by the remote harvester:

Failed to open file /nfs2/ok/plot-k25-2021-05-08-18-02-e0a0db86bf4fe95dce65e6b30257a6b2793eda58079e3fc746431dda02a8b1ab.plot. Invalid number of bytes 2 Traceback (most recent call last):
  File "/home/ubuntu/chia-blockchain/chia/plotting/plot_tools.py", line 208, in process_file
    ) = parse_plot_info(prover.get_memo())
  File "/home/ubuntu/chia-blockchain/chia/plotting/plot_tools.py", line 82, in parse_plot_info
    raise ValueError(f"Invalid number of bytes {len(memo)}")
ValueError: Invalid number of bytes 2

MD5 if files match on farmer and harvester. I have also tried all possibility with "-a" "-f" and "-p"

To Reproduce Steps to reproduce the behavior:

  1. install a farmer and a harvester with the same .chia
  2. produce a plot on the harvester and transfer it to the farmer
  3. "chia plots check" on the farmer
  4. See error

Expected behavior Plots received on the farmer from the harvester are OK

Screenshots

happycouak commented 3 years ago

Anyone on this ?

stigmat4j commented 3 years ago

Same problem.

@DaFresh did you solve this problem?

happycouak commented 3 years ago

Yes, I had used a wrong plublic farmer key (actually a bug in my script, using a int instead of the key).

stigmat4j commented 3 years ago

@DaFresh you don't know if it is possible to fix plots without a public key?