Occ files:scan for user "ABC" shows NO folders & NO files.... and strange results for other users

The above command for my user (ABC) results in no errors, but ZERO Folders & ZERO files & 00:00:00 ElapsedTime
… although this user owns many files which can be accessed and seen through the webgui… as well most are shared with other users successfully

any idea how to solve this issue ? specially as it seems to be connected with my other issue:

On the other hand, user “ABC” shared successfully a number of pictures with a GROUP of other users… so all users ot that same group have access to exactly the same amount of pictures !! No user of this GROUP has own pictures or has the right to shatre with other users. Now, when I files:scan for some users oth this GROUP, the results show huge differences with even stranger number counts for example folders… should not instead each scan for each useres of the same group show the same amount of files and folders ???

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:
{“reqId”:“V-wW71UNiDMAAByDGnUAAAAC”,“remoteAddr”:“”,“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 |

Do you use redis for the file-locking? especially on large setups and with many file operations you should use this.

On your admin page, does your integrity test fail?

redis ?? file locking ?? sorry didn’t do anything except for what I wrote…
no idea how I could lock or unlock files… :-/

NC is running on a hosted webserver (ALL-INKL)

Integrity test is not failing… BUT I get the following warning:
Webserver not sufficiently configured for synchronization…

“Sicherheits- & Einrichtungswarnungen: Ihr Webserver ist noch nicht hinreichend für
Datei-Synchronisation konfiguriert, weil die WebDAV-Schnittstelle
vermutlich nicht funktioniert.”

See in the documentation:

But without access to the server it is hard to debug this and even if you manage to do it, you probably can’t change it. I know some people run owncloud at all-inkl in the past but I don’t know if they had this problem. Perhaps check the hosting-sections in the old and new owncloud forum as well.
It could be that the webserver has his own webdav implementation enabled, perhaps you can disable it somewhere.

Just to double check, can you connect to demo.nextcloud.com with your webdav client?