OwnCloud 10 - Encryption key migration

encryption
upgrade
10

#1

Hi,

since I migrated to OwnCloud X today, I'm getting the following error message:
Invalid private key for Encryption App. Please update your private key password in your
personal settings to recover access to your encrypted files.

I remember that I once planned to set up file encryption once, but never activated it. Unfortunately, I don't remember the original password I used for OwnCloud back then, so I cannot update the encryption key password and thus keep receiving the error message mentioned above.

Steps to reproduce
1. Install and set up encryption in OwnCloud 8 but do not enable it
2. Migrate to OwnCloud X
3. Log into OwnCloud X

Expected behaviour
I'd like to completely remove the existing encryption keys and reset encryption to factory settings.


#2

Did you enable the recovery key in the admin settings? Have all your users agreed to a recovery key in their personal settings? Then you might be able to use occ encryptien:decrypt-all to decrypt all files.

If you just disable the encryption your files remain encrypted, you will be able to read them, but not update them.


#3

I finally managed to get rid of that message by executing
sudo -u www-data bash -c "php /var/www/owncloud/occ encryption:disable"

The weirdest thing is, that I never enabled server-side encryption in all these years.
Thanks for your help though!