Hello!
I need some tips on how should I deal with a plot file...
ls -altmnt3/plots/XXXXXXXXXXXXXXXXXXXX_9498624_5578752_4096
-rw-r--r-- 1 root root 1459742441472 Sep 20 22:19mnt3/plots/XXXXXXXXXXXXXXXXXXXX_9498624_5578752_4096
The miner process always outputs error reading from file
e.printStackTrace() reveals to be an
java.io.EOFException
at java.io.RandomAccessFile.readFully(RandomAccessFile.java:421)
at java.io.RandomAccessFile.readFully(RandomAccessFile.java:399)
at pocminer_pool.ScoopReader.readFile(ScoopReader.java:35)
................
while f.readFully(chunk);
chunk (rs.staggeramt * MiningPlot.SCOOP_SIZE) is 262144 bytes = 256 kb
This plot's size in bytes is 1459742441472, thus 1459742441472 262144 = 5568475.5 (does not divide fully), so the java.io.EOFException is totally legit.
5578752 plots * 256kb = 1462436364288, but my plot actually is 2693922816 bytes short. Maybe the plotter process got killed, or got bad I/O,and never got to write the full file.
I'm thinking about deleting the last 131072 bytes from the file. Do I also need to rename the plot to XXXXXXXXXXXXXXXXXXXX_9498624_5568475_4096 (changed the nr of nounces to reflect new size) ?
Yes, it reads based on what it sees in the filename, and your numbers look correct. If you don't care about the tiny waste in space, you can also just do the rename without deleting the extra bytes, or you can just leave it alone since it will still use all the chunks it can read.