Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backends provided no user object for Managers #93

Open
expert-geeks opened this issue Aug 5, 2022 · 0 comments
Open

Backends provided no user object for Managers #93

expert-geeks opened this issue Aug 5, 2022 · 0 comments

Comments

@expert-geeks
Copy link

expert-geeks commented Aug 5, 2022

I'm testing duplicate finder for the first time and I'm repeatedly getting the following appearing in the nextcloud logs;

Error | files | Backends provided no user object for Managers

{"reqId":"XXX","level":3,"time":"2022-08-06T00:32:12+01:00","remoteAddr":"xx.xx.xx.xx","user":"user","app":"files","method":"GET","url":"/apps/duplicatefinder/api/v1/Duplicates?offset=0","message":"Backends provided no user object for Managers","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0","version":"23.0.7.2","id":"xxx"}

After a great deal of time it returns;

0 duplicate file found

as you can imagine with 500k+ of office document files, I'm pretty sure there's some duplicates ;)

Running it from occ it gives this;

$ sudo -u www-data php /var/www/nextcloud/occ -v duplicates:find-all
Start searching files for aardvark in path /aardvark/files
An unhandled exception has been thrown:
TypeError: Argument 4 passed to OC\Files\Utils\Scanner::__construct() must implement interface OCP\ILogger, instance of OC\AppFramework\ScopedPsrLogger given, called in /var/www/nextcloud/apps/duplicatefinder/lib/Utils/ScannerUtil.php on line 73 and defined in /var/www/nextcloud/lib/private/Files/Utils/Scanner.php:97
Stack trace:
#0 /var/www/nextcloud/apps/duplicatefinder/lib/Utils/ScannerUtil.php(73): OC\Files\Utils\Scanner->__construct('aardvark...', Object(OC\DB\ConnectionAdapter), Object(OC\EventDispatcher\EventDispatcher), Object(OC\AppFramework\ScopedPsrLogger))
#1 /var/www/nextcloud/apps/duplicatefinder/lib/Utils/ScannerUtil.php(63): OCA\DuplicateFinder\Utils\ScannerUtil->initializeScanner('aardvark...', false)
#2 /var/www/nextcloud/apps/duplicatefinder/lib/Service/FileInfoService.php(257): OCA\DuplicateFinder\Utils\ScannerUtil->scan('aardvark...', '/aardvark...')
#3 /var/www/nextcloud/apps/duplicatefinder/lib/Command/FindDuplicates.php(152): OCA\DuplicateFinder\Service\FileInfoService->scanFiles('aardvark...', NULL, Object(Closure), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /var/www/nextcloud/apps/duplicatefinder/lib/Command/FindDuplicates.php(112): OCA\DuplicateFinder\Command\FindDuplicates->findDuplicates('aardvark...')
#5 /var/www/nextcloud/lib/private/User/Manager.php(551): OCA\DuplicateFinder\Command\FindDuplicates->OCA\DuplicateFinder\Command\{closure}(Object(OC\User\User))
#6 /var/www/nextcloud/apps/duplicatefinder/lib/Command/FindDuplicates.php(113): OC\User\Manager->callForAllUsers(Object(Closure))
#7 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OCA\DuplicateFinder\Command\FindDuplicates->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /var/www/nextcloud/core/Command/Base.php(168): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /var/www/nextcloud/3rdparty/symfony/console/Application.php(1009): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /var/www/nextcloud/3rdparty/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(OCA\DuplicateFinder\Command\FindDuplicates), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /var/www/nextcloud/3rdparty/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /var/www/nextcloud/lib/private/Console/Application.php(211): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /var/www/nextcloud/console.php(100): OC\Console\Application->run()
#14 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')
#15 {main}

duplicate finder 0.0.15
PHP FPM 7.4,
nginx version: nginx/1.14.2
nextcloud 23.0.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant