Unable to open or download files and folder in nextcloud 10 - PLEASE HELP!

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 18.0.2):
Operating system and version (eg, Ubuntu 20.04):
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.1):

The issue you are facing:
Can’t download files or folders. Downloads will timeout, opening pdf files yields
PDF.js v1.1.469 (build: f06aa6a)
Message: Unexpected server response (500) while retrieving PDF “http://192.168.6.4/remote.php/webdav/SOSR/Linzy%20Computer/Sounds%20of%20Service/city%20of%20indian%20rocks%20beach%20business%20tax%20verification%20bill.pdf”.
Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Ongoing issue

The output of your Nextcloud log in Admin > Logging:

Fatal	webdav	Exception: {"Message":"Bad Signature","Exception":"OC\\HintException","Code":0,"Trace":"#0 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/apps\/encryption\/lib\/Crypto\/Crypt.php(464): OCA\\Encryption\\Crypto\\Crypt->checkSignature('lbqSzzK1DcntAs2...', '\\x83|_f\\x96\\xD6\\xD8\\x04\\xB3b\"h\\xDD\\n\\e...', '2cbeb8430f6431f...')\n#1 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/apps\/encryption\/lib\/Crypto\/Encryption.php(364): OCA\\Encryption\\Crypto\\Crypt->symmetricDecryptFileContent('lbqSzzK1DcntAs2...', '\\x83|_f\\x96\\xD6\\xD8\\x04\\xB3b\"h\\xDD\\n\\e...', 'AES-128-CFB', 0, 0)\n#2 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/lib\/private\/Files\/Stream\/Encryption.php(460): OCA\\Encryption\\Crypto\\Encryption->decrypt('lbqSzzK1DcntAs2...', 0)\n#3 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/lib\/private\/Files\/Stream\/Encryption.php(291): OC\\Files\\Stream\\Encryption->readCache()\n#4 [internal function]: OC\\Files\\Stream\\Encryption->stream_read(8192)\n#5 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/apps\/files_external\/3rdparty\/icewind\/streams\/src\/Wrapper.php(83): fread(Resource id #92, 8192)\n#6 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/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 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/3rdparty\/sabre\/http\/lib\/Sapi.php(78): stream_copy_to_stream(Resource id #95, Resource id #97, '550280')\n#9 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(470): Sabre\\HTTP\\Sapi::sendResponse(Object(Sabre\\HTTP\\Response))\n#10 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(248): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#11 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/apps\/dav\/appinfo\/v1\/webdav.php(60): Sabre\\DAV\\Server->exec()\n#12 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/remote.php(165): require_once('\/usr\/pbi\/nextcl...')\n#13 {main}","File":"\/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/apps\/encryption\/lib\/Crypto\/Crypt.php","Line":484,"User":"admin@cirrustg.com"}	2020-11-05T19:15:32+00:00	admin@cirrustg.com
Error	no app in context	Exception: {"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 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/lib\/private\/Files\/Storage\/Wrapper\/Encryption.php(574): OCA\\Encryption\\Crypto\\Encryption->decrypt(*** sensitive parameters replaced ***)\n#1 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/lib\/private\/Files\/Storage\/Wrapper\/Encryption.php(493): OC\\Files\\Storage\\Wrapper\\Encryption->fixUnencryptedSize('files_versions\/...', 197084160, 197084160)\n#2 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/lib\/private\/Files\/Storage\/Wrapper\/Encryption.php(162): OC\\Files\\Storage\\Wrapper\\Encryption->verifyUnencryptedSize('files_versions\/...', 197084160)\n#3 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/lib\/private\/Files\/Storage\/Wrapper\/Wrapper.php(149): OC\\Files\\Storage\\Wrapper\\Encryption->filesize('files_versions\/...')\n#4 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/lib\/private\/Files\/View.php(1120): OC\\Files\\Storage\\Wrapper\\Wrapper->filesize('files_versions\/...')\n#5 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/lib\/private\/Files\/View.php(415): OC\\Files\\View->basicOperation('filesize', '\/files_versions...')\n#6 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/apps\/files_versions\/lib\/Storage.php(469): OC\\Files\\View->filesize('\/files_versions...')\n#7 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/apps\/files_versions\/lib\/Storage.php(745): OCA\\Files_Versions\\Storage::getVersions('eddie', '\/SOSR\/SLWF Case...')\n#8 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/apps\/files_versions\/lib\/Command\/Expire.php(62): OCA\\Files_Versions\\Storage::expire('\/SOSR\/SLWF Case...')\n#9 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/lib\/private\/Command\/CommandJob.php(35): OCA\\Files_Versions\\Command\\Expire->handle()\n#10 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/lib\/private\/BackgroundJob\/Job.php(53): OC\\Command\\CommandJob->run('O:33:\"OCA\\\\Files...')\n#11 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/lib\/private\/BackgroundJob\/QueuedJob.php(43): OC\\BackgroundJob\\Job->execute(Object(OC\\BackgroundJob\\JobList), Object(OC\\Log))\n#12 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/cron.php(121): OC\\BackgroundJob\\QueuedJob->execute(Object(OC\\BackgroundJob\\JobList), Object(OC\\Log))\n#13 {main}","File":"\/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/apps\/encryption\/lib\/Crypto\/Encryption.php","Line":361}	2020-11-05T19:15:05+00:00	--
Error	no app in context	Couldn't re-calculate unencrypted size for files_versions/SOSR/SLWF Case/public records request/Eddie Bie Request 1 5/17100167.pst.v1604600994	2020-11-05T19:15:05+00:00	--
Error	no app in context	Can not decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.	2020-11-05T19:15:05+00:00	--
Error	no app in context	Exception: {"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 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/lib\/private\/Files\/Storage\/Wrapper\/Encryption.php(574): OCA\\Encryption\\Crypto\\Encryption->decrypt(*** sensitive parameters replaced ***)\n#1 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/lib\/private\/Files\/Storage\/Wrapper\/Encryption.php(493): OC\\Files\\Storage\\Wrapper\\Encryption->fixUnencryptedSize('files_versions\/...', 197084160, 197084160)\n#2 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/lib\/private\/Files\/Storage\/Wrapper\/Encryption.php(162): OC\\Files\\Storage\\Wrapper\\Encryption->verifyUnencryptedSize('files_versions\/...', 197084160)\n#3 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/lib\/private\/Files\/Storage\/Wrapper\/Wrapper.php(149): OC\\Files\\Storage\\Wrapper\\Encryption->filesize('files_versions\/...')\n#4 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/lib\/private\/Files\/View.php(1120): OC\\Files\\Storage\\Wrapper\\Wrapper->filesize('files_versions\/...')\n#5 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/lib\/private\/Files\/View.php(415): OC\\Files\\View->basicOperation('filesize', '\/files_versions...')\n#6 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/apps\/files_versions\/lib\/Storage.php(469): OC\\Files\\View->filesize('\/files_versions...')\n#7 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/apps\/files_versions\/lib\/Storage.php(745): OCA\\Files_Versions\\Storage::getVersions('eddie', '\/SOSR\/SLWF Case...')\n#8 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/apps\/files_versions\/lib\/Command\/Expire.php(62): OCA\\Files_Versions\\Storage::expire('\/SOSR\/SLWF Case...')\n#9 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/lib\/private\/Command\/CommandJob.php(35): OCA\\Files_Versions\\Command\\Expire->handle()\n#10 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/lib\/private\/BackgroundJob\/Job.php(53): OC\\Command\\CommandJob->run('O:33:\"OCA\\\\Files...')\n#11 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/lib\/private\/BackgroundJob\/QueuedJob.php(43): OC\\BackgroundJob\\Job->execute(Object(OC\\BackgroundJob\\JobList), Object(OC\\Log))\n#12 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/cron.php(121): OC\\BackgroundJob\\QueuedJob->execute(Object(OC\\BackgroundJob\\JobList), Object(OC\\Log))\n#13 {main}","File":"\/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/apps\/encryption\/lib\/Crypto\/Encryption.php","Line":361}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):


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

PASTE HERE

Is this from a shared folder?

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 \/usr\/pbi\/nextcloud-amd64\/www\/nextcloud\/lib\/private\/Files\/Storage\/Wrapper\/Encryption.php(574): OCA\\Encryption\\Crypto\\Encryption->decrypt

Or is it the file with the bad signature warning in the logs? The bad signature appears when the data and the database are out of sync (e.g. you restored only the data without the previous version of the database).