Trash bin is empty, not possible to restore

Steps to reproduce

  1. delete a file
  2. go to “deleted files”

Expected behaviour

find the deleted file in the trashbin and be able to restore it

Actual behaviour

trashbin is empty (sometimes just after a few minutes); same via ftp (user/files_trashbin)

Server configuration

Operating system: CentOS Linux release 7.6.1810 (Core)
Web server: Apache (on Managed Cloud Service)
Database: MySQL
PHP version: 7.1.27
ownCloud version: 10.0.10.4
Updated from an older ownCloud or fresh install: updated
Where did you install ownCloud from: not sure, was before my time here
Signing status (ownCloud 9.0 and above):

No errors have been found.

ownCloud config report:

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

Are you using encryption: yes

Are you using an external user-backend, if yes which one: often Webdav, but same problem in web interface

Client configuration

Browser: Chrome

Operating system: Windows 10 Pro

Logs

Web server error log

not even sure if I have access, I will ask for it, if necessary

ownCloud log (data/owncloud.log)

hundreds of “Bad Signature” and “Can not decrypt”-Exceptions like this

{"reqId":"0db720ab-3a0a-4d7c-be0d-916d23f2865f","level":4,"time":"2019-03-25T06:56:29+00:00","remoteAddr":"***","user":"***","app":"webdav","method":"GET","url":"\/remote.php\/dav\/files\/***\/***\/Documents\/***.pdf","message":"Exception: Bad Signature: {\"Exception\":\"OC\\\\HintException\",\"Message\":\"Bad Signature\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/vhosts\\\/***.***.de\\\/htdocs\\\/apps\\\/encryption\\\/lib\\\/Crypto\\\/Crypt.php(463): OCA\\\\Encryption\\\\Crypto\\\\Crypt->checkSignature('f4mRTveoNfhGalQ...', '\\\\xDBVJs\\\\n\\\\xA7\\\\tE\\\\x92\\\\x95Ii\\\\x1F-\\\\xEB...', '6018fa51d77fed8...')\\n#1 \\\/var\\\/www\\\/vhosts\\\/***.***.de\\\/htdocs\\\/apps\\\/encryption\\\/lib\\\/Crypto\\\/Encryption.php(369): OCA\\\\Encryption\\\\Crypto\\\\Crypt->symmetricDecryptFileContent('f4mRTveoNfhGalQ...', '\\\\xDBVJs\\\\n\\\\xA7\\\\tE\\\\x92\\\\x95Ii\\\\x1F-\\\\xEB...', 'AES-256-CTR', 2, 0)\\n#2 \\\/var\\\/www\\\/vhosts\\\/***.***.de\\\/htdocs\\\/lib\\\/private\\\/Files\\\/Stream\\\/Encryption.php(454): OCA\\\\Encryption\\\\Crypto\\\\Encryption->decrypt(*** sensitive parameters replaced ***)\\n#3 \\\/var\\\/www\\\/vhosts\\\/***.***.de\\\/htdocs\\\/lib\\\/private\\\/Files\\\/Stream\\\/Encryption.php(289): OC\\\\Files\\\\Stream\\\\Encryption->readCache()\\n#4 [internal function]: OC\\\\Files\\\\Stream\\\\Encryption->stream_read(8192)\\n#5 \\\/var\\\/www\\\/vhosts\\\/***.***.de\\\/htdocs\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/streams\\\/src\\\/Wrapper.php(83): fread(Resource id #107, 8192)\\n#6 \\\/var\\\/www\\\/vhosts\\\/***.***.de\\\/htdocs\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/streams\\\/src\\\/CallbackWrapper.php(91): Icewind\\\\Streams\\\\Wrapper->stream_read(8192)\\n#7 [internal function]: Icewind\\\\Streams\\\\CallbackWrapper->stream_read(8192)\\n#8 \\\/var\\\/www\\\/vhosts\\\/***.***.de\\\/htdocs\\\/lib\\\/composer\\\/sabre\\\/http\\\/lib\\\/Sapi.php(80): stream_copy_to_stream(Resource id #110, Resource id #112, '1127823')\\n#9 \\\/var\\\/www\\\/vhosts\\\/***.***.de\\\/htdocs\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(498): Sabre\\\\HTTP\\\\Sapi::sendResponse(Object(Sabre\\\\HTTP\\\\Response))\\n#10 \\\/var\\\/www\\\/vhosts\\\/***.***.de\\\/htdocs\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(254): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#11 \\\/var\\\/www\\\/vhosts\\\/***.***.de\\\/htdocs\\\/apps\\\/dav\\\/lib\\\/Server.php(298): Sabre\\\\DAV\\\\Server->exec()\\n#12 \\\/var\\\/www\\\/vhosts\\\/***.***.de\\\/htdocs\\\/apps\\\/dav\\\/appinfo\\\/v2\\\/remote.php(31): OCA\\\\DAV\\\\Server->exec()\\n#13 \\\/var\\\/www\\\/vhosts\\\/***.***.de\\\/htdocs\\\/remote.php(165): require_once('\\\/var\\\/www\\\/vhosts...')\\n#14 {main}\",\"File\":\"\\\/var\\\/www\\\/vhosts\\\/***.***.de\\\/htdocs\\\/apps\\\/encryption\\\/lib\\\/Crypto\\\/Crypt.php\",\"Line\":483}"}
{"reqId":"4182f883-b21f-4837-adbe-537233b69069","level":4,"time":"2019-03-25T06:59:00+00:00","remoteAddr":"***","user":"***","app":"webdav","method":"GET","url":"\/remote.php\/dav\/files\/***\/***\/***.pdf","message":"Exception: Can not decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.: {\"Exception\":\"OC\\\\Encryption\\\\Exceptions\\\\DecryptionFailedException\",\"Message\":\"Can not decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/vhosts\\\/***.***.de\\\/htdocs\\\/lib\\\/private\\\/Files\\\/Stream\\\/Encryption.php(454): OCA\\\\Encryption\\\\Crypto\\\\Encryption->decrypt(*** sensitive parameters replaced ***)\\n#1 \\\/var\\\/www\\\/vhosts\\\/***.***.de\\\/htdocs\\\/lib\\\/private\\\/Files\\\/Stream\\\/Encryption.php(289): OC\\\\Files\\\\Stream\\\\Encryption->readCache()\\n#2 [internal function]: OC\\\\Files\\\\Stream\\\\Encryption->stream_read(8192)\\n#3 \\\/var\\\/www\\\/vhosts\\\/***.***.de\\\/htdocs\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/streams\\\/src\\\/Wrapper.php(83): fread(Resource id #103, 8192)\\n#4 \\\/var\\\/www\\\/vhosts\\\/***.***.de\\\/htdocs\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/streams\\\/src\\\/CallbackWrapper.php(91): Icewind\\\\Streams\\\\Wrapper->stream_read(8192)\\n#5 [internal function]: Icewind\\\\Streams\\\\CallbackWrapper->stream_read(8192)\\n#6 \\\/var\\\/www\\\/vhosts\\\/***.***.de\\\/htdocs\\\/lib\\\/composer\\\/sabre\\\/http\\\/lib\\\/Sapi.php(80): stream_copy_to_stream(Resource id #106, Resource id #108, '2222684')\\n#7 \\\/var\\\/www\\\/vhosts\\\/***.***.de\\\/htdocs\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(498): Sabre\\\\HTTP\\\\Sapi::sendResponse(Object(Sabre\\\\HTTP\\\\Response))\\n#8 \\\/var\\\/www\\\/vhosts\\\/***.***.de\\\/htdocs\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(254): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#9 \\\/var\\\/www\\\/vhosts\\\/***.***.de\\\/htdocs\\\/apps\\\/dav\\\/lib\\\/Server.php(298): Sabre\\\\DAV\\\\Server->exec()\\n#10 \\\/var\\\/www\\\/vhosts\\\/***.***.de\\\/htdocs\\\/apps\\\/dav\\\/appinfo\\\/v2\\\/remote.php(31): OCA\\\\DAV\\\\Server->exec()\\n#11 \\\/var\\\/www\\\/vhosts\\\/***.***.de\\\/htdocs\\\/remote.php(165): require_once('\\\/var\\\/www\\\/vhosts...')\\n#12 {main}\",\"File\":\"\\\/var\\\/www\\\/vhosts\\\/***.***.de\\\/htdocs\\\/apps\\\/encryption\\\/lib\\\/Crypto\\\/Encryption.php\",\"Line\":366}"}

Hey,

this looks to me related to the enabled encryption. Personally i would open a bugreport at the ownCloud bugtracker.

Hi,

thanks for your answer. We’re gonna switch the encryption within the next weeks, so maybe the problem gets solved.

Meanwhile I’m still thankful for other thoughts :wink:

@tom42 Thanks again, indeed the migration from User Key to Master Key solved the problem.

1 Like

Unfortunately I was wrong, it worked for some hours when the encryption was disabled, now we have the same problem again. I opened an issue on github.