unzip-bot icon indicating copy to clipboard operation
unzip-bot copied to clipboard

[BUG] `sufficient_disk_space` is often wrong on different servers for an unknown reason

Open Divytech opened this issue 1 year ago • 2 comments

What it means and how to solve ?

Divytech avatar May 22 '24 08:05 Divytech

This message is sent when the task that would be processed would leave less than 5% of disk space available.
It all comes down to this function : https://github.com/EDM115/unzip-bot/blob/47581cb27842568afb6fafcf8d79a6295a7d3a7a/unzipper/modules/commands.py#L49-L57
psutil have consistently given absolutely wrong values, and I have no fix for that. The reason why it's wrong is unknown to me.
As a quick fix, you can make this function return True all the time, although it's really a bad fix

EDM115 avatar May 22 '24 08:05 EDM115

[!NOTE]
This issue will stay open until I find a way to fix this shit

EDM115 avatar May 22 '24 08:05 EDM115

probably an issue where psutil reports values from the entire machine, even if splitted in multiple VMs

EDM115 avatar Dec 06 '24 12:12 EDM115