Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External storage (SMB): upstream prematurely closed FastCGI request while reading upstream #26933

Closed
RoL0NL opened this issue May 10, 2021 · 1 comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug

Comments

@RoL0NL
Copy link

RoL0NL commented May 10, 2021

Describe the bug
After opening a file from an external storage location (all SMB in my case), the file fails to load in the webapplication (e.g. pdf: An error occurred while loading the PDF. ) , in the Android client (Failed to download) or in Collabora ( loadComponentFromURL returned an empty reference). The fpm container log states "upstream prematurely closed FastCGI request while reading upstream"

To Reproduce
Steps to reproduce the behavior:

  1. Open a file from external SMB storage
  2. See error

Expected behavior
Open/download file

Client details:

  • Windows 10 20H2 (19042.906)
  • Firefox 87.0

Server details

Operating system:
Debian GNU/Linux 10 (buster)/Linux 4.19.0-14-amd64 x86_64/Docker version 20.10.5, build 55c4c88

Web server:
nginx:1.19.7-alpine docker image

Database:
PostgreSQL 13.2 on x86_64-pc-linux-musl, compiled by gcc (Alpine 10.2.1_pre1) 10.2.1 20201203, 64-bit
postgres:13.2-alpine docker image

PHP version:
7.4.16

Nextcloud version:
21.0.1
nextcloud:21.0.1-fpm docker image

Version of the richdocuments app
4.0.4

Version of Collabora Online
6.4.7.5
collabora/code:6.4.7.5 docker image

Logs
[PHP] Error: Error: fread(): Icewind\SMB\Native\NativeReadStream::stream_read - read 5409 bytes more data than requested (13601 read, 8192 max) - excess data will be lost at /var/www/html/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php#55 at <<closure>>

 0. <<closure>>
    OC\Log\ErrorHandler::onError(2, "fread(): Icewin ... t", "/var/www/html/a ... p", 55, {count: 8192})
 1. /var/www/html/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php line 55
    fread(null, 8192)
 2. /var/www/html/apps/files_external/3rdparty/icewind/streams/src/CallbackWrapper.php line 96
    Icewind\Streams\Wrapper->stream_read(8192)
 3. <<closure>>
    Icewind\Streams\CallbackWrapper->stream_read(8192)
 4. /var/www/html/3rdparty/sabre/http/lib/Sapi.php line 112
    stream_copy_to_stream(null, null, 4194304)
 5. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 490
    Sabre\HTTP\Sapi::sendResponse(Sabre\HTTP\Response {})
 6. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 253
    Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
 7. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 321
    Sabre\DAV\Server->start()
 8. /var/www/html/apps/dav/lib/Server.php line 332
    Sabre\DAV\Server->exec()
 9. /var/www/html/apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
10. /var/www/html/remote.php line 167
    require_once("/var/www/html/a ... p")

GET /remote.php/dav/files/path/file.pdf
from x.x.x.x by xxx at 2021-05-10T08:04:56+00:00
@RoL0NL RoL0NL added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels May 10, 2021
@RoL0NL RoL0NL closed this as completed May 10, 2021
@RoL0NL RoL0NL reopened this May 10, 2021
@RoL0NL
Copy link
Author

RoL0NL commented May 10, 2021

Ah, also have to look for closed issues.. duplicate of #26457

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug
Projects
None yet
Development

No branches or pull requests

1 participant