From 436fc2ba13fba85d2e3a3440f09d0a0591ba20a7 Mon Sep 17 00:00:00 2001 From: "girish@cloudron.io" Date: Mon, 25 Jan 2016 15:56:46 -0800 Subject: [PATCH] checking capacity does not work well for / Just check if we have around 1.25GB left. /root (data image file) is 26G /home (our code) is 1G /apps.swap is 2G /backup.swap is 1G /var is 6.2G (docker) Rest of the system is 1.5G Fixes #577 --- src/cloudron.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cloudron.js b/src/cloudron.js index f4b0b9156..730c9eb7b 100644 --- a/src/cloudron.js +++ b/src/cloudron.js @@ -766,7 +766,7 @@ function checkDiskSpace(callback) { var oos = entries.some(function (entry) { return (entry.mount === paths.DATA_DIR && entry.capacity >= 0.90) || - (entry.mount === '/' && entry.capacity >= 0.95); + (entry.mount === '/' && entry.used <= (1.25 * 1024 * 1024)); // 1.5G }); debug('Disk space checked. ok: %s', !oos);