hevelius / files_external_onedrive

:mega: :floppy_disk: External storage support for Microsoft OneDrive
GNU General Public License v2.0
72 stars 22 forks source link

Exception during scan: Undefined index: name #30

Open uwedisch opened 4 years ago

uwedisch commented 4 years ago

When a scan is run via console the next error occurs:

Exception during scan: Undefined index: name

  1. /var/www/nextcloud/apps/files_external_onedrive/vendor/hevelius/flysystem-onedrive/src/OneDriveAdapter.php(394): OCA\Files\Command\Scan->exceptionErrorHandler(8, 'Undefined index...', '/var/www/nextcl...', 394, Array)
  2. /var/www/nextcloud/apps/files_external_onedrive/vendor/hevelius/flysystem-onedrive/src/OneDriveAdapter.php(274): MarioPerrotta\FlysystemOneDrive\OneDriveAdapter->normalizeResponse(Array, 'children')
  3. /var/www/nextcloud/apps/files_external_onedrive/lib/Storage/Adapter.php(44): MarioPerrotta\FlysystemOneDrive\OneDriveAdapter->getMetadata('/me/drive/root/...')
  4. /var/www/nextcloud/apps/files_external_onedrive/vendor/league/flysystem-cached-adapter/src/CachedAdapter.php(315): OCA\Files_external_onedrive\Storage\Adapter->getTimestamp('')
  5. /var/www/nextcloud/apps/files_external_onedrive/vendor/league/flysystem-cached-adapter/src/CachedAdapter.php(287): League\Flysystem\Cached\CachedAdapter->callWithFallback('timestamp', '', 'getTimestamp')
  6. /var/www/nextcloud/apps/files_external_onedrive/lib/Storage/OneDrive.php(134): League\Flysystem\Cached\CachedAdapter->getTimestamp('')
  7. /var/www/nextcloud/lib/private/Files/Storage/Common.php(704): OCA\Files_external_onedrive\Storage\OneDrive->filemtime('')
  8. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(582): OC\Files\Storage\Common->getMetaData('')
  9. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/PermissionsMask.php(145): OC\Files\Storage\Wrapper\Wrapper->getMetaData('')
  10. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(582): OC\Files\Storage\Wrapper\PermissionsMask->getMetaData('')
  11. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php(440): OC\Files\Storage\Wrapper\Wrapper->getMetaData('')
  12. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(582): OC\Files\Storage\Wrapper\Availability->getMetaData('')
  13. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(582): OC\Files\Storage\Wrapper\Wrapper->getMetaData('')
  14. /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(112): OC\Files\Storage\Wrapper\Wrapper->getMetaData('')
  15. /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(150): OC\Files\Cache\Scanner->getData('')
  16. /var/www/nextcloud/lib/private/Files/Cache/Scanner.php(336): OC\Files\Cache\Scanner->scanFile('', 3, -1, NULL, true)
  17. /var/www/nextcloud/lib/private/Files/Utils/Scanner.php(245): OC\Files\Cache\Scanner->scan('', true, 3)
  18. /var/www/nextcloud/apps/files/lib/Command/Scan.php(145): OC\Files\Utils\Scanner->scan('/', true, NULL)
  19. /var/www/nextcloud/apps/files/lib/Command/Scan.php(201): OCA\Files\Command\Scan->scanFiles('', '/', Object(Symfony\Component\Console\Output\ConsoleOutput), false, true, false)
  20. /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OCA\Files\Command\Scan->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  21. /var/www/nextcloud/core/Command/Base.php(166): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  22. /var/www/nextcloud/3rdparty/symfony/console/Application.php(908): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  23. /var/www/nextcloud/3rdparty/symfony/console/Application.php(269): Symfony\Component\Console\Application->doRunCommand(Object(OCA\Files\Command\Scan), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  24. /var/www/nextcloud/3rdparty/symfony/console/Application.php(145): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  25. /var/www/nextcloud/lib/private/Console/Application.php(213): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  26. /var/www/nextcloud/console.php(97): OC\Console\Application->run()
  27. /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')
  28. {main}

Ubuntu 18.04.4 LTS Nextcloud 17.0.3 External Storage: OneDrive 1.0.7

Scan is run every night. I suspect a connection with #29 because a latter nightly scan was possible without error. From time to time I have also #29 on that system.