Error: disk_free_space()

Hi to all,
yesterday I have update to last Nextcloud release 22.2.5.
Ubuntu 20.04
MySql 7.4.3
The procedure seems to be completed correctly but now, in Administration → Registration I have a lot of:
Error: disk_free_space(): No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#381

What can I do?
Thanks.

1 Like

have you searched the forum for already existing solutions with the same error-message?

like this one here Error in LOG: chmod(): No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#91 (there are more!)

Same error but other situations.
I have Apache (not nginx) and no external storage.

as I already said: there are more threads with the same error-message. Feel free to use :mag: in upper right menuebar yourself…

and eventually you’re gonna find a fitting solution. If so, pls don’t forget to relink the solution here as an answer.

BTW: Informations are always good. The more the better. Your posting is lacking of needed information…

Hi, it seems to be a newer issue, see related here PHP Error: disk_free_space() - #5 by nokoa77 or directly here the issu on github https://github.com/nextcloud/server/issues/30992

it is very surprising that I have 2 nextcloud instances installed on two machines and the configuration is the same, but one of which always shows up the error as below, it is nextcloud 24 with php8.1 (indeed even with php8.0 the errors are always there).

Error: disk_free_space(): No such file or directory at /data/www/nextcloud/lib/private/Files/Storage/Local.php#395
<<closure>>

OC\Log\ErrorHandler::onError()

/data/www/nextcloud/lib/private/Files/Storage/Local.php - line 395:

disk_free_space()

/data/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 334:

OC\Files\Storage\Local->free_space()

/data/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 334:

OC\Files\Storage\Wrapper\Wrapper->free_space()

/data/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 334:

OC\Files\Storage\Wrapper\Wrapper->free_space()

/data/www/nextcloud/lib/private/Files/Storage/Wrapper/Jail.php - line 344:

OC\Files\Storage\Wrapper\Wrapper->free_space()

/data/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 334:

OC\Files\Storage\Wrapper\Jail->free_space()

/data/www/nextcloud/lib/private/legacy/OC_Helper.php - line 548:

OC\Files\Storage\Wrapper\Wrapper->free_space()

/data/www/nextcloud/apps/files/lib/Helper.php - line 50:

OC_Helper::getStorageInfo()

/data/www/nextcloud/apps/files/lib/Controller/AjaxController.php - line 46:

OCA\Files\Helper::buildFileStorageStatistics()

/data/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 225:

OCA\Files\Controller\AjaxController->getStorageStats()

/data/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 133:

OC\AppFramework\Http\Dispatcher->executeController()

/data/www/nextcloud/lib/private/AppFramework/App.php - line 172:

OC\AppFramework\Http\Dispatcher->dispatch()

/data/www/nextcloud/lib/private/Route/Router.php - line 298:

OC\AppFramework\App::main()

/data/www/nextcloud/lib/base.php - line 1023:

OC\Route\Router->match()

/data/www/nextcloud/index.php - line 36:

OC::handleRequest()