Wegen des erforderlichen ordner- und Dateiscans habe ich in das nextCloud-Forum wie folgt gestellt :
If I use on my Synology servers DS1815+, 415+, 412+, 1512+ the current nextCloud version, I get with the occ scan command in the crontab
3,33 7-23 * * * root /bin/su -s /bin/sh -c “/usr/local/bin/php56 -f /volume1/web/nextcloud/occ files:scan rescan” http >> /volume1/Sicherungen/Protokolle/nextCloud_rescan_rescan__$(/bin/date +%Y-%m-%d).log 2>&1
as follow :
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php56/modules/mapi.so’ - /usr/local/lib/php56/modules/mapi.so: cannot open shared object file: No such file or directory in Unknown on line 0
Starting scan for user 1 out of 1 (rescan)
Exception during scan: “files/f313d61ae50df68455a492c5baa02a13” is locked
#0 /volume1/web/nextcloud/lib/private/Files/Storage/Common.php(704): OC\Lock\DBLockingProvider->acquireLock(‘files/f313d61ae…’, 2)
#1 /volume1/web/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(588): OC\Files\Storage\Common->acquireLock(‘scanner::’, 2, Object(OC\Lock\DBLockingProvider))
#2 /volume1/web/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(588): OC\Files\Storage\Wrapper\Wrapper->acquireLock(‘scanner::’, 2, Object(OC\Lock\DBLockingProvider))
#3 /volume1/web/nextcloud/lib/private/Files/Cache/Scanner.php(318): OC\Files\Storage\Wrapper\Wrapper->acquireLock(‘scanner::’, 2, Object(OC\Lock\DBLockingProvider))
#4 /volume1/web/nextcloud/lib/private/Files/Utils/Scanner.php(242): OC\Files\Cache\Scanner->scan(’’, true, 3)
#5 /volume1/web/nextcloud/apps/files/lib/Command/Scan.php(161): OC\Files\Utils\Scanner->scan(’/rescan’)
#6 /volume1/web/nextcloud/apps/files/lib/Command/Scan.php(234): OCA\Files\Command\Scan->scanFiles(‘rescan’, ‘/rescan’, false, Object(Symfony\Component\Console\Output\ConsoleOutput), false)
#7 /volume1/web/nextcloud/3rdparty/symfony/console/Command/Command.php(256): OCA\Files\Command\Scan->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /volume1/web/nextcloud/core/Command/Base.php(161): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /volume1/web/nextcloud/3rdparty/symfony/console/Application.php(818): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /volume1/web/nextcloud/3rdparty/symfony/console/Application.php(186): Symfony\Component\Console\Application->doRunCommand(Object(OCA\Files\Command\Scan), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /volume1/web/nextcloud/3rdparty/symfony/console/Application.php(117): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /volume1/web/nextcloud/lib/private/Console/Application.php(170): Symfony\Component\Console\Application->run(NULL, NULL)
#13 /volume1/web/nextcloud/console.php(92): OC\Console\Application->run()
#14 /volume1/web/nextcloud/occ(11): require_once(’/volume1/web/ne…’)
#15 {main}
±--------±------±-------------+
| Folders | Files | Elapsed time |
±--------±------±-------------+
| 175 | 1123 | 00:00:06 |
±--------±------±-------------+
With nextCloud 9 and 10 the above command was running.
Kann da jemand etwas beitragen dazu?