I get encryption error when I update nextcloud 20 I request your help
I think you’ve read the documenation as written in the warning message? If yes, please be more precise and explain what your problem is. Please also see:
Hi All, after a “bumpy” upgrade to NC20, I have cleared all issues except for the one reported here. I have followed the documentation and run the command
However, I get an error message that says:
There are no commands defined in the "encryption:scan" namespace. Did you mean this? encryption
I’ve searched and googled around but I can’t find a solution. Can anyone help?
Thanks in advance
Could it be possible that the encryption app has been disabled on your server?
Can you please provide the output of “
seems I have the same problem. Here the output of occ:
In my config.php I have following:
<?php $CONFIG = array ( 'memcache.local' => '\\OC\\Memcache\\APCu', 'instanceid' => 'AAAAAAAAAAA', 'passwordsalt' => 'BBBBBBBBBB', 'secret' => 'CCCCCCCCCCC', 'trusted_domains' => array ( 0 => 'bla.blub.blo', 1 => 'blo.bla.bli', ), 'datadirectory' => 'PATH', 'overwrite.cli.url' => 'URL', 'dbtype' => 'mysql', 'version' => '188.8.131.52', 'dbname' => 'DB', 'dbhost' => 'DB_HOST', 'dbport' => '', 'dbtableprefix' => 'oc_', 'dbuser' => 'DB_USER', 'dbpassword' => 'DB_PASSWD', 'logtimezone' => 'UTC', 'installed' => true, 'loglevel' => 0, 'maintenance' => false, 'mail_smtpmode' => 'smtp', 'mail_smtpauthtype' => 'LOGIN', 'mail_from_address' => 'ADDRESS', 'mail_domain' => 'DOMAIN', 'mail_smtpauth' => 1, 'mail_smtphost' => 'SMTP', 'mail_smtpport' => 'PORT', 'mail_smtpname' => 'ADDRESS', 'mail_smtppassword' => 'PASSWD', 'theme' => '', 'updater.release.channel' => 'stable', 'ldapIgnoreNamingRules' => false, 'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory', 'mysql.utf8mb4' => true, 'has_rebuilt_cache' => true, 'app_install_overwrite' => array ( 0 => 'groupfolders', ), 'updater.secret' => 'SECRET', 'encryption.legacy_format_support' => true, 'encryption.key_storage_migrated' => false, );
Do you have an idea?
the end to end encryption is disabled at my machine and I want not to change this. I also checked this:
# sudo -u www-data php /var/www/html/nextcloud/occ encryption:status - enabled: false - defaultModule: OC_DEFAULT_MODULE
Nevertheless, I told occ to migrate the keys:
# sudo -u www-data php /var/www/html/nextcloud/occ encryption:migrate-key-storage-format Updating key storage format Start to update the keys: 13 [============================]Key storage format successfully updated
Thereafter I remove the entry for encryption.legacy_format_support and everything seems to be o.k…
I did these operations, the problem continues,
I searched google but could not find a source
@j-ed, thanks for the reply, sorry I didn’t answer I was distracted on to other topics for a few days.
My issue was exactly the same as @fermat2a… Now solved. Thanks to all!
Can you tell me how you did it? My problem continues.
sudo -u www-data php /var/www/nextcloud/occ encryption:status
- enabled: true
- defaultModule: OC_DEFAULT_MODULE
occ maintenance:mode --on
The output should look like
Updating key storage format
Start to update the keys:
22 [============================]Key storage format successfully updated
Then delete the complete line
'encryption.legacy_format_support' => true,
occ maintenance:mode --off
- enabled: false
- defaultModule: OC_DEFAULT_MODULE
In all the above occ needs to be replaced depending on your installation.
On Ubuntu based installations it frequently is:
sudo -u www-data php /var/www/html/nextcloud/occ
On my Fedora based installation it is:
sudo -u apache php /var/www/nextcloud/occ
I know this is not exactly related, but maybe anyone may still be able to help me here:
I’m confronted with the informational message in the admin backend saying I should use
occ encryption:scan:legacy-format to scan for encrypted files in legacy format and that the command would return whether I can safely upgrade to the new format or not.
Actually it only outputs it’s status, saying that it has scanned files of users but doesn’t say anything about the possibility to safely change encryption format.
How is the positive output supposed to look like?
Thank you very much for your help