Nc +e2e encryption broken f.e. in collectives and in files?

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).

Hello, I now have two instances of NC (32.0.3 deb12 + 31.0.10 Hetzner) with major problems when using E2E encryption. (I have several more instances without encryption that are working fine.)
Simple text posts are created in Collectives and after a random amount of time, they can no longer be read by anyone.

I’ll start with just one (the error messages are almost identical):
NC: 32.0.3 on debian12, nginx, … rented server with ssh access.
About 5 hours ago, I created a short text file in Collectives with two screenshots integrated.
Now neither I as the owner nor anyone else can access the text.
The images are visible in a separate menu

How can I reshare a file in a collective as named in the log?

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 32.0.2
  • Operating system and version (e.g., Ubuntu 24.04):
    • debian12
  • Web server and version (e.g, Apache 2.4.25):
    • nginx

Summary of the issue you are facing:

not accessible textfile in collectives and same in files.

  1. Log entries

{“reqId”:“zp1RkX0i8WYeO1XrZUdP”,“level”:3,“time”:“2026-01-13T18:08:09+00:00”,“remoteAddr”:“x.x.x.x”,“user”:“cloud”,“app”:“encryption”,“method”:“GET”,“url”:“/remote.php/dav/files/cloud/Kollektive/yyyy/Readme.md?timestamp=1768327688",“message”:"Cannot decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0”,“version”:“32.0.3.2”,“data”:{“app”:“encryption”}}

{“reqId”:“zp1RkX0i8WYeO1XrZUdP”,“level”:3,“time”:“2026-01-13T18:08:09+00:00”,“remoteAddr”:“x.x.x.x”,“user”:“cloud”,“app”:“webdav”,“method”:“GET”,“url”:“/remote.php/dav/files/cloud/Kollektive/Gyyyy/Readme.md?timestamp=1768327688",“message”:"Cannot decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0”,“version”:“32.0.3.2”,“exception”:{“Exception”:“OC\Encryption\Exceptions\DecryptionFailedException”,“Message”:“Cannot decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.”,“Code”:0,“Trace”:[{“file”:“/var/www/html/nextcloud/lib/private/Files/Stream/Encryption.php”,“line”:461,“function”:“decrypt”,“class”:“OCA\Encryption\Crypto\Encryption”,“type”:“->”,“args”:["*** sensitive parameters replaced “]},{“file”:”/var/www/html/nextcloud/lib/private/Files/Stream/Encryption.php",“line”:260,“function”:“readCache”,“class”:“OC\Files\Stream\Encryption”,“type”:“->”},{“function”:“stream_read”,“class”:“OC\Files\Stream\Encryption”,“type”:“->”},{“file”:“/var/www/html/nextcloud/3rdparty/icewind/streams/src/Wrapper.php”,“line”:54,“function”:“fread”},{“file”:“/var/www/html/nextcloud/3rdparty/icewind/streams/src/CallbackWrapper.php”,“line”:94,“function”:“stream_read”,“class”:“Icewind\Streams\Wrapper”,“type”:“->”},{“function”:“stream_read”,“class”:“Icewind\Streams\CallbackWrapper”,“type”:“->”},{“file”:“/var/www/html/nextcloud/3rdparty/sabre/http/lib/Sapi.php”,“line”:108,“function”:“stream_copy_to_stream”},{“file”:“/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:490,“function”:“sendResponse”,“class”:“Sabre\HTTP\Sapi”,“type”:“::”},{“file”:“/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Server.php”,“line”:211,“function”:“invokeMethod”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/html/nextcloud/apps/dav/lib/Server.php”,“line”:424,“function”:“start”,“class”:“OCA\DAV\Connector\Sabre\Server”,“type”:“->”},{“file”:“/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php”,“line”:22,“function”:“exec”,“class”:“OCA\DAV\Server”,“type”:“->”},{“file”:“/var/www/html/nextcloud/remote.php”,“line”:151,“args”:[“/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php”],“function”:“require_once”}],“File”:“/var/www/html/nextcloud/apps/encryption/lib/Crypto/Encryption.php”,“Line”:315,“Hint”:“Diese Datei kann nicht entschl\u00fcsselt werden, es handelt sich wahrscheinlich um eine geteilte Datei. Bitte den Eigent\u00fcmer der Datei kontaktieren und ihn darum bitten, die Datei noch einmal zu teilen.”,“message”:“Cannot decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.”,“exception”:{},“CustomMessage”:“Cannot decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.”}}

Apps

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

sudo -u www-data php ./occ app:list

Enabled:

  • activity: 5.0.0-dev.0
  • admin_audit: 1.22.0
  • app_api: 32.0.0
  • auto_groups: 1.6.2
  • bruteforcesettings: 5.0.0-dev.0
  • calendar: 6.1.4
  • circles: 32.0.0
  • cloud_federation_api: 1.16.0
  • collectives: 3.5.0
  • comments: 1.22.0
  • contacts: 8.2.0
  • contactsinteraction: 1.13.1
  • dashboard: 7.12.0
  • dav: 1.34.2
  • deck: 1.16.3
  • encryption: 2.20.0
  • event_update_notification: 2.7.0
  • federatedfilesharing: 1.22.0
  • federation: 1.22.0
  • files: 2.4.0
  • files_accesscontrol: 3.0.2
  • files_downloadlimit: 5.0.0-dev.0
  • files_external: 1.24.0
  • files_pdfviewer: 5.0.0-dev.0
  • files_reminders: 1.5.0
  • files_retention: 3.0.0
  • files_sharing: 1.24.1
  • files_trashbin: 1.22.0
  • files_versions: 1.25.0
  • firstrunwizard: 5.0.0-dev.0
  • forms: 5.2.3
  • groupfolders: 20.1.7
  • logreader: 5.0.0-dev.0
  • lookup_server_connector: 1.20.0
  • metadata: 0.23.0
  • nextcloud_announcements: 4.0.0-dev.0
  • notifications: 5.0.0-dev.0
  • oauth2: 1.20.0
  • ownershiptransfer: 1.3.0
  • password_policy: 4.0.0-dev.0
  • photos: 5.0.0-dev.1
  • polls: 8.6.2
  • privacy: 4.0.0-dev.0
  • profile: 1.1.0
  • provisioning_api: 1.22.0
  • quota_warning: 1.22.0
  • recommendations: 5.0.0-dev.0
  • related_resources: 3.0.0-dev.0
  • serverinfo: 4.0.0-dev.0
  • settings: 1.15.1
  • sharebymail: 1.22.0
  • support: 4.0.0-dev.0
  • survey_client: 4.0.0-dev.0
  • suspicious_login: 10.0.0-dev.0
  • systemtags: 1.22.0
  • tables: 1.0.2
  • text: 6.0.1
  • theming: 2.7.0
  • twofactor_backupcodes: 1.21.0
  • twofactor_nextcloud_notification: 6.0.0-dev.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.0
  • workflowengine: 2.14.0
    Disabled:
  • customproperties: 2.0.4 (installed 2.0.4)
  • mail: 5.6.5 (installed 5.6.5)
  • richdocuments: 9.0.2 (installed 9.0.2)
  • user_ldap: 1.23.0

Regards, wm