Merge pull request #6888 from nextcloud/backport/6884/stable20

[stable20] Add encryption hint about how to fix bad signature errors
This commit is contained in:
Vincent Petry 2021-07-01 09:13:07 +02:00 committed by GitHub
commit ee10f458d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -360,6 +360,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
------------