Decryption problem

Nextcloud version (eg, 29.0.5): 29.0.8.1
Operating system and version (eg, Ubuntu 24.04): debian 12
Apache or nginx version (eg, Apache 2.4.25): nginx
PHP version (eg, 8.3): 8.2.25

The issue you are facing:

Hello,

I am having an issue with the encryption / decryption module on legacy data. To give a bit of context, I have been using nextcloud for approximately 5 years, and I’ve always used encryption. I have all the encryption key I’ve used on my instance (at least I think I do). I am now trying to decrypt all my data, but I am missing a span of 1year and a half of data around 2019-2020. I am using the script found here: GitHub - syseleven/nextcloud-tools: This project contains tools to operate Nextcloud. but it unfortunately can’t decrypt everything. A couple months ago I tried two script one for server side encryption and one for e2ee, they also couldn’t recover the data. I can’t find the links of the scripts but they were from this forum. I think during the period of time I can’t recover I had the server side encryption enabled + the e2ee enabled, which makes scripts don’t work. Any help on how I could recover my data would be really loved.

Best regards.

Note that is an archived repository that isn’t maintained. It has a banner and a link to the maintained one in it in the first paragraph. Please use the maintained one.

I used these one too, and had the same issue, I forgot to mention it, sorry.

I think during the period of time I can’t recover I had the server side encryption enabled + the e2ee enabled, which makes scripts don’t work.

Are you sure? That definitely wasn’t supported in 2019-2020. Can you share the header from one of the files (if there are any)?

I have all the encryption key I’ve used on my instance (at least I think I do).

I have never attempted to unravel both server + client simultaneously using the tools, but I suppose if one had to, the process would need to be:

  1. Decrypt server-side encryption
  2. Once server-side encryption is removed, decrypt client-side encryption

You’ll need the server-side key material for item 1.
For item 2 you’ll need your mnemonic from one of your client devices.

but it unfortunately can’t decrypt everything.

Okay. So what happens? We need to know what you tried, the output, the error, etc.

Hello,

I only get the following line trying to decrypt my files:

ERROR: /file/path.png FAILED

But for some files, I don’t get any error at all and the decryption is done successfully.