In NC 32 (using stable32 branch), quota is set to 0B for all the users as default and users have files from shares/from the skeleton directory.
Now if the encryption app is enabled and all files are explicitly encrypted, the existing files are corrupted and cannot be opened from the web interface anymore.
Looking them up in the data directory, the files are 0 bytes in size.
Either quota should've been ignored and files should've been encrypted in place since they already existed with quota = 0,
or the encryption should fail with an error message saying that the quota is insufficient for the operation.
{"reqId":"W6JBXqbemjmQlSQEMr4b","level":3,"time":"2026-04-29T09:04:35+00:00","remoteAddr":"192.168.21.2","user":"admin","app":"webdav","method":"GET","url":"/remote.php/dav/files/admin/Media/photo-1503991721143-75f95ebf1e55.jpeg","scriptName":"/remote.php","message":"Unable to get header block for files/Media/photo-1503991721143-75f95ebf1e55.jpeg","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36","version":"32.0.8.2","exception":{"Exception":"Sabre\\DAV\\Exception","Message":"Unable to get header block for files/Media/photo-1503991721143-75f95ebf1e55.jpeg","Code":0,"Trace":[{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/File.php","line":465,"function":"convertToSabreException","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[{"__class__":"OCP\\Encryption\\Exceptions\\InvalidHeaderException"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":85,"function":"get","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpGet","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:GET",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/Server.php","line":212,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/apps/dav/lib/Server.php","line":426,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/appinfo/v2/remote.php","line":22,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/remote.php","line":151,"args":["/var/www/html/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/apps/dav/lib/Connector/Sabre/File.php","Line":608,"Previous":{"Exception":"OCP\\Encryption\\Exceptions\\InvalidHeaderException","Message":"Unable to get header block for files/Media/photo-1503991721143-75f95ebf1e55.jpeg","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php","line":143,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["files/Media/photo-1503991721143-75f95ebf1e55.jpeg","r"]},{"file":"/var/www/html/lib/private/Files/View.php","line":1211,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["files/Media/photo-1503991721143-75f95ebf1e55.jpeg","r"]},{"file":"/var/www/html/lib/private/Files/View.php","line":1039,"function":"basicOperation","class":"OC\\Files\\View","type":"->","args":["fopen","/Media/photo-1503991721143-75f95ebf1e55.jpeg",["read"],"r"]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/File.php","line":463,"function":"fopen","class":"OC\\Files\\View","type":"->","args":["Media/photo-1503991721143-75f95ebf1e55.jpeg","r"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":85,"function":"get","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpGet","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:GET",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/Server.php","line":212,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/apps/dav/lib/Server.php","line":426,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/appinfo/v2/remote.php","line":22,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/remote.php","line":151,"args":["/var/www/html/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/lib/private/Files/Storage/Wrapper/Encryption.php","Line":352,"Hint":"Unable to get header block for files/Media/photo-1503991721143-75f95ebf1e55.jpeg"},"message":"Unable to get header block for files/Media/photo-1503991721143-75f95ebf1e55.jpeg","exception":{},"CustomMessage":"Unable to get header block for files/Media/photo-1503991721143-75f95ebf1e55.jpeg"}}
{"reqId":"W6JBXqbemjmQlSQEMr4b","level":3,"time":"2026-04-29T09:04:35+00:00","remoteAddr":"192.168.21.2","user":"admin","app":"no app in context","method":"GET","url":"/remote.php/dav/files/admin/Media/photo-1503991721143-75f95ebf1e55.jpeg","scriptName":"/remote.php","message":"Uncaught exception","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36","version":"32.0.8.2","exception":{"Exception":"Sabre\\DAV\\Exception","Message":"Unable to get header block for files/Media/photo-1503991721143-75f95ebf1e55.jpeg","Code":0,"Trace":[{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/File.php","line":465,"function":"convertToSabreException","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[{"__class__":"OCP\\Encryption\\Exceptions\\InvalidHeaderException"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":85,"function":"get","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpGet","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:GET",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/Server.php","line":212,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/apps/dav/lib/Server.php","line":426,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/appinfo/v2/remote.php","line":22,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/remote.php","line":151,"args":["/var/www/html/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/apps/dav/lib/Connector/Sabre/File.php","Line":608,"Previous":{"Exception":"OCP\\Encryption\\Exceptions\\InvalidHeaderException","Message":"Unable to get header block for files/Media/photo-1503991721143-75f95ebf1e55.jpeg","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php","line":143,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["files/Media/photo-1503991721143-75f95ebf1e55.jpeg","r"]},{"file":"/var/www/html/lib/private/Files/View.php","line":1211,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["files/Media/photo-1503991721143-75f95ebf1e55.jpeg","r"]},{"file":"/var/www/html/lib/private/Files/View.php","line":1039,"function":"basicOperation","class":"OC\\Files\\View","type":"->","args":["fopen","/Media/photo-1503991721143-75f95ebf1e55.jpeg",["read"],"r"]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/File.php","line":463,"function":"fopen","class":"OC\\Files\\View","type":"->","args":["Media/photo-1503991721143-75f95ebf1e55.jpeg","r"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":85,"function":"get","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpGet","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:GET",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/Server.php","line":212,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/apps/dav/lib/Server.php","line":426,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/appinfo/v2/remote.php","line":22,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/remote.php","line":151,"args":["/var/www/html/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/lib/private/Files/Storage/Wrapper/Encryption.php","Line":352,"Hint":"Unable to get header block for files/Media/photo-1503991721143-75f95ebf1e55.jpeg"},"message":"Uncaught exception","exception":{},"CustomMessage":"Uncaught exception"}}
{"reqId":"WdB84RFKKTkGSBG8ziXP","level":2,"time":"2026-04-29T09:05:04+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","scriptName":"/var/www/html/cron.php","message":"issue while running UpdateSingleMetadata","userAgent":"--","version":"32.0.8.2","occ_command":["/var/www/html/cron.php"],"exception":{"Exception":"OCP\\Encryption\\Exceptions\\InvalidHeaderException","Message":"Unable to get header block for files/Media/photo-1503991721143-75f95ebf1e55.jpeg","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php","line":143,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["files/Media/photo-1503991721143-75f95ebf1e55.jpeg","r"]},{"file":"/var/www/html/lib/private/Files/View.php","line":1211,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["files/Media/photo-1503991721143-75f95ebf1e55.jpeg","r"]},{"file":"/var/www/html/lib/private/Files/View.php","line":1039,"function":"basicOperation","class":"OC\\Files\\View","type":"->","args":["fopen","/admin/files/Media/photo-1503991721143-75f95ebf1e55.jpeg",["read"],"r"]},{"file":"/var/www/html/lib/private/Files/Node/File.php","line":95,"function":"fopen","class":"OC\\Files\\View","type":"->","args":["/admin/files/Media/photo-1503991721143-75f95ebf1e55.jpeg","r"]},{"file":"/var/www/html/lib/private/Preview/ProviderV2.php","line":76,"function":"fopen","class":"OC\\Files\\Node\\File","type":"->","args":["r"]},{"file":"/var/www/html/lib/private/Preview/Image.php","line":29,"function":"getLocalFile","class":"OC\\Preview\\ProviderV2","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"}]},{"file":"/var/www/html/lib/private/Preview/GeneratorHelper.php","line":45,"function":"getThumbnail","class":"OC\\Preview\\Image","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},4096,4096]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":342,"function":"getThumbnail","class":"OC\\Preview\\GeneratorHelper","type":"->","args":[{"__class__":"OC\\Preview\\JPEG"},{"__class__":"OC\\Files\\Node\\File"},4096,4096]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":313,"function":"generateProviderPreview","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\SimpleFS\\SimpleFolder"},{"__class__":"OC\\Files\\Node\\File"},4096,4096,false,true,"image/jpeg",""]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":117,"function":"getMaxPreview","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\SimpleFS\\SimpleFolder"},[],{"__class__":"OC\\Files\\Node\\File"},"image/jpeg",""]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":87,"function":"generatePreviews","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},[{"width":64,"height":64,"crop":false,"mode":"fill"}],"image/jpeg",false]},{"file":"/var/www/html/lib/private/PreviewManager.php","line":161,"function":"getPreview","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},64,64,false,"fill",null,false]},{"file":"/var/www/html/lib/private/Blurhash/Listener/GenerateBlurhashMetadata.php","line":76,"function":"getPreview","class":"OC\\PreviewManager","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},64,64,false,"fill",null,false]},{"file":"/var/www/html/lib/private/EventDispatcher/ServiceEventListener.php","line":57,"function":"handle","class":"OC\\Blurhash\\Listener\\GenerateBlurhashMetadata","type":"->","args":[{"__class__":"OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent"}]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":220,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->","args":[{"__class__":"OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent"},"OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent",{"__class__":"Symfony\\Component\\EventDispatcher\\EventDispatcher"}]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":56,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[[{"__class__":"Closure"}],"OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent",{"__class__":"OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent"}]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":67,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[{"__class__":"OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent"},"OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent"]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":79,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":["OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent",{"__class__":"OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent"}]},{"file":"/var/www/html/lib/private/FilesMetadata/FilesMetadataManager.php","line":100,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":[{"__class__":"OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent"}]},{"file":"/var/www/html/lib/private/FilesMetadata/Job/UpdateSingleMetadata.php","line":43,"function":"refreshMetadata","class":"OC\\FilesMetadata\\FilesMetadataManager","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},2]},{"file":"/var/www/html/lib/public/BackgroundJob/Job.php","line":61,"function":"run","class":"OC\\FilesMetadata\\Job\\UpdateSingleMetadata","type":"->","args":[["admin",208]]},{"file":"/var/www/html/lib/public/BackgroundJob/QueuedJob.php","line":43,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"}]},{"file":"/var/www/html/lib/public/BackgroundJob/QueuedJob.php","line":29,"function":"start","class":"OCP\\BackgroundJob\\QueuedJob","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"}]},{"file":"/var/www/html/cron.php","line":175,"function":"execute","class":"OCP\\BackgroundJob\\QueuedJob","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"}]}],"File":"/var/www/html/lib/private/Files/Storage/Wrapper/Encryption.php","Line":352,"Hint":"Unable to get header block for files/Media/photo-1503991721143-75f95ebf1e55.jpeg","message":"issue while running UpdateSingleMetadata","exception":{},"userId":"admin","fileId":208,"CustomMessage":"issue while running UpdateSingleMetadata"}}
Bug description
In NC 32 (using stable32 branch), quota is set to 0B for all the users as default and users have files from shares/from the skeleton directory.
Now if the encryption app is enabled and all files are explicitly encrypted, the existing files are corrupted and cannot be opened from the web interface anymore.
Looking them up in the data directory, the files are 0 bytes in size.
The metadata in NC files is intact for modification date and size, until a
files:scanis run, after which size changes to 0 KB.Steps to reproduce
occ app:enable encryptionocc encryption:enable-master-keyocc encryption:enableocc encryption:encrypt-all(type 'y' here)Expected behavior
Either quota should've been ignored and files should've been encrypted in place since they already existed with quota = 0,
or the encryption should fail with an error message saying that the quota is insufficient for the operation.
Nextcloud Server version
32
Operating system
None
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
Encryption is Enabled
What user-backends are you using?
Configuration report
{ "system": { "debug": true, "profiler": true, "apps_paths": [ { "path": "\/var\/www\/html\/apps", "url": "\/apps", "writable": false }, { "path": "\/var\/www\/html\/apps-extra", "url": "\/apps-extra", "writable": false }, { "path": "\/var\/www\/html\/apps-shared", "url": "\/apps-shared", "writable": false }, { "path": "\/var\/www\/html\/apps-writable", "url": "\/apps-writable", "writable": true } ], "allow_local_remote_servers": true, "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_smtpmode": "smtp", "mail_sendmailmode": "smtp", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "1025", "skeletondirectory": "\/skeleton", "setup_create_db_user": false, "loglevel": 2, "log_query": false, "query_log_file": "\/shared\/log\/querylog-stable32.log", "query_log_file_requestid": "yes", "diagnostics.logging": false, "diagnostics.logging.threshold": 0, "log.condition": { "apps": [ "diagnostics", "admin_audit" ] }, "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "localhost", "nextcloud", "stable32.nc.ncweb", "192.168.21.9", "localhost" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "32.0.8.2", "overwrite.cli.url": "http:\/\/stable32.nc.ncweb", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbtableprefix": "oc_", "mysql.utf8mb4": true, "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "updater.release.channel": "git", "installed": true, "instanceid": "***REMOVED SENSITIVE VALUE***", "lookup_server": "", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 6379 }, "memcache.local": "\\OC\\Memcache\\Redis", "memcache.locking": "\\OC\\Memcache\\Redis", "trusted_proxies": "***REMOVED SENSITIVE VALUE***", "theme": "", "maintenance": false } }List of activated Apps
Nextcloud Signing status
Nextcloud Logs
{"reqId":"W6JBXqbemjmQlSQEMr4b","level":3,"time":"2026-04-29T09:04:35+00:00","remoteAddr":"192.168.21.2","user":"admin","app":"webdav","method":"GET","url":"/remote.php/dav/files/admin/Media/photo-1503991721143-75f95ebf1e55.jpeg","scriptName":"/remote.php","message":"Unable to get header block for files/Media/photo-1503991721143-75f95ebf1e55.jpeg","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36","version":"32.0.8.2","exception":{"Exception":"Sabre\\DAV\\Exception","Message":"Unable to get header block for files/Media/photo-1503991721143-75f95ebf1e55.jpeg","Code":0,"Trace":[{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/File.php","line":465,"function":"convertToSabreException","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[{"__class__":"OCP\\Encryption\\Exceptions\\InvalidHeaderException"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":85,"function":"get","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpGet","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:GET",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/Server.php","line":212,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/apps/dav/lib/Server.php","line":426,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/appinfo/v2/remote.php","line":22,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/remote.php","line":151,"args":["/var/www/html/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/apps/dav/lib/Connector/Sabre/File.php","Line":608,"Previous":{"Exception":"OCP\\Encryption\\Exceptions\\InvalidHeaderException","Message":"Unable to get header block for files/Media/photo-1503991721143-75f95ebf1e55.jpeg","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php","line":143,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["files/Media/photo-1503991721143-75f95ebf1e55.jpeg","r"]},{"file":"/var/www/html/lib/private/Files/View.php","line":1211,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["files/Media/photo-1503991721143-75f95ebf1e55.jpeg","r"]},{"file":"/var/www/html/lib/private/Files/View.php","line":1039,"function":"basicOperation","class":"OC\\Files\\View","type":"->","args":["fopen","/Media/photo-1503991721143-75f95ebf1e55.jpeg",["read"],"r"]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/File.php","line":463,"function":"fopen","class":"OC\\Files\\View","type":"->","args":["Media/photo-1503991721143-75f95ebf1e55.jpeg","r"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":85,"function":"get","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpGet","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:GET",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/Server.php","line":212,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/apps/dav/lib/Server.php","line":426,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/appinfo/v2/remote.php","line":22,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/remote.php","line":151,"args":["/var/www/html/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/lib/private/Files/Storage/Wrapper/Encryption.php","Line":352,"Hint":"Unable to get header block for files/Media/photo-1503991721143-75f95ebf1e55.jpeg"},"message":"Unable to get header block for files/Media/photo-1503991721143-75f95ebf1e55.jpeg","exception":{},"CustomMessage":"Unable to get header block for files/Media/photo-1503991721143-75f95ebf1e55.jpeg"}} {"reqId":"W6JBXqbemjmQlSQEMr4b","level":3,"time":"2026-04-29T09:04:35+00:00","remoteAddr":"192.168.21.2","user":"admin","app":"no app in context","method":"GET","url":"/remote.php/dav/files/admin/Media/photo-1503991721143-75f95ebf1e55.jpeg","scriptName":"/remote.php","message":"Uncaught exception","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36","version":"32.0.8.2","exception":{"Exception":"Sabre\\DAV\\Exception","Message":"Unable to get header block for files/Media/photo-1503991721143-75f95ebf1e55.jpeg","Code":0,"Trace":[{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/File.php","line":465,"function":"convertToSabreException","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[{"__class__":"OCP\\Encryption\\Exceptions\\InvalidHeaderException"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":85,"function":"get","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpGet","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:GET",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/Server.php","line":212,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/apps/dav/lib/Server.php","line":426,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/appinfo/v2/remote.php","line":22,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/remote.php","line":151,"args":["/var/www/html/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/apps/dav/lib/Connector/Sabre/File.php","Line":608,"Previous":{"Exception":"OCP\\Encryption\\Exceptions\\InvalidHeaderException","Message":"Unable to get header block for files/Media/photo-1503991721143-75f95ebf1e55.jpeg","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php","line":143,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["files/Media/photo-1503991721143-75f95ebf1e55.jpeg","r"]},{"file":"/var/www/html/lib/private/Files/View.php","line":1211,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["files/Media/photo-1503991721143-75f95ebf1e55.jpeg","r"]},{"file":"/var/www/html/lib/private/Files/View.php","line":1039,"function":"basicOperation","class":"OC\\Files\\View","type":"->","args":["fopen","/Media/photo-1503991721143-75f95ebf1e55.jpeg",["read"],"r"]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/File.php","line":463,"function":"fopen","class":"OC\\Files\\View","type":"->","args":["Media/photo-1503991721143-75f95ebf1e55.jpeg","r"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":85,"function":"get","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpGet","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:GET",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/Server.php","line":212,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/apps/dav/lib/Server.php","line":426,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/appinfo/v2/remote.php","line":22,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/remote.php","line":151,"args":["/var/www/html/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/lib/private/Files/Storage/Wrapper/Encryption.php","Line":352,"Hint":"Unable to get header block for files/Media/photo-1503991721143-75f95ebf1e55.jpeg"},"message":"Uncaught exception","exception":{},"CustomMessage":"Uncaught exception"}} {"reqId":"WdB84RFKKTkGSBG8ziXP","level":2,"time":"2026-04-29T09:05:04+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","scriptName":"/var/www/html/cron.php","message":"issue while running UpdateSingleMetadata","userAgent":"--","version":"32.0.8.2","occ_command":["/var/www/html/cron.php"],"exception":{"Exception":"OCP\\Encryption\\Exceptions\\InvalidHeaderException","Message":"Unable to get header block for files/Media/photo-1503991721143-75f95ebf1e55.jpeg","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php","line":143,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["files/Media/photo-1503991721143-75f95ebf1e55.jpeg","r"]},{"file":"/var/www/html/lib/private/Files/View.php","line":1211,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["files/Media/photo-1503991721143-75f95ebf1e55.jpeg","r"]},{"file":"/var/www/html/lib/private/Files/View.php","line":1039,"function":"basicOperation","class":"OC\\Files\\View","type":"->","args":["fopen","/admin/files/Media/photo-1503991721143-75f95ebf1e55.jpeg",["read"],"r"]},{"file":"/var/www/html/lib/private/Files/Node/File.php","line":95,"function":"fopen","class":"OC\\Files\\View","type":"->","args":["/admin/files/Media/photo-1503991721143-75f95ebf1e55.jpeg","r"]},{"file":"/var/www/html/lib/private/Preview/ProviderV2.php","line":76,"function":"fopen","class":"OC\\Files\\Node\\File","type":"->","args":["r"]},{"file":"/var/www/html/lib/private/Preview/Image.php","line":29,"function":"getLocalFile","class":"OC\\Preview\\ProviderV2","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"}]},{"file":"/var/www/html/lib/private/Preview/GeneratorHelper.php","line":45,"function":"getThumbnail","class":"OC\\Preview\\Image","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},4096,4096]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":342,"function":"getThumbnail","class":"OC\\Preview\\GeneratorHelper","type":"->","args":[{"__class__":"OC\\Preview\\JPEG"},{"__class__":"OC\\Files\\Node\\File"},4096,4096]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":313,"function":"generateProviderPreview","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\SimpleFS\\SimpleFolder"},{"__class__":"OC\\Files\\Node\\File"},4096,4096,false,true,"image/jpeg",""]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":117,"function":"getMaxPreview","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\SimpleFS\\SimpleFolder"},[],{"__class__":"OC\\Files\\Node\\File"},"image/jpeg",""]},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":87,"function":"generatePreviews","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},[{"width":64,"height":64,"crop":false,"mode":"fill"}],"image/jpeg",false]},{"file":"/var/www/html/lib/private/PreviewManager.php","line":161,"function":"getPreview","class":"OC\\Preview\\Generator","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},64,64,false,"fill",null,false]},{"file":"/var/www/html/lib/private/Blurhash/Listener/GenerateBlurhashMetadata.php","line":76,"function":"getPreview","class":"OC\\PreviewManager","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},64,64,false,"fill",null,false]},{"file":"/var/www/html/lib/private/EventDispatcher/ServiceEventListener.php","line":57,"function":"handle","class":"OC\\Blurhash\\Listener\\GenerateBlurhashMetadata","type":"->","args":[{"__class__":"OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent"}]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":220,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->","args":[{"__class__":"OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent"},"OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent",{"__class__":"Symfony\\Component\\EventDispatcher\\EventDispatcher"}]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":56,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[[{"__class__":"Closure"}],"OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent",{"__class__":"OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent"}]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":67,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[{"__class__":"OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent"},"OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent"]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":79,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":["OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent",{"__class__":"OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent"}]},{"file":"/var/www/html/lib/private/FilesMetadata/FilesMetadataManager.php","line":100,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":[{"__class__":"OCP\\FilesMetadata\\Event\\MetadataBackgroundEvent"}]},{"file":"/var/www/html/lib/private/FilesMetadata/Job/UpdateSingleMetadata.php","line":43,"function":"refreshMetadata","class":"OC\\FilesMetadata\\FilesMetadataManager","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},2]},{"file":"/var/www/html/lib/public/BackgroundJob/Job.php","line":61,"function":"run","class":"OC\\FilesMetadata\\Job\\UpdateSingleMetadata","type":"->","args":[["admin",208]]},{"file":"/var/www/html/lib/public/BackgroundJob/QueuedJob.php","line":43,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"}]},{"file":"/var/www/html/lib/public/BackgroundJob/QueuedJob.php","line":29,"function":"start","class":"OCP\\BackgroundJob\\QueuedJob","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"}]},{"file":"/var/www/html/cron.php","line":175,"function":"execute","class":"OCP\\BackgroundJob\\QueuedJob","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"}]}],"File":"/var/www/html/lib/private/Files/Storage/Wrapper/Encryption.php","Line":352,"Hint":"Unable to get header block for files/Media/photo-1503991721143-75f95ebf1e55.jpeg","message":"issue while running UpdateSingleMetadata","exception":{},"userId":"admin","fileId":208,"CustomMessage":"issue while running UpdateSingleMetadata"}}Additional info
No response