ON NC 9.0.54 the following happens (NO Lockfile Errors!!) :
ssh-w000000c@xxxxxx:/www/htdocs/w000000c/wwwcloud/mycloud$ php occ -vvv files:scan ABC
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see http://php.net/manual/en/book.pcntl.php
Starting scan for user 1 out of 1 (ABC)
±--------±------±-------------+
| Folders | Files | Elapsed time |
±--------±------±-------------+
| 0 | 0 | 00:00:00 |
±--------±------±-------------+
#-------------------------------------
AFTER UPGRADE to 10.0.1:
LogFileError:
{“reqId”:“V-wW71UNiDMAAByDGnUAAAAC”,“remoteAddr”:“91.52.129.135”,“app”:“PHP”,“message”:“Error: Class ‘OC\Files\Cache\SharedScanner’ not found at /www/htdocs/w000000c/xxxxxx/mycloud/apps/files_sharing/lib/sharedstorage.php#596”,“level”:3,“time”:“2016-10-11T01:43:41+02:00”,“method”:“POST”,“url”:"/index.php/apps/encryption/ajax/userSetRecovery",“user”:“ABC”}
PLUS, when I do occ files:scan ABC:
ssh-w005850c@xxxxxxxx:/www/htdocs/w000000c/xxxxxx//mycloud$ php occ -vvv files:scan o815
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see http://php.net/manual/en/book.pcntl.php
Starting scan for user 1 out of 1 (o815)
Exception while scanning: “files/ddc0750b4786834e4e4293e0d783d01b” is locked
"#0 /www/htdocs/w000000c/xxxxxx//mycloud/lib/private/Files/Storage/Common.php(651): OC\Lock\DBLockingProvider->acquireLock(‘files/ddc0750b4…’, 2)
"#1 /www/htdocs/w000000c/xxxxxx/mycloud/lib/private/Files/Storage/Wrapper/Wrapper.php(584): OC\Files\Storage\Common->acquireLock(‘scanner::’, 2, Object(OC\Lock\DBLockingProvider))
"#2 /www/htdocs/w000000c/xxxxxx//mycloud/lib/private/Files/Cache/Scanner.php(306): OC\Files\Storage\Wrapper"\Wrapper->acquireLock(‘scanner::’, 2, Object(OC\Lock\DBLockingProvider))
"#3 /www/htdocs/w000000c/xxxxxx//mycloud/lib/private/Files/Utils/Scanner.php(196): OC\Files\Cache\Scanner->scan(’’, true, 3)
"#4 /www/htdocs/w000000c/xxxxxx//mycloud/apps/files/lib/Command/Scan.php(159): OC\Files\Utils\Scanner->scan(’/o815’)
"#5 /www/htdocs/w000000c/xxxxxx//mycloud/apps/files/lib/Command/Scan.php(227): OCA\Files\Command\Scan->scanFiles(‘o815’, ‘/o815’, true, Object(Symfony\Component\Console\Output\ConsoleOutput), false)
"#6 /www/htdocs/w000000c/xxxxxx//mycloud/3rdparty/symfony/console/Command/Command.php(259): OCA\Files\Command\Scan->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
"#7 /www/htdocs/w000000c/xxxxxx//mycloud/core/Command/Base.php(159): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
"#8 /www/htdocs/w000000c/xxxxxx//mycloud/3rdparty/symfony/console/Application.php(844): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
"#9 /www/htdocs/w000000c/xxxxxx//mycloud/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))
"#10 /www/htdocs/w000000c/xxxxxx//mycloud/3rdparty/symfony/console/Application.php(123): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
"#11 /www/htdocs/w000000c/xxxxxx//mycloud/lib/private/Console/Application.php(146): Symfony\Component\Console\Application->run(NULL, NULL)
"#12 /www/htdocs/w005850c/wwwcloud/mycloud/console.php(90): OC\Console\Application->run()
"#13 /www/htdocs/w000000c/xxxxxx/mycloud/occ(11): require_once(’/www/htdocs/w00…’)
"#14 {main}
±--------±------±-------------+
| Folders | Files | Elapsed time |
±--------±------±-------------+
| 0 | 0 | 00:00:00 |
±--------±------±-------------+