Open bernd-wechner opened 10 months ago
I have exactly the same issue
Same here.
Same error on Nextcloud 28.0.2
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"}
Same issue too
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"
Are there any more logfiles / information I could provide to get a feeling about the root-cause and maybe some fix for the future?
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?
Same here.
FYI, I just upgraded to 29.0.0 and problem is also present in this version.
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"}}
Same for me on 29.0.2 (just updated 1 hour ago, log file filled with this error since) but was not present before.
+1
any news on that one?
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.
Are there any news regarding this? My 29.0.4 still shows / generates not previews for all images…
29.0.6 and still seeing this
Last seen on 2024-08-24 - not with 29.0.6 anymore 🤷🏼♂️
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"}}
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).
and the raw message:
Screenshots A sample of a Logging viewer:
Nextcloud (please complete the following information):
Desktop (please complete the following information):