DecryptionFailedException

Nextcloud version (13.0.1):
Operating system and version (Ubuntu 16.04):
Apache or nginx version ( nginx/1.10.3 (Ubuntu)):
PHP version (PHP 7.0.28-0ubuntu0.16.04.1):

I’m doing a nextcloud-sync from NAS to NC server (the above specified) every 30 min and get the following error every 30min.

I would like to have a possibility to find out which file(s) are causing the issue.

Is there some option i can enable to see those “sensitive values removed” ?

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

Steps to replicate it:

I’m sorry the error is there for a long time since OC7 but didnt bother anyone, now its time to change the server hardware and i whant to get rid of this issue before migration. Some files where lost in the past weeks and i whant to know if this could be the issue.

Thanks a lot.

The output of your Nextcloud log in Admin > Logging:

OC\Encryption\Exceptions\DecryptionFailedException: Encryption library: Decryption (symmetric) of content failed: error:0607A082:digital envelope routines:EVP_CIPHER_CTX_set_key_length:invalid key length

0. /var/www/owncloud/apps/encryption/lib/Crypto/Crypt.php - line 471: OCA\Encryption\Crypto\Crypt->decrypt(*** sensitive parameters replaced ***)
1. /var/www/owncloud/apps/encryption/lib/Crypto/Encryption.php - line 380: OCA\Encryption\Crypto\Crypt->symmetricDecryptFileContent('', 'MgWOjiDZJOJ2esy...', 'AES-256-CFB', 1, '392end')
2. /var/www/owncloud/lib/private/Files/Stream/Encryption.php - line 464: OCA\Encryption\Crypto\Encryption->decrypt(*** sensitive parameters replaced ***)
3. /var/www/owncloud/lib/private/Files/Stream/Encryption.php - line 295: OC\Files\Stream\Encryption->readCache()
4. [internal function] OC\Files\Stream\Encryption->stream_read(1)
5. /var/www/owncloud/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php - line 83: fread(Resource id #41, 8192)
6. /var/www/owncloud/apps/files_external/3rdparty/icewind/streams/src/CallbackWrapper.php - line 91: Icewind\Streams\Wrapper->stream_read(8192)
7. [internal function] Icewind\Streams\CallbackWrapper->stream_read(8192)
8. /var/www/owncloud/3rdparty/sabre/http/lib/Sapi.php - line 80: stream_copy_to_stream(Resource id #44, Resource id #46, '772')
9. /var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 498: Sabre\HTTP\Sapi sendResponse(Object(Sabre\HTTP\Response))
10. /var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254: Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
11. /var/www/owncloud/apps/dav/lib/Server.php - line 283: Sabre\DAV\Server->exec()
12. /var/www/owncloud/apps/dav/appinfo/v2/remote.php - line 35: OCA\DAV\Server->exec()
13. /var/www/owncloud/remote.php - line 164: require_once('/var/www/ownclo...')
14. {main}

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',
  'debug' => true,
  'datadirectory' => '/var/data',
  'check_data_directory_permissions' => true,
  'dbtype' => 'mysql',
  'version' => '13.0.1.1',
  'installed' => true,
  'theme' => '',
  'maintenance' => false,
  'loglevel' => 0,
  'logfile' => '/var/data/owncloud.log',
  'logtimezone' => 'Europe/Berlin',
  'log_authfailip' => true,
  'forcessl' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtphost' => 'xxx',
  'mail_smtpport' => '587',
  'mail_smtpsecure' => 'tls',
  'mail_smtpauth' => 1,
  'mail_smtpauthtype' => 'PLAIN',
  'mail_smtpname' => 'xxx',
  'mail_smtppassword' => 'xxx',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'localhost',
    'port' => 6379,
  ),
  'filelocking.enabled' => true,
  'filelocking.ttl' => 3600,
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'app.mail.accounts.default' =>
  array (
    'email' => '%USERID%',
    'imapUser' => '%USERID%',
    'imapHost' => 'localhost',
    'imapPort' => 993,
    'imapSslMode' => 'ssl',
    'smtpHost' => 'localhost',
    'smtpUser' => '%USERID%',
    'smtpPort' => 486,
    'smtpSslMode' => 'tls',
  ),
  'trusted_domains' =>
  array (
    0 => 'xxx',
    1 => 'xxx',
  ),
  'mail_from_address' => 'no-reply',
  'mail_domain' => 'xxx',
  'secret' => 'xxx',
  'dbname' => 'owncloud',
  'dbhost' => 'xxx',
  'dbuser' => 'owncloud',
  'dbpassword' => 'xxx',
  'user_backends' =>
  array (
    0 =>
    array (
      'class' => 'OC_User_IMAP',
      'arguments' =>
      array (
        0 => '{xxx:993/imap/ssl}',
      ),
    ),
  ),
  'trashbin_retention_obligation' => 'auto',
  'session_lifetime' => 7200,
  'auth.bruteforce.protection.enabled' => true,
  'updatechecker' => false,
  'updater.release.channel' => 'stable',
  'appcodechecker' => true,
  'versions_retention_obligation' => 'auto',
  'check_for_working_webdav' => true,
  'check_for_working_wellknown_setup' => true,
  'check_for_working_htaccess' => true,
  'appstoreenabled' => true,
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/var/www/owncloud/apps',
      'url' => '/apps',
      'writable' => true,
    ),
  ),
  'filesystem_check_changes' => 0,
  'overwrite.cli.url' => 'xxx',
);

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

nothing interesting found so far

I’m terribly sorry for beeing so blind, its all in the nextcloud.log i just had to look BEFORE the start of the Decryption Error entry.

my bad, good day to you all

(deleted the corrupted file, uploaded it again from backup, all good)