Problem with "occ files:scan --all --repair": undefined index

10

#1

During upgrade from 10.0.4 to 10.0.5 I was asked to run "occ files:scan --all --repair". When I did, the following messages appeared:

Exception during scan: ErrorException: Undefined index: size
#0 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(420): OCA\Files\Command\Scan->exceptionErrorHandler(8, 'Undefined index...', '/var/www/ownclo...', 420, Array)                                                                         
#1 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(381): OC\Files\Cache\Scanner->handleChildren('files_encryptio...', true, 3, '280757', true, 0)         
#2 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(384): OC\Files\Cache\Scanner->scanChildren('files_encryptio...', true, 3, '280757', true)              
#3 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(384): OC\Files\Cache\Scanner->scanChildren('files_encryptio...', true, 3, '280120', true)              
#4 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(384): OC\Files\Cache\Scanner->scanChildren('files_encryptio...', true, 3, '265504', true)              
#5 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(384): OC\Files\Cache\Scanner->scanChildren('files_encryptio...', true, 3, '259131', true)              
#6 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(384): OC\Files\Cache\Scanner->scanChildren('files_encryptio...', true, 3, '257434', true)              
#7 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(384): OC\Files\Cache\Scanner->scanChildren('files_encryptio...', true, 3, '233361', true)              
#8 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(384): OC\Files\Cache\Scanner->scanChildren('files_encryptio...', true, 3, '185633', true)              
#9 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(384): OC\Files\Cache\Scanner->scanChildren('files_encryptio...', true, 3, '10104', true)               
#10 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(315): OC\Files\Cache\Scanner->scanChildren('', true, 3, '12', true)                                   
#11 /var/www/owncloud/lib/private/Files/Utils/Scanner.php(238): OC\Files\Cache\Scanner->scan('', true, 3)                                                       
#12 /var/www/owncloud/apps/files/lib/Command/Scan.php(224): OC\Files\Utils\Scanner->scan('/schneider', false)                                                   
#13 /var/www/owncloud/apps/files/lib/Command/Scan.php(310): OCA\Files\Command\Scan->scanFiles('schneider', '/schneider', false, Object(Symfony\Component\Console\Output\ConsoleOutput), false, false)                                           
#14 /var/www/owncloud/lib/composer/symfony/console/Command/Command.php(262): OCA\Files\Command\Scan->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))                         
#15 /var/www/owncloud/core/Command/Base.php(159): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))                                     
#16 /var/www/owncloud/lib/composer/symfony/console/Application.php(826): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /var/www/owncloud/lib/composer/symfony/console/Application.php(189): Symfony\Component\Console\Application->doRunCommand(Object(OCA\Files\Command\Scan), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /var/www/owncloud/lib/composer/symfony/console/Application.php(120): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /var/www/owncloud/lib/private/Console/Application.php(161): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 /var/www/owncloud/console.php(106): OC\Console\Application->run()
#21 /var/www/owncloud/occ(11): require_once('/var/www/ownclo...')
#22 {main}

What can I do about it? There seems to be an undefined index, ok, but where and why? What is the meaning of all these error messages?


#2

Hey @jschneider can you please report this as a bug over on github: https://github.com/owncloud/core/issues/new I can then take a look at this and see what is going on as this shouldnt happen. Out of interest, does this also happen during a normal scan (without --repair) ?


#3

Hello Tom, "occ files:scan --all" is just running. When it is finished, I will tell results here. Meanwhile the bug will be reported at github as suggested.


#4

Error messages were the same when "occ files:scan --all" was running without "--repair".