nextcloud / server

ā˜ļø Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.37k stars 4.07k forks source link

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

Closed mashedkeyboard closed 2 years ago

mashedkeyboard commented 4 years ago

How to use GitHub

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 Nextcloud

Error

  • Bad Signature

```
solracsf commented 4 years ago

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

mashedkeyboard commented 4 years ago

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.

mashedkeyboard commented 4 years ago

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

jivanpal commented 4 years ago

Similar issue, using:

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

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/DAJPBA7r9k7OfxvfDj716ffhnB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XU59jqPV+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": 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/OLr48XtHGdgS4B6kuqenAUhlElPUMcX0bGZlgWHJk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zW6fKg3W06YAj4oIgKOuQdG9EO2BoB3DbTalnCsszVZAx0TO3+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+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30ghZHZXHh0kXHtt5OSYqt6uZUsjmZHr91UfvO5slFFGI/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",
                    "/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+ixNK5uvF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4DEc5a1qOBlZvD8Hg9jj+so1xbC+LyvDFGkQqH4UWT1UBn6MSUFCdbevS9wrmJPJoDjWISOHXisKko4Z4+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 commented 4 years ago

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.

mashedkeyboard commented 4 years ago

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.

jivanpal commented 4 years ago

@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.

mashedkeyboard commented 4 years ago

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!

jivanpal commented 4 years ago

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):

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 commented 4 years ago

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.

mashedkeyboard commented 4 years ago

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).

jivanpal commented 4 years ago

@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
oliversturm commented 4 years ago

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.

jivanpal commented 4 years ago

@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.

evan-a-a commented 4 years ago

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.

oliversturm commented 4 years ago

@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 commented 4 years ago

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

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 commented 4 years ago

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.

mashedkeyboard commented 4 years ago

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".

oliversturm commented 4 years ago

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?

mashedkeyboard commented 4 years ago

@oliversturm, @jivanpal mentioned earlier that the keys are stored in object storage when it's being used as primary storage, with the keys themselves encrypted with the user's password and/or server secret.

I've spent this evening trying to think of ways around this problem, and ended up using goofys, a fuse filesystem for S3 written in go, to map my data directory directly to an S3 bucket. That way, Nextcloud doesn't mess up, as from its perspective, it's just looking at part of the server's disk; S3 is all handled by the FS layer.

That's definitely a suboptimal solution, but it's working for now, and it does allow encryption so long as the option to encrypt the home storage is enabled.

oliversturm commented 4 years ago

the keys themselves encrypted with the user's password and/or server secret.

And that server secret is what? The secret item in config.php? If so, then that has not changed between the two versions I ended up with on my server. It remains a mystery to me how my installation went from "can open all files, but some need two attempts" to "can't open 99% of files at all" after a simple reboot.

... ways around this problem...

Hm... yeah. I'm afraid I'm not interested anymore - what I've seen of Nextcloud has made it very clear to me that this is not the platform I will trust with my data.

jivanpal commented 4 years ago

@oliversturm, very odd behaviour on your end. Could be an issue with the Snap package you're using, but we should rule out upstream issues first. It's a shame to hear that this has discouraged you from using Nextcloud, but it's completely understandable. I'm in the same boat as you, new to using it, continuing to use Google Drive until I'm confident it has no issues for my use case and I have a good backup system in place.

I haven't had time to explore this yet, but will be doing so today.

oliversturm commented 4 years ago

this has discouraged you from using Nextcloud

Just to be clear, it was not this issue in itself. It is a bad issue with potentially serious consequences, and it clearly deserves immediate and intense attention. However, this issue is now three weeks old, and the only comments recorded here are from people with the same problem and no real understanding of NC. And then there are other issues, up to 30 months old, which seem to indicate the same problem.

Yes it's FOSS and we are morally obliged not to expect others to fix our problems. But in reality, somebody once wrote the code related to this combination of S3 and server-side encryption, and obviously they didn't test it properly. In addition, they have now been ignoring reports about the deficiencies of said code for years. Perhaps somebody else should step up to fix these issues? Probably, and probably somebody will. But in the meantime I am (or was going to be) "just" a user of this tool called Nextcloud - my life is already full of projects, I can't be a developer on every single tool I use. And, to put it bluntly and colloquially, this particular tool seems to be broken in a very important and dangerous way, and nobody cares. So I can't justify using it - at least until I return with more time on my hands, ready to fix important security issues myself.

jivanpal commented 4 years ago

The issue relates to the way in which the signature of the final block of an encrypted file's ciphertext is computed ā€” probably an overflow issue. Not sure yet whether the issue is:

As a workaround for now, removing the signature check in \OCA\Encryption\Crypto\Crypt::symmetricDecryptFileContent() (in /apps/encryption/lib/Crypto/Crypt.php, lines 472ā€“480) prevents GenericEncryptionException('Bad signature') from being thrown, thereby allowing decryption to finish successfully. Previews and downloads then occur successfully.

I'll see if I can figure out a proper fix, hopefully I'll have time tomorrow and on Friday to work on this.

mashedkeyboard commented 4 years ago

Hey @jivanpal, did you make any headway on this in the end? No pressure - it's not your job to! Just wanted to check before I start throwing myself further into it to avoid duplication of effort.

jivanpal commented 4 years ago

@mashedkeyboard, not had time to delve into it any further yet, unfortunately. My Wasabi trial ended, too! šŸ˜… Hoping to look into it in a week or two if still not fixed.

drphr4ud commented 4 years ago

This issue has been around since NC15. I encountered this and saw some bugs filed as far back as 2017. I couldn't see them open so I assumed it was fixed. Glad I saw this one. I was literally about to spin up an instance of 19.01 with minio as the primary back-end.

jivanpal commented 4 years ago

I have started using s3backer for other projects besides Nextcloud, and feel that it is a better solution for Nextcloud than Nextcloud's native S3 support, for various reasons. Thus I will be testing s3backer for my production Nextcloud setup, and if it works well, I will continue to use it. I still plan to work on this bug, though, and should have time to do so this week. I feel like the encryption implementation could do with an overhaul, anyway, as the encoding uses disk space very inefficiently. The S3 implementation could maybe also do with looking at, especially if it stores large single files that may be edited frequently as single S3 objects, which I believe it does.

elsiehupp commented 4 years ago

I'm getting the error described in #21133 on nextcloud-snap 19.0.3. FWIW this happened after I ran into problems with server-side encryption, found this thread, disabled encryption for debug purposes, and got this command-line error from occ:

In Connection.php line 67:

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

encryption:decrypt-all [<user>]

To be clear, decrypting all files seems to have eliminated the vast majority of my 503 errors. The ones described in #21133 are the remaining leftovers.

elsiehupp commented 4 years ago

@jivanpal if you find success using s3backer instead of Nextcloud's native S3 support, could you consider writing a migration tutorial? Obviously no pressure. Thanks!

jivanpal commented 4 years ago

@elsiehupp, it works very well, with encryption support via OpenSSL (AES-128-CBC by default), and compression before encryption. Wasabi S3 isn't really designed for egress-heavy applications, though, so go with a different S3 provider depending on your use case ā€” in my case, I'll just be switching to block storage because streaming large video files is troublesome.

If your files are unencrypted and stored locally on the server, then migration will be easy. Just mount the s3backer "block device" somewhere, copy your Nextcloud data directory (not the contents, but the whole directory itself) to it, and then bind-mount the moved directory to its original location (you can't just use a symlink because Nextcloud won't follow it for security reasons). The s3backer man page is very informative, and you'll want to tweak the caching options based on your system resources. Here's an example Bash script that you can run as root to do the migration.

If your files aren't local, but currently in S3 using Nextcloud's native S3 support, then I imagine you'll have to construct the data dir tree from that existing S3 data using the entries in the database to map the S3 object names that Nextcloud uses (oid_XX) to filepaths (data/user.name/files/Some/Path).

After migration, mounting the filesystem after a reboot/unmount obviously doesn't require mkfs, mv, or rsync, nor do you need to specify the s3backer block size and total size: example mount script.

J0WI commented 4 years ago

Isn't it easier to just use Ceph, GlusterFS, BeeGFS etc. instead of creating a filesystem over S3?

elsiehupp commented 4 years ago

Hi @jivanpalā€”thanks for the explanation. I'm actually currently using Nextcloud's native S3 support already, with DigitalOcean S3, as my main server is already on DigitalOcean. Do you have a recommendation of how I could migrate my existing Nextcloud S3 object store to s3backer? Thanks again!

jivanpal commented 4 years ago

@elsiehupp, from my previous comment:

If your files aren't local, but currently in S3 using Nextcloud's native S3 support, then I imagine you'll have to construct the data dir tree from that existing S3 data using the entries in the database to map the S3 object names that Nextcloud uses (oid_XX) to filepaths (data/user.name/files/Some/Path).

I'm not aware of any native way to do this, nor a tool that will do this for you. Someone could probably write a PHP script or Nextcloud app that would take care of this. Perhaps someone knows if this functionality is built into occ?

sramgh commented 4 years ago

I have been using Nextcloud 19.0.3 with Backblaze B2 as primary storage for about 1.5 months. Didn't face this issue until today when the nextcloud ios app showed 500: Internal Server Error. It is strange that this is occuring all of a sudden? Did any of you had a similar experience. BTW, i'm running nextcloud docker image.

Edit: Forgot to mention, I uploaded a PDF file (250KB) yesterday. That was the only file uploaded or downloaded yesterday.

Thanks!

jivanpal commented 4 years ago

CC @MorrisJobke, apologies if tagging you is unwelcome, but can we at least get something that warns users that this doesn't work, please? It's clear that encrypted object storage has various long-standing issues, and we obviously don't want people's data being lost through false confidence in something that appears to work at first, but breaks unexpectedly. I'm more than happy to put in such a warning myself, but I need to get familiar with with the codebase.

I would like to work on this issue, but feel that the encryption implementation as a whole could do with reworking. If the maintainers are happy to discuss such alterations, I would like to focus on #22156 for now, and perhaps some other encryption considerations in future. Is there anyone primarily involved in encryption and S3/object storage support?

mashedkeyboard commented 3 years ago

For what it's worth, I sent an email earlier on this year to Nextcloud GmbH asking whether it would be possible to pay them to work on fixing this issue. I was met with a stony silence - I never got a reply.

Evidently in 2018 (see https://github.com/nextcloud/server/issues/11826#issuecomment-429729162) there was an encryption team in the nextcloud organisation, but that's now gone too: https://github.com/orgs/nextcloud/teams/encryption

This issue has been sitting on "needs triage" for months, and similar https://github.com/nextcloud/server/issues/11826 has been sitting on "to develop" for more than two years now. I don't think any progress is going to be made here unless there's significant community intervention.

As much as it pains me to say, if you are looking at this issue because you are looking to use Nextcloud for encrypted S3 file storage, you should not consider this a functional solution for that - and it seems unlikely that situation will improve any time soon.

AndyXheli commented 3 years ago

I'm having an issue too with this out of know where files just get corrupt lots of

Fatal webdav OCP\Encryption\Exceptions\GenericEncryptionException:Ā Bad Signature
Flaschenzug commented 3 years ago

is there now a known solution to this problem? My errorlog is full with "OCP\Encryption\Exceptions\GenericEncryptionException: Bad Signature" entries since the update to the version 21.0.3.

Thanks

geotom commented 3 years ago

I also would like to see this addresses. Just wanted to switch to NC and setup a professional installation with S3 just to read about this major pitfall. Either using S3 or SSE is something that shouldn't be a mutual exclusive decision to make. That'*s a real deal breaker for me :-(

PVince81 commented 3 years ago

you can fix files with "bad signature" using this new command: https://docs.nextcloud.com/server/latest/admin_manual/issues/general_troubleshooting.html#problems-when-downloading-or-decrypting-files

I haven't tested object store primary storage with server side encryption, but I'm surprised that it doesn't work

anyone got a chance to test with NC 22.2.0 ?

Simthem commented 3 years ago

you can fix files with "bad signature" using this new command: https://docs.nextcloud.com/server/latest/admin_manual/issues/general_troubleshooting.html#problems-when-downloading-or-decrypting-files

I haven't tested object store primary storage with server side encryption, but I'm surprised that it doesn't work

anyone got a chance to test with NC 22.2.0 ?

I will today and i tell you :)

Simthem commented 3 years ago

you can fix files with "bad signature" using this new command: https://docs.nextcloud.com/server/latest/admin_manual/issues/general_troubleshooting.html#problems-when-downloading-or-decrypting-files

I haven't tested object store primary storage with server side encryption, but I'm surprised that it doesn't work

anyone got a chance to test with NC 22.2.0 ?

So it's much difficult that i 'm thinking .. all of my "corrupts" files are in files_versions directory and i can't scan this folders .. only files directory of users nextcloud. If someone have i idea, i'll take :)

asheroto commented 2 years ago

Bump.............

Configured Wasabi (S3-compatible) and cannot view or download any files. Seeing bad sig in the log files. Ran the command above on the entire user account (only one user) and it see this no matter how many times I run it

image

Command does not fix.

Decrypted all, disabling server encryption - everything is accessible, everything can be downloaded Enabled server encryption afterwards - nothing is accessible, nothing can be downloaded

S3 + encryption is broken with NextCloud?

Encryption works fine if stored locally.

PVince81 commented 2 years ago

I've found this: https://github.com/nextcloud/server/pull/28389 if files are being truncated on read they might also not pass the signature check

MCKLtech commented 2 years ago

Just adding my own findings to this issue, when using AWS Lightsail with Ubuntu and the latest snap install of NextCloud, I get the same issue when S3 is the primary storage (S3 provided by Wasabi)

If I revert to using the server storage and S3 as external only, all work flawlessly across all devices (macOS and iOS). Therefore it seems, at least in my case, this only occurs when S3 is the primary storage object and does not occur when S3 is simply used as external storage.

Personally speaking, not being able to use S3 as the primary storage is a dealbreaker and I'm somewhat unnerved that this issue is ongoing for about 2 years.

asheroto commented 2 years ago

Good information! Indeed, I was forced to exclude sensitive data from Nextcloud since I'm using S3 unencrypted server storage at present due to this bug.

birdynm commented 2 years ago

Same issue with NC 23.0.0 (S3 backend + encryption) interestingly small files sometimes can be successfully downloaded on the second try But large file no chanceā€¦

jordan-bravo commented 2 years ago

Any update on this? I would love to start using Nextcloud for my organization when this functionality becomes available.