OnlyOffice with encrypted external storage does not work - Error: "Bad Signature"

Hello,

I am currently trying to set up a Nextcloud. In doing so, I am encountering the “Bad Siganture” error when it comes to OnlyOffice in conjunction with an external storage that has been encrypted on the server side using Master Key.

The Nextcloud and OnlyOffice Documentserver were created using Docker Compose and are behind a reverse proxy. The external storage was mounted using webDAV.

The environment is currently a pure test environment, so changes like re-setting up the Nextcloud are not a problem.

Here is another post with the same behavior, but nobody answered:

I hope you can help me and thank you in advance.

Error from log:

[webdav] Error: OCP\Encryption\Exceptions\GenericEncryptionException: bad signature on <>.

  1. /config/www/nextcloud/apps/encryption/lib/Crypto/Crypt.php line 507
    OCA\Encryption\Crypto\Crypt->checkSignature(“*** sensitive parameter replaced ***”)
  2. /config/www/nextcloud/apps/encryption/lib/Crypto/Encryption.php line 385
    OCA\Encryption\Crypto\Crypt->symmetricDecryptFileContent(“*** sensitive parameter replaces ***”)
  3. /config/www/nextcloud/lib/private/Files/Stream/Encryption.php line 519
    OCA\Encryption\Crypto\Encryption->decrypt(“*** sensitive parameter replaces ***”)
  4. /config/www/nextcloud/lib/private/Files/Stream/Encryption.php line 317
    OC\Files\Stream\Encryption->readCache()
  5. <>
    OC\Files\Stream\Encryption->stream_read()
  6. /config/www/nextcloud/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php line 55
    fread()
  7. /config/www/nextcloud/apps/files_external/3rdparty/icewind/streams/src/CallbackWrapper.php line 96
    Icewind\Streams\Wrapper->stream_read().
  8. <>
    Icewind\Streams\CallbackWrapper->stream_read()
  9. /config/www/nextcloud/3rdparty/sabre/http/lib/Sapi.php line 110
    stream_copy_to_stream()
  10. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 490
    Sabre\HTTP\Sapi::sendResponse()
  11. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 253
    Sabre\DAV\Server->invokeMethod()
  12. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 321
    Sabre\DAV\Server->start()
  13. /config/www/nextcloud/apps/dav/lib/Server.php line 360
    Sabre\DAV\Server->exec()
  14. /config/www/nextcloud/apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
  15. /config/www/nextcloud/remote.php line 171
    require_once(“/config/www/nex … p”)

TL;DR Is there any way to use OnlyOffice in conjunction with encrypted external storage in Nextcloud?

Kind regards
Zobrac

Does no one know more about it? Help would be greatly appreciated. Thanks.