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] @pools.2021-may-25 plotnft Invalid plot header magic #6667

Closed setar closed 3 years ago

setar commented 3 years ago

git checkout pools.2021-may-25, 07d764af86cfe983cce55204630e5b85720163af

chia plotnft show

Current state: FARMING_TO_POOL
Launcher ID: f6f5989bb430dfe24c657b50861dccaaa635fd152fb9b4b867a14077685bf1b2
Target address: xch1eefq9m7gvfkcx5wjupchr9v772n72gawk0a30nyyftzafy8ru57qcfyhwg
Pool URL: pool.roboforum.ru:8080
Owner public key: 94c3ea89219e3c5dcbb2f462d59f20a45981023c0229721c5ea701e238202a089a951a3957ca48144ca24bdf62ebeea3
Relative lock height: 100 blocks
P2 singleton address (pool contract address for plotting): xch1c2vsyw4ksqu4qjv8j67axpka4625770lz7cpnkjm7589wr62clgs2qgaj2

chia plots create ... -f ... -c xch1c2vsyw4ksqu4qjv8j67axpka4625770lz7cpnkjm7589wr62clgs2qgaj2

chia plots check -g nft -n 1

2021-06-10T16:06:13.726  chia.plotting.plot_tools         : ERROR    Failed to open file /home/chia/farm/nft/plot-k32-2021-06-10-00-11-b7c515bf65d1dc0cfb488337977f382eba11483f5c6c326d222d8e96d398a537.plot. Invalid plot header magic Traceback (most recent call last):
  File "/home/chia/chia-blockchain/chia/plotting/plot_tools.py", line 189, in process_file
    prover = DiskProver(str(filename))
ValueError: Invalid plot header magic

plotnft before has right header :

2021-06-10T16:17:17.013  chia.plotting.plot_tools         : INFO     Found plot /home/chia/farm/nft/plot-k32-2021-06-03-22-06-00feb1e0632a996aa152a61ff25447af73b3ba2561ebc6259513910fa8d0fbc6.plot of size 32
2021-06-10T16:17:17.026  chia.plotting.plot_tools         : INFO     Found plot /home/chia/farm/nft/plot-k32-2021-06-02-20-36-102d7bb318d6c72b8f0f487ae1167f22d02b56aae278a3b96fcc66fd3a5f6c83.plot of size 32
2021-06-10T16:17:17.044  chia.plotting.plot_tools         : INFO     Found plot /home/chia/farm/nft/plot-k32-2021-06-03-14-46-fefaacee777b1156ca2061242a1bdd8100d37b1a9e52853f8872641a3c9e349c.plot of size 32
2021-06-10T16:17:17.057  chia.plotting.plot_tools         : INFO     Found plot /home/chia/farm/nft/plot-k32-2021-06-03-00-58-e7b64a9df57fbff1d0e34ac204f07b8dea217e705cf35c524d740d3e0013f372.plot of size 32
2021-06-10T16:17:17.085  chia.plotting.plot_tools         : INFO     Found plot /home/chia/farm/nft/plot-k32-2021-06-03-00-59-0ab750b773ef7f3b6403e06112546b052e47889ada89e4a200a1eb14c569c9a0.plot of size 32
2021-06-10T16:17:17.114  chia.plotting.plot_tools         : INFO     Found plot /home/chia/farm/nft/plot-k32-2021-06-03-17-22-962dd20fe0089d38d1c9d7b79be7e4ae57d618a68d2c61b86615e190f759afb6.plot of size 32
2021-06-10T16:17:17.194  chia.plotting.plot_tools         : INFO     Found plot /home/chia/farm/nft/plot-k32-2021-06-07-01-44-4ff05258982c22ba7f84f8af654136f639c0b06e7469045de88864ba1bbc007b.plot of size 32
2021-06-10T16:17:17.256  chia.plotting.plot_tools         : INFO     Found plot /home/chia/farm/nft/plot-k32-2021-06-03-08-12-64436aa03623b9f4fc25deb9c30d42fc4343b75a40d8015a0d9d60fb8a6db32c.plot of size 32
2021-06-10T16:17:17.303  chia.plotting.plot_tools         : INFO     Found plot /home/chia/farm/nft/plot-k32-2021-06-07-01-14-4acba06db7386de4e33d29d065b52d4d7954d573bc70b381e4f00cc8f6e05fdb.plot of size 32
2021-06-10T16:17:17.317  chia.plotting.plot_tools         : INFO     Found plot /home/chia/farm/nft/plot-k32-2021-06-04-00-15-41df1ee27774462777de45d739736959c1a8bb8571c8c16e8d1daacaad44f93d.plot of size 32
2021-06-10T16:17:17.328  chia.plotting.plot_tools         : INFO     Found plot /home/chia/farm/nft/plot-k32-2021-06-02-15-05-00b303e87b48e394c4e91633ac8498527c83fc798e6f917fb326449349ccddc3.plot of size 32
2021-06-10T16:17:17.329  chia.plotting.plot_tools         : INFO     Found plot /home/chia/farm/nft/plot-k32-2021-06-03-07-57-adbbaf614913e32783abfc0555b04cbc12c4dbbcff77c4b07cc47763f8f93129.plot of size 32
2021-06-10T16:17:17.342  chia.plotting.plot_tools         : INFO     Found plot /home/chia/farm/nft/plot-k32-2021-06-02-15-10-ec5a65e72b2b9d4a94e9f8522ab3ab80241226c43cdbd290e0b4634550e4b841.plot of size 32
2021-06-10T16:17:17.349  chia.plotting.plot_tools         : INFO     Found plot /home/chia/farm/nft/plot-k32-2021-06-03-07-42-bea80cfa3119d737319fa0caced47d084977ee6de0f24305b2119560ecf69811.plot of size 32
2021-06-10T16:17:17.351  chia.plotting.plot_tools         : INFO     Found plot /home/chia/farm/nft/plot-k32-2021-06-03-09-58-832e8e3cd94f1856056af8f2247fdcd99a265459fe8615fc2ac64613cdd401c3.plot of size 32

i do update from repo twice per day

setar commented 3 years ago

very strange: good and bad fields appear at the same time ...

 chia plots check -n1 -g nft 2>&1 |grep 06-09
2021-06-11T01:41:06.101  chia.plotting.plot_tools         : ERROR    Failed to open file /home/chia/farm/nft/plot-k32-2021-06-09-17-53-21e772c360794802f0cc2832b21fa575642fea07b24aa4b9328fee26be0a26b1.plot. Invalid plot header magic Traceback (most recent call last):
2021-06-11T01:41:06.273  chia.plotting.plot_tools         : ERROR    Failed to open file /home/chia/farm/nft/plot-k32-2021-06-09-17-38-40242dc8d0cfc007082c730e15ea323e1af4d2a19ef8a6d8922eb9dc2875f1cb.plot. Invalid plot header magic Traceback (most recent call last):
2021-06-11T01:41:06.449  chia.plotting.plot_tools         : INFO     Found plot /home/chia/farm/nft/plot-k32-2021-06-09-18-23-26f2632a3a9c76d70591dc12c48033c81265dc9ba6b91dcec96484f362e3d317.plot of size 32
2021-06-11T01:41:06.472  chia.plotting.plot_tools         : ERROR    Failed to open file /home/chia/farm/nft/plot-k32-2021-06-09-18-08-d5705f3fe086cece24ca3d2ae6aaea976e98ce6a7ae5f2323eb443515c0365e3.plot. Invalid plot header magic Traceback (most recent call last):
2021-06-11T01:41:06.540  chia.plotting.plot_tools         : ERROR    Failed to open file /home/chia/farm/nft/plot-k32-2021-06-09-23-34-19d4fe2553efa00684395de7f8ab8ecd9812ed7acb08f345b1b809ffad589c99.plot. Invalid plot header magic Traceback (most recent call last):
2021-06-11T01:41:06.809  chia.plotting.plot_tools         : ERROR    Failed to open file /home/chia/farm/nft/plot-k32-2021-06-09-23-56-27a86952065ee59b6b9bd84cb5d4222d35adad2fa6971d0e46b9b0fd9b5d8dbc.plot. Invalid plot header magic Traceback (most recent call last):
2021-06-11T01:41:07.234  chia.plotting.check_plots        : INFO     Testing plot /home/chia/farm/nft/plot-k32-2021-06-09-18-23-26f2632a3a9c76d70591dc12c48033c81265dc9ba6b91dcec96484f362e3d317.plot k=32

I think I found the reason for the errors: there was a pending output in the bad fields (not enough space on the temp disk) bad plots

$ cat  /home/chia/logs/swar/bigstore_2021-06-09_23_56_30_486187.log | grep Only
Only wrote 973 of 8325 bytes at offset 43599889401 to "/home/chia/farm/nft/plot-k32-2021-06-09-23-56-27a86952065ee59b6b9bd84cb5d4222d35adad2fa6971d0e46b9b0fd9b5d8dbc.plot.2.tmp" with length 43599890374. Error 1. Retrying in five minutes.
Only wrote 457 of 8325 bytes at offset 68077304151 to "/home/chia/farm/nft/plot-k32-2021-06-09-23-56-27a86952065ee59b6b9bd84cb5d4222d35adad2fa6971d0e46b9b0fd9b5d8dbc.plot.2.tmp" with length 68077304608. Error 1. Retrying in five minutes.
Only wrote 854 of 8325 bytes at offset 85865897751 to "/home/chia/farm/nft/plot-k32-2021-06-09-23-56-27a86952065ee59b6b9bd84cb5d4222d35adad2fa6971d0e46b9b0fd9b5d8dbc.plot.2.tmp" with length 85865898605. Error 1. Retrying in five minutes.
$ cat  /home/chia/logs/swar/bigstore_2021-06-09_17_53_04_021232.log | grep Only
Only wrote 235 of 8325 bytes at offset 77125061307 to "/home/chia/farm/nft/plot-k32-2021-06-09-17-53-21e772c360794802f0cc2832b21fa575642fea07b24aa4b9328fee26be0a26b1.plot.2.tmp" with length 77125061542. Error 1. Retrying in five minutes.

and good plots

$ cat  /home/chia/logs/swar/bigstore_2021-06-09_18_23_05_653498.log | grep Only
$