Swar-Chia-Plot-Manager icon indicating copy to clipboard operation
Swar-Chia-Plot-Manager copied to clipboard

Wrong Free space info causes jobs skipped

Open leicao-me opened this issue 3 years ago • 1 comments

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 avatar Jun 10 '21 06:06 leicao-me

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

leicao-me avatar Jun 10 '21 07:06 leicao-me