I can't download specific files


Nextcloud version: 12.0.2
Operating system and version: Ubuntu 16.04
Apache or nginx version: Apache 2.4.18
PHP version: 7.0.22
Is this the first time you’ve seen this error?: Today (11/22)

Hi there,

I have a issue with Nextcloud and specifics files. I have this path: /Carpetas/Málaga/Para entregar/Pleno Extraordinario 08-11-17 (Tela).docx

It exists in the server:

ls -l /mnt/nextdata/data/XXXX/files/Carpetas/Málaga/Para entregar# ls -l Pleno\ Extraordinario\ 08-11-17\ (Tela).docx
-rw-r–r--. 1 www-data www-data 68856 nov 21 13:51 Pleno Extraordinario 08-11-17 (Tela).docx

But when I try to download from Nextcloud I got a HTTP error 503, but it happens with specific files and this behaviour does not have a pattern.

The output Nextcloud log in /var/log/nextcloud/nextcloud.log:

{“reqId”:“FyRyFWj6vYV9tsAZYG3p”,“level”:1,“time”:“November 22, 2017 19:05:11”,“remoteAddr”:“XX.XX.XX.XX”,“user”:“XXXXX”,“app”:“admin_audit”,“method”:“GET”,“url”:"/remote.php/webdav/Carpeta/M%C3%A1laga/Para%20entregar/Pleno%20Extraordinario%2008-11-17%20(Tela).docx",“message”:“File accessed: “/Carpeta/M\u00e1laga/Para entregar/Pleno Extraordinario 08-11-17 (Tela).docx””,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36”,“version”:“12.0.2.0”}
{“reqId”:“FyRyFWj6vYV9tsAZYG3p”,“level”:4,“time”:“November 22, 2017 19:05:11”,“remoteAddr”:“XX.XX.XX.XX”,“user”:“XXXXXX”,“app”:“webdav”,“method”:“GET”,“url”:"/remote.php/webdav/Carpeta/M%C3%A1laga/Para%20entregar/Pleno%20Extraordinario%2008-11-17%20(Tela).docx",“message”:“Exception: {“Exception”:“OCP\\Encryption\\Exceptions\\GenericEncryptionException”,“Message”:“Bad Signature”,“Code”:0,“Trace”:”#0 \/var\/www\/nextcloud\/apps\/encryption\/lib\/Crypto\/Crypt.php(463): OCA\\Encryption\\Crypto\\Crypt->checkSignature(‘3Sh0\/LqVKJFyIOL…’, ‘\\xEC\\x85h:\\xE8\\xB4\"8U\\xA47\\xF0\\xC6r\\x17…’, ‘c63f07173d8d63f…’)\n#1 \/var\/www\/nextcloud\/apps\/encryption\/lib\/Crypto\/Encryption.php(378): OCA\\Encryption\\Crypto\\Crypt->symmetricDecryptFileContent(‘3Sh0\/LqVKJFyIOL…’, ‘\\xEC\\x85h:\\xE8\\xB4\"8U\\xA47\\xF0\\xC6r\\x17…’, ‘AES-256-CTR’, 2, 0)\n#2 \/var\/www\/nextcloud\/lib\/private\/Files\/Stream\/Encryption.php(460): OCA\\Encryption\\Crypto\\Encryption->decrypt(*** sensitive parameters replaced ***)\n#3 \/var\/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 \/var\/www\/nextcloud\/3rdparty\/icewind\/streams\/src\/Wrapper.php(83): fread(Resource id #40, 8192)\n#6 \/var\/www\/nextcloud\/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\/nextcloud\/3rdparty\/sabre\/http\/lib\/Sapi.php(78): stream_copy_to_stream(Resource id #43, Resource id #45, ‘44920’)\n#9 \/var\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(498): Sabre\\HTTP\\Sapi::sendResponse(Object(Sabre\\HTTP\\Response))\n#10 \/var\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(254): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#11 \/var\/www\/nextcloud\/apps\/dav\/appinfo\/v1\/webdav.php(71): Sabre\\DAV\\Server->exec()\n#12 \/var\/www\/nextcloud\/remote.php(162): require_once(’\/var\/www\/nextcl…’)\n#13 {main}",“File”:"\/var\/www\/nextcloud\/apps\/encryption\/lib\/Crypto\/Crypt.php",“Line”:483}",“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36”,“version”:“12.0.2.0”}

On my browser I’ve got this error:

This site can’t be reached
The webpage at https://website.com/remote.php/webdav/Carpeta/Málaga/Para%20entregar/Pleno%20Extraordinario%2008-11-17%20(Tela).docx might be temporarily down or it may have moved permanently to a new web address. ER,INVALID_RESPONSE

The output of your Nextcloud log in Admin > Logging:

PHP Uncaught Error: Access to undeclared static property: OC\Files\Filesystem::$normalizedPathCache in /var/www/nextcloud/lib/private/Files/Filesystem.php:804 Stack trace: #0 /var/www/nextcloud/lib/private/Files/View.php(2032): OC\Files\Filesystem::normalizePath(’/XXXXX/files…’) #1 /var/www/nextcloud/lib/private/Files/View.php(1170): OC\Files\View->unlockFile(’/Carpeta/M\xC3…’, 1) #2 [internal function]: OC\Files\View->OC\Files{closure}() #3 /var/www/nextcloud/3rdparty/icewind/streams/src/CallbackWrapper.php(109): call_user_func(Object(Closure)) #4 [internal function]: Icewind\Streams\CallbackWrapper->stream_close() #5 {main} thrown at /var/www/nextcloud/lib/private/Files/Filesystem.php#804

WebDav OCP\Encryption\Exceptions\GenericEncryptionException: Bad Signature
/var/www/nextcloud/apps/encryption/lib/Crypto/Crypt.php - line 463: OCA\Encryption\Crypto\Crypt->checkSignature(‘3Sh0/LqVKJFyIOL…’, ‘\xEC\x85h \xE8\xB4"8U\xA47\xF0\xC6r\x17…’, ‘c63f07173d8d63f…’)
/var/www/nextcloud/apps/encryption/lib/Crypto/Encryption.php - line 378: OCA\Encryption\Crypto\Crypt->symmetricDecryptFileContent(‘3Sh0/LqVKJFyIOL…’, ‘\xEC\x85h \xE8\xB4"8U\xA47\xF0\xC6r\x17…’, ‘AES-256-CTR’, 2, 0)
/var/www/nextcloud/lib/private/Files/Stream/Encryption.php - line 460: OCA\Encryption\Crypto\Encryption->decrypt(*** sensitive parameters replaced ***)
/var/www/nextcloud/lib/private/Files/Stream/Encryption.php - line 291: OC\Files\Stream\Encryption->readCache()
[internal function] OC\Files\Stream\Encryption->stream_read(8192)
/var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php - line 83: fread(Resource id #40, 8192)
/var/www/nextcloud/3rdparty/icewind/streams/src/CallbackWrapper.php - line 91: Icewind\Streams\Wrapper->stream_read(8192)
[internal function] Icewind\Streams\CallbackWrapper->stream_read(8192)
/var/www/nextcloud/3rdparty/sabre/http/lib/Sapi.php - line 78: stream_copy_to_stream(Resource id #43, Resource id #45, ‘44920’)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 498: Sabre\HTTP\Sapi sendResponse(Object(Sabre\HTTP\Response))
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254: Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php - line 71: Sabre\DAV\Server->exec()
/var/www/nextcloud/remote.php - line 162: require_once(’/var/www/nextcl…’)
{main}

Is it possible that the problem comes from encryption functionality? I’ve enabled it before start to upload content in the server. Is it possible to disable?

Thanks a lot !!

You mention you have an issue with Nextcloud and specific files.

Does this mean that for other files there is no problem?

Yes, I could check that the problem is in the folder that appears in the log that I’ve put.

Thanks!