Not able to disable decryption

Hi,

I am using OC 10.0.3, i have enabled its encryption with Master key. It was working fine. But i cannot revert back or disable encryption, command runs successfully but it keep show that encryption is enabled and files are still encrypting.

I run following commands,

root@nms:/var/log/apache2# sudo -u www-data /var/www/owncloud/occ maintenance:singleuser --off
Single user mode disabled
root@nms:/var/log/apache2# sudo -u www-data /var/www/owncloud/occ maintenance:singleuser
Single user mode is currently disabled
root@nms:/var/log/apache2# sudo -u www-data /var/www/owncloud/occ encryption:status
- enabled: true
- defaultModule: OC_DEFAULT_MODULE
root@nms:/var/log/apache2#
root@nms:/var/log/apache2# sudo -u www-data /var/www/owncloud/occ encryption:disable
Encryption is already disabled
root@nms:/var/log/apache2# sudo -u www-data /var/www/owncloud/occ encryption:status
- enabled: true
- defaultModule: OC_DEFAULT_MODULE

Thanks

Hi,

have you tried this?

(side note - you are trying to disable encryption, not decryption)

https://doc.owncloud.com/server/10.0/admin_manual/configuration/files/encryption_configuration.html#encrypt-and-decrypt-data-files-for-all-users

following this instructions you have to

occ maintenance:singleuser
occ encryption:decrypt-all [username]
occ encryption:disable

Here is output, same issue.

root@nms:~# sudo -u www-data /var/www/owncloud/occ maintenance:singleuser
Single user mode is currently disabled
root@nms:~# sudo -u www-data /var/www/owncloud/occ encryption:decrypt-all mudasar
Disable server side encryption... done.
You are about to start to decrypt all files stored in mudasar's account.
It will depend on the encryption module and your setup if this is possible.
Depending on the number and size of your files this can take some time
Please make sure that no user access his files during this process!
Do you really want to continue? (y/n) y
prepare encryption modules...
Prepare "Default encryption module"
Use master key to decrypt all files
done.
starting to decrypt files... finished
[============================]
Files for following users couldn't be decrypted,
maybe the user is not set up in a way that supports this operation:
mudasar
Server side encryption remains enabled
root@nms:~# sudo -u www-data /var/www/owncloud/occ encryption:disable
Encryption disabled

After above commands, i can still see in GUI that encryption is enabled, as well as CLI

root@nms:~# sudo -u www-data /var/www/owncloud/occ encryption:status
- enabled: true
- defaultModule: OC_DEFAULT_MODULE

are you the only user on the server?

I have repeat same step with another account

root@nms:~# sudo -u www-data /var/www/owncloud/occ maintenance:singleuser
Single user mode is currently disabled
root@nms:~# sudo -u www-data /var/www/owncloud/occ encryption:decrypt-all nauman.khan
Disable server side encryption... done.
You are about to start to decrypt all files stored in nauman.khan's account.
It will depend on the encryption module and your setup if this is possible.
Depending on the number and size of your files this can take some time
Please make sure that no user access his files during this process!
Do you really want to continue? (y/n) y
prepare encryption modules...
Prepare "Default encryption module"
Use master key to decrypt all files
done.
starting to decrypt files... finished
[============================]
Files for following users couldn't be decrypted,
maybe the user is not set up in a way that supports this operation:
** nauman.khan**
Server side encryption remains enabled
root@nms:~#

Guys and recommendations.

Maybe revert to your backup before you had enabled the encryption?

Im that case how can i recover differential data.