nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.34k stars 4.06k forks source link

S3 Primary Storage: multikeydecrypt with share key failed:error:04065072:rsa routines:rsa_ossl_private_decrypt:padding check failed #21133

Closed FlorentCoppint closed 3 years ago

FlorentCoppint commented 4 years ago

Hi, I use Nextcloud 18 with S3 as primary storage. I've got a bug on some files (not all).

Steps to reproduce

  1. Install Nextcloud 18 with S3 as primary storage
  2. Upload files, modify files (versioning enabled)
  3. Download files

Expected behaviour

Downloading file works.

Actual behaviour

Downloading file returns "Internal server error"

Server configuration

Operating system: Debian

Web server: Nginx

Database: MariaDB

PHP version: 7.4

Nextcloud version: 18.0.4

Updated from an older Nextcloud/ownCloud or fresh install: Updated from older version

Where did you install Nextcloud from: Official website

Signing status:

Signing status ``` No errors have been found. ```

List of activated apps:

App list ``` Enabled: - accessibility: 1.4.0 - activity: 2.11.0 - bookmarks: 3.0.13 - bruteforcesettings: 1.6.0 - calendar: 2.0.3 - checksum: 0.4.4 - cloud_federation_api: 1.1.0 - comments: 1.8.0 - contacts: 3.3.0 - dav: 1.14.0 - encryption: 2.6.0 - federatedfilesharing: 1.8.0 - federation: 1.8.0 - files: 1.13.1 - files_accesscontrol: 1.8.1 - files_automatedtagging: 1.8.3 - files_external: 1.9.0 - files_pdfviewer: 1.7.0 - files_rightclick: 0.15.2 - files_sharing: 1.10.1 - files_trashbin: 1.8.0 - files_versions: 1.11.0 - files_videoplayer: 1.7.0 - firstrunwizard: 2.7.0 - logreader: 2.3.0 - lookup_server_connector: 1.6.0 - nextcloud_announcements: 1.7.0 - notes: 3.4.0 - notifications: 2.6.0 - oauth2: 1.6.0 - password_policy: 1.8.0 - photos: 1.0.0 - privacy: 1.2.0 - provisioning_api: 1.8.0 - recommendations: 0.6.0 - serverinfo: 1.8.0 - settings: 1.0.0 - sharebymail: 1.8.0 - support: 1.1.0 - survey_client: 1.6.0 - systemtags: 1.8.0 - tasks: 0.13.1 - text: 2.0.0 - theming: 1.9.0 - twofactor_backupcodes: 1.7.0 - twofactor_totp: 4.1.3 - updatenotification: 1.8.0 - viewer: 1.2.0 - workflow_script: 1.3.2 - workflowengine: 2.0.0 Disabled: - admin_audit - user_ldap ```

Nextcloud configuration:

Config report ``` { "system": { "debug": false, "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "***REMOVED SENSITIVE VALUE***" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "18.0.4.2", "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "3306", "dbtableprefix": "oc_", "mysql.utf8mb4": true, "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "filelocking.enabled": false, "memcache.local": "\\OC\\Memcache\\Redis", "memcache.locking": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 6379 }, "objectstore": { "class": "\\OC\\Files\\ObjectStore\\S3", "arguments": { "bucket": "***REMOVED SENSITIVE VALUE***", "autocreate": true, "key": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "hostname": "s3.fr-par.scw.cloud", "port": 443, "use_ssl": true, "region": "fr-par", "use_path_style": true } }, "maintenance": false, "twofactor_enforced": "false", "twofactor_enforced_groups": [], "twofactor_enforced_excluded_groups": [], "mail_smtpmode": "smtp", "mail_smtpsecure": "ssl", "mail_sendmailmode": "smtp", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtpauthtype": "PLAIN", "mail_smtpauth": 1, "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "465", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "simpleSignUpLink.shown": false, "trashbin_retention_obligation": "180, 365", "versions_retention_obligation": "180, 365", "theme": "", "loglevel": 3, "dbdriveroptions": { "1007": "\/etc\/ssl\/mysql\/client-key.pem", "1008": "\/etc\/ssl\/mysql\/client-cert.pem", "1009": "\/etc\/ssl\/mysql\/ca-cert.pem", "1014": true }, "updater.release.channel": "stable" } } ```

Are you using external storage, if yes which one: S3 primary storage

Are you using encryption: yes

Logs

Nextcloud log (data/nextcloud.log)

Nextcloud log ``` {"reqId":"VEVtX6gtBXgXdPGrVa76","level":3,"time":"2020-05-28T09:05:48+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":{"Exception":"OCA\\Encryption\\Exceptions\\MultiKeyDecryptException","Message":"multikeydecrypt with share key failed:error:04065072:rsa routines:rsa_ossl_private_decrypt:padding check failed","Code":0,"Trace":[{"file":"/var/www/cloud.cevennes.io/apps/encryption/lib/KeyManager.php","line":448,"function":"multiKeyDecrypt","class":"OCA\\Encryption\\Crypto\\Crypt","type":"->"},{"file":"/var/www/cloud.cevennes.io/apps/encryption/lib/Crypto/Encryption.php","line":202,"function":"getFileKey","class":"OCA\\Encryption\\KeyManager","type":"->"},{"file":"/var/www/cloud.cevennes.io/lib/private/Files/Storage/Wrapper/Encryption.php","line":583,"function":"begin","class":"OCA\\Encryption\\Crypto\\Encryption","type":"->"},{"file":"/var/www/cloud.cevennes.io/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/cloud.cevennes.io/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/cloud.cevennes.io/lib/private/Files/Storage/Wrapper/Wrapper.php","line":154,"function":"filesize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->"},{"file":"/var/www/cloud.cevennes.io/lib/private/Files/View.php","line":1162,"function":"filesize","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/cloud.cevennes.io/lib/private/Files/View.php","line":412,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/cloud.cevennes.io/apps/files_versions/lib/Storage.php","line":591,"function":"filesize","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/cloud.cevennes.io/apps/files_versions/lib/Storage.php","line":503,"function":"getAllVersions","class":"OCA\\Files_Versions\\Storage","type":"::"},{"file":"/var/www/cloud.cevennes.io/apps/files_versions/lib/BackgroundJob/ExpireVersions.php","line":67,"function":"expireOlderThanMaxForUser","class":"OCA\\Files_Versions\\Storage","type":"::"},{"file":"/var/www/cloud.cevennes.io/lib/private/User/Manager.php","line":562,"function":"OCA\\Files_Versions\\BackgroundJob\\{closure}","class":"OCA\\Files_Versions\\BackgroundJob\\ExpireVersions","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/cloud.cevennes.io/apps/files_versions/lib/BackgroundJob/ExpireVersions.php","line":68,"function":"callForSeenUsers","class":"OC\\User\\Manager","type":"->"},{"file":"/var/www/cloud.cevennes.io/lib/private/BackgroundJob/Job.php","line":61,"function":"run","class":"OCA\\Files_Versions\\BackgroundJob\\ExpireVersions","type":"->"},{"file":"/var/www/cloud.cevennes.io/lib/private/BackgroundJob/TimedJob.php","line":55,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/cloud.cevennes.io/cron.php","line":125,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/cloud.cevennes.io/apps/encryption/lib/Crypto/Crypt.php","Line":665,"Hint":"multikeydecrypt with share key failed:error:04065072:rsa routines:rsa_ossl_private_decrypt:padding check failed","CustomMessage":"--"},"userAgent":"--","version":"18.0.4.2"} ``` ``` {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:06+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:06+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:06+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:06+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:06+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:06+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:07+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:07+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:07+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:07+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:07+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:07+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:07+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:07+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"no app in context","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Couldn't re-calculate unencrypted size for files/Ansible/test-ansible/tasks/04-router-wireguard.yml","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:07+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"no app in context","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":{"Exception":"OCA\\Encryption\\Exceptions\\MultiKeyDecryptException","Message":"multikeydecrypt with share key failed:error:0407109F:rsa routines:RSA_padding_check_PKCS1_type_2:pkcs decoding error","Code":0,"Trace":[{"file":"/var/www/cloud.nextcloud.io/apps/encryption/lib/KeyManager.php","line":448,"function":"multiKeyDecrypt","class":"OCA\\Encryption\\Crypto\\Crypt","type":"->"},{"file":"/var/www/cloud.nextcloud.io/apps/encryption/lib/Crypto/Encryption.php","line":202,"function":"getFileKey","class":"OCA\\Encryption\\KeyManager","type":"->"},{"file":"/var/www/cloud.nextcloud.io/lib/private/Files/Storage/Wrapper/Encryption.php","line":583,"function":"begin","class":"OCA\\Encryption\\Crypto\\Encryption","type":"->"},{"file":"/var/www/cloud.nextcloud.io/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/cloud.nextcloud.io/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/cloud.nextcloud.io/lib/private/Files/Storage/Wrapper/Encryption.php","line":404,"function":"filesize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->"},{"file":"/var/www/cloud.nextcloud.io/lib/private/Files/Storage/Wrapper/Wrapper.php","line":299,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->"},{"file":"/var/www/cloud.nextcloud.io/apps/files_accesscontrol/lib/StorageWrapper.php","line":325,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/cloud.nextcloud.io/lib/private/Files/View.php","line":1160,"function":"fopen","class":"OCA\\FilesAccessControl\\StorageWrapper","type":"->"},{"file":"/var/www/cloud.nextcloud.io/lib/private/Files/View.php","line":996,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/cloud.nextcloud.io/apps/dav/lib/Connector/Sabre/File.php","line":416,"function":"fopen","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/cloud.nextcloud.io/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":85,"function":"get","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"function":"httpGet","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/cloud.nextcloud.io/3rdparty/sabre/event/lib/EventEmitterTrait.php","line":105,"function":"call_user_func_array"},{"file":"/var/www/cloud.nextcloud.io/3rdparty/sabre/dav/lib/DAV/Server.php","line":479,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->"},{"file":"/var/www/cloud.nextcloud.io/3rdparty/sabre/dav/lib/DAV/Server.php","line":254,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/cloud.nextcloud.io/apps/dav/appinfo/v1/webdav.php","line":82,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/cloud.nextcloud.io/remote.php","line":165,"args":["/var/www/cloud.nextcloud.io/apps/dav/appinfo/v1/webdav.php"],"function":"require_once"}],"File":"/var/www/cloud.nextcloud.io/apps/encryption/lib/Crypto/Crypt.php","Line":665,"Hint":"multikeydecrypt with share key failed:error:0407109F:rsa routines:RSA_padding_check_PKCS1_type_2:pkcs decoding error","CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:07+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:07+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":4,"time":"2020-05-28T09:22:07+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"webdav","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":{"Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable","Message":"Encryption not ready: multikeydecrypt with share key failed:error:04065072:rsa routines:rsa_ossl_private_decrypt:padding check failed","Code":0,"Trace":[{"file":"/var/www/cloud.nextcloud.io/apps/dav/lib/Connector/Sabre/File.php","line":418,"function":"convertToSabreException","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/cloud.nextcloud.io/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":85,"function":"get","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"function":"httpGet","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/cloud.nextcloud.io/3rdparty/sabre/event/lib/EventEmitterTrait.php","line":105,"function":"call_user_func_array"},{"file":"/var/www/cloud.nextcloud.io/3rdparty/sabre/dav/lib/DAV/Server.php","line":479,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->"},{"file":"/var/www/cloud.nextcloud.io/3rdparty/sabre/dav/lib/DAV/Server.php","line":254,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/cloud.nextcloud.io/apps/dav/appinfo/v1/webdav.php","line":82,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/cloud.nextcloud.io/remote.php","line":165,"args":["/var/www/cloud.nextcloud.io/apps/dav/appinfo/v1/webdav.php"],"function":"require_once"}],"File":"/var/www/cloud.nextcloud.io/apps/dav/lib/Connector/Sabre/File.php","Line":650,"Previous":{"Exception":"OCA\\Encryption\\Exceptions\\MultiKeyDecryptException","Message":"multikeydecrypt with share key failed:error:04065072:rsa routines:rsa_ossl_private_decrypt:padding check failed","Code":0,"Trace":[{"file":"/var/www/cloud.nextcloud.io/apps/encryption/lib/KeyManager.php","line":448,"function":"multiKeyDecrypt","class":"OCA\\Encryption\\Crypto\\Crypt","type":"->"},{"file":"/var/www/cloud.nextcloud.io/apps/encryption/lib/Crypto/Encryption.php","line":202,"function":"getFileKey","class":"OCA\\Encryption\\KeyManager","type":"->"},{"file":"/var/www/cloud.nextcloud.io/lib/private/Files/Stream/Encryption.php","line":269,"function":"begin","class":"OCA\\Encryption\\Crypto\\Encryption","type":"->"},{"function":"stream_open","class":"OC\\Files\\Stream\\Encryption","type":"->"},{"file":"/var/www/cloud.nextcloud.io/lib/private/Files/Stream/Encryption.php","line":207,"function":"fopen"},{"file":"/var/www/cloud.nextcloud.io/lib/private/Files/Stream/Encryption.php","line":187,"function":"wrapSource","class":"OC\\Files\\Stream\\Encryption","type":"::"},{"file":"/var/www/cloud.nextcloud.io/lib/private/Files/Storage/Wrapper/Encryption.php","line":469,"function":"wrap","class":"OC\\Files\\Stream\\Encryption","type":"::"},{"file":"/var/www/cloud.nextcloud.io/lib/private/Files/Storage/Wrapper/Wrapper.php","line":299,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->"},{"file":"/var/www/cloud.nextcloud.io/apps/files_accesscontrol/lib/StorageWrapper.php","line":325,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/cloud.nextcloud.io/lib/private/Files/View.php","line":1160,"function":"fopen","class":"OCA\\FilesAccessControl\\StorageWrapper","type":"->"},{"file":"/var/www/cloud.nextcloud.io/lib/private/Files/View.php","line":996,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/cloud.nextcloud.io/apps/dav/lib/Connector/Sabre/File.php","line":416,"function":"fopen","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/cloud.nextcloud.io/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":85,"function":"get","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"function":"httpGet","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/cloud.nextcloud.io/3rdparty/sabre/event/lib/EventEmitterTrait.php","line":105,"function":"call_user_func_array"},{"file":"/var/www/cloud.nextcloud.io/3rdparty/sabre/dav/lib/DAV/Server.php","line":479,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->"},{"file":"/var/www/cloud.nextcloud.io/3rdparty/sabre/dav/lib/DAV/Server.php","line":254,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/cloud.nextcloud.io/apps/dav/appinfo/v1/webdav.php","line":82,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/cloud.nextcloud.io/remote.php","line":165,"args":["/var/www/cloud.nextcloud.io/apps/dav/appinfo/v1/webdav.php"],"function":"require_once"}],"File":"/var/www/cloud.nextcloud.io/apps/encryption/lib/Crypto/Crypt.php","Line":665,"Hint":"multikeydecrypt with share key failed:error:04065072:rsa routines:rsa_ossl_private_decrypt:padding check failed"},"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:07+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Undefined index: debugMode at /var/www/cloud.nextcloud.io/core/templates/exception.php#17","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:07+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Undefined index: debugMode at /var/www/cloud.nextcloud.io/core/templates/exception.php#26","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:07+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:08+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:09+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:09+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:09+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:10+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:11+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:12+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:12+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:14+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/leafo/scssphp/src/Compiler.php#5230","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:14+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:14+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:15+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:15+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:17+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:17+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} {"reqId":"bbN2XsjmIjbnrf4uKzD7","level":3,"time":"2020-05-28T09:22:18+00:00","remoteAddr":"***IP ADDRESS REMOVED***","user":"florent","app":"PHP","method":"GET","url":"/remote.php/webdav/Ansible/test-ansible/tasks/04-router-wireguard.yml?downloadStartSecret=jj2hbq2vmw","message":"Trying to access array offset on value of type null at /var/www/cloud.nextcloud.io/3rdparty/aws/aws-sdk-php/src/RetryMiddleware.php#144","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.4.2"} ```
elsiehupp commented 4 years ago

I'm getting this same error on nextcloud-snap 19.0.3. FWIW this happened after I ran into problems with server-side encryption, read #22077, disabled encryption for debug purposes, and got this command-line error from occ:

In Connection.php line 67:

Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory  

encryption:decrypt-all [<user>]
szaimen commented 3 years ago

Let us track this in https://github.com/nextcloud/server/issues/22077