Client Reports "Service Unavailable", encryption problems

Hi.

Running nextcloudpi (raspbian) on a raspberry pi 2+, and have been encountering issues. When my windows nextcloud client tries to sync files, the server replies “Service unavailable” and the operation cancels. The server log reads: Webdav: “Encryption not ready: multikeydecrypt with share key failed:error:04065072:rsa routines:rsa_ossl_private_decrypt:padding check failed”.

I am running encryption with the default encryption module. This happened when I added these files to my nextcloud folder on my harddrive from where my nextcloud client syncs from.

My server log: Fatal webdav

Sabre\DAV\Exception\ServiceUnavailable: Encryption not ready: multikeydecrypt with share key failed:error:04065072:rsa routines:rsa_ossl_private_decrypt:padding check failed
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 85: OCA\DAV\Connector\Sabre\File->get()
[internal function] Sabre\DAV\CorePlugin->httpGet(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479: Sabre\Event\EventEmitter->emit('method GET', Array)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254: Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/nextcloud/apps/dav/lib/Server.php - line 283: Sabre\DAV\Server->exec()
/var/www/nextcloud/apps/dav/appinfo/v2/remote.php - line 35: OCA\DAV\Server->exec()
/var/www/nextcloud/remote.php - line 164: require_once('/var/www/nextcl...')
{main}   

Is this the first time you’ve seen this error? Yes

Steps to replicate it:

  1. Run default encryption
  2. Sync newly added files

config.php

<?php
$CONFIG = array (
  'passwordsalt' => 'XXX',
  'secret' => 'XXX',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    5 => 'nextcloudpi.local',
    1 => '192.168.178.XXX',
    3 => 'XXX.ignorelist.com',
  ),
  'datadirectory' => '/media/USBdrive/ncdata',
  'overwrite.cli.url' => 'https://XXX.ignorelist.com',
  'dbtype' => 'mysql',
  'version' => '13.0.0.14',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'ncadmin',
  'dbpassword' => 'XXX',
  'installed' => true,
  'instanceid' => 'XXX',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
    'password' => 'XXX',
  ),
  'mail_smtpmode' => 'php',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => 'admin',
  'mail_domain' => 'ownyourbits.com',
  'overwriteprotocol' => 'https',
  'maintenance' => false,
  'filelocking.enabled' => true,
  'logfile' => '/media/USBdrive/ncdata/nextcloud.log',
);

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

Didn't find this log

Nexcloudpi system info (I think it’s now called nextcloudplus?)

|NextCloudPlus version|v0.54.3|
|---|---|
|NextCloudPlus image|NextCloudPi_02-06-18|
|distribution|Raspbian GNU/Linux 9 \n \l|
|automount|yes|
|USB devices|sda|
|datadir|/media/USBdrive/ncdata|
|data in SD|no|
|data filesystem|btrfs|
|data disk usage|45G/932G|
|rootfs usage|2.2G/15G|
|swapfile|/var/swap|
|Nextcloud check|ok|
|Nextcloud version|13.0.0.14|
|HTTPD service|up|
|PHP service|up|
|MariaDB service|up|
|Redis service|up|
|Postfix service|up|
|internet check|ok|
|port check 80|open|
|port check 443|open|
|IP|192.168.178.139|
|gateway|192.168.178.1|
|interface|wlan0|
|certificates|none|
|NAT loopback|no|
|uptime|6days|

Thanks in advance for your help,
Fritz