Cron <root@mail> /opt/admin/bin/console check:free-space > /dev/null
Issue #878
new
Since the latest docker update (Version 2.3.0) I receive the following error in my mailbox:
06:11:01 WARNING [php] Warning: Division by zero ["exception" => ErrorException { …}]
Comments (5)
-
-
reporter Also after the update to Version 2.3.1 I still receive the same error
-
We’ve got the same issue. The problem is related to the filesystem - we use BTRFS which returns 0 as free inode value - thus the division in
getFreeInodes()
fails.$ df -i Filesystem Inodes IUsed IFree IUse% Mounted on /dev/sda2 0 0 0 - /
Our temporary fix is to remove the
getFreeInodes()
call from the code:sed 's/$s->getFreeInodes();/1;/g' -i /opt/admin/src/Base/Command/CheckFreeSpaceCommand.php
I guess the function should deal with such a return value…
-
Same issue here, also running on btrfs
-
Should be fixed with
#899https://bitbucket.org/analogic/mailserver/issues/899 - Log in to comment
Same issue here