nextcloud / photos

📸 Your memories under your control
GNU Affero General Public License v3.0
579 stars 61 forks source link

GenericFileException Error while generating metadata #2260

Open bernd-wechner opened 9 months ago

bernd-wechner commented 9 months ago

Describe the bug Error messages in the log file. This message is repeated time and again and seems to relate to one file by id (not sure how to identify which file by id at present).

[no app in context] Warning: Error while generating metadata for fileid 42374
    from ? by -- at 18 Jan 2024, 10:09:33 pm

and the raw message:

{
  "reqId": "M10zk8LUgTEAALmH7HB5",
  "level": 2,
  "time": "2024-01-18T22:09:33+11:00",
  "remoteAddr": "",
  "user": "--",
  "app": "no app in context",
  "method": "",
  "url": "--",
  "message": "Error while generating metadata for fileid 42374",
  "userAgent": "--",
  "version": "28.0.1.1",
  "exception": {
    "Exception": "OCP\\Files\\GenericFileException",
    "Message": "",
    "Code": 0,
    "Trace": [{
      "file": "/var/www/html/nextcloud/apps/photos/lib/Listener/SizeMetadataProvider.php",
      "line": 56,
      "function": "getContent",
      "class": "OC\\Files\\Node\\File",
      "type": "->"
    }, {
      "file": "/var/www/html/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php",
      "line": 86,
      "function": "handle",
      "class": "OCA\\Photos\\Listener\\SizeMetadataProvider",
      "type": "->"
    }, {
      "file": "/var/www/html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php",
      "line": 230,
      "function": "__invoke",
      "class": "OC\\EventDispatcher\\ServiceEventListener",
      "type": "->"
    }, {
      "file": "/var/www/html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php",
      "line": 59,
      "function": "callListeners",
      "class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
      "type": "->"
    }, {
      "file": "/var/www/html/nextcloud/lib/private/EventDispatcher/EventDispatcher.php",
      "line": 94,
      "function": "dispatch",
      "class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
      "type": "->"
    }, {
      "file": "/var/www/html/nextcloud/lib/private/EventDispatcher/EventDispatcher.php",
      "line": 106,
      "function": "dispatch",
      "class": "OC\\EventDispatcher\\EventDispatcher",
      "type": "->"
    }, {
      "file": "/var/www/html/nextcloud/lib/private/FilesMetadata/FilesMetadataManager.php",
      "line": 115,
      "function": "dispatchTyped",
      "class": "OC\\EventDispatcher\\EventDispatcher",
      "type": "->"
    }, {
      "file": "/var/www/html/nextcloud/core/BackgroundJobs/GenerateMetadataJob.php",
      "line": 110,
      "function": "refreshMetadata",
      "class": "OC\\FilesMetadata\\FilesMetadataManager",
      "type": "->"
    }, {
      "file": "/var/www/html/nextcloud/core/BackgroundJobs/GenerateMetadataJob.php",
      "line": 103,
      "function": "scanFolder",
      "class": "OC\\Core\\BackgroundJobs\\GenerateMetadataJob",
      "type": "->"
    }, {
      "file": "/var/www/html/nextcloud/core/BackgroundJobs/GenerateMetadataJob.php",
      "line": 103,
      "function": "scanFolder",
      "class": "OC\\Core\\BackgroundJobs\\GenerateMetadataJob",
      "type": "->"
    }, {
      "file": "/var/www/html/nextcloud/core/BackgroundJobs/GenerateMetadataJob.php",
      "line": 92,
      "function": "scanFolder",
      "class": "OC\\Core\\BackgroundJobs\\GenerateMetadataJob",
      "type": "->"
    }, {
      "file": "/var/www/html/nextcloud/core/BackgroundJobs/GenerateMetadataJob.php",
      "line": 83,
      "function": "scanFilesForUser",
      "class": "OC\\Core\\BackgroundJobs\\GenerateMetadataJob",
      "type": "->"
    }, {
      "file": "/var/www/html/nextcloud/lib/public/BackgroundJob/Job.php",
      "line": 81,
      "function": "run",
      "class": "OC\\Core\\BackgroundJobs\\GenerateMetadataJob",
      "type": "->"
    }, {
      "file": "/var/www/html/nextcloud/lib/public/BackgroundJob/TimedJob.php",
      "line": 102,
      "function": "start",
      "class": "OCP\\BackgroundJob\\Job",
      "type": "->"
    }, {
      "file": "/var/www/html/nextcloud/lib/public/BackgroundJob/TimedJob.php",
      "line": 92,
      "function": "start",
      "class": "OCP\\BackgroundJob\\TimedJob",
      "type": "->"
    }, {
      "file": "/var/www/html/nextcloud/cron.php",
      "line": 152,
      "function": "execute",
      "class": "OCP\\BackgroundJob\\TimedJob",
      "type": "->"
    }],
    "File": "/var/www/html/nextcloud/lib/private/Files/Node/File.php",
    "Line": 56,
    "message": "Error while generating metadata for fileid 42374",
    "exception": {
      "xdebug_message": "\nOCP\\Files\\GenericFileException:  in /var/www/html/nextcloud/lib/private/Files/Node/File.php on line 56\n\nCall Stack:\n    0.0003     421192   1. {main}() /var/www/html/nextcloud/cron.php:0\n    5.6110   44255056   2. OCP\\BackgroundJob\\TimedJob->execute($jobList = class OC\\BackgroundJob\\JobList { protected OCP\\IDBConnection $connection = class OC\\DB\\ConnectionAdapter { private $inner = class OC\\DB\\Connection { ... } }; protected OCP\\IConfig $config = class OC\\AllConfig { private OC\\SystemConfig $systemConfig = class OC\\SystemConfig { ... }; private ?OCP\\IDBConnection $connection = class OC\\DB\\ConnectionAdapter { ... }; private OCP\\Cache\\CappedMemoryCache $userCache = class OCP\\Cache\\CappedMemoryCache { ... } }; protected OCP\\AppFramework\\Utility\\ITimeFactory $timeFactory = class OC\\AppFramework\\Utility\\TimeFactory { protected DateTimeZone $timezone = class DateTimeZone { ... } }; protected Psr\\Log\\LoggerInterface $logger = class OC\\Log\\PsrLoggerAdapter { private OC\\Log $logger = class OC\\Log { ... } } }, $logger = class OC\\Log { private OCP\\Log\\IWriter $logger = class OC\\Log\\File { private OC\\SystemConfig ${OC\\Log\\LogDetails}config = class OC\\SystemConfig { ... }; protected string $logFile = '/data/ncdata/nextcloud.log'; protected int $logFileMode = 416; private OC\\SystemConfig $config = class OC\\SystemConfig { ... } }; private ?OC\\SystemConfig $config = class OC\\SystemConfig { protected $sensitiveValues = [...]; private $config = class OC\\Config { ... } }; private ?bool $logConditionSatisfied = FALSE; private ?Nextcloud\\LogNormalizer\\Normalizer $normalizer = class Nextcloud\\LogNormalizer\\Normalizer { private $maxRecursionDepth = 4; private $maxArrayItems = 20; private $dateFormat = 'Y-m-d H:i:s' }; private ?OCP\\Support\\CrashReport\\IRegistry $crashReporters = class OC\\Support\\CrashReport\\Registry { private $lazyReporters = [...]; private $reporters = [...]; private $serverContainer = class OC\\Server { ... } }; private ?OCP\\EventDispatcher\\IEventDispatcher $eventDispatcher = class OC\\EventDispatcher\\EventDispatcher { private $dispatcher = class Symfony\\Component\\EventDispatcher\\EventDispatcher { ... }; private $container = class OC\\Server { ... }; private $logger = class OC\\Log\\PsrLoggerAdapter { ... } } }) /var/www/html/nextcloud/cron.php:152\n    5.6110   44255056   3. OCP\\BackgroundJob\\TimedJob->start($jobList = class OC\\BackgroundJob\\JobList { protected OCP\\IDBConnection $connection = class OC\\DB\\ConnectionAdapter { private $inner = class OC\\DB\\Connection { ... } }; protected OCP\\IConfig $config = class OC\\AllConfig { private OC\\SystemConfig $systemConfig = class OC\\SystemConfig { ... }; private ?OCP\\IDBConnection $connection = class OC\\DB\\ConnectionAdapter { ... }; private OCP\\Cache\\CappedMemoryCache $userCache = class OCP\\Cache\\CappedMemoryCache { ... } }; protected OCP\\AppFramework\\Utility\\ITimeFactory $timeFactory = class OC\\AppFramework\\Utility\\TimeFactory { protected DateTimeZone $timezone = class DateTimeZone { ... } }; protected Psr\\Log\\LoggerInterface $logger = class OC\\Log\\PsrLoggerAdapter { private OC\\Log $logger = class OC\\Log { ... } } }) /var/www/html/nextcloud/lib/public/BackgroundJob/TimedJob.php:92\n    5.6110   44255056   4. OCP\\BackgroundJob\\Job->start($jobList = class OC\\BackgroundJob\\JobList { protected OCP\\IDBConnection $connection = class OC\\DB\\ConnectionAdapter { private $inner = class OC\\DB\\Connection { ... } }; protected OCP\\IConfig $config = class OC\\AllConfig { private OC\\SystemConfig $systemConfig = class OC\\SystemConfig { ... }; private ?OCP\\IDBConnection $connection = class OC\\DB\\ConnectionAdapter { ... }; private OCP\\Cache\\CappedMemoryCache $userCache = class OCP\\Cache\\CappedMemoryCache { ... } }; protected OCP\\AppFramework\\Utility\\ITimeFactory $timeFactory = class OC\\AppFramework\\Utility\\TimeFactory { protected DateTimeZone $timezone = class DateTimeZone { ... } }; protected Psr\\Log\\LoggerInterface $logger = class OC\\Log\\PsrLoggerAdapter { private OC\\Log $logger = class OC\\Log { ... } } }) /var/www/html/nextcloud/lib/public/BackgroundJob/TimedJob.php:102\n    5.6237   44255056   5. OC\\Core\\BackgroundJobs\\GenerateMetadataJob->run($argument = NULL) /var/www/html/nextcloud/lib/public/BackgroundJob/Job.php:81\n    5.6281   44276288   6. OC\\Core\\BackgroundJobs\\GenerateMetadataJob->scanFilesForUser($userId = 'andrew.reynolds') /var/www/html/nextcloud/core/BackgroundJobs/GenerateMetadataJob.php:83\n    5.6307   44298616   7. OC\\Core\\BackgroundJobs\\GenerateMetadataJob->scanFolder($folder = class OC\\Files\\Node\\LazyUserFolder { private Closure ${OC\\Files\\Node\\LazyFolder}folderClosure = class Closure { virtual $closure = \"$this->OC\\Files\\Node\\{closure}\", public $static = [...]; public $this = ... }; protected ?OCP\\Files\\Folder $folder = class OC\\Files\\Node\\Folder { protected $view = class OC\\Files\\View { ... }; protected OCP\\Files\\IRootFolder $root = class OC\\Files\\Node\\Root { ... }; protected $path = '/andrew.reynolds/files'; protected ?OCP\\Files\\FileInfo $fileInfo = class OC\\Files\\FileInfo { ... }; protected ?OCP\\Files\\Node $parent = NULL; private bool ${OC\\Files\\Node\\Node}infoHasSubMountsIncluded = FALSE }; protected OCP\\Files\\IRootFolder $rootFolder = class OC\\Files\\Node\\Root { protected $view = class OC\\Files\\View { ... }; protected OCP\\Files\\IRootFolder $root = ...; protected $path = ''; protected ?OCP\\Files\\FileInfo $fileInfo = NULL; protected ?OCP\\Files\\Node $parent = NULL; private bool ${OC\\Files\\Node\\Node}infoHasSubMountsIncluded = TRUE; private OC\\Files\\Mount\\Manager $mountManager = class OC\\Files\\Mount\\Manager { ... }; private OC\\Hooks\\PublicEmitter $emitter = class OC\\Hooks\\PublicEmitter { ... }; private ?OCP\\IUser $user = NULL; private OCP\\Cache\\CappedMemoryCache $userFolderCache = class OCP\\Cache\\CappedMemoryCache { ... }; private OCP\\Files\\Config\\IUserMountCache $userMountCache = class OC\\Files\\Config\\UserMountCache { ... }; private Psr\\Log\\LoggerInterface $logger = class OC\\Log\\PsrLoggerAdapter { ... }; private OCP\\IUserManager $userManager = class OC\\User\\Manager { ... }; private OCP\\EventDispatcher\\IEventDispatcher $eventDispatcher = *uninitialized* }; protected array $data = ['path' => '/andrew.reynolds/files', 'permissions' => 15, 'type' => 'dir', 'mimetype' => 'httpd/unix-directory']; private OCP\\IUser $user = class OC\\User\\User { protected $accountManager = NULL; private $uid = 'andrew.reynolds'; private $displayName = 'Andrew'; private $backend = class OC\\User\\Database { ... }; private $dispatcher = class OC\\EventDispatcher\\EventDispatcher { ... }; private $enabled = NULL; private $emitter = class OC\\User\\Manager { ... }; private $home = '/data/ncdata/andrew.reynolds'; private $lastLogin = NULL; private $config = class OC\\AllConfig { ... }; private $avatarManager = NULL; private $urlGenerator = class OC\\URLGenerator { ... } }; private string $path = '/andrew.reynolds/files'; private OCP\\Files\\Mount\\IMountManager $mountManager = class OC\\Files\\Mount\\Manager { private array $mounts = [...]; private OCP\\Cache\\CappedMemoryCache $pathCache = class OCP\\Cache\\CappedMemoryCache { ... }; private OCP\\Cache\\CappedMemoryCache $inPathCache = class OCP\\Cache\\CappedMemoryCache { ... }; private OC\\Files\\SetupManager $setupManager = class OC\\Files\\SetupManager { ... } } }) /var/www/html/nextcloud/core/BackgroundJobs/GenerateMetadataJob.php:92\n    5.7603   45975544   8. OC\\Core\\BackgroundJobs\\GenerateMetadataJob->scanFolder($folder = class OC\\Files\\Node\\Folder { protected $view = class OC\\Files\\View { private string $fakeRoot = ''; private OCP\\Lock\\ILockingProvider $lockingProvider = class OC\\Lock\\MemcacheLockingProvider { ... }; private bool $lockingEnabled = TRUE; private bool $updaterEnabled = TRUE; private OC\\User\\Manager $userManager = class OC\\User\\Manager { ... }; private Psr\\Log\\LoggerInterface $logger = class OC\\Log\\PsrLoggerAdapter { ... } }; protected OCP\\Files\\IRootFolder $root = class OC\\Files\\Node\\Root { protected $view = class OC\\Files\\View { ... }; protected OCP\\Files\\IRootFolder $root = ...; protected $path = ''; protected ?OCP\\Files\\FileInfo $fileInfo = NULL; protected ?OCP\\Files\\Node $parent = NULL; private bool ${OC\\Files\\Node\\Node}infoHasSubMountsIncluded = TRUE; private OC\\Files\\Mount\\Manager $mountManager = class OC\\Files\\Mount\\Manager { ... }; private OC\\Hooks\\PublicEmitter $emitter = class OC\\Hooks\\PublicEmitter { ... }; private ?OCP\\IUser $user = NULL; private OCP\\Cache\\CappedMemoryCache $userFolderCache = class OCP\\Cache\\CappedMemoryCache { ... }; private OCP\\Files\\Config\\IUserMountCache $userMountCache = class OC\\Files\\Config\\UserMountCache { ... }; private Psr\\Log\\LoggerInterface $logger = class OC\\Log\\PsrLoggerAdapter { ... }; private OCP\\IUserManager $userManager = class OC\\User\\Manager { ... }; private OCP\\EventDispatcher\\IEventDispatcher $eventDispatcher = *uninitialized* }; protected $path = '/andrew.reynolds/files/HoGS'; protected ?OCP\\Files\\FileInfo $fileInfo = class OC\\Files\\FileInfo { private OCP\\Files\\Cache\\ICacheEntry|array $data = class OC\\Files\\Cache\\CacheEntry { ... }; private $path = '/andrew.reynolds/files/HoGS'; private $storage = class OCA\\Files_Trashbin\\Storage { ... }; private $internalPath = ''; private $mount = class OCA\\GroupFolders\\Mount\\GroupMountPoint { ... }; private ?OCP\\IUser $owner = class OC\\User\\LazyUser { ... }; private array $childEtags = [...]; private array $subMounts = [...]; private bool $subMountsUsed = FALSE; private int|float $rawSize = 3846825350 }; protected ?OCP\\Files\\Node $parent = class OC\\Files\\Node\\Folder { protected $view = class OC\\Files\\View { ... }; protected OCP\\Files\\IRootFolder $root = class OC\\Files\\Node\\Root { ... }; protected $path = '/andrew.reynolds/files'; protected ?OCP\\Files\\FileInfo $fileInfo = class OC\\Files\\FileInfo { ... }; protected ?OCP\\Files\\Node $parent = NULL; private bool ${OC\\Files\\Node\\Node}infoHasSubMountsIncluded = FALSE }; private bool ${OC\\Files\\Node\\Node}infoHasSubMountsIncluded = TRUE }) /var/www/html/nextcloud/core/BackgroundJobs/GenerateMetadataJob.php:103\n   35.6923   63593616   9. OC\\Core\\BackgroundJobs\\GenerateMetadataJob->scanFolder($folder = class OC\\Files\\Node\\Folder { protected $view = class OC\\Files\\View { private string $fakeRoot = ''; private OCP\\Lock\\ILockingProvider $lockingProvider = class OC\\Lock\\MemcacheLockingProvider { ... }; private bool $lockingEnabled = TRUE; private bool $updaterEnabled = TRUE; private OC\\User\\Manager $userManager = class OC\\User\\Manager { ... }; private Psr\\Log\\LoggerInterface $logger = class OC\\Log\\PsrLoggerAdapter { ... } }; protected OCP\\Files\\IRootFolder $root = class OC\\Files\\Node\\Root { protected $view = class OC\\Files\\View { ... }; protected OCP\\Files\\IRootFolder $root = ...; protected $path = ''; protected ?OCP\\Files\\FileInfo $fileInfo = NULL; protected ?OCP\\Files\\Node $parent = NULL; private bool ${OC\\Files\\Node\\Node}infoHasSubMountsIncluded = TRUE; private OC\\Files\\Mount\\Manager $mountManager = class OC\\Files\\Mount\\Manager { ... }; private OC\\Hooks\\PublicEmitter $emitter = class OC\\Hooks\\PublicEmitter { ... }; private ?OCP\\IUser $user = NULL; private OCP\\Cache\\CappedMemoryCache $userFolderCache = class OCP\\Cache\\CappedMemoryCache { ... }; private OCP\\Files\\Config\\IUserMountCache $userMountCache = class OC\\Files\\Config\\UserMountCache { ... }; private Psr\\Log\\LoggerInterface $logger = class OC\\Log\\PsrLoggerAdapter { ... }; private OCP\\IUserManager $userManager = class OC\\User\\Manager { ... }; private OCP\\EventDispatcher\\IEventDispatcher $eventDispatcher = *uninitialized* }; protected $path = '/andrew.reynolds/files/HoGS/Logos and images'; protected ?OCP\\Files\\FileInfo $fileInfo = class OC\\Files\\FileInfo { private OCP\\Files\\Cache\\ICacheEntry|array $data = class OC\\Files\\Cache\\CacheEntry { ... }; private $path = '/andrew.reynolds/files/HoGS/Logos and images'; private $storage = class OCA\\Files_Trashbin\\Storage { ... }; private $internalPath = 'Logos and images'; private $mount = class OCA\\GroupFolders\\Mount\\GroupMountPoint { ... }; private ?OCP\\IUser $owner = class OC\\User\\LazyUser { ... }; private array $childEtags = [...]; private array $subMounts = [...]; private bool $subMountsUsed = FALSE; private int|float $rawSize = 383327362 }; protected ?OCP\\Files\\Node $parent = class OC\\Files\\Node\\Folder { protected $view = class OC\\Files\\View { ... }; protected OCP\\Files\\IRootFolder $root = class OC\\Files\\Node\\Root { ... }; protected $path = '/andrew.reynolds/files/HoGS'; protected ?OCP\\Files\\FileInfo $fileInfo = class OC\\Files\\FileInfo { ... }; protected ?OCP\\Files\\Node $parent = class OC\\Files\\Node\\Folder { ... }; private bool ${OC\\Files\\Node\\Node}infoHasSubMountsIncluded = TRUE }; private bool ${OC\\Files\\Node\\Node}infoHasSubMountsIncluded = TRUE }) /var/www/html/nextcloud/core/BackgroundJobs/GenerateMetadataJob.php:103\n   37.5801   63929624  10. OC\\FilesMetadata\\FilesMetadataManager->refreshMetadata($node = class OC\\Files\\Node\\File { protected $view = class OC\\Files\\View { private string $fakeRoot = ''; private OCP\\Lock\\ILockingProvider $lockingProvider = class OC\\Lock\\MemcacheLockingProvider { ... }; private bool $lockingEnabled = TRUE; private bool $updaterEnabled = TRUE; private OC\\User\\Manager $userManager = class OC\\User\\Manager { ... }; private Psr\\Log\\LoggerInterface $logger = class OC\\Log\\PsrLoggerAdapter { ... } }; protected OCP\\Files\\IRootFolder $root = class OC\\Files\\Node\\Root { protected $view = class OC\\Files\\View { ... }; protected OCP\\Files\\IRootFolder $root = ...; protected $path = ''; protected ?OCP\\Files\\FileInfo $fileInfo = NULL; protected ?OCP\\Files\\Node $parent = NULL; private bool ${OC\\Files\\Node\\Node}infoHasSubMountsIncluded = TRUE; private OC\\Files\\Mount\\Manager $mountManager = class OC\\Files\\Mount\\Manager { ... }; private OC\\Hooks\\PublicEmitter $emitter = class OC\\Hooks\\PublicEmitter { ... }; private ?OCP\\IUser $user = NULL; private OCP\\Cache\\CappedMemoryCache $userFolderCache = class OCP\\Cache\\CappedMemoryCache { ... }; private OCP\\Files\\Config\\IUserMountCache $userMountCache = class OC\\Files\\Config\\UserMountCache { ... }; private Psr\\Log\\LoggerInterface $logger = class OC\\Log\\PsrLoggerAdapter { ... }; private OCP\\IUserManager $userManager = class OC\\User\\Manager { ... }; private OCP\\EventDispatcher\\IEventDispatcher $eventDispatcher = *uninitialized* }; protected $path = '/andrew.reynolds/files/HoGS/Logos and images/HoGS-Logo_COLOURED_Small-JPG_2019-11-26.2.jpg'; protected ?OCP\\Files\\FileInfo $fileInfo = class OC\\Files\\FileInfo { private OCP\\Files\\Cache\\ICacheEntry|array $data = class OC\\Files\\Cache\\CacheEntry { ... }; private $path = '/andrew.reynolds/files/HoGS/Logos and images/HoGS-Logo_COLOURED_Small-JPG_2019-11-26.2.jpg'; private $storage = class OCA\\Files_Trashbin\\Storage { ... }; private $internalPath = 'Logos and images/HoGS-Logo_COLOURED_Small-JPG_2019-11-26.2.jpg'; private $mount = class OCA\\GroupFolders\\Mount\\GroupMountPoint { ... }; private ?OCP\\IUser $owner = class OC\\User\\LazyUser { ... }; private array $childEtags = [...]; private array $subMounts = [...]; private bool $subMountsUsed = TRUE; private int|float $rawSize = 77672 }; protected ?OCP\\Files\\Node $parent = class OC\\Files\\Node\\Folder { protected $view = class OC\\Files\\View { ... }; protected OCP\\Files\\IRootFolder $root = class OC\\Files\\Node\\Root { ... }; protected $path = '/andrew.reynolds/files/HoGS/Logos and images'; protected ?OCP\\Files\\FileInfo $fileInfo = class OC\\Files\\FileInfo { ... }; protected ?OCP\\Files\\Node $parent = class OC\\Files\\Node\\Folder { ... }; private bool ${OC\\Files\\Node\\Node}infoHasSubMountsIncluded = TRUE }; private bool ${OC\\Files\\Node\\Node}infoHasSubMountsIncluded = TRUE }, $process = 3, $namedEvent = ???) /var/www/html/nextcloud/core/BackgroundJobs/GenerateMetadataJob.php:110\n   37.5818   63931096  11. OC\\EventDispatcher\\EventDispatcher->dispatchTyped($event = class OCP\\FilesMetadata\\Event\\MetadataLiveEvent { private ${OCP\\EventDispatcher\\Event}propagationStopped = FALSE; protected OCP\\Files\\Node $node = class OC\\Files\\Node\\File { protected $view = class OC\\Files\\View { ... }; protected OCP\\Files\\IRootFolder $root = class OC\\Files\\Node\\Root { ... }; protected $path = '/andrew.reynolds/files/HoGS/Logos and images/HoGS-Logo_COLOURED_Small-JPG_2019-11-26.2.jpg'; protected ?OCP\\Files\\FileInfo $fileInfo = class OC\\Files\\FileInfo { ... }; protected ?OCP\\Files\\Node $parent = class OC\\Files\\Node\\Folder { ... }; private bool ${OC\\Files\\Node\\Node}infoHasSubMountsIncluded = TRUE }; protected OCP\\FilesMetadata\\Model\\IFilesMetadata $metadata = class OC\\FilesMetadata\\Model\\FilesMetadata { private array $metadata = [...]; private bool $updated = FALSE; private int $lastUpdate = 0; private string $syncToken = 'i9uec2U'; private int $fileId = 42374 }; private bool $runAsBackgroundJob = FALSE }) /var/www/html/nextcloud/lib/private/FilesMetadata/FilesMetadataManager.php:115\n   37.5818   63931096  12. OC\\EventDispatcher\\EventDispatcher->dispatch($eventName = 'OCP\\\\FilesMetadata\\\\Event\\\\MetadataLiveEvent', $event = class OCP\\FilesMetadata\\Event\\MetadataLiveEvent { private ${OCP\\EventDispatcher\\Event}propagationStopped = FALSE; protected OCP\\Files\\Node $node = class OC\\Files\\Node\\File { protected $view = class OC\\Files\\View { ... }; protected OCP\\Files\\IRootFolder $root = class OC\\Files\\Node\\Root { ... }; protected $path = '/andrew.reynolds/files/HoGS/Logos and images/HoGS-Logo_COLOURED_Small-JPG_2019-11-26.2.jpg'; protected ?OCP\\Files\\FileInfo $fileInfo = class OC\\Files\\FileInfo { ... }; protected ?OCP\\Files\\Node $parent = class OC\\Files\\Node\\Folder { ... }; private bool ${OC\\Files\\Node\\Node}infoHasSubMountsIncluded = TRUE }; protected OCP\\FilesMetadata\\Model\\IFilesMetadata $metadata = class OC\\FilesMetadata\\Model\\FilesMetadata { private array $metadata = [...]; private bool $updated = FALSE; private int $lastUpdate = 0; private string $syncToken = 'i9uec2U'; private int $fileId = 42374 }; private bool $runAsBackgroundJob = FALSE }) /var/www/html/nextcloud/lib/private/EventDispatcher/EventDispatcher.php:106\n   37.5818   63931096  13. Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch($event = class OCP\\FilesMetadata\\Event\\MetadataLiveEvent { private ${OCP\\EventDispatcher\\Event}propagationStopped = FALSE; protected OCP\\Files\\Node $node = class OC\\Files\\Node\\File { protected $view = class OC\\Files\\View { ... }; protected OCP\\Files\\IRootFolder $root = class OC\\Files\\Node\\Root { ... }; protected $path = '/andrew.reynolds/files/HoGS/Logos and images/HoGS-Logo_COLOURED_Small-JPG_2019-11-26.2.jpg'; protected ?OCP\\Files\\FileInfo $fileInfo = class OC\\Files\\FileInfo { ... }; protected ?OCP\\Files\\Node $parent = class OC\\Files\\Node\\Folder { ... }; private bool ${OC\\Files\\Node\\Node}infoHasSubMountsIncluded = TRUE }; protected OCP\\FilesMetadata\\Model\\IFilesMetadata $metadata = class OC\\FilesMetadata\\Model\\FilesMetadata { private array $metadata = [...]; private bool $updated = FALSE; private int $lastUpdate = 0; private string $syncToken = 'i9uec2U'; private int $fileId = 42374 }; private bool $runAsBackgroundJob = FALSE }, $eventName = 'OCP\\\\FilesMetadata\\\\Event\\\\MetadataLiveEvent') /var/www/html/nextcloud/lib/private/EventDispatcher/EventDispatcher.php:94\n   37.5818   63931096  14. Symfony\\Component\\EventDispatcher\\EventDispatcher->callListeners($listeners = [0 => class Closure { virtual $closure = \"$this->__invoke\", public $this = class OC\\EventDispatcher\\ServiceEventListener { ... }; public $parameter = [...] }, 1 => class Closure { virtual $closure = \"$this->__invoke\", public $this = class OC\\EventDispatcher\\ServiceEventListener { ... }; public $parameter = [...] }, 2 => class Closure { virtual $closure = \"$this->__invoke\", public $this = class OC\\EventDispatcher\\ServiceEventListener { ... }; public $parameter = [...] }, 3 => class Closure { virtual $closure = \"$this->__invoke\", public $this = class OC\\EventDispatcher\\ServiceEventListener { ... }; public $parameter = [...] }], $eventName = 'OCP\\\\FilesMetadata\\\\Event\\\\MetadataLiveEvent', $event = class OCP\\FilesMetadata\\Event\\MetadataLiveEvent { private ${OCP\\EventDispatcher\\Event}propagationStopped = FALSE; protected OCP\\Files\\Node $node = class OC\\Files\\Node\\File { protected $view = class OC\\Files\\View { ... }; protected OCP\\Files\\IRootFolder $root = class OC\\Files\\Node\\Root { ... }; protected $path = '/andrew.reynolds/files/HoGS/Logos and images/HoGS-Logo_COLOURED_Small-JPG_2019-11-26.2.jpg'; protected ?OCP\\Files\\FileInfo $fileInfo = class OC\\Files\\FileInfo { ... }; protected ?OCP\\Files\\Node $parent = class OC\\Files\\Node\\Folder { ... }; private bool ${OC\\Files\\Node\\Node}infoHasSubMountsIncluded = TRUE }; protected OCP\\FilesMetadata\\Model\\IFilesMetadata $metadata = class OC\\FilesMetadata\\Model\\FilesMetadata { private array $metadata = [...]; private bool $updated = FALSE; private int $lastUpdate = 0; private string $syncToken = 'i9uec2U'; private int $fileId = 42374 }; private bool $runAsBackgroundJob = FALSE }) /var/www/html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php:59\n   37.8358   63930840  15. OC\\EventDispatcher\\ServiceEventListener->__invoke($event = class OCP\\FilesMetadata\\Event\\MetadataLiveEvent { private ${OCP\\EventDispatcher\\Event}propagationStopped = FALSE; protected OCP\\Files\\Node $node = class OC\\Files\\Node\\File { protected $view = class OC\\Files\\View { ... }; protected OCP\\Files\\IRootFolder $root = class OC\\Files\\Node\\Root { ... }; protected $path = '/andrew.reynolds/files/HoGS/Logos and images/HoGS-Logo_COLOURED_Small-JPG_2019-11-26.2.jpg'; protected ?OCP\\Files\\FileInfo $fileInfo = class OC\\Files\\FileInfo { ... }; protected ?OCP\\Files\\Node $parent = class OC\\Files\\Node\\Folder { ... }; private bool ${OC\\Files\\Node\\Node}infoHasSubMountsIncluded = TRUE }; protected OCP\\FilesMetadata\\Model\\IFilesMetadata $metadata = class OC\\FilesMetadata\\Model\\FilesMetadata { private array $metadata = [...]; private bool $updated = FALSE; private int $lastUpdate = 0; private string $syncToken = 'i9uec2U'; private int $fileId = 42374 }; private bool $runAsBackgroundJob = FALSE }, 'OCP\\\\FilesMetadata\\\\Event\\\\MetadataLiveEvent', class Symfony\\Component\\EventDispatcher\\EventDispatcher { private $listeners = ['OC\\Authentication\\Events\\LoginFailed' => [...], 'OCP\\User\\Events\\PostLoginEvent' => [...], 'OCP\\User\\Events\\UserChangedEvent' => [...], 'OCP\\User\\Events\\BeforeUserDeletedEvent' => [...], 'OCP\\Files\\Events\\Node\\NodeWrittenEvent' => [...], 'OCP\\Files\\Cache\\CacheEntryRemovedEvent' => [...], 'OCP\\Collaboration\\Reference\\RenderReferenceEvent' => [...], 'OCP\\Dashboard\\RegisterWidgetEvent' => [...], 'OCA\\Files\\Event\\LoadSidebar' => [...], 'OCP\\Files\\Events\\Node\\BeforeNodeRenamedEvent' => [...], 'OCP\\Files\\Events\\Node\\BeforeNodeDeletedEvent' => [...], 'OCA\\Files_Trashbin\\Events\\BeforeNodeRestoredEvent' => [...], 'OCP\\User\\Events\\UserDeletedEvent' => [...], 'OCP\\Share\\Events\\BeforeShareDeletedEvent' => [...], 'OCP\\Share\\Events\\ShareDeletedFromSelfEvent' => [...], 'OCP\\Log\\Audit\\CriticalActionPerformedEvent' => [...], 'OCA\\Bookmarks\\Events\\CreateEvent' => [...], 'OCA\\Bookmarks\\Events\\UpdateEvent' => [...], 'OCA\\Bookmarks\\Events\\BeforeDeleteEvent' => [...], 'OCA\\Bookmarks\\Events\\MoveEvent' => [...], 'OCP\\Group\\Events\\UserAddedEvent' => [...], 'OCP\\Group\\Events\\UserRemovedEvent' => [...], 'OCP\\AppFramework\\Http\\Events\\BeforeTemplateRenderedEvent' => [...], 'OCA\\Calendar\\Events\\BeforeAppointmentBookedEvent' => [...], 'OCP\\User\\Events\\UserCreatedEvent' => [...], 'OCP\\Accounts\\UserUpdatedEvent' => [...], 'OCP\\Group\\Events\\GroupCreatedEvent' => [...], 'OCP\\Group\\Events\\GroupDeletedEvent' => [...], 'OCA\\Files\\Event\\LoadAdditionalScriptsEvent' => [...], 'OCA\\Circles\\Events\\PreparingCircleMemberEvent' => [...], 'OCA\\Circles\\Events\\AddingCircleMemberEvent' => [...], 'OCA\\Circles\\Events\\CircleMemberAddedEvent' => [...], 'OCA\\Circles\\Events\\Files\\PreparingFileShareEvent' => [...], 'OCA\\Circles\\Events\\Files\\CreatingFileShareEvent' => [...], 'OCA\\Circles\\Events\\Files\\FileShareCreatedEvent' => [...], 'OCA\\Circles\\Events\\RemovingCircleMemberEvent' => [...], 'OCA\\Circles\\Events\\RequestingCircleMemberEvent' => [...], 'OCA\\Circles\\Events\\DestroyingCircleEvent' => [...], 'OCP\\Comments\\CommentsEntityEvent' => [...], 'OCP\\Contacts\\Events\\ContactInteractedWithEvent' => [...], 'OCA\\DAV\\Events\\CalendarCreatedEvent' => [...], 'OCA\\DAV\\Events\\CalendarDeletedEvent' => [...], 'OCA\\DAV\\Events\\CalendarMovedToTrashEvent' => [...], 'OCA\\DAV\\Events\\CalendarUpdatedEvent' => [...], 'OCA\\DAV\\Events\\CalendarRestoredEvent' => [...], 'OCA\\DAV\\Events\\CalendarObjectCreatedEvent' => [...], 'OCA\\DAV\\Events\\CalendarObjectUpdatedEvent' => [...], 'OCA\\DAV\\Events\\CalendarObjectDeletedEvent' => [...], 'OCA\\DAV\\Events\\CalendarObjectMovedEvent' => [...], 'OCA\\DAV\\Events\\CalendarObjectMovedToTrashEvent' => [...], 'OCA\\DAV\\Events\\CalendarObjectRestoredEvent' => [...], 'OCA\\DAV\\Events\\CalendarShareUpdatedEvent' => [...], 'OCA\\DAV\\Events\\CalendarPublishedEvent' => [...], 'OCA\\DAV\\Events\\CalendarUnpublishedEvent' => [...], 'OCA\\DAV\\Events\\SubscriptionCreatedEvent' => [...], 'OCA\\DAV\\Events\\SubscriptionDeletedEvent' => [...], 'OCA\\DAV\\Events\\AddressBookCreatedEvent' => [...], 'OCA\\DAV\\Events\\AddressBookDeletedEvent' => [...], 'OCA\\DAV\\Events\\AddressBookUpdatedEvent' => [...], 'OCA\\DAV\\Events\\AddressBookShareUpdatedEvent' => [...], 'OCA\\DAV\\Events\\CardCreatedEvent' => [...], 'OCA\\DAV\\Events\\CardDeletedEvent' => [...], 'OCA\\DAV\\Events\\CardUpdatedEvent' => [...], 'OCP\\Federation\\Events\\TrustedServerRemovedEvent' => [...], 'OCP\\Config\\BeforePreferenceDeletedEvent' => [...], 'OCP\\Config\\BeforePreferenceSetEvent' => [...], 'OCP\\User\\Events\\OutOfOfficeChangedEvent' => [...], 'OCP\\User\\Events\\OutOfOfficeClearedEvent' => [...], 'OCP\\User\\Events\\OutOfOfficeScheduledEvent' => [...], 'OCA\\DAV\\Events\\SabrePluginAuthInitEvent' => [...], 'OCA\\Viewer\\Event\\LoadViewer' => [...], 'OCP\\Security\\CSP\\AddContentSecurityPolicyEvent' => [...], 'OCP\\Files\\Events\\Node\\NodeDeletedEvent' => [...], 'OCP\\Group\\Events\\GroupChangedEvent' => [...], 'OCP\\Files\\Events\\Node\\NodeCreatedEvent' => [...], 'OCP\\Files\\Events\\Node\\BeforeNodeTouchedEvent' => [...], 'OCP\\Files\\Events\\Node\\NodeTouchedEvent' => [...], 'OCP\\Files\\Events\\Node\\BeforeNodeWrittenEvent' => [...], 'OCP\\Files\\Events\\Node\\NodeRenamedEvent' => [...], 'OCP\\Files\\Events\\Node\\NodeCopiedEvent' => [...], 'OCP\\Files\\Events\\Node\\BeforeNodeCopiedEvent' => [...], 'OCP\\App\\IAppManager::enableApp' => [...], 'OCA\\Files_Sharing\\Event\\BeforeTemplateRenderedEvent' => [...], 'OCA\\Circles\\Events\\CircleDestroyedEvent' => [...], 'OCP\\Log\\BeforeMessageLoggedEvent' => [...], 'OCP\\DB\\Events\\AddMissingIndicesEvent' => [...], 'OCA\\Mail\\Events\\BeforeImapClientCreated' => [...], 'OCA\\Mail\\Events\\BeforeMessageSentEvent' => [...], 'OCA\\Mail\\Events\\DraftSavedEvent' => [...], 'OCA\\Mail\\Events\\DraftMessageCreatedEvent' => [...], 'OCA\\Mail\\Events\\OutboxMessageCreatedEvent' => [...], 'OCA\\Mail\\Events\\MailboxesSynchronizedEvent' => [...], 'OCA\\Mail\\Events\\MessageFlaggedEvent' => [...], 'OCA\\Mail\\Events\\MessageDeletedEvent' => [...], 'OCA\\Mail\\Events\\MessageSentEvent' => [...], 'OCA\\Mail\\Events\\NewMessagesSynchronized' => [...], 'OCA\\Mail\\Events\\SynchronizationEvent' => [...], 'OCP\\User\\Events\\OutOfOfficeStartedEvent' => [...], 'OCP\\User\\Events\\OutOfOfficeEndedEvent' => [...], 'OCP\\Share\\Events\\BeforeShareCreatedEvent' => [...], 'OCP\\Security\\Events\\ValidatePasswordPolicyEvent' => [...], 'OCP\\Security\\Events\\GenerateSecurePasswordEvent' => [...], 'OCP\\User\\Events\\BeforePasswordUpdatedEvent' => [...], 'OCP\\User\\Events\\PasswordUpdatedEvent' => [...], 'OCP\\User\\Events\\BeforeUserLoggedInEvent' => [...], 'OCP\\Authentication\\Events\\LoginFailedEvent' => [...], 'OCP\\User\\Events\\UserLoggedInEvent' => [...], 'OCP\\FilesMetadata\\Event\\MetadataLiveEvent' => [...], 'OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent' => [...], 'OCP\\Share\\Events\\ShareDeletedEvent' => [...], 'OCP\\SystemTag\\ISystemTagObjectMapper::assignTags' => [...], 'OCP\\SystemTag\\ISystemTagObjectMapper::unassignTags' => [...], 'OCP\\Share\\Events\\ShareCreatedEvent' => [...], 'OCP\\Files\\Template\\FileCreatedFromTemplateEvent' => [...], 'OCP\\Security\\FeaturePolicy\\AddFeaturePolicyEvent' => [...], 'OCA\\Files_Sharing\\Event\\ShareLinkAccessedEvent' => [...], 'OCP\\Preview\\BeforePreviewFetchedEvent' => [...], 'OC\\Authentication\\Events\\AppPasswordCreatedEvent' => [...], 'OCP\\WorkflowEngine\\Events\\RegisterOperationsEvent' => [...], 'OCA\\Talk\\Events\\AttendeesAddedEvent' => [...], 'OCA\\Talk\\Events\\AttendeeRemovedEvent' => [...], 'OCA\\Talk\\Events\\BeforeCallEndedForEveryoneEvent' => [...], 'OCA\\Talk\\Events\\ParticipantModifiedEvent' => [...], 'OCA\\Talk\\Events\\SessionLeftRoomEvent' => [...], 'OCA\\Talk\\Events\\BotInstallEvent' => [...], 'OCA\\Talk\\Events\\BotUninstallEvent' => [...], 'OCA\\Talk\\Events\\ChatMessageSentEvent' => [...], 'OCA\\Talk\\Events\\SystemMessageSentEvent' => [...], ...]; private $sorted = []; private $optimized = ['OCP\\Log\\BeforeMessageLoggedEvent' => [...], 'OCP\\FilesMetadata\\Event\\MetadataLiveEvent' => [...], 'OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent' => [...], 'OCP\\Files\\Cache\\CacheEntryRemovedEvent' => [...], 'OCP\\Files\\Cache\\CacheUpdateEvent' => [...]] }) /var/www/html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php:230\n   37.8358   63930840  16. OCA\\Photos\\Listener\\SizeMetadataProvider->handle($event = class OCP\\FilesMetadata\\Event\\MetadataLiveEvent { private ${OCP\\EventDispatcher\\Event}propagationStopped = FALSE; protected OCP\\Files\\Node $node = class OC\\Files\\Node\\File { protected $view = class OC\\Files\\View { ... }; protected OCP\\Files\\IRootFolder $root = class OC\\Files\\Node\\Root { ... }; protected $path = '/andrew.reynolds/files/HoGS/Logos and images/HoGS-Logo_COLOURED_Small-JPG_2019-11-26.2.jpg'; protected ?OCP\\Files\\FileInfo $fileInfo = class OC\\Files\\FileInfo { ... }; protected ?OCP\\Files\\Node $parent = class OC\\Files\\Node\\Folder { ... }; private bool ${OC\\Files\\Node\\Node}infoHasSubMountsIncluded = TRUE }; protected OCP\\FilesMetadata\\Model\\IFilesMetadata $metadata = class OC\\FilesMetadata\\Model\\FilesMetadata { private array $metadata = [...]; private bool $updated = FALSE; private int $lastUpdate = 0; private string $syncToken = 'i9uec2U'; private int $fileId = 42374 }; private bool $runAsBackgroundJob = FALSE }) /var/www/html/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php:86\n   37.8359   63930840  17. OC\\Files\\Node\\File->getContent() /var/www/html/nextcloud/apps/photos/lib/Listener/SizeMetadataProvider.php:56\n"
    },
    "CustomMessage": "Error while generating metadata for fileid 42374"
  },
  "id": "65a997ee97e11"
}

Screenshots A sample of a Logging viewer: image

Nextcloud (please complete the following information):

Desktop (please complete the following information):

PeeBeerBeach commented 9 months ago

I have exactly the same issue

arnaudpn commented 9 months ago

Same here.

AzureInformatique commented 8 months ago

Same error on Nextcloud 28.0.2 Metadata Error NC28

deanjarnold commented 6 months ago

Same issue here. Just upgraded using AIO from NC27 to NC28.0.4 Our logs are fill of this error; raw log:

{"reqId":"cYywxUXS9sg46SMOR7M0","level":2,"time":"2024-04-12T19:39:32+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Error while generating metadata for fileid 4818345","userAgent":"--","version":"28.0.4.1","exception":{"Exception":"OCP\\Files\\GenericFileException","Message":"","Code":0,"Trace":[{"file":"/var/www/html/apps/photos/lib/Listener/SizeMetadataProvider.php","line":64,"function":"getContent","class":"OC\\Files\\Node\\File","type":"->","args":[]},{"file":"/var/www/html/lib/private/EventDispatcher/ServiceEventListener.php","line":86,"function":"handle","class":"OCA\\Photos\\Listener\\SizeMetadataProvider","type":"->","args":[["OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent"]]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":230,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->","args":[["OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent"],"OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent",["Symfony\\Component\\EventDispatcher\\EventDispatcher"]]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":59,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[[["Closure"],["Closure"],["Closure"],["Closure"]],"OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent",["OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent"]]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":94,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[["OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent"],"OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent"]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":106,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":["OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent",["OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent"]]},{"file":"/var/www/html/lib/private/FilesMetadata/FilesMetadataManager.php","line":115,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":[["OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent"]]},{"file":"/var/www/html/lib/private/FilesMetadata/FilesMetadataManager.php","line":122,"function":"refreshMetadata","class":"OC\\FilesMetadata\\FilesMetadataManager","type":"->","args":[["OC\\Files\\Node\\File"],2]},{"file":"/var/www/html/core/BackgroundJobs/GenerateMetadataJob.php","line":107,"function":"refreshMetadata","class":"OC\\FilesMetadata\\FilesMetadataManager","type":"->","args":[["OC\\Files\\Node\\File"],3]},{"file":"/var/www/html/core/BackgroundJobs/GenerateMetadataJob.php","line":99,"function":"scanFolder","class":"OC\\Core\\BackgroundJobs\\GenerateMetadataJob","type":"->","args":[["OC\\Files\\Node\\Folder"]]},{"file":"/var/www/html/core/BackgroundJobs/GenerateMetadataJob.php","line":99,"function":"scanFolder","class":"OC\\Core\\BackgroundJobs\\GenerateMetadataJob","type":"->","args":[["OC\\Files\\Node\\Folder"]]},{"file":"/var/www/html/core/BackgroundJobs/GenerateMetadataJob.php","line":99,"function":"scanFolder","class":"OC\\Core\\BackgroundJobs\\GenerateMetadataJob","type":"->","args":[["OC\\Files\\Node\\Folder"]]},{"file":"/var/www/html/core/BackgroundJobs/GenerateMetadataJob.php","line":99,"function":"scanFolder","class":"OC\\Core\\BackgroundJobs\\GenerateMetadataJob","type":"->","args":[["OC\\Files\\Node\\Folder"]]},{"file":"/var/www/html/core/BackgroundJobs/GenerateMetadataJob.php","line":99,"function":"scanFolder","class":"OC\\Core\\BackgroundJobs\\GenerateMetadataJob","type":"->","args":[["OC\\Files\\Node\\Folder"]]},{"file":"/var/www/html/core/BackgroundJobs/GenerateMetadataJob.php","line":99,"function":"scanFolder","class":"OC\\Core\\BackgroundJobs\\GenerateMetadataJob","type":"->","args":[["OC\\Files\\Node\\Folder"]]},{"file":"/var/www/html/core/BackgroundJobs/GenerateMetadataJob.php","line":99,"function":"scanFolder","class":"OC\\Core\\BackgroundJobs\\GenerateMetadataJob","type":"->","args":[["OC\\Files\\Node\\Folder"]]},{"file":"/var/www/html/core/BackgroundJobs/GenerateMetadataJob.php","line":88,"function":"scanFolder","class":"OC\\Core\\BackgroundJobs\\GenerateMetadataJob","type":"->","args":[["OC\\Files\\Node\\LazyUserFolder"]]},{"file":"/var/www/html/core/BackgroundJobs/GenerateMetadataJob.php","line":74,"function":"scanFilesForUser","class":"OC\\Core\\BackgroundJobs\\GenerateMetadataJob","type":"->","args":["jrogers"]},{"file":"/var/www/html/lib/public/BackgroundJob/Job.php","line":81,"function":"run","class":"OC\\Core\\BackgroundJobs\\GenerateMetadataJob","type":"->","args":[null]},{"file":"/var/www/html/lib/public/BackgroundJob/TimedJob.php","line":102,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->","args":[["OC\\BackgroundJob\\JobList"]]},{"file":"/var/www/html/lib/public/BackgroundJob/TimedJob.php","line":92,"function":"start","class":"OCP\\BackgroundJob\\TimedJob","type":"->","args":[["OC\\BackgroundJob\\JobList"]]},{"file":"/var/www/html/cron.php","line":152,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->","args":[["OC\\BackgroundJob\\JobList"],["OC\\Log"]]}],"File":"/var/www/html/lib/private/Files/Node/File.php","Line":56,"message":"Error while generating metadata for fileid 4818345","exception":[],"CustomMessage":"Error while generating metadata for fileid 4818345"},"id":"6619be7693022"}
m0rp30 commented 6 months ago

Same issue too

markthebro commented 6 months ago

I did an upgrade some minutes ago from NC28.0.4 to NC28.0.5 and received this error now for the first time.

{
    "reqId": "2ir85lXwgvFtwBIeYkxw",
    "level": 2,
    "time": "2024-04-26T22:10:11+02:00",
    "remoteAddr": "",
    "user": "--",
    "app": "no app in context",
    "method": "",
    "url": "--",
    "message": "Error while generating metadata for fileid 149149",
    "userAgent": "--",
    "version": "28.0.5.1",
    "exception": {
        "Exception": "TypeError",
        "Message": "OCA\\Photos\\Listener\\ExifMetadataProvider::parseGPSData(): Argument #1 ($rawData) must be of type string, array given, called in /var/www/nextcloud/apps/photos/lib/Listener/ExifMetadataProvider.php on line 113",
        "Code": 0,
        "Trace": [{
                "file": "/var/www/nextcloud/apps/photos/lib/Listener/ExifMetadataProvider.php",
                "line": 113,
                "function": "parseGPSData",
                "class": "OCA\\Photos\\Listener\\ExifMetadataProvider",
                "type": "->"
            }, {
                "file": "/var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php",
                "line": 86,
                "function": "handle",
                "class": "OCA\\Photos\\Listener\\ExifMetadataProvider",
                "type": "->"
            }, {
                "file": "/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php",
                "line": 230,
                "function": "__invoke",
                "class": "OC\\EventDispatcher\\ServiceEventListener",
                "type": "->"
            }, {
                "file": "/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php",
                "line": 59,
                "function": "callListeners",
                "class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
                "type": "->"
            }, {
                "file": "/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php",
                "line": 94,
                "function": "dispatch",
                "class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
                "type": "->"
            }, {
                "file": "/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php",
                "line": 106,
                "function": "dispatch",
                "class": "OC\\EventDispatcher\\EventDispatcher",
                "type": "->"
            }, {
                "file": "/var/www/nextcloud/lib/private/FilesMetadata/FilesMetadataManager.php",
                "line": 115,
                "function": "dispatchTyped",
                "class": "OC\\EventDispatcher\\EventDispatcher",
                "type": "->"
            }, {
                "file": "/var/www/nextcloud/core/BackgroundJobs/GenerateMetadataJob.php",
                "line": 109,
                "function": "refreshMetadata",
                "class": "OC\\FilesMetadata\\FilesMetadataManager",
                "type": "->"
            }, {
                "file": "/var/www/nextcloud/core/BackgroundJobs/GenerateMetadataJob.php",
                "line": 99,
                "function": "scanFolder",
                "class": "OC\\Core\\BackgroundJobs\\GenerateMetadataJob",
                "type": "->"
            }, {
                "file": "/var/www/nextcloud/core/BackgroundJobs/GenerateMetadataJob.php",
                "line": 99,
                "function": "scanFolder",
                "class": "OC\\Core\\BackgroundJobs\\GenerateMetadataJob",
                "type": "->"
            }, {
                "file": "/var/www/nextcloud/core/BackgroundJobs/GenerateMetadataJob.php",
                "line": 99,
                "function": "scanFolder",
                "class": "OC\\Core\\BackgroundJobs\\GenerateMetadataJob",
                "type": "->"
            }, {
                "file": "/var/www/nextcloud/core/BackgroundJobs/GenerateMetadataJob.php",
                "line": 88,
                "function": "scanFolder",
                "class": "OC\\Core\\BackgroundJobs\\GenerateMetadataJob",
                "type": "->"
            }, {
                "file": "/var/www/nextcloud/core/BackgroundJobs/GenerateMetadataJob.php",
                "line": 74,
                "function": "scanFilesForUser",
                "class": "OC\\Core\\BackgroundJobs\\GenerateMetadataJob",
                "type": "->"
            }, {
                "file": "/var/www/nextcloud/lib/public/BackgroundJob/Job.php",
                "line": 81,
                "function": "run",
                "class": "OC\\Core\\BackgroundJobs\\GenerateMetadataJob",
                "type": "->"
            }, {
                "file": "/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php",
                "line": 102,
                "function": "start",
                "class": "OCP\\BackgroundJob\\Job",
                "type": "->"
            }, {
                "file": "/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php",
                "line": 92,
                "function": "start",
                "class": "OCP\\BackgroundJob\\TimedJob",
                "type": "->"
            }, {
                "file": "/var/www/nextcloud/cron.php",
                "line": 152,
                "function": "execute",
                "class": "OCP\\BackgroundJob\\TimedJob",
                "type": "->"
            }
        ],
        "File": "/var/www/nextcloud/apps/photos/lib/Listener/ExifMetadataProvider.php",
        "Line": 140,
        "message": "Error while generating metadata for fileid 149149",
        "exception": [],
        "CustomMessage": "Error while generating metadata for fileid 149149"
    },
    "id": "662c0b58e2edd"

2024-04-26 22_19_50-Windows 10 x64 - VMware Workstation

Are there any more logfiles / information I could provide to get a feeling about the root-cause and maybe some fix for the future?

Sailing74 commented 5 months ago

Same issue here. Updated to 28.0.5, the error is still there. Occurs every 5 minutes, which appears to coincide with when the cron job is run.

I see this bug needs triage. Anything I can do to help?

arnaudpn commented 5 months ago

Same here.

FYI, I just upgraded to 29.0.0 and problem is also present in this version.

nmbgeek commented 5 months ago

I am seeing a slightly different Metadata error (Nextcloud 29.0.1). It appears to possibly be related to images without location data. I ran an occ files:scan and my log is filled with these.

{"reqId":"zcvM3ho73R3ZksGk3tFy","level":2,"time":"2024-05-24T21:25:27-04:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Error while generating metadata for fileid 44840","userAgent":"--","version":"29.0.1.1","exception":{"Exception":"TypeError","Message":"count(): Argument #1 ($value) must be of type Countable|array, null given","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/photos/lib/Listener/ExifMetadataProvider.php","line":130,"function":"count"},{"file":"/var/www/nextcloud/apps/photos/lib/Listener/ExifMetadataProvider.php","line":109,"function":"gpsDegreesToDecimal","class":"OCA\\Photos\\Listener\\ExifMetadataProvider","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php","line":86,"function":"handle","class":"OCA\\Photos\\Listener\\ExifMetadataProvider","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":230,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":59,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":86,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":98,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/FilesMetadata/FilesMetadataManager.php","line":115,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/core/BackgroundJobs/GenerateMetadataJob.php","line":107,"function":"refreshMetadata","class":"OC\\FilesMetadata\\FilesMetadataManager","type":"->"},{"file":"/var/www/nextcloud/core/BackgroundJobs/GenerateMetadataJob.php","line":99,"function":"scanFolder","class":"OC\\Core\\BackgroundJobs\\GenerateMetadataJob","type":"->"},{"file":"/var/www/nextcloud/core/BackgroundJobs/GenerateMetadataJob.php","line":99,"function":"scanFolder","class":"OC\\Core\\BackgroundJobs\\GenerateMetadataJob","type":"->"},{"file":"/var/www/nextcloud/core/BackgroundJobs/GenerateMetadataJob.php","line":88,"function":"scanFolder","class":"OC\\Core\\BackgroundJobs\\GenerateMetadataJob","type":"->"},{"file":"/var/www/nextcloud/core/BackgroundJobs/GenerateMetadataJob.php","line":74,"function":"scanFilesForUser","class":"OC\\Core\\BackgroundJobs\\GenerateMetadataJob","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/Job.php","line":80,"function":"run","class":"OC\\Core\\BackgroundJobs\\GenerateMetadataJob","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":102,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":92,"function":"start","class":"OCP\\BackgroundJob\\TimedJob","type":"->"},{"file":"/var/www/nextcloud/cron.php","line":176,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/nextcloud/apps/photos/lib/Listener/ExifMetadataProvider.php","Line":130,"message":"Error while generating metadata for fileid 44840","exception":{},"CustomMessage":"Error while generating metadata for fileid 44840"}}

pichto commented 4 months ago

Same for me on 29.0.2 (just updated 1 hour ago, log file filled with this error since) but was not present before.

m1raculix commented 4 months ago

+1

damarges commented 4 months ago

any news on that one?

weberhofer commented 3 months ago

The same issue can be seen in version 29.0.4.1

Upd: What I see is the same error but the preview app causing it. So it's maybe erlated but not the same issue. Sorry for the noise.

thomasmerz commented 2 months ago

Are there any news regarding this? My 29.0.4 still shows / generates not previews for all images…

nmbgeek commented 1 month ago

29.0.6 and still seeing this

thomasmerz commented 1 month ago

Last seen on 2024-08-24 - not with 29.0.6 anymore 🤷🏼‍♂️

thomasmerz commented 1 month ago

Oh now… 😱 with version 29.0.6.1 I see this:

{"reqId":"BJUAoPwLG2vS1AUAavAt","level":3,"time":"2024-09-11T17:49:06+00:00","remoteAddr":"172.25.0.2","user":"BBB","app":"index","method":"GET","url":"/index.php/core/preview?fileId=36229309&x=1024&y=1024&a=1&mode=cover&forceIcon=0&mimeFallback=0","message":"Exception thrown: OCP\Files\GenericFileException","userAgent":"Mozilla/5.0 (iOS) Nextcloud-iOS/5.5.5","version":"29.0.6.1","exception":{"Exception":"OCP\Files\GenericFileException","Message":"","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Files/SimpleFS/SimpleFile.php","line":74,"function":"getContent","class":"OC\Files\Node\File","type":"->","args":[]},{"file":"/var/www/html/lib/private/Preview/GeneratorHelper.php","line":73,"function":"getContent","class":"OC\Files\SimpleFS\SimpleFile","type":"->","args":[]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":190,"function":"getImage","class":"OC\Preview\GeneratorHelper","type":"->","args":[["OC\Files\SimpleFS\SimpleFile"]]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":110,"function":"generatePreviews","class":"OC\Preview\Generator","type":"->","args":[["OC\Files\Node\File"],[[1024,1024,false,"cover"]],"image/jpeg"]},{"file":"/var/www/html/lib/private/PreviewManager.php","line":190,"function":"getPreview","class":"OC\Preview\Generator","type":"->","args":[["OC\Files\Node\File"],1024,1024,false,"cover",null]},{"file":"/var/www/html/core/Controller/PreviewController.php","line":178,"function":"getPreview","class":"OC\PreviewManager","type":"->","args":[["OC\Files\Node\File"],1024,1024,false,"cover"]},{"file":"/var/www/html/core/Controller/PreviewController.php","line":142,"function":"fetchPreview","class":"OC\Core\Controller\PreviewController","type":"->","args":[["OC\Files\Node\File"],1024,1024,true,false,"cover",false]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"getPreviewByFileId","class":"OC\Core\Controller\PreviewController","type":"->","args":[36229309,1024,1024,true,false,"cover",false]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[["OC\Core\Controller\PreviewController"],"getPreviewByFileId"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[["OC\Core\Controller\PreviewController"],"getPreviewByFileId"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":331,"function":"main","class":"OC\AppFramework\App","type":"::","args":["OC\Core\Controller\PreviewController","getPreviewByFileId",["OC\AppFramework\DependencyInjection\DIContainer"],["core.preview.getpreviewbyfileid"]]},{"file":"/var/www/html/lib/base.php","line":1058,"function":"match","class":"OC\Route\Router","type":"->","args":["/core/preview"]},{"file":"/var/www/html/index.php","line":49,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/Files/Node/File.php","Line":56,"message":"","exception":{},"CustomMessage":"Exception thrown: OCP\Files\GenericFileException"}}