swar / Swar-Chia-Plot-Manager

This is a Cross-Platform Plot Manager for Chia Plotting that is simple, easy-to-use, and reliable.
GNU General Public License v3.0
1.26k stars 388 forks source link

Wrong Free space info causes jobs skipped #1178

Open leicao-me opened 3 years ago

leicao-me commented 3 years ago

swar manager log: (it says low free space on /media/ssd4, 43,619,629,568 bytes)

2021-06-09 23:06:52 [INFO]: Starting new plot for job: 4 2021-06-09 23:06:52 [INFO]: Job log file path: /home/lei/chialogs/4_2021-06-09_23_06_52_294687.log 2021-06-09 23:06:52 [INFO]: Checking for full destinations. 2021-06-09 23:06:52 [INFO]: Drive "/media/ssd4" has 43619629568 free space. 2021-06-09 23:06:52 [ERROR]: Drive "/media/ssd4" does not have enough space. This directory will be skipped. 2021-06-09 23:06:52 [ERROR]: Job "4" has no more destination directories with enough space for more work. 2021-06-09 23:06:52 [INFO]: Sleeping for 60 seconds.

Immediately checking disk free space using psutil directly (368,670,179,328 bytes):

Python 3.8.5 (default, May 27 2021, 13:30:53) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information.

import psutil psutil.disk_usage('/media/ssd4').free 368670179328

I double-checked using du, confirming that psutil gives the correct info.

So swar manager refuses to start new job on /media/ssd4, which is an 1T nvme. I'm using the latest commit from main branch

Can someone help me solved this?

leicao-me commented 3 years ago

So above 368,670,179,328 bytes is 368.7GB. Plenty free space for a new job. But Swar Manager gives the Not Enough Free Space Error and skip new jobs