Cron <root@mail> /opt/admin/bin/console check:free-space > /dev/null

Issue #878 new
Gerben Wichers created an issue

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)

  1. Martin Pircher

    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…

  2. Log in to comment