server icon indicating copy to clipboard operation
server copied to clipboard

Server-side encryption is incompatible with using an object store as a primary data store

Open cpf-sh opened this issue 6 years ago • 57 comments

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Install a fresh install of Nextcloud 19.0.1
  2. Edit config.php to add an objectstore (only tested with S3, but I assume others do the same)
  3. Log in to Nextcloud
  4. Note that you can create files fine in S3, upload things fine, etc
  5. Enable server-side encryption
  6. Log out and log back in again
  7. Note that you can still open files you created previously
  8. Try to create or upload a new file

Expected behaviour

The file should work just like any other file, being stored in the objectstore and being encrypted at rest there, with encryption keys remaining on the Nextcloud host.

Actual behaviour

Attempting to preview or open the file results in various 503 and 500 errors, with the message Bad Signature. The file is unrecoverable. This behaviour is consistent irrespective of whether you enable SSE before you enable S3, or the other way around.

Server configuration

Operating system: Ubuntu 20.04

Web server: Nginx 1.18.0

Database: MySQL 8.0.21

PHP version: 7.4

Nextcloud version: (see Nextcloud admin page) 19.0.1

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

Where did you install Nextcloud from: Both web installer and manually unzipping

Signing status:

Signing status
No errors have been found.

List of activated apps:

App list
Enabled:
  - accessibility: 1.5.0
  - activity: 2.12.0
  - admin_audit: 1.9.0
  - bruteforcesettings: 1.6.0
  - calendar: 2.0.3
  - cloud_federation_api: 1.2.0
  - comments: 1.9.0
  - contacts: 3.3.0
  - contactsinteraction: 1.0.0
  - dav: 1.15.0
  - encryption: 2.7.0
  - federatedfilesharing: 1.9.0
  - federation: 1.9.0
  - files: 1.14.0
  - files_external: 1.10.0
  - files_pdfviewer: 1.8.0
  - files_rightclick: 0.16.0
  - files_sharing: 1.11.0
  - files_trashbin: 1.9.0
  - files_versions: 1.12.0
  - files_videoplayer: 1.8.0
  - firstrunwizard: 2.8.0
  - logreader: 2.4.0
  - lookup_server_connector: 1.7.0
  - mail: 1.4.1
  - nextcloud_announcements: 1.8.0
  - notifications: 2.7.0
  - oauth2: 1.7.0
  - password_policy: 1.9.1
  - photos: 1.1.0
  - privacy: 1.3.0
  - provisioning_api: 1.9.0
  - recommendations: 0.7.0
  - richdocuments: 3.7.3
  - richdocumentscode: 4.2.503
  - serverinfo: 1.9.0
  - settings: 1.1.0
  - sharebymail: 1.9.0
  - spreed: 9.0.2
  - support: 1.2.1
  - survey_client: 1.7.0
  - systemtags: 1.9.0
  - text: 3.0.1
  - theming: 1.10.0
  - twofactor_backupcodes: 1.8.0
  - updatenotification: 1.9.0
  - viewer: 1.3.0
  - workflowengine: 2.1.0
Disabled:
  - user_ldap

Nextcloud configuration:

Config report
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "myurl.com"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "19.0.1.1",
        "overwrite.cli.url": "https:\/\/myurl.com",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "objectstore": {
            "class": "\\OC\\Files\\ObjectStore\\S3",
            "arguments": {
                "bucket": "mybucket",
                "autocreate": true,
                "key": "***REMOVED SENSITIVE VALUE***",
                "secret": "***REMOVED SENSITIVE VALUE***",
                "hostname": "s3.eu-central-1.wasabisys.com",
                "use_ssl": true,
                "region": "eu-central-1"
            }
        }
    }
}

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

Are you using encryption: Yes

Are you using an external user-backend, if yes which one: No

Client configuration

Browser: Firefox 78.0.2

Operating system: Manjaro Linux

Logs

Web server error log

Web server error log There are no recorded errors in the Nginx log.

Nextcloud log (data/nextcloud.log)

Nextcloud log
{"reqId":"lVDQGtsei8gPAz7rMxTi","level":2,"time":"2020-07-31T22:53:27+00:00","remoteAddr":"[IP removed]","user":"--","app":"no app in context","method":"GET","url":"/apps/files/?dir=/&fileid=135","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":""}
{"reqId":"lVDQGtsei8gPAz7rMxTi","level":2,"time":"2020-07-31T22:53:27+00:00","remoteAddr":"[IP removed]","user":"--","app":"no app in context","method":"GET","url":"/apps/files/?dir=/&fileid=135","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":""}
{"reqId":"lVDQGtsei8gPAz7rMxTi","level":3,"time":"2020-07-31T22:53:27+00:00","remoteAddr":"[IP removed]","user":"--","app":"jsresourceloader","method":"GET","url":"/apps/files/?dir=/&fileid=135","message":"Could not find resource js/setup.js to load","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":""}
{"reqId":"lVDQGtsei8gPAz7rMxTi","level":3,"time":"2020-07-31T22:53:27+00:00","remoteAddr":"[IP removed]","user":"--","app":"PHP","method":"GET","url":"/apps/files/?dir=/&fileid=135","message":"chmod(): No such file or directory at /var/www/cloud/lib/private/Log/File.php#86","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":""}
{"reqId":"KU2rcNTn3wcGSvtbaU2a","level":3,"time":"2020-07-31T22:53:28+00:00","remoteAddr":"[IP removed]","user":"--","app":"PHP","method":"GET","url":"/apps/files/core/vendor/zxcvbn/dist/zxcvbn.js","message":"session_start(): A session had already been started - ignoring at /var/www/cloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":""}
{"reqId":"KU2rcNTn3wcGSvtbaU2a","level":2,"time":"2020-07-31T22:53:28+00:00","remoteAddr":"[IP removed]","user":"--","app":"no app in context","method":"GET","url":"/apps/files/core/vendor/zxcvbn/dist/zxcvbn.js","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":""}
{"reqId":"KU2rcNTn3wcGSvtbaU2a","level":2,"time":"2020-07-31T22:53:28+00:00","remoteAddr":"[IP removed]","user":"--","app":"no app in context","method":"GET","url":"/apps/files/core/vendor/zxcvbn/dist/zxcvbn.js","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":""}
{"reqId":"KU2rcNTn3wcGSvtbaU2a","level":3,"time":"2020-07-31T22:53:28+00:00","remoteAddr":"[IP removed]","user":"--","app":"jsresourceloader","method":"GET","url":"/apps/files/core/vendor/zxcvbn/dist/zxcvbn.js","message":"Could not find resource js/setup.js to load","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":""}
{"reqId":"DTbayHNvMzxU4zeDREyD","level":3,"time":"2020-07-31T22:53:32+00:00","remoteAddr":"[IP removed]","user":"--","app":"PHP","method":"POST","url":"/apps/files/index.php","message":"session_start(): A session had already been started - ignoring at /var/www/cloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":""}
{"reqId":"DTbayHNvMzxU4zeDREyD","level":2,"time":"2020-07-31T22:53:32+00:00","remoteAddr":"[IP removed]","user":"--","app":"no app in context","method":"POST","url":"/apps/files/index.php","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":""}
{"reqId":"DTbayHNvMzxU4zeDREyD","level":2,"time":"2020-07-31T22:53:32+00:00","remoteAddr":"[IP removed]","user":"--","app":"no app in context","method":"POST","url":"/apps/files/index.php","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":""}
{"reqId":"DTbayHNvMzxU4zeDREyD","level":3,"time":"2020-07-31T22:53:32+00:00","remoteAddr":"[IP removed]","user":"--","app":"jsresourceloader","method":"POST","url":"/apps/files/index.php","message":"Could not find resource js/setup.js to load","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":""}
{"reqId":"EuM8q25YfwW6xbrBlTUs","level":3,"time":"2020-07-31T22:53:33+00:00","remoteAddr":"[IP removed]","user":"--","app":"PHP","method":"GET","url":"/apps/files/core/vendor/zxcvbn/dist/zxcvbn.js","message":"session_start(): A session had already been started - ignoring at /var/www/cloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":""}
{"reqId":"EuM8q25YfwW6xbrBlTUs","level":2,"time":"2020-07-31T22:53:33+00:00","remoteAddr":"[IP removed]","user":"--","app":"no app in context","method":"GET","url":"/apps/files/core/vendor/zxcvbn/dist/zxcvbn.js","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":""}
{"reqId":"EuM8q25YfwW6xbrBlTUs","level":2,"time":"2020-07-31T22:53:33+00:00","remoteAddr":"[IP removed]","user":"--","app":"no app in context","method":"GET","url":"/apps/files/core/vendor/zxcvbn/dist/zxcvbn.js","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":""}
{"reqId":"EuM8q25YfwW6xbrBlTUs","level":3,"time":"2020-07-31T22:53:33+00:00","remoteAddr":"[IP removed]","user":"--","app":"jsresourceloader","method":"GET","url":"/apps/files/core/vendor/zxcvbn/dist/zxcvbn.js","message":"Could not find resource js/setup.js to load","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":""}
{"reqId":"MmAygB3Fmm01L5aqFE0Z","level":3,"time":"2020-07-31T22:53:48+00:00","remoteAddr":"[IP removed]","user":"--","app":"PHP","method":"POST","url":"/apps/files/index.php","message":"session_start(): A session had already been started - ignoring at /var/www/cloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":""}
{"reqId":"MmAygB3Fmm01L5aqFE0Z","level":2,"time":"2020-07-31T22:53:48+00:00","remoteAddr":"[IP removed]","user":"--","app":"no app in context","method":"POST","url":"/apps/files/index.php","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":""}
{"reqId":"MmAygB3Fmm01L5aqFE0Z","level":2,"time":"2020-07-31T22:53:48+00:00","remoteAddr":"[IP removed]","user":"--","app":"no app in context","method":"POST","url":"/apps/files/index.php","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":""}
{"reqId":"MmAygB3Fmm01L5aqFE0Z","level":3,"time":"2020-07-31T22:53:49+00:00","remoteAddr":"[IP removed]","user":"--","app":"jsresourceloader","method":"POST","url":"/apps/files/index.php","message":"Could not find resource js/setup.js to load","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"Tv061A9AlgtJLUlqFrY2","level":3,"time":"2020-07-31T22:53:50+00:00","remoteAddr":"[IP removed]","user":"--","app":"PHP","method":"GET","url":"/index.php","message":"session_start(): A session had already been started - ignoring at /var/www/cloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"Tv061A9AlgtJLUlqFrY2","level":3,"time":"2020-07-31T22:53:50+00:00","remoteAddr":"[IP removed]","user":"--","app":"jsresourceloader","method":"GET","url":"/index.php","message":"Could not find resource js/setup.js to load","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"lihj0ZGUKh9G2uZXlsLa","level":3,"time":"2020-07-31T22:53:50+00:00","remoteAddr":"[IP removed]","user":"--","app":"PHP","method":"GET","url":"/apps/files/core/vendor/zxcvbn/dist/zxcvbn.js","message":"session_start(): A session had already been started - ignoring at /var/www/cloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"lihj0ZGUKh9G2uZXlsLa","level":3,"time":"2020-07-31T22:53:50+00:00","remoteAddr":"[IP removed]","user":"--","app":"jsresourceloader","method":"GET","url":"/apps/files/core/vendor/zxcvbn/dist/zxcvbn.js","message":"Could not find resource js/setup.js to load","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"Y8462vrk6N0OK6kRsj6U","level":3,"time":"2020-07-31T22:53:52+00:00","remoteAddr":"[IP removed]","user":"--","app":"PHP","method":"GET","url":"/index.php","message":"session_start(): A session had already been started - ignoring at /var/www/cloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"Y8462vrk6N0OK6kRsj6U","level":3,"time":"2020-07-31T22:53:52+00:00","remoteAddr":"[IP removed]","user":"--","app":"jsresourceloader","method":"GET","url":"/index.php","message":"Could not find resource js/setup.js to load","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"p1QdYopnFPfTkZz2jFcB","level":3,"time":"2020-07-31T22:54:13+00:00","remoteAddr":"[IP removed]","user":"--","app":"PHP","method":"POST","url":"/apps/files/index.php","message":"session_start(): A session had already been started - ignoring at /var/www/cloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"yE7GtrqnbY58OFxJ4Czw","level":3,"time":"2020-07-31T22:54:20+00:00","remoteAddr":"[IP removed]","user":"--","app":"PHP","method":"GET","url":"/index.php","message":"session_start(): A session had already been started - ignoring at /var/www/cloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"yE7GtrqnbY58OFxJ4Czw","level":3,"time":"2020-07-31T22:54:20+00:00","remoteAddr":"[IP removed]","user":"--","app":"jsresourceloader","method":"GET","url":"/index.php","message":"Could not find resource js/setup.js to load","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"RNo9LCVQlMzrB6jsFu3p","level":3,"time":"2020-07-31T22:54:22+00:00","remoteAddr":"[IP removed]","user":"--","app":"PHP","method":"GET","url":"/index.php","message":"session_start(): A session had already been started - ignoring at /var/www/cloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"RNo9LCVQlMzrB6jsFu3p","level":3,"time":"2020-07-31T22:54:22+00:00","remoteAddr":"[IP removed]","user":"--","app":"jsresourceloader","method":"GET","url":"/index.php","message":"Could not find resource js/setup.js to load","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"h45Negj88zJTizbxwyp8","level":3,"time":"2020-07-31T22:54:50+00:00","remoteAddr":"[IP removed]","user":"--","app":"PHP","method":"GET","url":"/index.php","message":"session_start(): A session had already been started - ignoring at /var/www/cloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"h45Negj88zJTizbxwyp8","level":3,"time":"2020-07-31T22:54:50+00:00","remoteAddr":"[IP removed]","user":"--","app":"jsresourceloader","method":"GET","url":"/index.php","message":"Could not find resource js/setup.js to load","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"Ia8W9eTD9gB97iR5lqAv","level":3,"time":"2020-07-31T22:54:52+00:00","remoteAddr":"[IP removed]","user":"--","app":"PHP","method":"GET","url":"/index.php","message":"session_start(): A session had already been started - ignoring at /var/www/cloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"Ia8W9eTD9gB97iR5lqAv","level":3,"time":"2020-07-31T22:54:52+00:00","remoteAddr":"[IP removed]","user":"--","app":"jsresourceloader","method":"GET","url":"/index.php","message":"Could not find resource js/setup.js to load","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"NbKJ3E5H1vZksKLWBvwW","level":3,"time":"2020-07-31T22:59:09+00:00","remoteAddr":"[IP removed]","user":"--","app":"PHP","method":"GET","url":"/logout?requesttoken=mCq49y0ItsUxN%2BkxdmFdCWaG4SwgFnMsB%2B9zqLOG9vQ%3D%3AwGHboBpbzPNSbdp7AiolahG%2FqVsRc0NkYo4qneP1mb0%3D","message":"session_start(): A session had already been started - ignoring at /var/www/cloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"dhCYlmnKPbiuAz8Weyzj","level":3,"time":"2020-07-31T22:59:28+00:00","remoteAddr":"[IP removed]","user":"curtispf","app":"index","method":"GET","url":"/apps/files/","message":{"Exception":"OCP\\Files\\NotFoundException","Message":"","Code":0,"Trace":[{"file":"/var/www/cloud/apps/files/lib/Controller/ViewController.php","line":139,"function":"getStorageInfo","class":"OC_Helper","type":"::"},{"file":"/var/www/cloud/apps/files/lib/Controller/ViewController.php","line":187,"function":"getStorageInfo","class":"OCA\\Files\\Controller\\ViewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"index","class":"OCA\\Files\\Controller\\ViewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/App.php","line":137,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->"},{"file":"/var/www/cloud/lib/private/Route/Router.php","line":297,"function":"call_user_func"},{"file":"/var/www/cloud/lib/base.php","line":1007,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/cloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/cloud/lib/private/legacy/OC_Helper.php","Line":491,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"HNLSaJPhoLhWcowyFOQk","level":3,"time":"2020-07-31T22:59:30+00:00","remoteAddr":"[IP removed]","user":"curtispf","app":"index","method":"GET","url":"/apps/files/","message":{"Exception":"OCP\\Files\\NotFoundException","Message":"","Code":0,"Trace":[{"file":"/var/www/cloud/apps/files/lib/Controller/ViewController.php","line":139,"function":"getStorageInfo","class":"OC_Helper","type":"::"},{"file":"/var/www/cloud/apps/files/lib/Controller/ViewController.php","line":187,"function":"getStorageInfo","class":"OCA\\Files\\Controller\\ViewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"index","class":"OCA\\Files\\Controller\\ViewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/App.php","line":137,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->"},{"file":"/var/www/cloud/lib/private/Route/Router.php","line":297,"function":"call_user_func"},{"file":"/var/www/cloud/lib/base.php","line":1007,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/cloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/cloud/lib/private/legacy/OC_Helper.php","Line":491,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"uTvGudJRpmVQoNthmb8U","level":3,"time":"2020-07-31T22:59:30+00:00","remoteAddr":"[IP removed]","user":"curtispf","app":"index","method":"GET","url":"/apps/files/","message":{"Exception":"OCP\\Files\\NotFoundException","Message":"","Code":0,"Trace":[{"file":"/var/www/cloud/apps/files/lib/Controller/ViewController.php","line":139,"function":"getStorageInfo","class":"OC_Helper","type":"::"},{"file":"/var/www/cloud/apps/files/lib/Controller/ViewController.php","line":187,"function":"getStorageInfo","class":"OCA\\Files\\Controller\\ViewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"index","class":"OCA\\Files\\Controller\\ViewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/App.php","line":137,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->"},{"file":"/var/www/cloud/lib/private/Route/Router.php","line":297,"function":"call_user_func"},{"file":"/var/www/cloud/lib/base.php","line":1007,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/cloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/cloud/lib/private/legacy/OC_Helper.php","Line":491,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"LQFvcSbAlCKwaozKmUin","level":3,"time":"2020-07-31T22:59:30+00:00","remoteAddr":"[IP removed]","user":"curtispf","app":"index","method":"GET","url":"/apps/files/","message":{"Exception":"OCP\\Files\\NotFoundException","Message":"","Code":0,"Trace":[{"file":"/var/www/cloud/apps/files/lib/Controller/ViewController.php","line":139,"function":"getStorageInfo","class":"OC_Helper","type":"::"},{"file":"/var/www/cloud/apps/files/lib/Controller/ViewController.php","line":187,"function":"getStorageInfo","class":"OCA\\Files\\Controller\\ViewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"index","class":"OCA\\Files\\Controller\\ViewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/App.php","line":137,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->"},{"file":"/var/www/cloud/lib/private/Route/Router.php","line":297,"function":"call_user_func"},{"file":"/var/www/cloud/lib/base.php","line":1007,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/cloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/cloud/lib/private/legacy/OC_Helper.php","Line":491,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"jtXmT0c1j2rwAYxfjUqg","level":3,"time":"2020-07-31T22:59:46+00:00","remoteAddr":"[IP removed]","user":"curtispf","app":"index","method":"GET","url":"/apps/files/","message":{"Exception":"OCP\\Files\\NotFoundException","Message":"","Code":0,"Trace":[{"file":"/var/www/cloud/apps/files/lib/Controller/ViewController.php","line":139,"function":"getStorageInfo","class":"OC_Helper","type":"::"},{"file":"/var/www/cloud/apps/files/lib/Controller/ViewController.php","line":187,"function":"getStorageInfo","class":"OCA\\Files\\Controller\\ViewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"index","class":"OCA\\Files\\Controller\\ViewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/App.php","line":137,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->"},{"file":"/var/www/cloud/lib/private/Route/Router.php","line":297,"function":"call_user_func"},{"file":"/var/www/cloud/lib/base.php","line":1007,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/cloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/cloud/lib/private/legacy/OC_Helper.php","Line":491,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"zE3QLuvMI8ZLWPiO7ML9","level":3,"time":"2020-07-31T22:59:48+00:00","remoteAddr":"[IP removed]","user":"curtispf","app":"index","method":"GET","url":"/apps/files/","message":{"Exception":"OCP\\Files\\NotFoundException","Message":"","Code":0,"Trace":[{"file":"/var/www/cloud/apps/files/lib/Controller/ViewController.php","line":139,"function":"getStorageInfo","class":"OC_Helper","type":"::"},{"file":"/var/www/cloud/apps/files/lib/Controller/ViewController.php","line":187,"function":"getStorageInfo","class":"OCA\\Files\\Controller\\ViewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"index","class":"OCA\\Files\\Controller\\ViewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/App.php","line":137,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->"},{"file":"/var/www/cloud/lib/private/Route/Router.php","line":297,"function":"call_user_func"},{"file":"/var/www/cloud/lib/base.php","line":1007,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/cloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/cloud/lib/private/legacy/OC_Helper.php","Line":491,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"hCJ7vdzJ53hkcGwUq2lY","level":3,"time":"2020-07-31T22:59:48+00:00","remoteAddr":"[IP removed]","user":"curtispf","app":"index","method":"GET","url":"/apps/files/","message":{"Exception":"OCP\\Files\\NotFoundException","Message":"","Code":0,"Trace":[{"file":"/var/www/cloud/apps/files/lib/Controller/ViewController.php","line":139,"function":"getStorageInfo","class":"OC_Helper","type":"::"},{"file":"/var/www/cloud/apps/files/lib/Controller/ViewController.php","line":187,"function":"getStorageInfo","class":"OCA\\Files\\Controller\\ViewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"index","class":"OCA\\Files\\Controller\\ViewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/App.php","line":137,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->"},{"file":"/var/www/cloud/lib/private/Route/Router.php","line":297,"function":"call_user_func"},{"file":"/var/www/cloud/lib/base.php","line":1007,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/cloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/cloud/lib/private/legacy/OC_Helper.php","Line":491,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"cbIEQ4y4TzXtB4sw8EwE","level":3,"time":"2020-07-31T22:59:50+00:00","remoteAddr":"[IP removed]","user":"curtispf","app":"index","method":"GET","url":"/apps/files/","message":{"Exception":"OCP\\Files\\NotFoundException","Message":"","Code":0,"Trace":[{"file":"/var/www/cloud/apps/files/lib/Controller/ViewController.php","line":139,"function":"getStorageInfo","class":"OC_Helper","type":"::"},{"file":"/var/www/cloud/apps/files/lib/Controller/ViewController.php","line":187,"function":"getStorageInfo","class":"OCA\\Files\\Controller\\ViewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"index","class":"OCA\\Files\\Controller\\ViewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/App.php","line":137,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->"},{"file":"/var/www/cloud/lib/private/Route/Router.php","line":297,"function":"call_user_func"},{"file":"/var/www/cloud/lib/base.php","line":1007,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/cloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/cloud/lib/private/legacy/OC_Helper.php","Line":491,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"1J0z2DqGPtqF4P02XCDS","level":3,"time":"2020-07-31T22:59:52+00:00","remoteAddr":"[IP removed]","user":"curtispf","app":"index","method":"GET","url":"/apps/files/","message":{"Exception":"OCP\\Files\\NotFoundException","Message":"","Code":0,"Trace":[{"file":"/var/www/cloud/apps/files/lib/Controller/ViewController.php","line":139,"function":"getStorageInfo","class":"OC_Helper","type":"::"},{"file":"/var/www/cloud/apps/files/lib/Controller/ViewController.php","line":187,"function":"getStorageInfo","class":"OCA\\Files\\Controller\\ViewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"index","class":"OCA\\Files\\Controller\\ViewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/App.php","line":137,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->"},{"file":"/var/www/cloud/lib/private/Route/Router.php","line":297,"function":"call_user_func"},{"file":"/var/www/cloud/lib/base.php","line":1007,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/cloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/cloud/lib/private/legacy/OC_Helper.php","Line":491,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"0JcpP1xA8oQzBW2XgPAM","level":3,"time":"2020-07-31T22:59:52+00:00","remoteAddr":"[IP removed]","user":"curtispf","app":"index","method":"GET","url":"/apps/files/","message":{"Exception":"OCP\\Files\\NotFoundException","Message":"","Code":0,"Trace":[{"file":"/var/www/cloud/apps/files/lib/Controller/ViewController.php","line":139,"function":"getStorageInfo","class":"OC_Helper","type":"::"},{"file":"/var/www/cloud/apps/files/lib/Controller/ViewController.php","line":187,"function":"getStorageInfo","class":"OCA\\Files\\Controller\\ViewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"index","class":"OCA\\Files\\Controller\\ViewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/App.php","line":137,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->"},{"file":"/var/www/cloud/lib/private/Route/Router.php","line":297,"function":"call_user_func"},{"file":"/var/www/cloud/lib/base.php","line":1007,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/cloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/cloud/lib/private/legacy/OC_Helper.php","Line":491,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"HJ9AVlPhYm0WMnb1uogV","level":3,"time":"2020-07-31T23:00:46+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fclose(): supplied resource is not a valid stream resource at /var/www/cloud/lib/private/Files/ObjectStore/S3ObjectTrait.php#107","userAgent":"--","version":"19.0.1.1"}
{"reqId":"HJ9AVlPhYm0WMnb1uogV","level":3,"time":"2020-07-31T23:00:47+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fclose(): supplied resource is not a valid stream resource at /var/www/cloud/lib/private/Files/ObjectStore/S3ObjectTrait.php#107","userAgent":"--","version":"19.0.1.1"}
{"reqId":"nY8JwHu4wOaSSBQFsrdj","level":3,"time":"2020-07-31T23:01:08+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fclose(): supplied resource is not a valid stream resource at /var/www/cloud/lib/private/Files/ObjectStore/S3ObjectTrait.php#107","userAgent":"--","version":"19.0.1.1"}
{"reqId":"vJwebdzYflx6GP0FUARg","level":3,"time":"2020-07-31T23:01:18+00:00","remoteAddr":"[IP removed]","user":"--","app":"PHP","method":"GET","url":"/","message":"session_start(): A session had already been started - ignoring at /var/www/cloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"y50wwIgpx221kiSyvBkG","level":3,"time":"2020-07-31T23:04:08+00:00","remoteAddr":"[IP removed]","user":"--","app":"PHP","method":"GET","url":"/logout?requesttoken=vuVogLpZDWFxgqbyIKRNPRM3R9OsIGO%2FbuYNr5f1xzU%3D%3A97BH98I%2FYTgi1dC2EOk%2FC2BVLaP2ZzrNXq1sxua06Fw%3D","message":"session_start(): A session had already been started - ignoring at /var/www/cloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"PnKDMngd3wDT5WEoycWO","level":3,"time":"2020-07-31T23:05:10+00:00","remoteAddr":"[IP removed]","user":"curtispf","app":"no app in context","method":"GET","url":"/core/preview?fileId=332&c=5f24a3a3ec568&x=250&y=250&forceIcon=0","message":"Couldn't re-calculate unencrypted size for files/test document.md","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"PnKDMngd3wDT5WEoycWO","level":3,"time":"2020-07-31T23:05:10+00:00","remoteAddr":"[IP removed]","user":"curtispf","app":"no app in context","method":"GET","url":"/core/preview?fileId=332&c=5f24a3a3ec568&x=250&y=250&forceIcon=0","message":{"Exception":"OCP\\Encryption\\Exceptions\\GenericEncryptionException","Message":"Bad Signature","Code":0,"Trace":[{"file":"/var/www/cloud/apps/encryption/lib/Crypto/Crypt.php","line":463,"function":"checkSignature","class":"OCA\\Encryption\\Crypto\\Crypt","type":"->"},{"file":"/var/www/cloud/apps/encryption/lib/Crypto/Encryption.php","line":375,"function":"symmetricDecryptFileContent","class":"OCA\\Encryption\\Crypto\\Crypt","type":"->"},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":585,"function":"decrypt","class":"OCA\\Encryption\\Crypto\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":505,"function":"fixUnencryptedSize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":166,"function":"verifyUnencryptedSize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":409,"function":"filesize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->"},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":300,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->"},{"file":"/var/www/cloud/lib/private/Files/View.php","line":1159,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/cloud/lib/private/Files/View.php","line":995,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/cloud/lib/private/Files/Node/File.php","line":115,"function":"fopen","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/TXT.php","line":56,"function":"fopen","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/GeneratorHelper.php","line":63,"function":"getThumbnail","class":"OC\\Preview\\TXT","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/Generator.php","line":235,"function":"getThumbnail","class":"OC\\Preview\\GeneratorHelper","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/Generator.php","line":141,"function":"getMaxPreview","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/Generator.php","line":107,"function":"generatePreviews","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/cloud/lib/private/PreviewManager.php","line":190,"function":"getPreview","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/cloud/core/Controller/PreviewController.php","line":170,"function":"getPreview","class":"OC\\PreviewManager","type":"->"},{"file":"/var/www/cloud/core/Controller/PreviewController.php","line":143,"function":"fetchPreview","class":"OC\\Core\\Controller\\PreviewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"getPreviewByFileId","class":"OC\\Core\\Controller\\PreviewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/App.php","line":137,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->"},{"file":"/var/www/cloud/lib/private/Route/Router.php","line":297,"function":"call_user_func"},{"file":"/var/www/cloud/lib/base.php","line":1007,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/cloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/cloud/apps/encryption/lib/Crypto/Crypt.php","Line":487,"Hint":"Bad Signature","CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"wBvpRzLfw0aVPIBMFOeO","level":3,"time":"2020-07-31T23:05:13+00:00","remoteAddr":"[IP removed]","user":"curtispf","app":"no app in context","method":"GET","url":"/apps/text/session/create?fileId=332&filePath=%2Ftest+document.md&guestName=null&forceRecreate=false","message":"Couldn't re-calculate unencrypted size for files/test document.md","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"wBvpRzLfw0aVPIBMFOeO","level":3,"time":"2020-07-31T23:05:13+00:00","remoteAddr":"[IP removed]","user":"curtispf","app":"no app in context","method":"GET","url":"/apps/text/session/create?fileId=332&filePath=%2Ftest+document.md&guestName=null&forceRecreate=false","message":{"Exception":"OCP\\Encryption\\Exceptions\\GenericEncryptionException","Message":"Bad Signature","Code":0,"Trace":[{"file":"/var/www/cloud/apps/encryption/lib/Crypto/Crypt.php","line":463,"function":"checkSignature","class":"OCA\\Encryption\\Crypto\\Crypt","type":"->"},{"file":"/var/www/cloud/apps/encryption/lib/Crypto/Encryption.php","line":375,"function":"symmetricDecryptFileContent","class":"OCA\\Encryption\\Crypto\\Crypt","type":"->"},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":585,"function":"decrypt","class":"OCA\\Encryption\\Crypto\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":505,"function":"fixUnencryptedSize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":166,"function":"verifyUnencryptedSize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":409,"function":"filesize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->"},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":300,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->"},{"file":"/var/www/cloud/lib/private/Files/View.php","line":1159,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/cloud/lib/private/Files/View.php","line":995,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/cloud/lib/private/Files/Node/File.php","line":115,"function":"fopen","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/cloud/apps/text/lib/Service/DocumentService.php","line":157,"function":"fopen","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/cloud/apps/text/lib/Service/ApiService.php","line":87,"function":"createDocument","class":"OCA\\Text\\Service\\DocumentService","type":"->"},{"file":"/var/www/cloud/apps/text/lib/Controller/SessionController.php","line":49,"function":"create","class":"OCA\\Text\\Service\\ApiService","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"create","class":"OCA\\Text\\Controller\\SessionController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/App.php","line":137,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->"},{"file":"/var/www/cloud/lib/private/Route/Router.php","line":297,"function":"call_user_func"},{"file":"/var/www/cloud/lib/base.php","line":1007,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/cloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/cloud/apps/encryption/lib/Crypto/Crypt.php","Line":487,"Hint":"Bad Signature","CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"iDG5oK4tG60qcRFim8qK","level":3,"time":"2020-07-31T23:05:14+00:00","remoteAddr":"[IP removed]","user":"curtispf","app":"no app in context","method":"GET","url":"/core/preview?fileId=332&x=1920&y=1080&a=true","message":"Couldn't re-calculate unencrypted size for files/test document.md","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"iDG5oK4tG60qcRFim8qK","level":3,"time":"2020-07-31T23:05:14+00:00","remoteAddr":"[IP removed]","user":"curtispf","app":"no app in context","method":"GET","url":"/core/preview?fileId=332&x=1920&y=1080&a=true","message":{"Exception":"OCP\\Encryption\\Exceptions\\GenericEncryptionException","Message":"Bad Signature","Code":0,"Trace":[{"file":"/var/www/cloud/apps/encryption/lib/Crypto/Crypt.php","line":463,"function":"checkSignature","class":"OCA\\Encryption\\Crypto\\Crypt","type":"->"},{"file":"/var/www/cloud/apps/encryption/lib/Crypto/Encryption.php","line":375,"function":"symmetricDecryptFileContent","class":"OCA\\Encryption\\Crypto\\Crypt","type":"->"},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":585,"function":"decrypt","class":"OCA\\Encryption\\Crypto\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":505,"function":"fixUnencryptedSize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":166,"function":"verifyUnencryptedSize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":409,"function":"filesize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->"},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":300,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->"},{"file":"/var/www/cloud/lib/private/Files/View.php","line":1159,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/cloud/lib/private/Files/View.php","line":995,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/cloud/lib/private/Files/Node/File.php","line":115,"function":"fopen","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/TXT.php","line":56,"function":"fopen","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/GeneratorHelper.php","line":63,"function":"getThumbnail","class":"OC\\Preview\\TXT","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/Generator.php","line":235,"function":"getThumbnail","class":"OC\\Preview\\GeneratorHelper","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/Generator.php","line":141,"function":"getMaxPreview","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/Generator.php","line":107,"function":"generatePreviews","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/cloud/lib/private/PreviewManager.php","line":190,"function":"getPreview","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/cloud/core/Controller/PreviewController.php","line":170,"function":"getPreview","class":"OC\\PreviewManager","type":"->"},{"file":"/var/www/cloud/core/Controller/PreviewController.php","line":143,"function":"fetchPreview","class":"OC\\Core\\Controller\\PreviewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"getPreviewByFileId","class":"OC\\Core\\Controller\\PreviewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/App.php","line":137,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->"},{"file":"/var/www/cloud/lib/private/Route/Router.php","line":297,"function":"call_user_func"},{"file":"/var/www/cloud/lib/base.php","line":1007,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/cloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/cloud/apps/encryption/lib/Crypto/Crypt.php","Line":487,"Hint":"Bad Signature","CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"NznuxACjyIRF4GkOY64B","level":3,"time":"2020-07-31T23:07:53+00:00","remoteAddr":"[IP removed]","user":"curtispf","app":"no app in context","method":"GET","url":"/core/preview?fileId=345&c=5f24a445eb75d&x=250&y=250&forceIcon=0","message":"Couldn't re-calculate unencrypted size for files/Vineyard.jpg","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"NznuxACjyIRF4GkOY64B","level":3,"time":"2020-07-31T23:07:53+00:00","remoteAddr":"[IP removed]","user":"curtispf","app":"no app in context","method":"GET","url":"/core/preview?fileId=345&c=5f24a445eb75d&x=250&y=250&forceIcon=0","message":{"Exception":"OCP\\Encryption\\Exceptions\\GenericEncryptionException","Message":"Bad Signature","Code":0,"Trace":[{"file":"/var/www/cloud/apps/encryption/lib/Crypto/Crypt.php","line":463,"function":"checkSignature","class":"OCA\\Encryption\\Crypto\\Crypt","type":"->"},{"file":"/var/www/cloud/apps/encryption/lib/Crypto/Encryption.php","line":375,"function":"symmetricDecryptFileContent","class":"OCA\\Encryption\\Crypto\\Crypt","type":"->"},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":585,"function":"decrypt","class":"OCA\\Encryption\\Crypto\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":505,"function":"fixUnencryptedSize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":166,"function":"verifyUnencryptedSize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":409,"function":"filesize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->"},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":300,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->"},{"file":"/var/www/cloud/lib/private/Files/View.php","line":1159,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/cloud/lib/private/Files/View.php","line":995,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/cloud/lib/private/Files/Node/File.php","line":115,"function":"fopen","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/ProviderV2.php","line":86,"function":"fopen","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/Image.php","line":50,"function":"getLocalFile","class":"OC\\Preview\\ProviderV2","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/GeneratorHelper.php","line":63,"function":"getThumbnail","class":"OC\\Preview\\Image","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/Generator.php","line":235,"function":"getThumbnail","class":"OC\\Preview\\GeneratorHelper","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/Generator.php","line":141,"function":"getMaxPreview","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/Generator.php","line":107,"function":"generatePreviews","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/cloud/lib/private/PreviewManager.php","line":190,"function":"getPreview","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/cloud/core/Controller/PreviewController.php","line":170,"function":"getPreview","class":"OC\\PreviewManager","type":"->"},{"file":"/var/www/cloud/core/Controller/PreviewController.php","line":143,"function":"fetchPreview","class":"OC\\Core\\Controller\\PreviewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"getPreviewByFileId","class":"OC\\Core\\Controller\\PreviewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/App.php","line":137,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->"},{"file":"/var/www/cloud/lib/private/Route/Router.php","line":297,"function":"call_user_func"},{"file":"/var/www/cloud/lib/base.php","line":1007,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/cloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/cloud/apps/encryption/lib/Crypto/Crypt.php","Line":487,"Hint":"Bad Signature","CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"hJ54Qo6NBO2ZtwRSW0wG","level":3,"time":"2020-07-31T23:11:30+00:00","remoteAddr":"[IP removed]","user":"curtispf","app":"no app in context","method":"GET","url":"/core/preview?fileId=345&c=5f24a445eb75d&x=250&y=250&forceIcon=0","message":"Couldn't re-calculate unencrypted size for files/Vineyard.jpg","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"hJ54Qo6NBO2ZtwRSW0wG","level":3,"time":"2020-07-31T23:11:30+00:00","remoteAddr":"[IP removed]","user":"curtispf","app":"no app in context","method":"GET","url":"/core/preview?fileId=345&c=5f24a445eb75d&x=250&y=250&forceIcon=0","message":{"Exception":"OCP\\Encryption\\Exceptions\\GenericEncryptionException","Message":"Bad Signature","Code":0,"Trace":[{"file":"/var/www/cloud/apps/encryption/lib/Crypto/Crypt.php","line":463,"function":"checkSignature","class":"OCA\\Encryption\\Crypto\\Crypt","type":"->"},{"file":"/var/www/cloud/apps/encryption/lib/Crypto/Encryption.php","line":375,"function":"symmetricDecryptFileContent","class":"OCA\\Encryption\\Crypto\\Crypt","type":"->"},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":585,"function":"decrypt","class":"OCA\\Encryption\\Crypto\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":505,"function":"fixUnencryptedSize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":166,"function":"verifyUnencryptedSize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":409,"function":"filesize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->"},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":300,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->"},{"file":"/var/www/cloud/lib/private/Files/View.php","line":1159,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/cloud/lib/private/Files/View.php","line":995,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/cloud/lib/private/Files/Node/File.php","line":115,"function":"fopen","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/ProviderV2.php","line":86,"function":"fopen","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/Image.php","line":50,"function":"getLocalFile","class":"OC\\Preview\\ProviderV2","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/GeneratorHelper.php","line":63,"function":"getThumbnail","class":"OC\\Preview\\Image","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/Generator.php","line":235,"function":"getThumbnail","class":"OC\\Preview\\GeneratorHelper","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/Generator.php","line":141,"function":"getMaxPreview","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/Generator.php","line":107,"function":"generatePreviews","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/cloud/lib/private/PreviewManager.php","line":190,"function":"getPreview","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/cloud/core/Controller/PreviewController.php","line":170,"function":"getPreview","class":"OC\\PreviewManager","type":"->"},{"file":"/var/www/cloud/core/Controller/PreviewController.php","line":143,"function":"fetchPreview","class":"OC\\Core\\Controller\\PreviewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"getPreviewByFileId","class":"OC\\Core\\Controller\\PreviewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/App.php","line":137,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->"},{"file":"/var/www/cloud/lib/private/Route/Router.php","line":297,"function":"call_user_func"},{"file":"/var/www/cloud/lib/base.php","line":1007,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/cloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/cloud/apps/encryption/lib/Crypto/Crypt.php","Line":487,"Hint":"Bad Signature","CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"T792Mr2CPAYM6ocncUx1","level":3,"time":"2020-07-31T23:11:30+00:00","remoteAddr":"[IP removed]","user":"curtispf","app":"no app in context","method":"GET","url":"/core/preview?fileId=332&c=5f24a3a3ec568&x=250&y=250&forceIcon=0","message":"Couldn't re-calculate unencrypted size for files/test document.md","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"T792Mr2CPAYM6ocncUx1","level":3,"time":"2020-07-31T23:11:30+00:00","remoteAddr":"[IP removed]","user":"curtispf","app":"no app in context","method":"GET","url":"/core/preview?fileId=332&c=5f24a3a3ec568&x=250&y=250&forceIcon=0","message":{"Exception":"OCP\\Encryption\\Exceptions\\GenericEncryptionException","Message":"Bad Signature","Code":0,"Trace":[{"file":"/var/www/cloud/apps/encryption/lib/Crypto/Crypt.php","line":463,"function":"checkSignature","class":"OCA\\Encryption\\Crypto\\Crypt","type":"->"},{"file":"/var/www/cloud/apps/encryption/lib/Crypto/Encryption.php","line":375,"function":"symmetricDecryptFileContent","class":"OCA\\Encryption\\Crypto\\Crypt","type":"->"},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":585,"function":"decrypt","class":"OCA\\Encryption\\Crypto\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":505,"function":"fixUnencryptedSize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":166,"function":"verifyUnencryptedSize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":409,"function":"filesize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->"},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":300,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->"},{"file":"/var/www/cloud/lib/private/Files/View.php","line":1159,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/cloud/lib/private/Files/View.php","line":995,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/cloud/lib/private/Files/Node/File.php","line":115,"function":"fopen","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/TXT.php","line":56,"function":"fopen","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/GeneratorHelper.php","line":63,"function":"getThumbnail","class":"OC\\Preview\\TXT","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/Generator.php","line":235,"function":"getThumbnail","class":"OC\\Preview\\GeneratorHelper","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/Generator.php","line":141,"function":"getMaxPreview","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/Generator.php","line":107,"function":"generatePreviews","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/cloud/lib/private/PreviewManager.php","line":190,"function":"getPreview","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/cloud/core/Controller/PreviewController.php","line":170,"function":"getPreview","class":"OC\\PreviewManager","type":"->"},{"file":"/var/www/cloud/core/Controller/PreviewController.php","line":143,"function":"fetchPreview","class":"OC\\Core\\Controller\\PreviewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"getPreviewByFileId","class":"OC\\Core\\Controller\\PreviewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/App.php","line":137,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->"},{"file":"/var/www/cloud/lib/private/Route/Router.php","line":297,"function":"call_user_func"},{"file":"/var/www/cloud/lib/base.php","line":1007,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/cloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/cloud/apps/encryption/lib/Crypto/Crypt.php","Line":487,"Hint":"Bad Signature","CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"kdGcwBmrS7f6FaZJwX0A","level":3,"time":"2020-07-31T23:11:34+00:00","remoteAddr":"[IP removed]","user":"curtispf","app":"no app in context","method":"GET","url":"/core/preview?fileId=332&x=32&y=32","message":"Couldn't re-calculate unencrypted size for files/test document.md","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"kdGcwBmrS7f6FaZJwX0A","level":3,"time":"2020-07-31T23:11:34+00:00","remoteAddr":"[IP removed]","user":"curtispf","app":"no app in context","method":"GET","url":"/core/preview?fileId=332&x=32&y=32","message":{"Exception":"OCP\\Encryption\\Exceptions\\GenericEncryptionException","Message":"Bad Signature","Code":0,"Trace":[{"file":"/var/www/cloud/apps/encryption/lib/Crypto/Crypt.php","line":463,"function":"checkSignature","class":"OCA\\Encryption\\Crypto\\Crypt","type":"->"},{"file":"/var/www/cloud/apps/encryption/lib/Crypto/Encryption.php","line":375,"function":"symmetricDecryptFileContent","class":"OCA\\Encryption\\Crypto\\Crypt","type":"->"},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":585,"function":"decrypt","class":"OCA\\Encryption\\Crypto\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":505,"function":"fixUnencryptedSize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":166,"function":"verifyUnencryptedSize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":409,"function":"filesize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->"},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":300,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->"},{"file":"/var/www/cloud/lib/private/Files/View.php","line":1159,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/cloud/lib/private/Files/View.php","line":995,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/cloud/lib/private/Files/Node/File.php","line":115,"function":"fopen","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/TXT.php","line":56,"function":"fopen","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/GeneratorHelper.php","line":63,"function":"getThumbnail","class":"OC\\Preview\\TXT","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/Generator.php","line":235,"function":"getThumbnail","class":"OC\\Preview\\GeneratorHelper","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/Generator.php","line":141,"function":"getMaxPreview","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/Generator.php","line":107,"function":"generatePreviews","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/cloud/lib/private/PreviewManager.php","line":190,"function":"getPreview","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/cloud/core/Controller/PreviewController.php","line":170,"function":"getPreview","class":"OC\\PreviewManager","type":"->"},{"file":"/var/www/cloud/core/Controller/PreviewController.php","line":143,"function":"fetchPreview","class":"OC\\Core\\Controller\\PreviewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"getPreviewByFileId","class":"OC\\Core\\Controller\\PreviewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/App.php","line":137,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->"},{"file":"/var/www/cloud/lib/private/Route/Router.php","line":297,"function":"call_user_func"},{"file":"/var/www/cloud/lib/base.php","line":1007,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/cloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/cloud/apps/encryption/lib/Crypto/Crypt.php","Line":487,"Hint":"Bad Signature","CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"V9yDag7eeZMS2BlxOXl8","level":3,"time":"2020-07-31T23:11:38+00:00","remoteAddr":"[IP removed]","user":"curtispf","app":"no app in context","method":"GET","url":"/core/preview?fileId=345&x=1920&y=1080&a=true","message":"Couldn't re-calculate unencrypted size for files/Vineyard.jpg","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}
{"reqId":"V9yDag7eeZMS2BlxOXl8","level":3,"time":"2020-07-31T23:11:38+00:00","remoteAddr":"[IP removed]","user":"curtispf","app":"no app in context","method":"GET","url":"/core/preview?fileId=345&x=1920&y=1080&a=true","message":{"Exception":"OCP\\Encryption\\Exceptions\\GenericEncryptionException","Message":"Bad Signature","Code":0,"Trace":[{"file":"/var/www/cloud/apps/encryption/lib/Crypto/Crypt.php","line":463,"function":"checkSignature","class":"OCA\\Encryption\\Crypto\\Crypt","type":"->"},{"file":"/var/www/cloud/apps/encryption/lib/Crypto/Encryption.php","line":375,"function":"symmetricDecryptFileContent","class":"OCA\\Encryption\\Crypto\\Crypt","type":"->"},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":585,"function":"decrypt","class":"OCA\\Encryption\\Crypto\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":505,"function":"fixUnencryptedSize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":166,"function":"verifyUnencryptedSize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":409,"function":"filesize","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->"},{"file":"/var/www/cloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":300,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Encryption","type":"->"},{"file":"/var/www/cloud/lib/private/Files/View.php","line":1159,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/cloud/lib/private/Files/View.php","line":995,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/cloud/lib/private/Files/Node/File.php","line":115,"function":"fopen","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/ProviderV2.php","line":86,"function":"fopen","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/Image.php","line":50,"function":"getLocalFile","class":"OC\\Preview\\ProviderV2","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/GeneratorHelper.php","line":63,"function":"getThumbnail","class":"OC\\Preview\\Image","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/Generator.php","line":235,"function":"getThumbnail","class":"OC\\Preview\\GeneratorHelper","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/Generator.php","line":141,"function":"getMaxPreview","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/cloud/lib/private/Preview/Generator.php","line":107,"function":"generatePreviews","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/cloud/lib/private/PreviewManager.php","line":190,"function":"getPreview","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/cloud/core/Controller/PreviewController.php","line":170,"function":"getPreview","class":"OC\\PreviewManager","type":"->"},{"file":"/var/www/cloud/core/Controller/PreviewController.php","line":143,"function":"fetchPreview","class":"OC\\Core\\Controller\\PreviewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"getPreviewByFileId","class":"OC\\Core\\Controller\\PreviewController","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/App.php","line":137,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/cloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->"},{"file":"/var/www/cloud/lib/private/Route/Router.php","line":297,"function":"call_user_func"},{"file":"/var/www/cloud/lib/base.php","line":1007,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/cloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/cloud/apps/encryption/lib/Crypto/Crypt.php","Line":487,"Hint":"Bad Signature","CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1"}

Note the OCP\\Files\\NotFoundException; this was because I initially logged in with an existing user, rather than deleting the user and re-adding a new one. Following this exception, I deleted the user, and added a new one; all log lines beyond that point are from the new user, who was created with S3 enabled.

Browser log

Browser log An example of one of the failed requests:
GET /core/preview?fileId=332&c=5f24a3a3ec568&x=250&y=250&forceIcon=0 HTTP/1.1
Host: myurl.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0
Accept: image/webp,*/*
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: https://myurl.com/apps/files/?dir=/
DNT: 1
Connection: keep-alive
Cookie: [cookies removed]

Response:

HTTP/2 503 Service Unavailable
date: Fri, 31 Jul 2020 23:22:34 GMT
content-type: text/html; charset=UTF-8
expires: Thu, 19 Nov 1981 08:52:00 GMT
cache-control: no-store, no-cache, must-revalidate
pragma: no-cache
content-security-policy: default-src 'self'; script-src 'self' 'nonce-ZHIyZm9RdDJ0UGo2RUJ3ZkRCL0pBWklFU0kyNjZRSWM5QjFKL1BoeCtRUT06RSszMytEd0RoSkd5ZWxCUlgxbjhMdEZkRDlycnBFeGtrVndGbDd3N3pXbz0='; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *; object-src 'none'; base-uri 'self';
strict-transport-security: max-age=15552000; includeSubDomains; preload
x-content-type-options: nosniff

<!DOCTYPE html>
<html class="ng-csp" data-placeholder-focus="false" lang="en-GB" data-locale="en_GB">
<head data-requesttoken="">
<meta charset="utf-8">
<title>
		Nextcloud		</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<meta name="apple-itunes-app" content="app-id=1125420102">
<meta name="theme-color" content="#0082c9">
<link rel="icon" href="/apps/theming/favicon?v=0">
<link rel="apple-touch-icon" href="/apps/theming/icon?v=0">
<link rel="mask-icon" sizes="any" href="/core/img/favicon-mask.svg" color="#0082c9">
<link rel="manifest" href="/apps/theming/manifest?v=0">
<link rel="stylesheet" href="/apps/files_pdfviewer/css/style.css?v=4fda350b-0">
<link rel="stylesheet" href="/core/css/guest.css?v=2b8e915c-0">
<script nonce="ZHIyZm9RdDJ0UGo2RUJ3ZkRCL0pBWklFU0kyNjZRSWM5QjFKL1BoeCtRUT06RSszMytEd0RoSkd5ZWxCUlgxbjhMdEZkRDlycnBFeGtrVndGbDd3N3pXbz0=" defer src="/core/js/dist/main.js?v=2b8e915c-0"></script>
<script nonce="ZHIyZm9RdDJ0UGo2RUJ3ZkRCL0pBWklFU0kyNjZRSWM5QjFKL1BoeCtRUT06RSszMytEd0RoSkd5ZWxCUlgxbjhMdEZkRDlycnBFeGtrVndGbDd3N3pXbz0=" defer src="/js/core/merged-template-prepend.js?v=2b8e915c-0"></script>
<script nonce="ZHIyZm9RdDJ0UGo2RUJ3ZkRCL0pBWklFU0kyNjZRSWM5QjFKL1BoeCtRUT06RSszMytEd0RoSkd5ZWxCUlgxbjhMdEZkRDlycnBFeGtrVndGbDd3N3pXbz0=" defer src="/core/search/js/search.js?v=2b8e915c-0"></script>
<script nonce="ZHIyZm9RdDJ0UGo2RUJ3ZkRCL0pBWklFU0kyNjZRSWM5QjFKL1BoeCtRUT06RSszMytEd0RoSkd5ZWxCUlgxbjhMdEZkRDlycnBFeGtrVndGbDd3N3pXbz0=" defer src="/core/l10n/en_GB.js?v=2b8e915c-0"></script>
<script nonce="ZHIyZm9RdDJ0UGo2RUJ3ZkRCL0pBWklFU0kyNjZRSWM5QjFKL1BoeCtRUT06RSszMytEd0RoSkd5ZWxCUlgxbjhMdEZkRDlycnBFeGtrVndGbDd3N3pXbz0=" defer src="/apps/encryption/l10n/en_GB.js?v=2b8e915c-0"></script>
<script nonce="ZHIyZm9RdDJ0UGo2RUJ3ZkRCL0pBWklFU0kyNjZRSWM5QjFKL1BoeCtRUT06RSszMytEd0RoSkd5ZWxCUlgxbjhMdEZkRDlycnBFeGtrVndGbDd3N3pXbz0=" defer src="/apps/encryption/js/encryption.js?v=2b8e915c-0"></script>
<script nonce="ZHIyZm9RdDJ0UGo2RUJ3ZkRCL0pBWklFU0kyNjZRSWM5QjFKL1BoeCtRUT06RSszMytEd0RoSkd5ZWxCUlgxbjhMdEZkRDlycnBFeGtrVndGbDd3N3pXbz0=" defer src="/apps/files_sharing/l10n/en_GB.js?v=2b8e915c-0"></script>
<script nonce="ZHIyZm9RdDJ0UGo2RUJ3ZkRCL0pBWklFU0kyNjZRSWM5QjFKL1BoeCtRUT06RSszMytEd0RoSkd5ZWxCUlgxbjhMdEZkRDlycnBFeGtrVndGbDd3N3pXbz0=" defer src="/apps/files_sharing/js/dist/main.js?v=2b8e915c-0"></script>
<script nonce="ZHIyZm9RdDJ0UGo2RUJ3ZkRCL0pBWklFU0kyNjZRSWM5QjFKL1BoeCtRUT06RSszMytEd0RoSkd5ZWxCUlgxbjhMdEZkRDlycnBFeGtrVndGbDd3N3pXbz0=" defer src="/apps/files_pdfviewer/js/previewplugin.js?v=2b8e915c-0"></script>
<script nonce="ZHIyZm9RdDJ0UGo2RUJ3ZkRCL0pBWklFU0kyNjZRSWM5QjFKL1BoeCtRUT06RSszMytEd0RoSkd5ZWxCUlgxbjhMdEZkRDlycnBFeGtrVndGbDd3N3pXbz0=" defer src="/apps/files_videoplayer/js/main.js?v=2b8e915c-0"></script>
<script nonce="ZHIyZm9RdDJ0UGo2RUJ3ZkRCL0pBWklFU0kyNjZRSWM5QjFKL1BoeCtRUT06RSszMytEd0RoSkd5ZWxCUlgxbjhMdEZkRDlycnBFeGtrVndGbDd3N3pXbz0=" defer src="/apps/notifications/l10n/en_GB.js?v=2b8e915c-0"></script>
<script nonce="ZHIyZm9RdDJ0UGo2RUJ3ZkRCL0pBWklFU0kyNjZRSWM5QjFKL1BoeCtRUT06RSszMytEd0RoSkd5ZWxCUlgxbjhMdEZkRDlycnBFeGtrVndGbDd3N3pXbz0=" defer src="/apps/notifications/js/notifications.js?v=2b8e915c-0"></script>
<script nonce="ZHIyZm9RdDJ0UGo2RUJ3ZkRCL0pBWklFU0kyNjZRSWM5QjFKL1BoeCtRUT06RSszMytEd0RoSkd5ZWxCUlgxbjhMdEZkRDlycnBFeGtrVndGbDd3N3pXbz0=" defer src="/core/search/js/searchprovider.js?v=2b8e915c-0"></script>
<script nonce="ZHIyZm9RdDJ0UGo2RUJ3ZkRCL0pBWklFU0kyNjZRSWM5QjFKL1BoeCtRUT06RSszMytEd0RoSkd5ZWxCUlgxbjhMdEZkRDlycnBFeGtrVndGbDd3N3pXbz0=" defer src="/core/js/files/fileinfo.js?v=2b8e915c-0"></script>
<script nonce="ZHIyZm9RdDJ0UGo2RUJ3ZkRCL0pBWklFU0kyNjZRSWM5QjFKL1BoeCtRUT06RSszMytEd0RoSkd5ZWxCUlgxbjhMdEZkRDlycnBFeGtrVndGbDd3N3pXbz0=" defer src="/core/js/files/client.js?v=2b8e915c-0"></script>
<script defer src="/apps/accessibility/js/accessibility?v=0" nonce="ZHIyZm9RdDJ0UGo2RUJ3ZkRCL0pBWklFU0kyNjZRSWM5QjFKL1BoeCtRUT06RSszMytEd0RoSkd5ZWxCUlgxbjhMdEZkRDlycnBFeGtrVndGbDd3N3pXbz0="></script><link rel="stylesheet" href="/apps/theming/styles?v=0" /><script defer src="/apps/theming/js/theming?v=0" nonce="ZHIyZm9RdDJ0UGo2RUJ3ZkRCL0pBWklFU0kyNjZRSWM5QjFKL1BoeCtRUT06RSszMytEd0RoSkd5ZWxCUlgxbjhMdEZkRDlycnBFeGtrVndGbDd3N3pXbz0="></script> </head>
<body id="body-login">
<noscript>
	<div id="nojavascript">
		<div>
			This application requires JavaScript for correct operation. Please <a href="https://www.enable-javascript.com/" target="_blank" rel="noreferrer noopener">enable JavaScript</a> and reload the page.		</div>
	</div>
</noscript>
<div class="wrapper">
<div class="v-align">
<header role="banner">
<div id="header">
<div class="logo">
<h1 class="hidden-visually">
Nextcloud </h1>
</div>
</div>
</header>
<main>
<div class="error">
<h2>Error</h2>
<ul>
<li>
<p>Bad Signature</p>
</li>
</ul>
</div>
</main>
</div>
</div>
<footer role="contentinfo">
<p class="info">
<a href="https://nextcloud.com" target="_blank" rel="noreferrer noopener" class="entity-name">Nextcloud</a> – a safe home for all your data </p>
</footer>
</body>
</html>

cpf-sh avatar Jul 31 '20 23:07 cpf-sh

Similar to https://github.com/nextcloud/server/issues/11826

solracsf avatar Aug 01 '20 12:08 solracsf

I noted that the files_encryption directory under data didn't actually exist, which may be part of the issue - keys not being generated correctly, perhaps? Either way, I tried copying in some keys from a previous install, in the hope that that might work, and manually changed the key IDs in the database to match, but that just gave me the same issue as in #8349. (This was all on a test instance with no real data in, obviously, so not bothered about if I break things.)

Edit: Actually, no, it was a different issue. The message I get after copying the keys in manually is a 500 error with multikeydecrypt with share key failed:error:04065072:rsa routines:rsa_ossl_private_decrypt:padding check failed.

cpf-sh avatar Aug 03 '20 12:08 cpf-sh

Possibly related to #22018, although @juliushaertl may be able to offer some more insight on that front.

cpf-sh avatar Aug 03 '20 17:08 cpf-sh

Similar issue, using:

  • Wasabi for primary S3 object storage
  • Nextcloud 19.0.1
  • PHP 7.2.24
  • MariaDB 10.4.13
  • Nginx 1.14.0
  • Ubuntu 18.04

I can upload and download encrypted files, with some issues. In particular:

  • When uploading, the errors Couldn't re-calculate unencrypted size for <filename> and Bad Signature are logged.
  • When previewing, the preview cannot be successfully loaded, and the same errors are logged.
  • When downloading:
    • the HTTP request, e.g. https://cloud.example.com/remote.php/webdav/file.jpg?downloadStartSecret=<secret>, returns 200.
    • additional request errors are logged.
    • the file appears to have been successfully downloaded. In the case of a JPEG file, for example, macOS Preview appears to correctly display the image.
    • the size of the downloaded file does not match that of the original file.

On further inspection, the leading blocks of the file are decrypted and downloaded correctly, but the last block of the file (or blocks? I don't know the block size used by the cipher/Nextcloud) is instead an HTML Nextcloud error page. For example, for a JPG file of 77553 bytes, the download is 80059 bytes. The discrepancy between the two files is that their first 65536 bytes (0x10000 bytes) match, but the remaining 14523 bytes are a Nextcloud 500 error page (though I must stress that this is not the result of a HTTP request made by the browser), which reads:

Internal Server Error

The server was unable to complete your request. If this happens again, please send the technical details below to the server administrator. More details can be found in the server log.

Technical details

  • Remote Address: 51.9.240.193
  • Request ID: F2XyFItxmWz4ADqkGiIS

Logs are below:

Upload request logs
{
    "reqId": "qXMVXCqhUUDOBOdFei9F",
    "level": 3,
    "time": "2020-08-08T23:27:02+00:00",
    "remoteAddr": "51.9.240.193",
    "user": "jivan.pal",
    "app": "no app in context",
    "method": "GET",
    "url": "/core/preview?fileId=198&c=5f2f34c2e1026&x=250&y=250&forceIcon=0",
    "message": "Couldn't re-calculate unencrypted size for files/xmas.jpg",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36",
    "version": "19.0.1.1"
}
{
    "reqId": "qXMVXCqhUUDOBOdFei9F",
    "level": 3,
    "time": "2020-08-08T23:27:02+00:00",
    "remoteAddr": "51.9.240.193",
    "user": "jivan.pal",
    "app": "no app in context",
    "method": "GET",
    "url": "/core/preview?fileId=198&c=5f2f34c2e1026&x=250&y=250&forceIcon=0",
    "message": {
        "Exception": "OCP\\Encryption\\Exceptions\\GenericEncryptionException",
        "Message": "Bad Signature",
        "Code": 0,
        "Trace": [
            {
                "file": "/var/www/cloud.jivanpal.com/apps/encryption/lib/Crypto/Crypt.php",
                "line": 463,
                "function": "checkSignature",
                "class": "OCA\\Encryption\\Crypto\\Crypt",
                "type": "->",
                "args": [
                    "1A1XeHUhgvE8NC7Qmuj0BgSpAqN2AKFMwjTFysVM4i3tdSyyAVhjBjrO3tzNeqpOwn/vOOAi7iPYqIaOAKcPJ5VE5Hf+uQT975PRc/tb8wrM4h3EqQ1QI1Rb9OVyHArBmtzGtyeiG0d5eqPsY86W4+Xl7aAtFSGrMpZCiLLTEg4ocUsQ/OLr48XtHGdgS4B6kuqenAUhlElPUMcX0bGZlgWHJk9cjPmU717YZZlV1npCz5ktw+Rw1m6E0smPGyUcMdviOVgwwnohHmxoEErKrlZdSd/uqYEhSRoPFPXbW3vg005mxOvb0NGeoqmOXNAt5DjtGnM9u/Mlbe00GlVzd7f5Y9XcuAc1ANVQyGSo7GOtaqbjZlov29uILS73CMlEZMBYBmlWHF8v1AtiIOkh+ffqBepfzBUq/0h3VoiM4+xuODBki+It1uP61V0cDFMlSxbYTGATr0K7rux3MryvFVbRRFnAPuyLKU8Ag0p0me1wHqUUic7lyWtxU3Xpeue2bM0Y0A9mntleZ0tXKWzWfNam/X1q6HQ/ScsD/7TpqxXdQEsv13yedRFZLrGpws5BEeHL5cy56QzKh8kzdMODwxuDXxfc3Y2otD6PKyUp7H84hfHsBxdG0tq+MYU3rSMvq3R7OUvVVRe4y5vziYH+ax+Iv2bRd8dgPxw0UjR10Je/smbk2Tonc8yiDDe86lRCJWXbNO1GOPnb9jS7cX1JQi6miam0K6dBgNyVCdcf3AUsbRiD1j2pmPDauyh9KVkHflbhLe/Aj129UXtvlgzDja/hVDoFb1yXjoa0gN5+TyWP4H/DAJPBA7r9k7OfxvfDj716ffhnBIANxxk6WLj2hsztFsywda3SSt91vOPMi/oZCe3fdQffoOt9/Mmdt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c97zgBPKDh7CunypUYO1E39p3ppuM1iUbf7ZziUFNmMnEhTYbiLCm9+TXBMlV0psHbafysvth93e0FlCcNwQLnc+fEAB868MxBTEXx8Una8eq1G58X6BgzxXcZPThBE3d95lMm4rob/3e",
                    null,
                    "39612916ccc63015e7b3612f695c65b11b776ecf37ef8f6c1cc83ca6e18e965c"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/apps/encryption/lib/Crypto/Encryption.php",
                "line": 375,
                "function": "symmetricDecryptFileContent",
                "class": "OCA\\Encryption\\Crypto\\Crypt",
                "type": "->",
                "args": [
                    "*** sensitive parameter replaced ***",
                    null,
                    "AES-256-CTR",
                    1,
                    "*** sensitive parameter replaced ***"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Files/Storage/Wrapper/Encryption.php",
                "line": 585,
                "function": "decrypt",
                "class": "OCA\\Encryption\\Crypto\\Encryption",
                "type": "->",
                "args": [
                    "*** sensitive parameters replaced ***"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Files/Storage/Wrapper/Encryption.php",
                "line": 505,
                "function": "fixUnencryptedSize",
                "class": "OC\\Files\\Storage\\Wrapper\\Encryption",
                "type": "->",
                "args": [
                    "*** sensitive parameters replaced ***"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Files/Storage/Wrapper/Encryption.php",
                "line": 166,
                "function": "verifyUnencryptedSize",
                "class": "OC\\Files\\Storage\\Wrapper\\Encryption",
                "type": "->",
                "args": [
                    "*** sensitive parameters replaced ***"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Files/Storage/Wrapper/Encryption.php",
                "line": 409,
                "function": "filesize",
                "class": "OC\\Files\\Storage\\Wrapper\\Encryption",
                "type": "->",
                "args": [
                    "*** sensitive parameter replaced ***"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Files/Storage/Wrapper/Wrapper.php",
                "line": 300,
                "function": "fopen",
                "class": "OC\\Files\\Storage\\Wrapper\\Encryption",
                "type": "->",
                "args": [
                    "*** sensitive parameter replaced ***",
                    "r"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Files/View.php",
                "line": 1159,
                "function": "fopen",
                "class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
                "type": "->",
                "args": [
                    "*** sensitive parameter replaced ***",
                    "r"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Files/View.php",
                "line": 995,
                "function": "basicOperation",
                "class": "OC\\Files\\View",
                "type": "->",
                "args": [
                    "fopen",
                    "/jivan.pal/files/xmas.jpg",
                    [
                        "read"
                    ],
                    "r"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Files/Node/File.php",
                "line": 115,
                "function": "fopen",
                "class": "OC\\Files\\View",
                "type": "->",
                "args": [
                    "/jivan.pal/files/xmas.jpg",
                    "r"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Preview/ProviderV2.php",
                "line": 86,
                "function": "fopen",
                "class": "OC\\Files\\Node\\File",
                "type": "->",
                "args": [
                    "r"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Preview/Image.php",
                "line": 50,
                "function": "getLocalFile",
                "class": "OC\\Preview\\ProviderV2",
                "type": "->",
                "args": [
                    {
                        "__class__": "OC\\Files\\Node\\File"
                    }
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Preview/GeneratorHelper.php",
                "line": 63,
                "function": "getThumbnail",
                "class": "OC\\Preview\\Image",
                "type": "->",
                "args": [
                    {
                        "__class__": "OC\\Files\\Node\\File"
                    },
                    4096,
                    4096
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Preview/Generator.php",
                "line": 235,
                "function": "getThumbnail",
                "class": "OC\\Preview\\GeneratorHelper",
                "type": "->",
                "args": [
                    {
                        "__class__": "OC\\Preview\\JPEG"
                    },
                    {
                        "__class__": "OC\\Files\\Node\\File"
                    },
                    4096,
                    4096
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Preview/Generator.php",
                "line": 141,
                "function": "getMaxPreview",
                "class": "OC\\Preview\\Generator",
                "type": "->",
                "args": [
                    {
                        "__class__": "OC\\Files\\SimpleFS\\SimpleFolder"
                    },
                    {
                        "__class__": "OC\\Files\\Node\\File"
                    },
                    "image/jpeg",
                    ""
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Preview/Generator.php",
                "line": 107,
                "function": "generatePreviews",
                "class": "OC\\Preview\\Generator",
                "type": "->",
                "args": [
                    {
                        "__class__": "OC\\Files\\Node\\File"
                    },
                    [
                        {
                            "width": 250,
                            "height": 250,
                            "crop": true,
                            "mode": "fill"
                        }
                    ],
                    "image/jpeg"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/PreviewManager.php",
                "line": 190,
                "function": "getPreview",
                "class": "OC\\Preview\\Generator",
                "type": "->",
                "args": [
                    {
                        "__class__": "OC\\Files\\Node\\File"
                    },
                    250,
                    250,
                    true,
                    "fill",
                    null
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/core/Controller/PreviewController.php",
                "line": 170,
                "function": "getPreview",
                "class": "OC\\PreviewManager",
                "type": "->",
                "args": [
                    {
                        "__class__": "OC\\Files\\Node\\File"
                    },
                    250,
                    250,
                    true,
                    "fill"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/core/Controller/PreviewController.php",
                "line": 143,
                "function": "fetchPreview",
                "class": "OC\\Core\\Controller\\PreviewController",
                "type": "->",
                "args": [
                    {
                        "__class__": "OC\\Files\\Node\\File"
                    },
                    250,
                    250,
                    false,
                    false,
                    "fill"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/AppFramework/Http/Dispatcher.php",
                "line": 170,
                "function": "getPreviewByFileId",
                "class": "OC\\Core\\Controller\\PreviewController",
                "type": "->",
                "args": [
                    198,
                    250,
                    250,
                    false,
                    false,
                    "fill"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/AppFramework/Http/Dispatcher.php",
                "line": 100,
                "function": "executeController",
                "class": "OC\\AppFramework\\Http\\Dispatcher",
                "type": "->",
                "args": [
                    {
                        "__class__": "OC\\Core\\Controller\\PreviewController"
                    },
                    "getPreviewByFileId"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/AppFramework/App.php",
                "line": 137,
                "function": "dispatch",
                "class": "OC\\AppFramework\\Http\\Dispatcher",
                "type": "->",
                "args": [
                    {
                        "__class__": "OC\\Core\\Controller\\PreviewController"
                    },
                    "getPreviewByFileId"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/AppFramework/Routing/RouteActionHandler.php",
                "line": 47,
                "function": "main",
                "class": "OC\\AppFramework\\App",
                "type": "::",
                "args": [
                    "OC\\Core\\Controller\\PreviewController",
                    "getPreviewByFileId",
                    {
                        "__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
                    },
                    {
                        "_route": "core.Preview.getPreviewByFileId"
                    }
                ]
            },
            {
                "function": "__invoke",
                "class": "OC\\AppFramework\\Routing\\RouteActionHandler",
                "type": "->",
                "args": [
                    {
                        "_route": "core.Preview.getPreviewByFileId"
                    }
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Route/Router.php",
                "line": 297,
                "function": "call_user_func",
                "args": [
                    {
                        "__class__": "OC\\AppFramework\\Routing\\RouteActionHandler"
                    },
                    {
                        "_route": "core.Preview.getPreviewByFileId"
                    }
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/base.php",
                "line": 1007,
                "function": "match",
                "class": "OC\\Route\\Router",
                "type": "->",
                "args": [
                    "/core/preview"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/index.php",
                "line": 37,
                "function": "handleRequest",
                "class": "OC",
                "type": "::",
                "args": []
            }
        ],
        "File": "/var/www/cloud.jivanpal.com/apps/encryption/lib/Crypto/Crypt.php",
        "Line": 487,
        "Hint": "Bad Signature",
        "CustomMessage": "--"
    },
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36",
    "version": "19.0.1.1"
}
Preview request logs
{
    "reqId": "lvl3tVWkX8rkRwUo3cB8",
    "level": 3,
    "time": "2020-08-08T23:27:15+00:00",
    "remoteAddr": "51.9.240.193",
    "user": "jivan.pal",
    "app": "no app in context",
    "method": "GET",
    "url": "/core/preview?fileId=198&x=1280&y=800&a=true",
    "message": "Couldn't re-calculate unencrypted size for files/xmas.jpg",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36",
    "version": "19.0.1.1"
}
{
    "reqId": "lvl3tVWkX8rkRwUo3cB8",
    "level": 3,
    "time": "2020-08-08T23:27:15+00:00",
    "remoteAddr": "51.9.240.193",
    "user": "jivan.pal",
    "app": "no app in context",
    "method": "GET",
    "url": "/core/preview?fileId=198&x=1280&y=800&a=true",
    "message": {
        "Exception": "OCP\\Encryption\\Exceptions\\GenericEncryptionException",
        "Message": "Bad Signature",
        "Code": 0,
        "Trace": [
            {
                "file": "/var/www/cloud.jivanpal.com/apps/encryption/lib/Crypto/Crypt.php",
                "line": 463,
                "function": "checkSignature",
                "class": "OCA\\Encryption\\Crypto\\Crypt",
                "type": "->",
                "args": [
                    "1A1XeHUhgvE8NC7Qmuj0BgSpAqN2AKFMwjTFysVM4i3tdSyyAVhjBjrO3tzNeqpOwn/vOOAi7iPYqIaOAKcPJ5VE5Hf+uQT975PRc/tb8wrM4h3EqQ1QI1Rb9OVyHArBmtzGtyeiG0d5eqPsY86W4+Xl7aAtFSGrMpZCiLLTEg4ocUsQ/OLr48XtHGdgS4B6kuqenAUhlElPUMcX0bGZlgWHJk9cjPmU717YZZlV1npCz5ktw+Rw1m6E0smPGyUcMdviOVgwwnohH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+uy40c9sYzYIWDI533hMTs/oye0Pf7hDgIk4UWsWY4r3Qw2gtG/nxjfcqdLIlmF/tHjPti2CBZH9+x1iyJN3y+spGbU0bgV598hIUcF6rnldWGZpUFb6tG7QNjPztaeSuif2DKSoZeyynZueaVnDCT8ur96EKaP5R/nRI8lkPVeL38jEZPYbSsRrjSrDgumkiKhCFIunGwUsypvNSTtGIwLwGssiCxGeaiSNoa5NNbgCn5aMvLGfTRsooPrCNbIPSBrJY4Kvy7zZI19CGTB5tQJcxY2fBJLgfCJ89EWduK/UYaOJfDcvGNe5TE19ApN7dIsS8d4dcd3x5SPe0/y71tWFSZ/N3YKGDyO1+GTKWriljKsNEAPmmjxKDF/0O5Olt93ZA8YI30ghZHZXHh0kXHtt5OSYqt6uZUsjmZHr91UfvO5slFFGI/JCOl8O9CwjAOm1mvd4k/Xg2k59eCN7rKDT8Tv/zVqbMfCQBuWIMXuOwNuj9/c38Ud/hQEImh8fj6BJOSb+cvnkLYxhsbrNaSuLxXnIhFdTVBn92brnGaKXp5c9E/AEwjQXU59jqPV+q6rEDdRZCKsp8fmHYHMhmbCIulmq4jGMGHwoaAYc97zgBPKDh7CunypUYO1E39p3ppuM1iUbf7ZziUFNmMnEhTYbiLCm9+TXBMlV0psHbafysvth93e0FlCcNwQLnc+fEAB868MxBTEXx8Una8eq1G58X6BgzxXcZPThBE3d95lMm4rob/3e",
                    null,
                    "39612916ccc63015e7b3612f695c65b11b776ecf37ef8f6c1cc83ca6e18e965c"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/apps/encryption/lib/Crypto/Encryption.php",
                "line": 375,
                "function": "symmetricDecryptFileContent",
                "class": "OCA\\Encryption\\Crypto\\Crypt",
                "type": "->",
                "args": [
                    "*** sensitive parameter replaced ***",
                    null,
                    "AES-256-CTR",
                    1,
                    "*** sensitive parameter replaced ***"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Files/Storage/Wrapper/Encryption.php",
                "line": 585,
                "function": "decrypt",
                "class": "OCA\\Encryption\\Crypto\\Encryption",
                "type": "->",
                "args": [
                    "*** sensitive parameters replaced ***"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Files/Storage/Wrapper/Encryption.php",
                "line": 505,
                "function": "fixUnencryptedSize",
                "class": "OC\\Files\\Storage\\Wrapper\\Encryption",
                "type": "->",
                "args": [
                    "*** sensitive parameters replaced ***"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Files/Storage/Wrapper/Encryption.php",
                "line": 166,
                "function": "verifyUnencryptedSize",
                "class": "OC\\Files\\Storage\\Wrapper\\Encryption",
                "type": "->",
                "args": [
                    "*** sensitive parameters replaced ***"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Files/Storage/Wrapper/Encryption.php",
                "line": 409,
                "function": "filesize",
                "class": "OC\\Files\\Storage\\Wrapper\\Encryption",
                "type": "->",
                "args": [
                    "*** sensitive parameter replaced ***"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Files/Storage/Wrapper/Wrapper.php",
                "line": 300,
                "function": "fopen",
                "class": "OC\\Files\\Storage\\Wrapper\\Encryption",
                "type": "->",
                "args": [
                    "*** sensitive parameter replaced ***",
                    "r"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Files/View.php",
                "line": 1159,
                "function": "fopen",
                "class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
                "type": "->",
                "args": [
                    "*** sensitive parameter replaced ***",
                    "r"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Files/View.php",
                "line": 995,
                "function": "basicOperation",
                "class": "OC\\Files\\View",
                "type": "->",
                "args": [
                    "fopen",
                    "/jivan.pal/files/xmas.jpg",
                    [
                        "read"
                    ],
                    "r"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Files/Node/File.php",
                "line": 115,
                "function": "fopen",
                "class": "OC\\Files\\View",
                "type": "->",
                "args": [
                    "/jivan.pal/files/xmas.jpg",
                    "r"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Preview/ProviderV2.php",
                "line": 86,
                "function": "fopen",
                "class": "OC\\Files\\Node\\File",
                "type": "->",
                "args": [
                    "r"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Preview/Image.php",
                "line": 50,
                "function": "getLocalFile",
                "class": "OC\\Preview\\ProviderV2",
                "type": "->",
                "args": [
                    {
                        "__class__": "OC\\Files\\Node\\File"
                    }
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Preview/GeneratorHelper.php",
                "line": 63,
                "function": "getThumbnail",
                "class": "OC\\Preview\\Image",
                "type": "->",
                "args": [
                    {
                        "__class__": "OC\\Files\\Node\\File"
                    },
                    4096,
                    4096
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Preview/Generator.php",
                "line": 235,
                "function": "getThumbnail",
                "class": "OC\\Preview\\GeneratorHelper",
                "type": "->",
                "args": [
                    {
                        "__class__": "OC\\Preview\\JPEG"
                    },
                    {
                        "__class__": "OC\\Files\\Node\\File"
                    },
                    4096,
                    4096
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Preview/Generator.php",
                "line": 141,
                "function": "getMaxPreview",
                "class": "OC\\Preview\\Generator",
                "type": "->",
                "args": [
                    {
                        "__class__": "OC\\Files\\SimpleFS\\SimpleFolder"
                    },
                    {
                        "__class__": "OC\\Files\\Node\\File"
                    },
                    "image/jpeg",
                    ""
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Preview/Generator.php",
                "line": 107,
                "function": "generatePreviews",
                "class": "OC\\Preview\\Generator",
                "type": "->",
                "args": [
                    {
                        "__class__": "OC\\Files\\Node\\File"
                    },
                    [
                        {
                            "width": 1280,
                            "height": 800,
                            "crop": false,
                            "mode": "fill"
                        }
                    ],
                    "image/jpeg"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/PreviewManager.php",
                "line": 190,
                "function": "getPreview",
                "class": "OC\\Preview\\Generator",
                "type": "->",
                "args": [
                    {
                        "__class__": "OC\\Files\\Node\\File"
                    },
                    1280,
                    800,
                    false,
                    "fill",
                    null
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/core/Controller/PreviewController.php",
                "line": 170,
                "function": "getPreview",
                "class": "OC\\PreviewManager",
                "type": "->",
                "args": [
                    {
                        "__class__": "OC\\Files\\Node\\File"
                    },
                    1280,
                    800,
                    false,
                    "fill"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/core/Controller/PreviewController.php",
                "line": 143,
                "function": "fetchPreview",
                "class": "OC\\Core\\Controller\\PreviewController",
                "type": "->",
                "args": [
                    {
                        "__class__": "OC\\Files\\Node\\File"
                    },
                    1280,
                    800,
                    true,
                    true,
                    "fill"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/AppFramework/Http/Dispatcher.php",
                "line": 170,
                "function": "getPreviewByFileId",
                "class": "OC\\Core\\Controller\\PreviewController",
                "type": "->",
                "args": [
                    198,
                    1280,
                    800,
                    true,
                    true,
                    "fill"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/AppFramework/Http/Dispatcher.php",
                "line": 100,
                "function": "executeController",
                "class": "OC\\AppFramework\\Http\\Dispatcher",
                "type": "->",
                "args": [
                    {
                        "__class__": "OC\\Core\\Controller\\PreviewController"
                    },
                    "getPreviewByFileId"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/AppFramework/App.php",
                "line": 137,
                "function": "dispatch",
                "class": "OC\\AppFramework\\Http\\Dispatcher",
                "type": "->",
                "args": [
                    {
                        "__class__": "OC\\Core\\Controller\\PreviewController"
                    },
                    "getPreviewByFileId"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/AppFramework/Routing/RouteActionHandler.php",
                "line": 47,
                "function": "main",
                "class": "OC\\AppFramework\\App",
                "type": "::",
                "args": [
                    "OC\\Core\\Controller\\PreviewController",
                    "getPreviewByFileId",
                    {
                        "__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
                    },
                    {
                        "_route": "core.Preview.getPreviewByFileId"
                    }
                ]
            },
            {
                "function": "__invoke",
                "class": "OC\\AppFramework\\Routing\\RouteActionHandler",
                "type": "->",
                "args": [
                    {
                        "_route": "core.Preview.getPreviewByFileId"
                    }
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Route/Router.php",
                "line": 297,
                "function": "call_user_func",
                "args": [
                    {
                        "__class__": "OC\\AppFramework\\Routing\\RouteActionHandler"
                    },
                    {
                        "_route": "core.Preview.getPreviewByFileId"
                    }
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/base.php",
                "line": 1007,
                "function": "match",
                "class": "OC\\Route\\Router",
                "type": "->",
                "args": [
                    "/core/preview"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/index.php",
                "line": 37,
                "function": "handleRequest",
                "class": "OC",
                "type": "::",
                "args": []
            }
        ],
        "File": "/var/www/cloud.jivanpal.com/apps/encryption/lib/Crypto/Crypt.php",
        "Line": 487,
        "Hint": "Bad Signature",
        "CustomMessage": "--"
    },
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36",
    "version": "19.0.1.1"
}
Download request logs
{
    "reqId": "F2XyFItxmWz4ADqkGiIS",
    "level": 3,
    "time": "2020-08-09T00:20:30+00:00",
    "remoteAddr": "51.9.240.193",
    "user": "jivan.pal",
    "app": "no app in context",
    "method": "GET",
    "url": "/remote.php/webdav/xmas.jpg?downloadStartSecret=l419u1txgum",
    "message": "Couldn't re-calculate unencrypted size for files/xmas.jpg",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36",
    "version": "19.0.1.1"
}
{
    "reqId": "F2XyFItxmWz4ADqkGiIS",
    "level": 3,
    "time": "2020-08-09T00:20:30+00:00",
    "remoteAddr": "51.9.240.193",
    "user": "jivan.pal",
    "app": "no app in context",
    "method": "GET",
    "url": "/remote.php/webdav/xmas.jpg?downloadStartSecret=l419u1txgum",
    "message": {
        "Exception": "OCP\\Encryption\\Exceptions\\GenericEncryptionException",
        "Message": "Bad Signature",
        "Code": 0,
        "Trace": [
            {
                "file": "/var/www/cloud.jivanpal.com/apps/encryption/lib/Crypto/Crypt.php",
                "line": 463,
                "function": "checkSignature",
                "class": "OCA\\Encryption\\Crypto\\Crypt",
                "type": "->",
                "args": [
                    "1A1XeHUhgvE8NC7Qmuj0BgSpAqN2AKFMwjTFysVM4i3tdSyyAVhjBjrO3tzNeqpOwn/vOOAi7iPYqIaOAKcPJ5VE5Hf+uQT975PRc/tb8wrM4h3EqQ1QI1Rb9OVyHArBmtzGtyeiG0d5eqPsY86W4+Xl7aAtFSGrMpZCiLLTEg4ocUsQ/OLr48XtHGdgS4B6kuqenAUhlElPUMcX0bGZlgWHJk9cjPmU717YZZlV1npCz5ktw+Rw1m6E0smPGyUcMdviOVgwwnohHmxoEErKrlZdSd/uqYEhSRoPFPXbW3vg005mxOvb0NGeoqmOXNAt5DjtGnM9u/Mlbe00GlVzd7f5Y9XcuAc1ANVQyGSo7GOtaqbjZlov29uILS73CMlEZMBYBmlWHF8v1AtiIOkh+ffqBepfzBUq/0h3VoiM4+xuODBki+It1uP61V0cDFMlSxbYTGATr0K7rux3MryvFVbRRFnAPuyLKU8Ag0p0me1wHqUUic7lyWtxU3Xpeue2bM0Y0A9mntleZ0tXKWzWfNam/X1q6HQ/ScsD/7TpqxXdQEsv13yedRFZLrGpws5BEeHL5cy56QzKh8kzdMODwxuDXxfc3Y2otD6PKyUp7H84hfHsBxdG0tq+MYU3rSMvq3R7OUvVVRe4y5vziYH+ax+Iv2bRd8dgPxw0UjR10Je/smbk2Tonc8yiDDe86lRCJWXbN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l8O9CwjAOm1mvd4k/Xg2k59eCN7rKDT8Tv/zVqbMfCQBuWIMXuOwNuj9/c38Ud/hQEImh8fj6BJOSb+cvnkLYxhsbrNaSuLxXnIhFdTVBn92brnGaKXp5c9E/AEwjQXU59jqPV+q6rEDdRZCKsp8fmHYHMhmbCIulmq4jGMGHwoaAYc97zgBPKDh7CunypUYO1E39p3ppuM1iUbf7ZziUFNmMnEhTYbiLCm9+TXBMlV0psHbafysvth93e0FlCcNwQLnc+fEAB868MxBTEXx8Una8eq1G58X6BgzxXcZPThBE3d95lMm4rob/3e",
                    null,
                    "39612916ccc63015e7b3612f695c65b11b776ecf37ef8f6c1cc83ca6e18e965c"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/apps/encryption/lib/Crypto/Encryption.php",
                "line": 375,
                "function": "symmetricDecryptFileContent",
                "class": "OCA\\Encryption\\Crypto\\Crypt",
                "type": "->",
                "args": [
                    "*** sensitive parameter replaced ***",
                    null,
                    "AES-256-CTR",
                    1,
                    "*** sensitive parameter replaced ***"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Files/Storage/Wrapper/Encryption.php",
                "line": 585,
                "function": "decrypt",
                "class": "OCA\\Encryption\\Crypto\\Encryption",
                "type": "->",
                "args": [
                    "*** sensitive parameters replaced ***"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Files/Storage/Wrapper/Encryption.php",
                "line": 505,
                "function": "fixUnencryptedSize",
                "class": "OC\\Files\\Storage\\Wrapper\\Encryption",
                "type": "->",
                "args": [
                    "*** sensitive parameters replaced ***"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Files/Storage/Wrapper/Encryption.php",
                "line": 166,
                "function": "verifyUnencryptedSize",
                "class": "OC\\Files\\Storage\\Wrapper\\Encryption",
                "type": "->",
                "args": [
                    "*** sensitive parameters replaced ***"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Files/Storage/Wrapper/Encryption.php",
                "line": 409,
                "function": "filesize",
                "class": "OC\\Files\\Storage\\Wrapper\\Encryption",
                "type": "->",
                "args": [
                    "*** sensitive parameter replaced ***"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Files/Storage/Wrapper/Wrapper.php",
                "line": 300,
                "function": "fopen",
                "class": "OC\\Files\\Storage\\Wrapper\\Encryption",
                "type": "->",
                "args": [
                    "*** sensitive parameter replaced ***",
                    "r"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Files/View.php",
                "line": 1159,
                "function": "fopen",
                "class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
                "type": "->",
                "args": [
                    "*** sensitive parameter replaced ***",
                    "r"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Files/View.php",
                "line": 995,
                "function": "basicOperation",
                "class": "OC\\Files\\View",
                "type": "->",
                "args": [
                    "fopen",
                    "/xmas.jpg",
                    [
                        "read"
                    ],
                    "r"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/apps/dav/lib/Connector/Sabre/File.php",
                "line": 423,
                "function": "fopen",
                "class": "OC\\Files\\View",
                "type": "->",
                "args": [
                    "xmas.jpg",
                    "r"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
                "line": 90,
                "function": "get",
                "class": "OCA\\DAV\\Connector\\Sabre\\File",
                "type": "->",
                "args": []
            },
            {
                "file": "/var/www/cloud.jivanpal.com/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
                "line": 89,
                "function": "httpGet",
                "class": "Sabre\\DAV\\CorePlugin",
                "type": "->",
                "args": [
                    {
                        "__class__": "Sabre\\HTTP\\Request"
                    },
                    {
                        "__class__": "Sabre\\HTTP\\Response"
                    }
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 474,
                "function": "emit",
                "class": "Sabre\\DAV\\Server",
                "type": "->",
                "args": [
                    "method:GET",
                    [
                        {
                            "__class__": "Sabre\\HTTP\\Request"
                        },
                        {
                            "__class__": "Sabre\\HTTP\\Response"
                        }
                    ]
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 251,
                "function": "invokeMethod",
                "class": "Sabre\\DAV\\Server",
                "type": "->",
                "args": [
                    {
                        "__class__": "Sabre\\HTTP\\Request"
                    },
                    {
                        "__class__": "Sabre\\HTTP\\Response"
                    }
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 319,
                "function": "start",
                "class": "Sabre\\DAV\\Server",
                "type": "->",
                "args": []
            },
            {
                "file": "/var/www/cloud.jivanpal.com/apps/dav/appinfo/v1/webdav.php",
                "line": 82,
                "function": "exec",
                "class": "Sabre\\DAV\\Server",
                "type": "->",
                "args": []
            },
            {
                "file": "/var/www/cloud.jivanpal.com/remote.php",
                "line": 167,
                "args": [
                    "/var/www/cloud.jivanpal.com/apps/dav/appinfo/v1/webdav.php"
                ],
                "function": "require_once"
            }
        ],
        "File": "/var/www/cloud.jivanpal.com/apps/encryption/lib/Crypto/Crypt.php",
        "Line": 487,
        "Hint": "Bad Signature",
        "CustomMessage": "--"
    },
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36",
    "version": "19.0.1.1"
}
{
    "reqId": "F2XyFItxmWz4ADqkGiIS",
    "level": 4,
    "time": "2020-08-09T00:20:30+00:00",
    "remoteAddr": "51.9.240.193",
    "user": "jivan.pal",
    "app": "webdav",
    "method": "GET",
    "url": "/remote.php/webdav/xmas.jpg?downloadStartSecret=l419u1txgum",
    "message": {
        "Exception": "OCP\\Encryption\\Exceptions\\GenericEncryptionException",
        "Message": "Bad Signature",
        "Code": 0,
        "Trace": [
            {
                "file": "/var/www/cloud.jivanpal.com/apps/encryption/lib/Crypto/Crypt.php",
                "line": 463,
                "function": "checkSignature",
                "class": "OCA\\Encryption\\Crypto\\Crypt",
                "type": "->",
                "args": [
                    "lNOPqJc77WJLlzAaXbs17KLtjtQUbQ15i947ifGdKjtIsrNnJhac9BcH2r252HVRT2n2w0yprJr/kCPGE6JMth9hHVbgYobmFxchQErzaoJvkzV0fQPf/qxc2j3h/kh1yaxCQ2k4jPkLS5s6AnaEW8bDwtkZFEYEC7FUltN97IASOkrcOqK6W1uUpWqdCDp2bKN6SCPFnuqvoy2/x5VzD+UabOeilkFFQjGHSpa2CowOmvkIpZvl5dXkEmK9l99nz8+AIbjeUW5FydWFfBRVmkNWkzvSq/MATcVDLyxaJYCw6BMXRVUDsTPNEpLQwfuLi63xLGSVIopVWHXAgR8dV0Gd13jvBGxpnvsofKhl4vHNhRicAT74k7dqI+KRYqGcZh7zUajSYGogd2VNKHaXSE6HF4kvjoAJjvSCAVDl8q6I6hzB2UP4x2nQOMUC+tE3CiyRSO5/Pjta6o2CQH2Wo0puen7nh/yY+551I0GLGSZiik58cg4L2hFFrw3O97kWj0WOFWDYYfLsYqokXlgp0jk0rDTtm2G/6V69GZjPkih0QiXSn1a/bvr/vDl4VGThnzL+bPbpCGb9fSNJku7CHihsY5in+49m07yV7ER9LZUrkDU3fbl72o14vXckWNXICfTfgB6FqEcOn8/DVOu8dWrIYEPKZ2wSkdp/H3lNJrwE2bDm35Yy1bXWJXPG8HCuqZL5D9p1IYeApg+u23dDkNlilekDUCNfVu+NlFSl4JUcERlzpPTWAw9X1TEmlf5MpZx04jd5nmLYamXU3jvJ6RDdDVPe9CCYes7Q5pZ0kB7rWTGQag0t3a9trShmsy/k7jM/TfpJG7anWUIiyEerKgUXKRnMl7p7TC5sqWAPI6+gME6bytt0rDBZjQIJv6kTLWO+HDESQmcAs4gPC6Hfk0ry+Wke3Y2b32SnCcXL+ixNK5uvFd8dsUldY+tcZgld6SpJ0c1ct/Kt2gU9pPHP0sQJaQBALA1S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6MSUFCdbevS9wrmJPJoDjWISOHXisKko4Z4+7UUtcuT5avTntHguDlwAvf4qWX7IuF+AQgnu/1Y9L7cVUDVnWDT72QakPobzM527RCRb9Zn0vTiemGX1MNymE71seMLumY+htdixCGqTdZepMtzW6fKg3W06YAj4oIgKOuQdG9EO2BoB3DbTalnCsszVZAx0TO3+uy40c9sYzYIWDI533hMTs/oye0Pf7hDgIk4UWsWY4r3Qw2gtG/nxjfcqdLIlmF/tHjPti2CBZH9+x1iyJN3y+spGbU0bgV598hIUcF6rnldWGZpUFb6tG7QNjPztaeSuif2DKSoZeyynZueaVnDCT8ur96EKaP5R/nRI8lkPVeL38jEZPYbSsRrjSrDgumkiKhCFIunGwUsypvNSTtGIwLwGssiCxGeaiSNoa5NNbgCn5aMvLGfTRsooPrCNbIPSBrJY4Kvy7zZI19CGTB5tQJcxY2fBJLgfCJ89EWduK/UYaOJfDcvGNe5TE19ApN7dIsS8d4dcd3x5SPe0/y71tWFSZ/N3YKGDyO1+GTKWriljKsNEAPmmjxKDF/0O5Olt93ZA8YI30ghZHZXHh0kXHtt5OSYqt6uZUsjmZHr91UfvO5slFFGI/JCOl8O9CwjAOm1mvd4k/Xg2k59eCN7rKDT8Tv/zVqbMfCQBuWIMXuOwNuj9/c38Ud/hQEImh8fj6BJOSb+cvnkLYxhsbrNaSuLxXnIhFdTVBn92brnGaKXp5c9E/AEwjQXU59jqPV+q6rEDdRZCKsp8fmHYHMhmbCIulmq4jGMGHwoaAYc97zgBPKDh7CunypUYO1E39p3ppuM1iUbf7ZziUFNmMnEhTYbiLCm9+TXBMlV0psHbafysvth93e0FlCcNwQLnc+fEAB868MxBTEXx8Una8eq1G58X6BgzxXcZPThBE3d95lMm4rob/3e",
                    null,
                    "39612916ccc63015e7b3612f695c65b11b776ecf37ef8f6c1cc83ca6e18e965c"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/apps/encryption/lib/Crypto/Encryption.php",
                "line": 375,
                "function": "symmetricDecryptFileContent",
                "class": "OCA\\Encryption\\Crypto\\Crypt",
                "type": "->",
                "args": [
                    "*** sensitive parameter replaced ***",
                    null,
                    "AES-256-CTR",
                    1,
                    "*** sensitive parameter replaced ***"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Files/Stream/Encryption.php",
                "line": 501,
                "function": "decrypt",
                "class": "OCA\\Encryption\\Crypto\\Encryption",
                "type": "->",
                "args": [
                    "*** sensitive parameters replaced ***"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Files/Stream/Encryption.php",
                "line": 299,
                "function": "readCache",
                "class": "OC\\Files\\Stream\\Encryption",
                "type": "->",
                "args": []
            },
            {
                "function": "stream_read",
                "class": "OC\\Files\\Stream\\Encryption",
                "type": "->",
                "args": [
                    864
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/3rdparty/sabre/http/lib/Sapi.php",
                "line": 112,
                "function": "stream_copy_to_stream",
                "args": [
                    null,
                    null,
                    112844
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 492,
                "function": "sendResponse",
                "class": "Sabre\\HTTP\\Sapi",
                "type": "::",
                "args": [
                    {
                        "__class__": "Sabre\\HTTP\\Response"
                    }
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 251,
                "function": "invokeMethod",
                "class": "Sabre\\DAV\\Server",
                "type": "->",
                "args": [
                    {
                        "__class__": "Sabre\\HTTP\\Request"
                    },
                    {
                        "__class__": "Sabre\\HTTP\\Response"
                    }
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 319,
                "function": "start",
                "class": "Sabre\\DAV\\Server",
                "type": "->",
                "args": []
            },
            {
                "file": "/var/www/cloud.jivanpal.com/apps/dav/appinfo/v1/webdav.php",
                "line": 82,
                "function": "exec",
                "class": "Sabre\\DAV\\Server",
                "type": "->",
                "args": []
            },
            {
                "file": "/var/www/cloud.jivanpal.com/remote.php",
                "line": 167,
                "args": [
                    "/var/www/cloud.jivanpal.com/apps/dav/appinfo/v1/webdav.php"
                ],
                "function": "require_once"
            }
        ],
        "File": "/var/www/cloud.jivanpal.com/apps/encryption/lib/Crypto/Crypt.php",
        "Line": 487,
        "Hint": "Bad Signature",
        "CustomMessage": "--"
    },
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36",
    "version": "19.0.1.1"
}
{
    "reqId": "F2XyFItxmWz4ADqkGiIS",
    "level": 3,
    "time": "2020-08-09T00:20:30+00:00",
    "remoteAddr": "51.9.240.193",
    "user": "jivan.pal",
    "app": "PHP",
    "method": "GET",
    "url": "/remote.php/webdav/xmas.jpg?downloadStartSecret=l419u1txgum",
    "message": "Undefined index: debugMode at /var/www/cloud.jivanpal.com/core/templates/exception.php#26",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36",
    "version": "19.0.1.1"
}
{
    "reqId": "F2XyFItxmWz4ADqkGiIS",
    "level": 3,
    "time": "2020-08-09T00:20:31+00:00",
    "remoteAddr": "51.9.240.193",
    "user": "jivan.pal",
    "app": "no app in context",
    "method": "GET",
    "url": "/remote.php/webdav/xmas.jpg?downloadStartSecret=l419u1txgum",
    "message": {
        "Exception": "Symfony\\Component\\Routing\\Exception\\RouteNotFoundException",
        "Message": "Unable to generate a URL for the named route \"calendar.view.index\" as such route does not exist.",
        "Code": 0,
        "Trace": [
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Route/Router.php",
                "line": 338,
                "function": "generate",
                "class": "Symfony\\Component\\Routing\\Generator\\UrlGenerator",
                "type": "->",
                "args": [
                    "calendar.view.index",
                    [],
                    1
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/URLGenerator.php",
                "line": 83,
                "function": "generate",
                "class": "OC\\Route\\Router",
                "type": "->",
                "args": [
                    "calendar.view.index",
                    []
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/NavigationManager.php",
                "line": 294,
                "function": "linkToRoute",
                "class": "OC\\URLGenerator",
                "type": "->",
                "args": [
                    "calendar.view.index"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/NavigationManager.php",
                "line": 115,
                "function": "init",
                "class": "OC\\NavigationManager",
                "type": "->",
                "args": []
            },
            {
                "file": "/var/www/cloud.jivanpal.com/apps/theming/lib/ThemingDefaults.php",
                "line": 183,
                "function": "getAll",
                "class": "OC\\NavigationManager",
                "type": "->",
                "args": [
                    "guest"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/public/Defaults.php",
                "line": 160,
                "function": "getShortFooter",
                "class": "OCA\\Theming\\ThemingDefaults",
                "type": "->",
                "args": []
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Template/JSConfigHelper.php",
                "line": 291,
                "function": "getShortFooter",
                "class": "OCP\\Defaults",
                "type": "->",
                "args": []
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/TemplateLayout.php",
                "line": 190,
                "function": "getConfig",
                "class": "OC\\Template\\JSConfigHelper",
                "type": "->",
                "args": []
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/legacy/OC_Template.php",
                "line": 185,
                "function": "__construct",
                "class": "OC\\TemplateLayout",
                "type": "->",
                "args": [
                    "guest",
                    "core"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/apps/dav/lib/Files/BrowserErrorPagePlugin.php",
                "line": 109,
                "function": "fetchPage",
                "class": "OC_Template",
                "type": "->",
                "args": []
            },
            {
                "file": "/var/www/cloud.jivanpal.com/apps/dav/lib/Files/BrowserErrorPagePlugin.php",
                "line": 86,
                "function": "generateBody",
                "class": "OCA\\DAV\\Files\\BrowserErrorPagePlugin",
                "type": "->",
                "args": [
                    500
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
                "line": 89,
                "function": "logException",
                "class": "OCA\\DAV\\Files\\BrowserErrorPagePlugin",
                "type": "->",
                "args": [
                    {
                        "__class__": "OCP\\Encryption\\Exceptions\\GenericEncryptionException"
                    }
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 254,
                "function": "emit",
                "class": "Sabre\\DAV\\Server",
                "type": "->",
                "args": [
                    "exception",
                    [
                        {
                            "__class__": "OCP\\Encryption\\Exceptions\\GenericEncryptionException"
                        }
                    ]
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 319,
                "function": "start",
                "class": "Sabre\\DAV\\Server",
                "type": "->",
                "args": []
            },
            {
                "file": "/var/www/cloud.jivanpal.com/apps/dav/appinfo/v1/webdav.php",
                "line": 82,
                "function": "exec",
                "class": "Sabre\\DAV\\Server",
                "type": "->",
                "args": []
            },
            {
                "file": "/var/www/cloud.jivanpal.com/remote.php",
                "line": 167,
                "args": [
                    "/var/www/cloud.jivanpal.com/apps/dav/appinfo/v1/webdav.php"
                ],
                "function": "require_once"
            }
        ],
        "File": "/var/www/cloud.jivanpal.com/3rdparty/symfony/routing/Generator/UrlGenerator.php",
        "Line": 143,
        "CustomMessage": "--"
    },
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36",
    "version": "19.0.1.1"
}
{
    "reqId": "F2XyFItxmWz4ADqkGiIS",
    "level": 3,
    "time": "2020-08-09T00:20:31+00:00",
    "remoteAddr": "51.9.240.193",
    "user": "jivan.pal",
    "app": "no app in context",
    "method": "GET",
    "url": "/remote.php/webdav/xmas.jpg?downloadStartSecret=l419u1txgum",
    "message": {
        "Exception": "Symfony\\Component\\Routing\\Exception\\RouteNotFoundException",
        "Message": "Unable to generate a URL for the named route \"photos.page.index\" as such route does not exist.",
        "Code": 0,
        "Trace": [
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Route/Router.php",
                "line": 338,
                "function": "generate",
                "class": "Symfony\\Component\\Routing\\Generator\\UrlGenerator",
                "type": "->",
                "args": [
                    "photos.page.index",
                    [],
                    1
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/URLGenerator.php",
                "line": 83,
                "function": "generate",
                "class": "OC\\Route\\Router",
                "type": "->",
                "args": [
                    "photos.page.index",
                    []
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/NavigationManager.php",
                "line": 294,
                "function": "linkToRoute",
                "class": "OC\\URLGenerator",
                "type": "->",
                "args": [
                    "photos.page.index"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/NavigationManager.php",
                "line": 115,
                "function": "init",
                "class": "OC\\NavigationManager",
                "type": "->",
                "args": []
            },
            {
                "file": "/var/www/cloud.jivanpal.com/apps/theming/lib/ThemingDefaults.php",
                "line": 183,
                "function": "getAll",
                "class": "OC\\NavigationManager",
                "type": "->",
                "args": [
                    "guest"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/public/Defaults.php",
                "line": 160,
                "function": "getShortFooter",
                "class": "OCA\\Theming\\ThemingDefaults",
                "type": "->",
                "args": []
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/Template/JSConfigHelper.php",
                "line": 291,
                "function": "getShortFooter",
                "class": "OCP\\Defaults",
                "type": "->",
                "args": []
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/TemplateLayout.php",
                "line": 190,
                "function": "getConfig",
                "class": "OC\\Template\\JSConfigHelper",
                "type": "->",
                "args": []
            },
            {
                "file": "/var/www/cloud.jivanpal.com/lib/private/legacy/OC_Template.php",
                "line": 185,
                "function": "__construct",
                "class": "OC\\TemplateLayout",
                "type": "->",
                "args": [
                    "guest",
                    "core"
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/apps/dav/lib/Files/BrowserErrorPagePlugin.php",
                "line": 109,
                "function": "fetchPage",
                "class": "OC_Template",
                "type": "->",
                "args": []
            },
            {
                "file": "/var/www/cloud.jivanpal.com/apps/dav/lib/Files/BrowserErrorPagePlugin.php",
                "line": 86,
                "function": "generateBody",
                "class": "OCA\\DAV\\Files\\BrowserErrorPagePlugin",
                "type": "->",
                "args": [
                    500
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
                "line": 89,
                "function": "logException",
                "class": "OCA\\DAV\\Files\\BrowserErrorPagePlugin",
                "type": "->",
                "args": [
                    {
                        "__class__": "OCP\\Encryption\\Exceptions\\GenericEncryptionException"
                    }
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 254,
                "function": "emit",
                "class": "Sabre\\DAV\\Server",
                "type": "->",
                "args": [
                    "exception",
                    [
                        {
                            "__class__": "OCP\\Encryption\\Exceptions\\GenericEncryptionException"
                        }
                    ]
                ]
            },
            {
                "file": "/var/www/cloud.jivanpal.com/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 319,
                "function": "start",
                "class": "Sabre\\DAV\\Server",
                "type": "->",
                "args": []
            },
            {
                "file": "/var/www/cloud.jivanpal.com/apps/dav/appinfo/v1/webdav.php",
                "line": 82,
                "function": "exec",
                "class": "Sabre\\DAV\\Server",
                "type": "->",
                "args": []
            },
            {
                "file": "/var/www/cloud.jivanpal.com/remote.php",
                "line": 167,
                "args": [
                    "/var/www/cloud.jivanpal.com/apps/dav/appinfo/v1/webdav.php"
                ],
                "function": "require_once"
            }
        ],
        "File": "/var/www/cloud.jivanpal.com/3rdparty/symfony/routing/Generator/UrlGenerator.php",
        "Line": 143,
        "CustomMessage": "--"
    },
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36",
    "version": "19.0.1.1"
}
{
    "reqId": "F2XyFItxmWz4ADqkGiIS",
    "level": 3,
    "time": "2020-08-09T00:20:32+00:00",
    "remoteAddr": "51.9.240.193",
    "user": "jivan.pal",
    "app": "PHP",
    "method": "GET",
    "url": "/remote.php/webdav/xmas.jpg?downloadStartSecret=l419u1txgum",
    "message": "Cannot modify header information - headers already sent by (output started at /var/www/cloud.jivanpal.com/3rdparty/sabre/http/lib/Sapi.php:112) at /var/www/cloud.jivanpal.com/3rdparty/sabre/http/lib/Sapi.php#66",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36",
    "version": "19.0.1.1"
}
{
    "reqId": "F2XyFItxmWz4ADqkGiIS",
    "level": 3,
    "time": "2020-08-09T00:20:32+00:00",
    "remoteAddr": "51.9.240.193",
    "user": "jivan.pal",
    "app": "PHP",
    "method": "GET",
    "url": "/remote.php/webdav/xmas.jpg?downloadStartSecret=l419u1txgum",
    "message": "Cannot modify header information - headers already sent by (output started at /var/www/cloud.jivanpal.com/3rdparty/sabre/http/lib/Sapi.php:112) at /var/www/cloud.jivanpal.com/3rdparty/sabre/http/lib/Sapi.php#70",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36",
    "version": "19.0.1.1"
}
{
    "reqId": "F2XyFItxmWz4ADqkGiIS",
    "level": 3,
    "time": "2020-08-09T00:20:32+00:00",
    "remoteAddr": "51.9.240.193",
    "user": "jivan.pal",
    "app": "PHP",
    "method": "GET",
    "url": "/remote.php/webdav/xmas.jpg?downloadStartSecret=l419u1txgum",
    "message": "Cannot modify header information - headers already sent by (output started at /var/www/cloud.jivanpal.com/3rdparty/sabre/http/lib/Sapi.php:112) at /var/www/cloud.jivanpal.com/3rdparty/sabre/http/lib/Sapi.php#70",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36",
    "version": "19.0.1.1"
}
{
    "reqId": "F2XyFItxmWz4ADqkGiIS",
    "level": 3,
    "time": "2020-08-09T00:20:32+00:00",
    "remoteAddr": "51.9.240.193",
    "user": "jivan.pal",
    "app": "PHP",
    "method": "GET",
    "url": "/remote.php/webdav/xmas.jpg?downloadStartSecret=l419u1txgum",
    "message": "Cannot modify header information - headers already sent by (output started at /var/www/cloud.jivanpal.com/3rdparty/sabre/http/lib/Sapi.php:112) at /var/www/cloud.jivanpal.com/3rdparty/sabre/http/lib/Sapi.php#70",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36",
    "version": "19.0.1.1"
}
{
    "reqId": "F2XyFItxmWz4ADqkGiIS",
    "level": 3,
    "time": "2020-08-09T00:20:32+00:00",
    "remoteAddr": "51.9.240.193",
    "user": "jivan.pal",
    "app": "PHP",
    "method": "GET",
    "url": "/remote.php/webdav/xmas.jpg?downloadStartSecret=l419u1txgum",
    "message": "Cannot modify header information - headers already sent by (output started at /var/www/cloud.jivanpal.com/3rdparty/sabre/http/lib/Sapi.php:112) at /var/www/cloud.jivanpal.com/3rdparty/sabre/http/lib/Sapi.php#70",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36",
    "version": "19.0.1.1"
}
{
    "reqId": "F2XyFItxmWz4ADqkGiIS",
    "level": 3,
    "time": "2020-08-09T00:20:32+00:00",
    "remoteAddr": "51.9.240.193",
    "user": "jivan.pal",
    "app": "PHP",
    "method": "GET",
    "url": "/remote.php/webdav/xmas.jpg?downloadStartSecret=l419u1txgum",
    "message": "Cannot modify header information - headers already sent by (output started at /var/www/cloud.jivanpal.com/3rdparty/sabre/http/lib/Sapi.php:112) at /var/www/cloud.jivanpal.com/3rdparty/sabre/http/lib/Sapi.php#70",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36",
    "version": "19.0.1.1"
}
{
    "reqId": "F2XyFItxmWz4ADqkGiIS",
    "level": 3,
    "time": "2020-08-09T00:20:32+00:00",
    "remoteAddr": "51.9.240.193",
    "user": "jivan.pal",
    "app": "PHP",
    "method": "GET",
    "url": "/remote.php/webdav/xmas.jpg?downloadStartSecret=l419u1txgum",
    "message": "Cannot modify header information - headers already sent by (output started at /var/www/cloud.jivanpal.com/3rdparty/sabre/http/lib/Sapi.php:112) at /var/www/cloud.jivanpal.com/3rdparty/sabre/http/lib/Sapi.php#70",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36",
    "version": "19.0.1.1"
}
{
    "reqId": "F2XyFItxmWz4ADqkGiIS",
    "level": 3,
    "time": "2020-08-09T00:20:32+00:00",
    "remoteAddr": "51.9.240.193",
    "user": "jivan.pal",
    "app": "PHP",
    "method": "GET",
    "url": "/remote.php/webdav/xmas.jpg?downloadStartSecret=l419u1txgum",
    "message": "Cannot modify header information - headers already sent by (output started at /var/www/cloud.jivanpal.com/3rdparty/sabre/http/lib/Sapi.php:112) at /var/www/cloud.jivanpal.com/3rdparty/sabre/http/lib/Sapi.php#70",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36",
    "version": "19.0.1.1"
}

jivanpal avatar Aug 09 '20 00:08 jivanpal

I noted that the files_encryption directory under data didn't actually exist

@mashedkeyboard, I believe this is because the object storage holds the keys. I see an additional 32-byte file and 512-byte file in my S3 bucket for each encrypted file, and I think these are used for decryption and integrity checking.

jivanpal avatar Aug 09 '20 01:08 jivanpal

If the object storage does actually store the keys, that seems like a wasted opportunity to improve security by storing the keys separately to the data.

cpf-sh avatar Aug 09 '20 14:08 cpf-sh

@mashedkeyboard, it is my understanding that different AES keys are used to encrypt each file. Each of these "file keys" is then encrypted with the same "master key / key encryption key". These encrypted file keys are stored in object storage, and the master key is stored on the Nextcloud server.

jivanpal avatar Aug 09 '20 16:08 jivanpal

That follows my understanding too, @jivanpal - I'd thought, however, that the generated master key was meant to reside in files_encryption. It's more than possible that I'm wrong about that, though - I'm very new to working with Nextcloud, so you almost certainly know more about this than I do!

cpf-sh avatar Aug 09 '20 16:08 cpf-sh

you almost certainly know more about this than I do!

Haha, I'm new here, too. Just trying to figure things out from the documentation.


The database table oc_filecache maps regular filepaths (column path) to S3 bucket resource OIDs (column fileid), and from that, you can see the IDs of what would normally be in files_encryption. From that, I can see that those 32-byte and 512-byte files I mentioned earlier are the encrypted file keys and the envelope keys, respectively. These database entries also have storage = 2, which I think means that they are supposed to be stored in external storage (but since I only have primary object storage set up, they are stored there). As a note, mimetype = 2 seems to refer to directories, which obviously do not have corresponding objects in S3 storage.

@mashedkeyboard, it seems you are right that the master key ought to be stored on the Nextcloud server in files_encryption, but use of primary object storage screws with this. Indeed, I see entries for the following files with storage = 1 (which I assume means they ought to be stored in primary storage, which in this case is object storage):

  • files_encryption/OC_DEFAULT_MODULE/master_2e7fcea3.privateKey
  • files_encryption/OC_DEFAULT_MODULE/master_2e7fcea3.publicKey
  • files_encryption/OC_DEFAULT_MODULE/pubShare_2e7fcea3.privateKey
  • files_encryption/OC_DEFAULT_MODULE/pubShare_2e7fcea3.publicKey

However, these keys all reside in object storage, which, as you say, means there is actually no security at all — the S3 provider knows the private keys.

It seems to me that storage = 1 is used to indicate that file is stored in primary storage (which is typically the Nextcloud server's filesystem), and higher values refer to external storage (e.g. S3 buckets, other Nextcloud instances, Google Drive, etc.). However, when primary object storage is used, storage = 1 and storage = 2 both refer to the S3 storage, and thus everything, including private keys, is stored there, and nothing is stored on the server's filesystem. Perhaps another reserved value, e.g. storage = 0, should be added to mean "always store this on the server's filesystem", and private keys should be tagged with this value?

I will try a setup which uses primary local storage and secondary object storage and see what the differences are.

jivanpal avatar Aug 09 '20 17:08 jivanpal

there is actually no security at all — the S3 provider knows the private keys.

It turns out that the private key files are protected with the user's password (doh!), or the server secret from config/config.php in the case of the master key, so this isn't a security issue in itself.

jivanpal avatar Aug 10 '20 02:08 jivanpal

It would be helpful to have someone who's worked on these parts of the code confirm this, so that assuming it is the case, it can be documented somewhere (unless it is already, but if it is, I've missed it, and I assume @jivanpal has too).

cpf-sh avatar Aug 10 '20 14:08 cpf-sh

@mashedkeyboard It's all here, but it's not the clearest thing in the world. In particular, it mentions a "master key only" encryption scheme as well as the asymmetric crypto scheme that I've seen used, but it appears that the "master key only" scheme is not used at all.

Here's the relevant section on private keys:

The encryption key is then derived by creating a raw SHA256-PBKDF2 hash of the password with the salt, 100.000 rounds and (by default) with a target size of 32 bytes (as required for AES-256-CTR) with the hash_hmac() function (denoted as $passphrase).

The used password depends on the key type:

  • master private key: use secret from the config.php
  • public sharing private key: use an empty password
  • recovery private key: use the recovery password
  • user private key: use the user password

jivanpal avatar Aug 10 '20 16:08 jivanpal

I believe I have the same issue described by @mashedkeyboard . I posted lots of details here a few days ago.

I read the discussion above and the (apparently similar) issue #11826, but it's not clear to me that we understand yet what's going on. Or do we?

To offer a detail that I haven't seen described (pardon me if I missed it): in my tests I found that files can occasionally be downloaded/previewed correctly after a couple of attempts. However, the errors I see in the log still appear, whether or not the file is downloaded correctly.

oliversturm avatar Aug 14 '20 15:08 oliversturm

@oliversturm, interesting that you can sometimes download a file, sometimes not (regardless of whether the downloaded file matches the original file). I can always download a file (albeit with the last block being incorrectly retrieved) but never preview it in the web interface, and if I understand @mashedkeyboard correctly, he can never do either of these.

As such, I am not entirely sure that all our issues are related, but I am very much interested in getting this working, so I will be looking into it this weekend. I will be checking whether encryption on local storage works as it should. If it doesn't, then I expect an issue with the encryption library; but if it does, then I expect an issue with how the S3 and encryption libraries are used and/or how data is being passed around.

jivanpal avatar Aug 14 '20 19:08 jivanpal

I have not tested this yet, but I have a hunch that this could have something to do with https://github.com/nextcloud/server/pull/20033, which enabled fseek support for object storage. I'll try to get a test environment setup to test with this reverted.

evan-a-a avatar Aug 15 '20 19:08 evan-a-a

@jivanpal I have just observed a second (for me) behavior for the first time.

Previously, I was testing mainly with PDF files, some images and videos. The test with PDF files was easy to do from the client side - the first time I clicked a file in the web frontend, the PDF viewer would come up and its progress bar move to around 70% - then nothing. Then I would navigate back and click the same file again, and it would come up correctly in the PDF viewer. This pattern was fully reproducible for me, and still is - I just tried it yesterday with a number of newly uploaded PDF files.

Today I have a different problem though. I uploaded a zip file, and now I can't download it. If I use the download action in the web interface, I see a blue "internal server error" screen. If I use a public share link, the browser shows an error (something like "can't open the link") when I start the download. I have tried this numerous times, and it is impossible to download the file.

One additional note: I also have a VM set up to sync a large (~22GB) local folder with my Nextcloud installation, using the Linux desktop client. All the files were initially uploaded without any trouble. I have added and changed files since, and the VM uploaded these correctly.

Now I just tried to add a file through the web interface and see what the sync client does. Predictably, it shows an error: Server replied "503 Service Unavailable" to "GET ...". Unfortunately I don't see any other details. I ran the desktop client from the command line and it logged loads of stuff there while uploading files, but I don't see any output related to the failed download attempt.

I really hope we can find out what this is all about... I was just getting started with Nextcloud and found the setup promising, but I don't know where to look for these bugs and I'm very hesitant to proceed with my migration at this point.

oliversturm avatar Aug 18 '20 09:08 oliversturm

And now it appears that things have changed again. Here's what I did:

  • I updated the machine that runs my Nextcloud: sudo dnf update
  • I checked for updates to the snaps: sudo snap refresh --list - I was told all snaps were up to date. I was running Nextcloud version 19.0.1snap2.
  • I restarted the machine
  • After the reboot, I suddenly found that I am now running 19.0.1snap3 - I have no idea where this new version came from.
  • I double-checked my configuration in /var/snap/nextcloud/current/nextcloud/config/config.php and it looks correct.

Now I can't access a PDF file that was previously readable (at least on second attempt). The browser displays an error message if I try - this didn't happen previously.

PDF.js v2.1.266 (build: 81f5835c)
Message: Unexpected server response (503) while retrieving PDF "https://<server>/remote.php/webdav/<filename>.pdf".

In Admin/Logging I see this:

[webdav] Fatal: Sabre\DAV\Exception\ServiceUnavailable: Encryption not ready: multikeydecrypt with share key failed:error:04065072:rsa routines:rsa_ossl_private_decrypt:padding check failed at <<closure>>

0. /snap/nextcloud/22653/htdocs/apps/dav/lib/Connector/Sabre/File.php line 425
   OCA\DAV\Connector\Sabre\File->convertToSabreException(OCA\Encryption\E ... {})
1. /snap/nextcloud/22653/htdocs/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 90
   OCA\DAV\Connector\Sabre\File->get()
2. /snap/nextcloud/22653/htdocs/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
   Sabre\DAV\CorePlugin->httpGet(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
3. /snap/nextcloud/22653/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php line 474
   Sabre\DAV\Server->emit("method:GET", [Sabre\HTTP\Requ ... }])
4. /snap/nextcloud/22653/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php line 251
   Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
5. /snap/nextcloud/22653/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php line 319
   Sabre\DAV\Server->start()
6. /snap/nextcloud/22653/htdocs/apps/dav/appinfo/v1/webdav.php line 82
   Sabre\DAV\Server->exec()
7. /snap/nextcloud/22653/htdocs/remote.php line 167
   require_once("/snap/nextcloud ... p")

GET /remote.php/webdav/<filename>.pdf
from <IP> by me at 2020-08-18T11:13:44+00:00

For some reason, I see a second part to the exception message in the web frontend, but this is dropped when I copy it to the clipboard. Here it is, copied manually:

Caused by OCA\Encryption\Exceptions\MultiKeyDecryptException: multikeydecrypt with share key failed:error:04065072:rsa routines:rsa_ossl_private_decrypt:padding check failed

    /snap/nextcloud/22653/htdocs/apps/encryption/lib/KeyManager.php - line 446:
    OCA\Encryption\Crypto\Crypt->multiKeyDecrypt(null, null, "-----BEGIN ... n")
    /snap/nextcloud/22653/htdocs/apps/encryption/lib/Crypto/Encryption.php - line 201:
    OCA\Encryption\KeyManager->getFileKey("/me/file ... f", "master_9de239b8")
    /snap/nextcloud/22653/htdocs/lib/private/Files/Stream/Encryption.php - line 268:
    OCA\Encryption\Crypto\Encryption->begin("/me/file ... f", "me", "r", { oc_encrypt ... "}, [])
    <<closure>>
    OC\Files\Stream\Encryption->stream_open("ocencryption://", "r", 0, null)
    /snap/nextcloud/22653/htdocs/lib/private/Files/Stream/Encryption.php - line 207:
    fopen("ocencryption://", "r", false, null)
    /snap/nextcloud/22653/htdocs/lib/private/Files/Stream/Encryption.php - line 187:
    OC\Files\Stream\Encryption::wrapSource(null, null, "ocencryption", "OC\\Files\\Stream\\Encryption", "r")
    /snap/nextcloud/22653/htdocs/lib/private/Files/Storage/Wrapper/Encryption.php - line 473:
    OC\Files\Stream\Encryption::wrap(null, "files/20200 ... f", "/me/file ... f", { oc_encrypt ... "}, "me", OCA\Encrypti ... {}, OC\Files\Sto ... l}, OC\Files\Sto ... l}, OC\Encryption\Util {}, OC\Encryption\File {}, "r", 51971, 51971, 8192, true)
    /snap/nextcloud/22653/htdocs/lib/private/Files/Storage/Wrapper/Wrapper.php - line 300:
    OC\Files\Storage\Wrapper\Encryption->fopen("files/file ... f", "r")
    /snap/nextcloud/22653/htdocs/lib/private/Files/View.php - line 1159:
    OC\Files\Storage\Wrapper\Wrapper->fopen("files/file ... f", "r")
    /snap/nextcloud/22653/htdocs/lib/private/Files/View.php - line 995:
    OC\Files\View->basicOperation("fopen", "/file-e ... f", [ "read"], "r")
    /snap/nextcloud/22653/htdocs/apps/dav/lib/Connector/Sabre/File.php - line 423:
    OC\Files\View->fopen("file-eb ... f", "r")
    /snap/nextcloud/22653/htdocs/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 90:
    OCA\DAV\Connector\Sabre\File->get()
    /snap/nextcloud/22653/htdocs/3rdparty/sabre/event/lib/WildcardEmitterTrait.php - line 89:
    Sabre\DAV\CorePlugin->httpGet(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
    /snap/nextcloud/22653/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php - line 474:
    Sabre\DAV\Server->emit("method:GET", [ Sabre\HTTP ... }])
    /snap/nextcloud/22653/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php - line 251:
    Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
    /snap/nextcloud/22653/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php - line 319:
    Sabre\DAV\Server->start()
    /snap/nextcloud/22653/htdocs/apps/dav/appinfo/v1/webdav.php - line 82:
    Sabre\DAV\Server->exec()
    /snap/nextcloud/22653/htdocs/remote.php - line 167:
    require_once("/snap/nextc ... p")

Finally, there are still some files I can access correctly, first time - images and PDF files. Others I can't access at all now.

What to do? This setup has become completely unusable now and I'm wondering if I'm losing my data.

oliversturm avatar Aug 18 '20 11:08 oliversturm

#8349 has been mentioned above, but the poster said the issue was a different one after all. For me it is exactly the same now. The issue is from February 2018, that doesn't look promising.

I also found this report: https://help.nextcloud.com/t/encryption-not-ready-multikeydecrypt-with-share-key-failed/42806

Forgive me if this is a stupid question, but I'm new to Nextcloud. Unless I'm going to read loads of source code and debug it myself, is there hope this may be fixed? I thought NC was a well-supported and production-ready solution, but this bug is a complete showstopper, at least 30 months old and it doesn't appear that anybody has been looking into it. I don't mean any offense, but I need to weigh my options.

oliversturm avatar Aug 18 '20 13:08 oliversturm

I think there are possibly several bugs at play here; one is #8349, but there seems to me to be another one as well. @juliushaertl suggested that #22018 may fix one of them, I don't know if the other one will be fixed in that PR as well.

For what it's worth, @oliversturm, I'm in much the same position as you; new to Nextcloud, tried to set it up with this, saw that it didn't work and subsequently haven't set it up. Clearly, this is FOSS software, and there's no expectation on anyone individually to make this work; however, encryption definitely should not be marked as a production-ready feature if there are bugs like these still in it. I've not had the time to look deep into the code to try and root out the bug myself, and I wouldn't expect the same of anyone else volunteering on the project, but people shouldn't be misled into thinking support for encryption is further along than it actually is.

No disrespect whatsoever to the people who've worked on encryption in Nextcloud - it looks like a clever system - but it can't reasonably be called complete or production ready if there's serious risk of irretrievable data loss when using object storage, at the very least without a large warning attached to it saying "do not enable this with primary object storage".

cpf-sh avatar Aug 18 '20 13:08 cpf-sh

So... trying to figure out what could have happened in my installation so that the behavior changed compared to my initial report. I read in some other issue that somebody's master key changed as a result of an update. I would like to double-check my key - but where is it?

All the docs I can find mention locations in the filesystem underneath data. But with S3 as primary storage, there is nothing there. I expect the key is in the database? Where? Any ideas?

oliversturm avatar Aug 18 '20 19:08 oliversturm