From c7fe7afae63324605e27088126e7a912c703b9f8 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Wed, 30 Jun 2021 17:02:57 +0200 Subject: [PATCH] Add encryption hit about how to fix bad signature errors Added troubleshooting section for encryption. Added section about the command to fix "Bad signature" errors. Signed-off-by: Vincent Petry --- admin_manual/issues/general_troubleshooting.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/admin_manual/issues/general_troubleshooting.rst b/admin_manual/issues/general_troubleshooting.rst index e5ef2883e91..e2a79186c2c 100644 --- a/admin_manual/issues/general_troubleshooting.rst +++ b/admin_manual/issues/general_troubleshooting.rst @@ -350,6 +350,21 @@ For a safe moving of data directory, supported by Nextcloud, recommended actions .. warning Note, you may need to configure your webserver to support symlinks. +Troubleshooting encryption +-------------------------- + +Problems when downloading or decrypting files +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +In some rare cases it can happen that encrypted files cannot be downloaded +and return a "500 Internal Server Error". If the Nextcloud log contains an error about +"Bad Signature", then the following command can be used to repair affected files: + +| ``occ encryption:fix-encrypted-version userId --path=/path/to/broken/file.txt`` + +Replace "userId" and the path accordingly. +The command will do a test decryption for all files and automatically repair the ones with a signature error. + Other issues ------------