Support intro
Sorry to hear you’re facing problems
help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can
Nextcloud version (eg, 20.0.5): Nextcloud 27.0.2
Operating system and version (eg, Ubuntu 20.04): Raspberry OS 11 (bullseye)
Apache or nginx version (eg, Apache 2.4.25): Apache2 2.4.56-1
PHP version (eg, 7.4): PHP 8.2
The issue you are facing:
Running occ files:scan --all results in error. It is expecting integer type but float value is being passed instead
Is this the first time you’ve seen this error? (Y/N): Yes since I upgraded to version 27
Steps to replicate it:
- occ files:scan --all
The output of your Nextcloud log in Admin > Logging:
Nothing appears in the Admin>Logging when running the command line "occ files:scan --all"
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
TypeError: OC\Files\Cache\Scanner::scanChildren(): Argument #6 ($oldSize) must be of type int, float given, called in nextcloud-27.0
.2/lib/private/Files/Cache/Scanner.php on line 347 and defined in nextcloud-27.0.2/lib/private/Files/Cache/Scanner.php:391
Stack trace:
#0 nextcloud-27.0.2/lib/private/Files/Cache/Scanner.php(347): OC\Files\Cache\Scanner->scanChildren()
#1 nextcloud-27.0.2/lib/private/Files/Utils/Scanner.php(269): OC\Files\Cache\Scanner->scan()
#2 nextcloud-27.0.2/apps/files/lib/Command/Scan.php(164): OC\Files\Utils\Scanner->scan()
#3 nextcloud-27.0.2/apps/files/lib/Command/Scan.php(219): OCA\Files\Command\Scan->scanFiles()
#4 nextcloud-27.0.2/3rdparty/symfony/console/Command/Command.php(298): OCA\Files\Command\Scan->execute()
#5 nextcloud-27.0.2/core/Command/Base.php(177): Symfony\Component\Console\Command\Command->run()
#6 nextcloud-27.0.2/3rdparty/symfony/console/Application.php(1040): OC\Core\Command\Base->run()
#7 nextcloud-27.0.2/3rdparty/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#8 nextcloud-27.0.2/3rdparty/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#9 nextcloud-27.0.2/lib/private/Console/Application.php(211): Symfony\Component\Console\Application->run()
#10 nextcloud-27.0.2/console.php(100): OC\Console\Application->run()
#11 nextcloud-27.0.2/occ(11): require_once('...')
The output of your Apache/nginx/system log in /var/log/____
:
Nothing appears in Apache log when running this command from command line or cron job
Nothing in the logs
Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.
Nothing in logs