Repository navigation
Exception during scan #9462
Description
Activity
Just updated to 13.0.3 and still running into this issue with an external smb mount: Exception during scan:
Exception during scan: "files/654f4a05ab41de4809b18ff209c83f17" is locked #0 /usr/share/webapps/nextcloud/lib/private/Files/Storage/Common.php(709): OC\Lock\DBLockingProvider->acquireLock('files/654f4a05a...', 2) #1 /usr/share/webapps/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(592): OC\Files\Storage\Common->acquireLock('scanner::', 2, Object(OC\Lock\DBLockingProvider)) #2 /usr/share/webapps/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(592): OC\Files\Storage\Wrapper\Wrapper->acquireLock('scanner::', 2, Object(OC\Lock\DBLockingProvider)) #3 /usr/share/webapps/nextcloud/lib/private/Files/Cache/Scanner.php(331): OC\Files\Storage\Wrapper\Wrapper->acquireLock('scanner::', 2, Object(OC\Lock\DBLockingProvider)) #4 /usr/share/webapps/nextcloud/lib/private/Files/Utils/Scanner.php(244): OC\Files\Cache\Scanner->scan('', true, 3) #5 /usr/share/webapps/nextcloud/apps/files/lib/Command/Scan.php(161): OC\Files\Utils\Scanner->scan('/admin/files/Po...') #6 /usr/share/webapps/nextcloud/apps/files/lib/Command/Scan.php(234): OCA\Files\Command\Scan->scanFiles('admin', '/admin/files/Po...', false, Object(Symfony\Component\Console\Output\ConsoleOutput), false) #7 /usr/share/webapps/nextcloud/3rdparty/symfony/console/Command/Command.php(264): OCA\Files\Command\Scan->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /usr/share/webapps/nextcloud/core/Command/Base.php(161): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /usr/share/webapps/nextcloud/3rdparty/symfony/console/Application.php(874): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /usr/share/webapps/nextcloud/3rdparty/symfony/console/Application.php(228): Symfony\Component\Console\Application->doRunCommand(Object(OCA\Files\Command\Scan), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /usr/share/webapps/nextcloud/3rdparty/symfony/console/Application.php(130): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /usr/share/webapps/nextcloud/lib/private/Console/Application.php(173): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /usr/share/webapps/nextcloud/console.php(90): OC\Console\Application->run() #14 /usr/share/webapps/nextcloud/occ(11): require_once('/usr/share/weba...') #15 {main}Reacted by Johannes Münichsdorfer and Mahmoud Khalil@icewind1991 any idea?
Reacted by Mahmoud KhalilI experienced this after a power cut during a scan operation. What fixed it for me was clearing the memcache - as I am using redis, this involved running (as root):
redis-cli FLUSHALL
Worth a try...Reacted by fvenegaszeke, Mahmoud Khalil and Rodrigo Pueblas NúñezReacted by Rodrigo Pueblas NúñezI'm closing this ticket because it hasn't received any updates in a long time. If this is still relevant, feel free to re-open or file a new ticket.
Thank you.
Reacted by Mahmoud KhalilI experienced this after a power cut during a scan operation. What fixed it for me was clearing the memcache - as I am using redis, this involved running (as root):
redis-cli FLUSHALL
Worth a try...This worked
Pc shutdown in mid scan and the error showed up, doingredis-cli FLUSHALLfixed itwhat helped me was disabling file locking temporary and running file scan again:
config/config.php>>
'filelocking.enabled' => false,
After updating from version 13.0.2 to the latest 13.0.2, I execute the following command:
sudo -u www-data php console.php files:scan --allwhile for all users, the process went smoothly, to my user (where is the most active), i got the following Exception during scan :
Server configuration
Operating system:
Ubuntu server 16.04.4 LTSWeb server:
Apache/2.4.18 (Ubuntu)Database:
mysql Ver 15.1 Distrib 10.0.34-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2PHP version:
Nextcloud version:
Nextcloud 13.0.2Updated from an older Nextcloud/ownCloud or fresh install:
Nextcloud 13.0.1Where did you install Nextcloud from:
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report