Nextcloud version (eg, 20.0.5): 28.0.3.2
Operating system and version (eg, Ubuntu 20.04): Linux 6.6.1-1.el8.elrepo
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4
PHP version (eg, 7.4): 8.2.16
The issue you are facing:
After upgrading (which was without errors) it’s not possible to upload or download files anymore. Even in the web interface, files could not be opened, uploaded, or downloaded. Error message is:
Error during upload: Encryption not ready: Default encryption module not loaded.
This is also shown in the log files. I use other apps to connect to Nextcloud as well, which show encryption error.
I have Server-Side Encryption enabled, yet the web GUI shows it’s disabled. The command line says that server-side encryption is enabled. I also have home storage encryption enabled.
When running command occ encryption:encrypt-all, it stops with message:
In Manager.php line 199:
Default enryption module not loaded.
I restarted php with no impact.
In a user account I could see files are present. In the admin account it shows no files, yet I could see them when I login to the server with ftp.
There is a message in the log that says:
"message":"Encryption module defined in \"files/Templates/Readme.md\" not loaded!
This message or alterations of it comes up often in the logs.
Calendar could be accessed from android, but not from my Ubuntu desktop. But might be a different issue. Who knows?
How do I get the default encryption module loaded?
Is this the first time you’ve seen this error? Y
Steps to replicate it:
Can’t tell as I don’t have another instance of Nextcloud running anywhere.
The output of your Nextcloud log in Admin > Logging:
Error webdav
ModuleDoesNotExistsException
Module with ID: OC_DEFAULT_MODULE does not exist.
Error no app in context
Encryption module defined in "files/Templates/Readme.md" not loaded!
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
$CONFIG = array (
'instanceid' => 'sensitive_data_removed',
'passwordsalt' => 'sensitive_data_removed',
'secret' => 'sensitive_data_removed',
'trusted_domains' =>
array (
0 => 'subdomain.domain.com',
),
'datadirectory' => '/pathto/data',
'dbtype' => 'mysql',
'version' => '28.0.3.2',
'overwrite.cli.url' => 'https://subdomain.domain.com',
'htaccess.RewriteBase' => '/',
'dbname' => 'sensitive_data_removed',
'dbhost' => 'localhost:3306',
'dbport' => '',
'dbtableprefix' => 'prefix_',
'mysql.utf8mb4' => true,
'dbuser' => 'sensitive_data_removed',
'dbpassword' => 'sensitive_data_removed',
'installed' => true,
'auth.bruteforce.protection.enabled' => true,
'htaccess.IgnoreFrontController' => false,
'default_phone_region' => 'DE',
'memcache.local' => '\\OC\\Memcache\\Redis',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'filelocking.enabled' => true,
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'localhost',
'port' => 6379,
'dbindex' => 0,
'timeout' => 1.5,
),
'theme' => '',
'loglevel' => 0,
'debug' => false,
'mail_smtpmode' => 'smtp',
'mail_smtpauthtype' => 'LOGIN',
'mail_sendmailmode' => 'smtp',
'mail_smtpsecure' => 'ssl',
'mail_from_address' => 'webmaster',
'mail_domain' => 'domain.com',
'mail_smtpauth' => 1,
'mail_smtphost' => 'sensitive_data_removed',
'mail_smtpport' => '465',
'mail_smtpname' => 'sensitive_data_removed',
'mail_smtppassword' => 'sensitive_data_removed',
'twofactor_enforced' => 'true',
'twofactor_enforced_groups' =>
array (
0 => 'admin',
1 => 'Users',
),
'twofactor_enforced_excluded_groups' =>
array (
),
'has_rebuilt_cache' => true,
'maintenance' => false,
);