Decryption is not working

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

Unrelated to owncloud - looks like there is an issue with your sudo and/or network configuration.

The issue is not related to hostname, i have corrected the host entry, but still same output.

please post again - thx

I have enabled encryption with server key but despite the use of the command: sudo -u apache php occ encryption: decrypt-all

The process seems to be executed correctly but the files are still encrypted.
Can you help me please?

what is the output of your command?

[root@cloudv2 ~]# sudo -u apache php /var/www/html/owncloud/occ maintenance:singleuser --on
Single user mode enabled
[root@cloudv2 ~]# sudo -u apache php /var/www/html/owncloud/occ encryption:decrypt-all pomme2
Disable server side encryption... done.

You are about to start to decrypt all files stored in pomme2'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
[============================]

all files could be decrypted successfully!
Server side encryption remains enabled

The process seems to be executed correctly but the files are still encrypted.

Because you can't open the files without an error message or why do you think the files are still encrypted?

Because when I edit a text file for example it is encrypted. When to the other file format I can not open them.

Can you repeat the command with the -vvv option for verbose output?

sudo -u apache php /var/www/html/owncloud/occ encryption:decrypt-all pomme2 -vvv
Disable server side encryption... done.

You are about to start to decrypt all files stored in pomme2'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
[============================]

all files could be decrypted successfully!
Server side encryption remains enabled

Files are always encrypted

Hi, what web server do you have? nginx?

Edit: How did you enable encryption to begin with?

Own cloud server version 10.0.3 / Apache 2.4.6 / Centos 7
I enabled encryption with a server key

Edit : Encryption with :OC_DEFAULT_MODULE

I meant have you enabled encryption just via the Web UI or did you use occ commands, if you used the occ commands, can you remember what commands you used?

To be honest with you, I don't think you get your files decrypted.

This part of the documentation even tells you that master key encryption is irreversible.

I have tried to encrypt and decrypt files, but I failed like you. Files stay encrypted even after successful decryption.

Updating to 10.0.4 would solve the problem. In 10.0.4 there are some changes made to encryption module. As a result there were changes made into decrypt-all, key manager etc. So an upgrade would make the life easier.

Actually with version 10.0.4 it works. Thank you very much

1 Like