WEBDAV Fehler mit Encryption Modul

Hallo zusammen,
Ich verwende Nextcloud 18.08 mit PHP 7.4.9, apache2 und Ubuntu 18.04

ich habe webdav Fehlermeldungen im LOG stehen.

Die Meldung lautet

Fatal webdav 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

Wenn man die Meldung aufklappt, sieht man noch folgendes.

**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**

** /var/www/meine-geheim-cloud/apps/encryption/lib/Crypto/Crypt.php - line 490:**

** OCA\Encryption\Crypto\Crypt->decrypt("*** sensiti … ")*

** /var/www/meine-geheim-cloud/apps/encryption/lib/Crypto/Encryption.php - line 380:**

** OCA\Encryption\Crypto\Crypt->symmetricDecryptFileContent("*** sensiti … ", "** sensiti … ", "** sensiti … ", 1, "** sensiti … ")*

** /var/www/meine-geheim-cloud/lib/private/Files/Stream/Encryption.php - line 507:**

** OCA\Encryption\Crypto\Encryption->decrypt("*** sensiti … ")*

** /var/www/meine-geheim-cloud/lib/private/Files/Stream/Encryption.php - line 302:**

** OC\Files\Stream\Encryption->readCache()**

** <>**

** OC\Files\Stream\Encryption->stream_read(1)**

** /var/www/meine-geheim-cloud/lib/private/Files/Storage/Wrapper/Encryption.php - line 217:**

** stream_get_contents(null)**

** /var/www/meine-geheim-cloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 245:**

** OC\Files\Storage\Wrapper\Encryption->file_get_contents(“files/Readme.md”)**

** /var/www/meine-geheim-cloud/lib/private/Files/View.php - line 1162:**

** OC\Files\Storage\Wrapper\Wrapper->file_get_contents(“files/Readme.md”)**

** /var/www/meine-geheim-cloud/lib/private/Files/View.php - line 595:**

** OC\Files\View->basicOperation(“file_get_contents”, “/mein-user/files/Readme.md”, [ “read”])**

** /var/www/meine-geheim-cloud/lib/private/Files/Node/File.php - line 56:**

** OC\Files\View->file_get_contents("/mein-user/files/Readme.md")**

** /var/www/meine-geheim-cloud/apps/text/lib/DAV/WorkspacePlugin.php - line 103:**

** OC\Files\Node\File->getContent()**

** /var/www/meine-geheim-cloud/3rdparty/sabre/dav/lib/DAV/PropFind.php - line 98:**

** OCA\Text\DAV\WorkspacePlugin->OCA\Text\DAV{closure}("*** sensiti … ")*

** /var/www/meine-geheim-cloud/apps/text/lib/DAV/WorkspacePlugin.php - line 107:**

** Sabre\DAV\PropFind->handle("{http://nex … e", Closure {})**

** <>**

** OCA\Text\DAV\WorkspacePlugin->propFind(Sabre\DAV\PropFind {}, OCA\DAV\Conn … {})**

** /var/www/meine-geheim-cloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105:**

** call_user_func_array([ OCA\Text\D … "], [ Sabre\DAV\ … }])**

** /var/www/meine-geheim-cloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1059:**

** Sabre\Event\EventEmitter->emit(“propFind”, [ Sabre\DAV\ … }])**

** /var/www/meine-geheim-cloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 981:**

** Sabre\DAV\Server->getPropertiesByNode(Sabre\DAV\PropFind {}, OCA\DAV\Conn … {})**

** /var/www/meine-geheim-cloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1666:**

** Sabre\DAV\Server->getPropertiesIteratorForPath("*** sensiti … ", [ "{DAV:}get … "], 0)*

** /var/www/meine-geheim-cloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 355:**

** Sabre\DAV\Server->generateMultiStatus(Generator {}, "*** sensiti … ")*

** <>**

** Sabre\DAV\CorePlugin->httpPropFind(Sabre\HTTP\R … "}, Sabre\HTTP\Response {})**

** /var/www/meine-geheim-cloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105:**

** call_user_func_array([ Sabre\DAV\ … "], [ Sabre\HTTP … }])**

** /var/www/meine-geheim-cloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479:**

** Sabre\Event\EventEmitter->emit(“method:PROPFIND”, [ Sabre\HTTP … }])**

** /var/www/meine-geheim-cloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254:**

** Sabre\DAV\Server->invokeMethod(Sabre\HTTP\R … "}, Sabre\HTTP\Response {})**

** /var/www/meine-geheim-cloud/apps/dav/appinfo/v1/webdav.php - line 82:**

** Sabre\DAV\Server->exec()**

** /var/www/meine-geheim-cloud/remote.php - line 165:**

** require_once("/var/www/cl … p")**

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, 18.0.2):
Operating system and version (eg, Ubuntu 20.04):
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.1):

The issue you are facing:

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

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:

PASTE HERE

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

PASTE HERE

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


{"reqId":"zckicZrBpgYmrYxZs9oh","level":3,"time":"2020-08-28T11:09:57+00:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"user","app":"no app in context","method":"PROPFIND","url":"/remote.php/webdav/","message":{"Exception":"OC\\Encryption\\Exceptions\\DecryptionFailedException","Message":"Encryption library: Decryption (symmetric) of content failed: error:0607A082:digital envelope routines:EVP_CIPHER_CTX_set_key_length:invalid key length","Code":0,"Trace":[{"file":"/var/www/meine-geheim-cloud/apps/encryption/lib/Crypto/Crypt.php","line":490,"function":"decrypt","class":"OCA\\Encryption\\Crypto\\Crypt","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/meine-geheim-cloud/apps/encryption/lib/Crypto/Encryption.php","line":380,"function":"symmetricDecryptFileContent","class":"OCA\\Encryption\\Crypto\\Crypt","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***","*** sensitive parameter replaced ***","*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"/var/www/meine-geheim-cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":584,"function":"decrypt","class":"OCA\\Encryption\\Crypto\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/meine-geheim-cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":503,"function":"fixUnencryptedSize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/meine-geheim-cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":167,"function":"verifyUnencryptedSize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/meine-geheim-cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":404,"function":"filesize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["*** sensitive parameter replaced ***"]},{"file":"/var/www/meine-geheim-cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":213,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["*** sensitive parameter replaced ***","r"]},{"file":"/var/www/meine-geheim-cloud/lib/private/Files/Storage/Wrapper

Hier die PHP datei

$CONFIG = array (
‘instanceid’ => ‘asdfsdfdsdfsadfsdf’,
‘passwordsalt’ => ‘sssssssssssssssssssssss’,
‘secret’ => ‘ffffffffffffffffffffffffffff’,
‘trusted_domains’ =>
array (
0 => ‘meine-geheime-cloud’,
),
‘datadirectory’ => ‘/var/www/meine-geheime-cloud/data’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘18.0.8.2’,
‘overwrite.cli.url’ => ‘https://meine-geheime-cloud.de’,
‘dbname’ => ‘cloud’,
‘dbhost’ => ‘localhost’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘mysql.utf8mb4’ => true,
‘dbuser’ => ‘cloud’,
‘dbpassword’ => ‘cloud@sdfsdfsdfsdfsdf’,
‘installed’ => true,
‘mail_from_address’ => ‘nextcloud’,
‘mail_smtpmode’ => ‘smtp’,
“config.php” 38L, 1062C

Hierzu habe ich folgendes gefunden
DecryptionFailedException

Hast auch du vielleicht ein paar kaputte Dateien hochgeladen und kannst sie wieder löschen?

Ich habe den Benutzer neu angelegt, den alten gelöscht. Danach ging es wieder. Danke