Nextcloud version : 17.0.3
Operating system and version : shared host
PHP version : 7.1
The issue you are facing: files:scan --all returns an error
Is this the first time you’ve seen this error? : Y (I recently updated from 16)
Steps to replicate it:
- files:scan --all
... Starting scan for user 7 out of 10 (USER7) Exception during scan: #0 [internal function]: OCA\Files_Sharing\External\Storage->checkStorageAvailability() #1 /http/0cloud/lib/private/Files/Storage/Wrapper/Wrapper.php(506): call_user_func_array(Array, Array) #2 [internal function]: OC\Files\Storage\Wrapper\Wrapper->__call('checkStorageAva...', Array) #3 /http/0cloud/lib/private/Files/Storage/Wrapper/Wrapper.php(506): call_user_func_array(Array, Array) #4 /http/0cloud/apps/files_sharing/lib/External/Scanner.php(89): OC\Files\Storage\Wrapper\Wrapper->__call('checkStorageAva...', Array) #5 /http/0cloud/apps/files_sharing/lib/External/Scanner.php(44): OCA\Files_Sharing\External\Scanner->scanAll() #6 /http/0cloud/lib/private/Files/Utils/Scanner.php(245): OCA\Files_Sharing\External\Scanner->scan('', true, 3) #7 /http/0cloud/apps/files/lib/Command/Scan.php(145): OC\Files\Utils\Scanner->scan('/michel', true, NULL) #8 /http/0cloud/apps/files/lib/Command/Scan.php(201): OCA\Files\Command\Scan->scanFiles('michel', '/michel', Object(Symfony\Component\Console\Output\ConsoleOutput), false, true, false) #9 /http/0cloud/3rdparty/symfony/console/Command/Command.php(255): OCA\Files\Command\Scan->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /http/0cloud/core/Command/Base.php(166): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /http/0cloud/3rdparty/symfony/console/Application.php(908): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /http/0cloud/3rdparty/symfony/console/Application.php(269): Symfony\Component\Console\Application->doRunCommand(Object(OCA\Files\Command\Scan), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /http/0cloud/3rdparty/symfony/console/Application.php(145): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /http/0cloud/lib/private/Console/Application.php(213): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /http/0cloud/console.php(97): OC\Console\Application->run() #16 /http/0cloud/occ(11): require_once('/http/0cloud/co...') #17 {main} Starting scan for user 8 out of 10 (USER8) ...
The output of your Nextcloud log in Admin > Logging:
[PHP] Error: Invalid argument supplied for foreach() at /http/cloud/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#120
GET /settings/admin/serverinfo
from xxx.xxx.xxx.xxx by USER7 at 2020-04-08T17:08:21+02:00