oC 8.2.5 - files:scan

Ask all your questions regarding OC 8.2 Please read the Support Forum Rules
Forum rules
The forums were migrated over to https://central.owncloud.org which is based on the forum software Discourse. The forums here is put into read-only mode starting from today.

More background information about this move and the reasoning behind it is available in this blogpost:

https://daniel.molkentin.net/2016/07/20 ... d-central/
renzlcl
Newbie
Posts: 2
Joined: Sat May 21, 2016 8:18 am

oC 8.2.5 - files:scan

Postby renzlcl » Sat May 21, 2016 8:20 am

Please help us by providing the following info. Before posting please also check the pinned "Known issues" thread.

Steps to reproduce
1.php occ files:scan <username> -vvv


Expected behaviour
files:scan should work without any errors

Actual behaviour
[OCP\Lock\LockedException]
"files/8c87fb384293068ba16db38bc66b9c57" is locked



Exception trace:
() at /var/www/virtual/myfiles.sbg.ac.at/htdocs/lib/private/lock/dblockingprovider.php:180
OC\Lock\DBLockingProvider->acquireLock() at /var/www/virtual/myfiles.sbg.ac.at/htdocs/lib/private/files/storage/common.php:635
OC\Files\Storage\Common->acquireLock() at /var/www/virtual/myfiles.sbg.ac.at/htdocs/lib/private/files/storage/wrapper/wrapper.php:572
OC\Files\Storage\Wrapper\Wrapper->acquireLock() at /var/www/virtual/myfiles.sbg.ac.at/htdocs/lib/private/files/storage/wrapper/wrapper.php:572
OC\Files\Storage\Wrapper\Wrapper->acquireLock() at /var/www/virtual/myfiles.sbg.ac.at/htdocs/lib/private/files/storage/wrapper/wrapper.php:572
OC\Files\Storage\Wrapper\Wrapper->acquireLock() at /var/www/virtual/myfiles.sbg.ac.at/htdocs/apps/files_sharing/lib/sharedstorage.php:654
OC\Files\Storage\Shared->acquireLock() at /var/www/virtual/myfiles.sbg.ac.at/htdocs/lib/private/files/storage/wrapper/wrapper.php:572
OC\Files\Storage\Wrapper\Wrapper->acquireLock() at /var/www/virtual/myfiles.sbg.ac.at/htdocs/lib/private/files/cache/scanner.php:265
OC\Files\Cache\Scanner->scan() at /var/www/virtual/myfiles.sbg.ac.at/htdocs/lib/private/files/utils/scanner.php:178
OC\Files\Utils\Scanner->scan() at /var/www/virtual/myfiles.sbg.ac.at/htdocs/apps/files/command/scan.php:91
OCA\Files\Command\Scan->scanFiles() at /var/www/virtual/myfiles.sbg.ac.at/htdocs/apps/files/command/scan.php:123
OCA\Files\Command\Scan->execute() at /var/www/virtual/myfiles.sbg.ac.at/htdocs/3rdparty/symfony/console/Symfony/Component/Console/Command/Command.php:253
Symfony\Component\Console\Command\Command->run() at /var/www/virtual/myfiles.sbg.ac.at/htdocs/3rdparty/symfony/console/Symfony/Component/Console/Application.php:874
Symfony\Component\Console\Application->doRunCommand() at /var/www/virtual/myfiles.sbg.ac.at/htdocs/3rdparty/symfony/console/Symfony/Component/Console/Application.php:195
Symfony\Component\Console\Application->doRun() at /var/www/virtual/myfiles.sbg.ac.at/htdocs/3rdparty/symfony/console/Symfony/Component/Console/Application.php:126
Symfony\Component\Console\Application->run() at /var/www/virtual/myfiles.sbg.ac.at/htdocs/lib/private/console/application.php:100
OC\Console\Application->run() at /var/www/virtual/myfiles.sbg.ac.at/htdocs/console.php:79
require_once() at /var/www/virtual/myfiles.sbg.ac.at/htdocs/occ:11


Server configuration
Operating system: rhel7.2
Web server: apache
Database: mariadb
PHP version: 5.6
ownCloud version (see ownCloud admin page): 8.2.5
Updated from an older ownCloud or fresh install: uprade from 8.2.3
ownCloud log (data/owncloud.log): data/owncloud.log

Special configuration (external storage, external authentication, reverse proxy, server-side-encryption): no

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: oC 8.2.5 - files:scan

Postby RealRancor » Sat May 21, 2016 8:28 am

Hi,

older oC versions had issues with so called "stray locks". It might be needed that you remove those locks like described here: https://github.com/owncloud/core/issues ... -214242794
*gone*

renzlcl
Newbie
Posts: 2
Joined: Sat May 21, 2016 8:18 am

Re: oC 8.2.5 - files:scan

Postby renzlcl » Sun May 22, 2016 9:36 am

RealRancor wrote:Hi,

older oC versions had issues with so called "stray locks". It might be needed that you remove those locks like described here: https://github.com/owncloud/core/issues ... -214242794


Hi RealRancor,

thanks for your reply

i deleted the entry in the table oc_file _locks
after that, i did files:scan again, got the same error message and the entry in the database is back again.

attached you find the sql output:
MariaDB [web_myfes]> select * from `oc_file_locks` where `key` like '%8c87fb384293068ba16db38bc66b9c57';
+---------+------+----------------------------------------+------------+
| id | lock | key | ttl |
+---------+------+----------------------------------------+------------+
| 2171783 | 0 | files/8c87fb384293068ba16db38bc66b9c57 | 1463905389 |
+---------+------+----------------------------------------+------------+
1 row in set (0.54 sec)

MariaDB [web_myfes]> delete from `oc_file_locks` where `key` like '%8c87fb384293068ba16db38bc66b9c57';
Query OK, 1 row affected (0.74 sec)

MariaDB [web_myfes]> select * from `oc_file_locks` where `key` like '%8c87fb384293068ba16db38bc66b9c57';
+---------+------+----------------------------------------+------------+
| id | lock | key | ttl |
+---------+------+----------------------------------------+------------+
| 2176389 | 0 | files/8c87fb384293068ba16db38bc66b9c57 | 1463905679 |
+---------+------+----------------------------------------+------------+
1 row in set (0.55 sec)

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: oC 8.2.5 - files:scan

Postby RealRancor » Sun May 22, 2016 11:08 am

Hi,

then please report a new bug to the developers:

viewtopic.php?f=32&t=23696
viewtopic.php?f=17&t=20688
*gone*


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Server 8.2”

Who is online

Users browsing this forum: No registered users and 2 guests