Exception while scanning: File entry could not be inserted with insertIfNotExist


#1

Hello

I have launched a occ files:scan and got the exception:
Exception while scanning: File entry could not be inserted with insertIfNotExist() but could also not be selected with getId() in order to perform an update. Please try again.
#0 /var/www/owncloud/lib/private/Files/Cache/Cache.php(220): OC\Files\Cache\Cache->insert('files_encryptio...', Array)
#1 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(266): OC\Files\Cache\Cache->put('files_encryptio...', Array)
#2 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(206): OC\Files\Cache\Scanner->addToCache('files_encryptio...', Array, -1)
#3 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(409): OC\Files\Cache\Scanner->scanFile('files_encryptio...', 3, '1930661', NULL, true)
#4 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(377): OC\Files\Cache\Scanner->handleChildren('files_encryptio...', true, 3, '1930661', true, 0)
#5 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(380): OC\Files\Cache\Scanner->scanChildren('files_encryptio...', true, 3, '1930661', true)
#6 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(380): OC\Files\Cache\Scanner->scanChildren('files_encryptio...', true, 3, '1811773', true)
#7 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(380): OC\Files\Cache\Scanner->scanChildren('files_encryptio...', true, 3, '1804231', true)
#8 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(380): OC\Files\Cache\Scanner->scanChildren('files_encryptio...', true, 3, '1703234', true)
#9 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(380): OC\Files\Cache\Scanner->scanChildren('files_encryptio...', true, 3, '390244', true)
#10 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(380): OC\Files\Cache\Scanner->scanChildren('files_encryptio...', true, 3, '390243', true)
#11 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(380): OC\Files\Cache\Scanner->scanChildren('files_encryptio...', true, 3, '390242', true)
#12 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(380): OC\Files\Cache\Scanner->scanChildren('files_encryptio...', true, 3, '15039', true)
#13 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(311): OC\Files\Cache\Scanner->scanChildren('', true, 3, 1, true)
#14 /var/www/owncloud/lib/private/Files/Utils/Scanner.php(217): OC\Files\Cache\Scanner->scan('', true, 3)
#15 /var/www/owncloud/apps/files/lib/Command/Scan.php(158): OC\Files\Utils\Scanner->scan('/bruno')
#16 /var/www/owncloud/apps/files/lib/Command/Scan.php(226): OCA\Files\Command\Scan->scanFiles('bruno', '/bruno', false, Object(Symfony\Component\Console\Output\ConsoleOutput), false)
#17 /var/www/owncloud/3rdparty/symfony/console/Command/Command.php(259): OCA\Files\Command\Scan->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /var/www/owncloud/core/Command/Base.php(158): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /var/www/owncloud/3rdparty/symfony/console/Application.php(844): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 /var/www/owncloud/3rdparty/symfony/console/Application.php(192): Symfony\Component\Console\Application->doRunCommand(Object(OCA\Files\Command\Scan), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#21 /var/www/owncloud/3rdparty/symfony/console/Application.php(123): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#22 /var/www/owncloud/lib/private/Console/Application.php(146): Symfony\Component\Console\Application->run(NULL, NULL)
#23 /var/www/owncloud/console.php(102): OC\Console\Application->run()
#24 /var/www/owncloud/occ(11): require_once('/var/www/ownclo...')
#25 {main}


#2

Please fill out the issue template shown when creating a new thread in the "oC Server" category. This is asking you various information about your environment which are needed to help here.


#3

Same for me. Very disappointing this thread had no solution... :triumph: