Unable to get header block for files AND Move or copy: failed on some elements

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 32.0.4
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 24.04 LTS
  • Web server and version (e.g, Apache 2.4.25):
    • Apache 2.4.66 (nextcloud-aio-apache container)
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • Caddy v2.10.2 (inside tailscale)
  • PHP version (e.g, 8.3):
    • PHP 8.3.29 (nextcloud-aio-nextcloud)
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • I don't know.
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • AIO - Docker Compose - Proxmox LXC Container
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No
  • I use Tailscale to not expose Nextcloud to the public.
  • I use a single virtual drive in Proxmox, which at some point in the past I increased.

Summary of the issue you are facing:

I recently uploaded all my files from my linux and windows pc to my new Nextcloud instance. I use the Nextcloud client for this. On a third laptop, I wanted download all the files from Nextcloud. I found that some files from my linux and windows system produce the error (see log entries or screenshot for more detail):

  • Application - No app in context: InvalidHeaderException Unable to get header block for files/…
  • Application Webdav: InvalidHeaderException Unable to get header block for files/…

I don’t see any similarity between the files. They are in different folders, have small (couple of KB) to medium (couple of MB) sizes, and different extensions (like jpg, css, pdf, …). Most files are fine only 7 files out of ~40000 have this issue. Further I found out that I’m not able to move or copy them

  • Move or copy: failed on some elements

Thank you for your help!

Steps to replicate it (hint: details matter!):

  1. Unfortunately, I have no I idea how to do this, sorry :confused:

Log entries

Nextcloud

Web Interface:

Nextcloud log (when trying to move/copy a file):

{"reqId":"yHekoRxlxHdFJYOJFXIF","level":3,"time":"2026-01-30T09:24:07+00:00","remoteAddr":"192.168.178.130","user":"admin","app":"webdav","method":"COPY","url":"/remote.php/dav/files/admin/image.jpg","scriptName":"/remote.php","message":"Unable to get header block for files/image.jpg","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:147.0) Gecko/20100101 Firefox/147.0","version":"32.0.4.1","exception":{"Exception":"OCP\\Encryption\\Exceptions\\InvalidHeaderException","Message":"Unable to get header block for files/image.jpg","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Files/Storage/Wrapper/Encryption.php","line":690,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["files/image.jpg","r"]},{"file":"/var/www/html/lib/private/Files/Storage/Wrapper/Encryption.php","line":576,"function":"copyBetweenStorage","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":[{"__class__":"OC\\Files\\Storage\\Wrapper\\Encryption","cache":null,"scanner":null,"watcher":null,"propagator":null,"updater":null},"files/image.jpg","files/Hintergrundbilder/image.jpg",false,false]},{"file":"/var/www/html/lib/private/Files/Storage/Wrapper/Encryption.php","line":251,"function":"copyFromStorage","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":[{"__class__":"OC\\Files\\Storage\\Wrapper\\Encryption","cache":null,"scanner":null,"watcher":null,"propagator":null,"updater":null},"files/image.jpg","files/Hintergrundbilder/image.jpg"]},{"file":"/var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php","line":139,"function":"copy","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["files/image.jpg","files/Hintergrundbilder/image.jpg"]},{"file":"/var/www/html/lib/private/Files/View.php","line":966,"function":"copy","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["files/image.jpg","files/Hintergrundbilder/image.jpg"]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/Directory.php","line":471,"function":"copy","class":"OC\\Files\\View","type":"->","args":["/image.jpg","/Hintergrundbilder/image.jpg"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Tree.php","line":150,"function":"copyInto","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["image.jpg","/image.jpg",{"__class__":"OCA\\DAV\\Connector\\Sabre\\File"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":659,"function":"copy","class":"Sabre\\DAV\\Tree","type":"->","args":["files/admin/image.jpg","files/admin/Hintergrundbilder/image.jpg"]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpCopy","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:COPY",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/Server.php","line":211,"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":424,"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/image.jpg","message":"Unable to get header block for files/image.jpg","exception":{},"CustomMessage":"Unable to get header block for files/image.jpg"}}
{"reqId":"yHekoRxlxHdFJYOJFXIF","level":3,"time":"2026-01-30T09:24:07+00:00","remoteAddr":"192.168.178.130","user":"admin","app":"no app in context","method":"COPY","url":"/remote.php/dav/files/admin/image.jpg","scriptName":"/remote.php","message":"Uncaught exception","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:147.0) Gecko/20100101 Firefox/147.0","version":"32.0.4.1","exception":{"Exception":"OCP\\Encryption\\Exceptions\\InvalidHeaderException","Message":"Unable to get header block for files/image.jpg","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Files/Storage/Wrapper/Encryption.php","line":690,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["files/image.jpg","r"]},{"file":"/var/www/html/lib/private/Files/Storage/Wrapper/Encryption.php","line":576,"function":"copyBetweenStorage","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":[{"__class__":"OC\\Files\\Storage\\Wrapper\\Encryption","cache":null,"scanner":null,"watcher":null,"propagator":null,"updater":null},"files/image.jpg","files/Hintergrundbilder/image.jpg",false,false]},{"file":"/var/www/html/lib/private/Files/Storage/Wrapper/Encryption.php","line":251,"function":"copyFromStorage","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":[{"__class__":"OC\\Files\\Storage\\Wrapper\\Encryption","cache":null,"scanner":null,"watcher":null,"propagator":null,"updater":null},"files/image.jpg","files/Hintergrundbilder/image.jpg"]},{"file":"/var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php","line":139,"function":"copy","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["files/image.jpg","files/Hintergrundbilder/image.jpg"]},{"file":"/var/www/html/lib/private/Files/View.php","line":966,"function":"copy","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["files/image.jpg","files/Hintergrundbilder/image.jpg"]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/Directory.php","line":471,"function":"copy","class":"OC\\Files\\View","type":"->","args":["/image.jpg","/Hintergrundbilder/image.jpg"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Tree.php","line":150,"function":"copyInto","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["image.jpg","/image.jpg",{"__class__":"OCA\\DAV\\Connector\\Sabre\\File"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":659,"function":"copy","class":"Sabre\\DAV\\Tree","type":"->","args":["files/admin/image.jpg","files/admin/Hintergrundbilder/image.jpg"]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpCopy","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:COPY",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/Server.php","line":211,"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":424,"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/image.jpg","message":"Uncaught exception","exception":{},"CustomMessage":"Uncaught exception"}}

When syncing fails with client from Windows laptop:

{"reqId":"3UHv4rxevASeoYeEPe7z","level":3,"time":"2026-01-30T09:47:06+00:00","remoteAddr":"192.168.178.130","user":"admin","app":"webdav","method":"GET","url":"/remote.php/dav/files/admin/image.jpg","scriptName":"/remote.php","message":"Unable to get header block for files/image.jpg","userAgent":"Mozilla/5.0 (Windows) mirall/4.0.6 (build 20260122) (Nextcloud, windows-10.0.26200 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"32.0.4.1","clientReqId":"120d658e-7959-4f4c-839c-6b335b51687f","exception":{"Exception":"Sabre\\DAV\\Exception","Message":"Unable to get header block for files/image.jpg","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":211,"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":424,"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":603,"Previous":{"Exception":"OCP\\Encryption\\Exceptions\\InvalidHeaderException","Message":"Unable to get header block for files/image.jpg","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/image.jpg","r"]},{"file":"/var/www/html/lib/private/Files/View.php","line":1210,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["files/image.jpg","r"]},{"file":"/var/www/html/lib/private/Files/View.php","line":1038,"function":"basicOperation","class":"OC\\Files\\View","type":"->","args":["fopen","/image.jpg",["read"],"r"]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/File.php","line":463,"function":"fopen","class":"OC\\Files\\View","type":"->","args":["image.jpg","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":211,"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":424,"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/image.jpg"},"message":"Unable to get header block for files/image.jpg","exception":{},"CustomMessage":"Unable to get header block for files/image.jpg"}}
{"reqId":"3UHv4rxevASeoYeEPe7z","level":3,"time":"2026-01-30T09:47:06+00:00","remoteAddr":"192.168.178.130","user":"admin","app":"no app in context","method":"GET","url":"/remote.php/dav/files/admin/image.jpg","scriptName":"/remote.php","message":"Uncaught exception","userAgent":"Mozilla/5.0 (Windows) mirall/4.0.6 (build 20260122) (Nextcloud, windows-10.0.26200 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"32.0.4.1","clientReqId":"120d658e-7959-4f4c-839c-6b335b51687f","exception":{"Exception":"Sabre\\DAV\\Exception","Message":"Unable to get header block for files/image.jpg","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":211,"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":424,"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":603,"Previous":{"Exception":"OCP\\Encryption\\Exceptions\\InvalidHeaderException","Message":"Unable to get header block for files/image.jpg","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/image.jpg","r"]},{"file":"/var/www/html/lib/private/Files/View.php","line":1210,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["files/image.jpg","r"]},{"file":"/var/www/html/lib/private/Files/View.php","line":1038,"function":"basicOperation","class":"OC\\Files\\View","type":"->","args":["fopen","/image.jpg",["read"],"r"]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/File.php","line":463,"function":"fopen","class":"OC\\Files\\View","type":"->","args":["image.jpg","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":211,"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":424,"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/image.jpg"},"message":"Uncaught exception","exception":{},"CustomMessage":"Uncaught exception"}}

Configuration

Nextcloud

The output of occ config:list system:

{
    "system": {
        "one-click-instance": true,
        "one-click-instance.user-limit": 100,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "check_data_directory_permissions": false,
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "overwritehost": "***REMOVED MY DOMAIN***",
        "overwriteprotocol": "https",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "***REMOVED MY DOMAIN***"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "32.0.4.1",
        "overwrite.cli.url": "https:\/\/***REMOVED MY DOMAIN***\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "updatechecker": false,
        "updatedirectory": "\/nc-updater",
        "loglevel": 2,
        "app_install_overwrite": [
            "nextcloud-aio"
        ],
        "log_type": "file",
        "logfile": "\/var\/www\/html\/data\/nextcloud.log",
        "log_rotate_size": 10485760,
        "log.condition": {
            "apps": [
                "admin_audit"
            ]
        },
        "preview_max_x": 2048,
        "preview_max_y": 2048,
        "jpeg_quality": 60,
        "enabledPreviewProviders": {
            "1": "OC\\Preview\\Image",
            "2": "OC\\Preview\\MarkDown",
            "3": "OC\\Preview\\MP3",
            "4": "OC\\Preview\\TXT",
            "5": "OC\\Preview\\OpenDocument",
            "6": "OC\\Preview\\Movie",
            "7": "OC\\Preview\\Krita",
            "0": "OC\\Preview\\Imaginary",
            "23": "OC\\Preview\\ImaginaryPDF"
        },
        "enable_previews": true,
        "upgrade.disable-web": true,
        "mail_smtpmode": "smtp",
        "trashbin_retention_obligation": "auto, 30",
        "versions_retention_obligation": "auto, 30",
        "activity_expire_days": 30,
        "simpleSignUpLink.shown": false,
        "share_folder": "\/Shared",
        "one-click-instance.link": "https:\/\/nextcloud.com\/all-in-one\/",
        "upgrade.cli-upgrade-link": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/2726",
        "maintenance_window_start": 100,
        "allow_local_remote_servers": true,
        "davstorage.request_timeout": 3600,
        "documentation_url.server_logs": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/5425",
        "htaccess.RewriteBase": "\/",
        "dbpersistent": false,
        "auth.bruteforce.protection.enabled": true,
        "ratelimit.protection.enabled": true,
        "files_external_allow_create_new_local": false,
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "preview_imaginary_url": "***REMOVED SENSITIVE VALUE***",
        "preview_imaginary_key": "***REMOVED SENSITIVE VALUE***",
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [],
        "twofactor_enforced_excluded_groups": [],
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpauth": true,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "DOMAIN": "***REMOVED MY DOMAIN***"
    }
}

Apps

The output of occ app:list (if possible).

Enabled:
  - activity: 5.0.0-dev.0
  - admin_audit: 1.22.0
  - bruteforcesettings: 5.0.0-dev.0
  - calendar: 6.1.5
  - circles: 32.0.0
  - cloud_federation_api: 1.16.0
  - comments: 1.22.0
  - contacts: 8.3.1
  - contactsinteraction: 1.13.1
  - dashboard: 7.12.0
  - dav: 1.34.2
  - deck: 1.16.3
  - encryption: 2.20.0
  - federatedfilesharing: 1.22.0
  - federation: 1.22.0
  - files: 2.4.0
  - files_downloadlimit: 5.0.0-dev.0
  - files_pdfviewer: 5.0.0-dev.0
  - files_reminders: 1.5.0
  - files_sharing: 1.24.1
  - files_trashbin: 1.22.0
  - files_versions: 1.25.0
  - firstrunwizard: 5.0.0-dev.0
  - logreader: 5.0.0-dev.0
  - lookup_server_connector: 1.20.0
  - nextcloud-aio: 0.8.0
  - nextcloud_announcements: 4.0.0-dev.0
  - notes: 4.13.0
  - notifications: 5.0.0-dev.0
  - notify_push: 1.3.0
  - oauth2: 1.20.0
  - password_policy: 4.0.0-dev.0
  - photos: 5.0.0-dev.1
  - privacy: 4.0.0-dev.0
  - profile: 1.1.0
  - provisioning_api: 1.22.0
  - recommendations: 5.0.0-dev.0
  - related_resources: 3.0.0-dev.0
  - richdocuments: 9.0.2
  - serverinfo: 4.0.0-dev.0
  - settings: 1.15.1
  - sharebymail: 1.22.0
  - spreed: 22.0.8
  - support: 4.0.0-dev.0
  - survey_client: 4.0.0-dev.0
  - systemtags: 1.22.0
  - tasks: 0.17.1
  - text: 6.0.1
  - theming: 2.7.0
  - twofactor_backupcodes: 1.21.0
  - twofactor_totp: 14.0.0
  - updatenotification: 1.22.0
  - user_status: 1.12.0
  - viewer: 5.0.0-dev.0
  - weather_status: 1.12.0
  - webhook_listeners: 1.3.0
  - whiteboard: 1.5.4
  - workflowengine: 2.14.0
Disabled:
  - app_api: 32.0.0 (installed 32.0.0)
  - files_external: 1.24.0
  - suspicious_login: 10.0.0-dev.0
  - twofactor_nextcloud_notification: 6.0.0-dev.0
  - user_ldap: 1.23.0

It appears you activated server-side encryption. The error indicates a problem in the encryption sub-system.

Can you provide any context about when/how specifically you enabled encryption?

e.g.

  • Did you do that before or after uploading all your files?
  • Did you do a “encrypt-all”
  • etc

Sounds like all file movement was done through clients – no direct file changes at the OS level on the server, correct?

Hey thank you for taking your time and helping me :slight_smile: Most files (including the corrupted once) were upload after server-side encryption (SSE) was activated. I activated SSE initially using the graphical interface in the admin settings. However, the activation was stupid anyway as I don’t have any external memory drives :’)

The files were still fully accessible and did not change on the OS on the Linux and Windows PC that uploaded them. The files also have the right size and even preview was possible. If I want to move them, the OS lets me do it, however the client it back after a couple of seconds. So definitely a Server side problem. Making a copy and upload it resolves my problem, but I would be more comfortable to find out, what is the root course.

So in order to rule out SSE, I just deactivated it. Which was fine, but did not resolve the problem. I created a new folder on the new PC inside a folder that included my last corrupted files, this unfortunately deleted them on the server without trace. Fortunately, I have a backup… They are not in the trashbin and there is no activity about it.

If you have any idea, what could have caused / how to prevent it, it would be awesome to hear, bc this is a bit scary as I wanted Nextcloud + server images to be my backup solution…

I wonder if ‘‘‘run occ encryption:fix-encrypted-version’’’ could have fixed it.

The final error I received were:

Edit: I replaced the original file and folder name.

log:

{"reqId":"cdjK1DbAFWNvMYmJBQWn","level":3,"time":"2026-02-02T20:34:23+00:00","remoteAddr":"192.168.178.130","user":"admin","app":"webdav","method":"GET","url":"/remote.php/dav/files/admin/folder/test.pdf","scriptName":"/remote.php","message":"Could not open file: folder/test.pdf (156282), file doesn't seem to exist","userAgent":"Mozilla/5.0 (Windows) mirall/4.0.6 (build 20260122) (Nextcloud, windows-10.0.26200 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"32.0.4.1","clientReqId":"7fccf34d-b952-4510-a152-f0562659255e","exception":{"Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable","Message":"Could not open file: folder/test.pdf (156282), file doesn't seem to exist","Code":0,"Trace":[{"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":211,"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":424,"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":472,"message":"Could not open file: folder/test.pdf (156282), file doesn't seem to exist","exception":{},"CustomMessage":"Could not open file: folder/test.pdf (156282), file doesn't seem to exist"}}
{"reqId":"cdjK1DbAFWNvMYmJBQWn","level":3,"time":"2026-02-02T20:34:23+00:00","remoteAddr":"192.168.178.130","user":"admin","app":"no app in context","method":"GET","url":"/remote.php/dav/files/admin/test.pdf","scriptName":"/remote.php","message":"Uncaught exception","userAgent":"Mozilla/5.0 (Windows) mirall/4.0.6 (build 20260122) (Nextcloud, windows-10.0.26200 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"32.0.4.1","clientReqId":"7fccf34d-b952-4510-a152-f0562659255e","exception":{"Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable","Message":"Could not open file: test.pdf (156282), file doesn't seem to exist","Code":0,"Trace":[{"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":211,"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":424,"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":472,"message":"Uncaught exception","exception":{},"CustomMessage":"Uncaught exception"}}

Unfortunately, more errors appeared. I uploaded couple of pictures after server-side-encryption was disabled from my phone, which I can access/open via the webinterface. When syncing them with the nextcloud client to a new device, I received the following error for each file:

It’s not a shared file as I only have one user on my nextcloud.

Edit: I made sure that the files are not encrypted:

/var/www/html $ php occ encryption:decrypt-all
Server side encryption not enabled. Nothing to do.

Disabling the default encryption module fixed it Enabled encryption and disabled it again and now it throws me an error in the interface and the logs

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.