Occ encryption:decrypt-all userid fails

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 25.0.10.1
Operating system and version (eg, Ubuntu 20.04): Debian 11.7
Apache or nginx version (eg, Apache 2.4.25): nginx 1.18.0-6.1+deb11u3
PHP version (eg, 7.4): 7.4

The issue you are facing: decryption of files with occ fails with an error message:

 %message%
 [>---------------------------]
In Availability.php line 93:

  [OCP\Files\StorageNotAvailableException (1)]

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. sudo -u www-data php occ encryption:decrypt-all wytze

The output of your Nextcloud occ command on the terminal:

Disable server side encryption... done.


You are about to start to decrypt all files stored in wytze'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.





 %message%
 [>---------------------------]
In Availability.php line 93:

  [OCP\Files\StorageNotAvailableException (1)]


encryption:decrypt-all [<user>]

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'XXX',
  'passwordsalt' => 'XXX',
  'secret' => 'XXX',
  'trusted_domains' =>
  array (
    0 => 'cloud.deboca.net',
  ),
  'datadirectory' => '/data/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '25.0.10.1',
  'overwrite.cli.url' => 'https://cloud.deboca.net',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'XXX',
  'dbpassword' => 'XXX',
  'installed' => true,
  'mysql.utf8mb4' => true,
  'maintenance' => false,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'mail_from_address' => 'wytze',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'deboca.net',
  'mail_smtphost' => 'localhost',
  'mail_smtpport' => '25',
  'default_phone_region' => 'NL',
  'theme' => '',
  'loglevel' => 0,
  'app_install_overwrite' =>
  array (
    0 => 'calendar',
  ),
  'encryption.legacy_format_support' => false,
  'encryption.key_storage_migrated' => false,
);

The output of your Apache/nginx/system log in /var/log/____: n/a

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary. n/a