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
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 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:~#