Nextcloud Decrypt doesn't decrypt External Storage files

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face: is for home/non-enterprise users. If you’re running a business, paid support can be accessed via where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:


Or for longer, use three backticks above and below the code snippet:


Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 26.0.1
Operating system and version (eg, Ubuntu 20.04): docker container
Apache or nginx version (eg, Apache 2.4.25): nginx
PHP version (eg, 7.4): replace me

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N):

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:


The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):


The output of your Apache/nginx/system log in /var/log/____:



Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.


Running latest v26 nextcloud in docker
Added external storage sometime ago
Wanted to look at some of the media files on web or android client and it wouldn’t play.

logged in docker container as root and ran command in media folder
#grep -rc oc_encryption_module *


all files in this folders are encrypted

Server side encryption is NOT checked

The external storage folder are SMB shares from ubuntu (no encryption)
When i added external storage, i mounted then a Local and Authentication=None.
Check for changes=once every direct access
Enable sharing=yes
Enable previews=yes
Shares are only available to admin (me). They mounted with green check box.

I tried,
#occ encryption:decrypt-all
It ran through just fine
But still external storage files are encrypted.

How should i decrypt these folders.
thank you

And it was never enabled? Do you have the encryption keys in the users folder /path/to/data/username/… ?

But it seems to be the server-side encryption and not the client-side?

Yes, there is a keys folder.
files…it has two directories, they are (.Calendar-Backup), (.Contatcts-Backup)
files_trashbin…it has (files). Inside this is has directory (20230417_153702.jpg.d1682268393)

Inside this directory (20230417_153702.jpg.d1682268393), it has OC_DEFAULT_MODULE
Inside (OC_DEFAULT_MODULE) it has two files… (filekey) and (master_8114f6f2.sharekey)