Reset locking state

Hello friends,

It’s possible to manual reset locking state?

user1@server:$ podman exec owncloud_server occ files:scan user1
Considering dependency setenvif for ssl:
Module setenvif already enabled
Considering dependency mime for ssl:
Module mime already enabled
Considering dependency socache_shmcb for ssl:
Module socache_shmcb already enabled
Module ssl already enabled

Scanning files for 1 users
Starting scan for user 1 out of 1 (user1)
Exception during scan: OCP\Lock\LockedException: "files/9d9df2744f229571cb39cf19904e64c8" is locked
#0 /var/www/owncloud/lib/private/Files/Storage/Common.php(668): OC\Lock\MemcacheLockingProvider->acquireLock()
#1 /var/www/owncloud/lib/private/Files/Storage/Wrapper/Wrapper.php(598): OC\Files\Storage\Common->acquireLock()
#2 /var/www/owncloud/lib/private/Files/Storage/Wrapper/Wrapper.php(598): OC\Files\Storage\Wrapper\Wrapper->acquireLock()
#3 /var/www/owncloud/lib/private/Files/Storage/Wrapper/Wrapper.php(598): OC\Files\Storage\Wrapper\Wrapper->acquireLock()
#4 /var/www/owncloud/lib/private/Files/Cache/Scanner.php(322): OC\Files\Storage\Wrapper\Wrapper->acquireLock()
#5 /var/www/owncloud/lib/private/Files/Utils/Scanner.php(246): OC\Files\Cache\Scanner->scan()
#6 /var/www/owncloud/apps/files/lib/Command/Scan.php(250): OC\Files\Utils\Scanner->scan()
#7 /var/www/owncloud/apps/files/lib/Command/Scan.php(400): OCA\Files\Command\Scan->scanFiles()
#8 /var/www/owncloud/apps/files/lib/Command/Scan.php(362): OCA\Files\Command\Scan->userScan()
#9 /var/www/owncloud/apps/files/lib/Command/Scan.php(327): OCA\Files\Command\Scan->processUserChunks()
#10 /var/www/owncloud/lib/composer/symfony/console/Command/Command.php(298): OCA\Files\Command\Scan->execute()
#11 /var/www/owncloud/core/Command/Base.php(159): Symfony\Component\Console\Command\Command->run()
#12 /var/www/owncloud/lib/composer/symfony/console/Application.php(1040): OC\Core\Command\Base->run()
#13 /var/www/owncloud/lib/composer/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#14 /var/www/owncloud/lib/composer/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#15 /var/www/owncloud/lib/private/Console/Application.php(165): Symfony\Component\Console\Application->run()
#16 /var/www/owncloud/console.php(94): OC\Console\Application->run()
#17 /var/www/owncloud/occ(11): require_once('/var/www/ownclo...')
#18 {main}

+---------+-------+--------------+------------------+
| Folders | Files | Elapsed time | Items per second |
+---------+-------+--------------+------------------+
| 0       | 0     | 00:00:00     | 0                |
+---------+-------+--------------+------------------+

Hi,

Depending on your configuration, you may need to truncate the oc_locks DB table or - in case Redis is being used for transactional file locking - a flush of the Redis DB may be required.

1 Like

Hello pako81,

First of all thank you for your time.

It seems like after certain time interval some function reset the locking state because after some minutes the problem dissapeared.

Thank you.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.