Scan for new files error


#1

Steps to reproduce

  1. sudo -u www-data /srv/dev-disk-by-label-raspnas/WWW/owncloud /occ files:scan Joe

Expected behaviour

Scan completes successfully and files on OwnCloud appear

Actual behaviour

Exception during scan: Undefined index: size
#0 /srv/dev-disk-by-label-raspnas/WWW/owncloud/lib/private/Files/Cache/Scanner.p hp(421): OCA\Files\Command\Scan->exceptionErrorHandler(8, ‘Undefined index…’, ‘/srv/dev-disk-b…’, 421, Array)
#1 /srv/dev-disk-by-label-raspnas/WWW/owncloud/lib/private/Files/Cache/Scanner.p hp(382): OC\Files\Cache\Scanner->handleChildren(‘files/Music/Rud…’, true, 3, ’ 48662’, true, 139430447)
#2 /srv/dev-disk-by-label-raspnas/WWW/owncloud/lib/private/Files/Cache/Scanner.p hp(385): OC\Files\Cache\Scanner->scanChildren(‘files/Music/Rud…’, true, 3, ‘48 662’, true)
#3 /srv/dev-disk-by-label-raspnas/WWW/owncloud/lib/private/Files/Cache/Scanner.p hp(385): OC\Files\Cache\Scanner->scanChildren(‘files/Music’, true, 3, ‘16821’, t rue)
#4 /srv/dev-disk-by-label-raspnas/WWW/owncloud/lib/private/Files/Cache/Scanner.p hp(385): OC\Files\Cache\Scanner->scanChildren(‘files’, true, 3, ‘14’, true)
#5 /srv/dev-disk-by-label-raspnas/WWW/owncloud/lib/private/Files/Cache/Scanner.p hp(316): OC\Files\Cache\Scanner->scanChildren(’’, true, 3, 12, true)
#6 /srv/dev-disk-by-label-raspnas/WWW/owncloud/lib/private/Files/Utils/Scanner.p hp(235): OC\Files\Cache\Scanner->scan(’’, true, 3)
#7 /srv/dev-disk-by-label-raspnas/WWW/owncloud/apps/files/lib/Command/Scan.php(1 59): OC\Files\Utils\Scanner->scan(’/Joe’)
#8 /srv/dev-disk-by-label-raspnas/WWW/owncloud/apps/files/lib/Command/Scan.php(2 28): OCA\Files\Command\Scan->scanFiles(‘Joe’, ‘/Joe’, false, Object(Symfony\Comp onent\Console\Output\ConsoleOutput), false)
#9 /srv/dev-disk-by-label-raspnas/WWW/owncloud/lib/composer/symfony/console/Comm and/Command.php(262): OCA\Files\Command\Scan->execute(Object(Symfony\Component\C onsole\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /srv/dev-disk-by-label-raspnas/WWW/owncloud/core/Command/Base.php(159): Symf ony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Inpu t\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /srv/dev-disk-by-label-raspnas/WWW/owncloud/lib/composer/symfony/console/App lication.php(826): OC\Core\Command\Base->run(Object(Symfony\Component\Console\In put\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /srv/dev-disk-by-label-raspnas/WWW/owncloud/lib/composer/symfony/console/App lication.php(189): Symfony\Component\Console\Application->doRunCommand(Object(OC A\Files\Command\Scan), Object(Symfony\Component\Console\Input\ArgvInput), Object (Symfony\Component\Console\Output\ConsoleOutput))
#13 /srv/dev-disk-by-label-raspnas/WWW/owncloud/lib/composer/symfony/console/App lication.php(120): Symfony\Component\Console\Application->doRun(Object(Symfony\C omponent\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\Conso leOutput))
#14 /srv/dev-disk-by-label-raspnas/WWW/owncloud/lib/private/Console/Application. php(160): Symfony\Component\Console\Application->run(NULL, NULL)
#15 /srv/dev-disk-by-label-raspnas/WWW/owncloud/console.php(106): OC\Console\App lication->run()
#16 /srv/dev-disk-by-label-raspnas/WWW/owncloud/occ(11): require_once(’/srv/dev- disk-b…’)
#17 {main}

Server configuration

Operating system:
ARMBIAN 5.32 experimental Debian GNU/Linux 8 (jessie) 4.9.59-v7+
Web server:
ngix
Database:
mysql

Hi I am getting this error every time I run this command I have read countless threads with no resolution. Can anyone help?

Thanks

Joe


#2

You’re missing one of the most important things: your ownCloud version. Without knowing your ownCloud version you’ll probably get a “upgrade to 10.0.10 and check”.
There are some chnages around those lines in ownCloud 10.0.10 (maybe in some earlier versions too), so upgrading might solve your problem.

If you decide to upgrade blindly, double-check the requirements for ownCloud 10.