Skip to content

Big file upload (and download) runs into 10 sec timeout #120

Closed

Description

@IljaN

Reproduce:

  • Run ocis server
  • Login to webui
  • Create big file fallocate -l 6G bigfile.bin
  • Click +New => Upload File => bigfile.bin
  • Upload Fails 💥

File with 1 GB works.

Relevant Loglines

6:00PM ERR home/ilja/go/pkg/mod/github.com/cs3org/[email protected]/internal/http/services/owncloud/ocdav/put.go:219 > error doing http request error="Put http://localhost:9156/data/albert/6g.bin: net/http: request canceled (Client.Timeout exceeded while awaiting headers)" pid=26242 pkg=rhttp traceid=c37834485d7339d24ae135da647d08ce
6:00PM ERR home/ilja/go/pkg/mod/github.com/cs3org/[email protected]/internal/http/interceptors/log/log.go:112 > http end="24/Feb/2020:18:00:25 +0100" host=::1 method=PUT pid=26242 pkg=rhttp proto=HTTP/1.1 size=0 start="24/Feb/2020:18:00:15 +0100" status=500 time_ns=10020856613 traceid=c37834485d7339d24ae135da647d08ce uri=/remote.php/webdav/6g.bin url=/remote.php/webdav/6g.bin
6:00PM ERR home/ilja/go/pkg/mod/github.com/cs3org/[email protected]/internal/http/services/dataprovider/put.go:39 > error uploading file error="ocFS: error writing to tmp file /var/tmp/reva/data/albert/files/._reva_atomic_upload556955768: unexpected EOF" pid=26365 pkg=rhttp traceid=c37834485d7339d24ae135da647d08ce

Activity

  1. changed the title [-]Big file upload broken[/-] [+]Big file upload does not work[/+] on Feb 24, 2020
  2. labkode commented on Feb 25, 2020

    @labkode
    Contributor

    @IljaN we need to configure by config the HTTP client timeout

  3. butonic commented on Jun 2, 2020

    @butonic
    Contributor

    reva currently uses an http client that has the timeout set to 10 sec: https://github.com/cs3org/reva/blob/0dbce24f7e8b508c1ecab2d145979562888a7a76/pkg/rhttp/client.go#L37

    We need to increase that or better yet, make it configurable for the ocdav up and download.

  4. changed the title [-]Big file upload does not work[/-] [+]Big file upload (and download) runs into 10 sec timeout[/+] on Jun 2, 2020
  5. kiranparajuli589 commented on Aug 13, 2020

    @kiranparajuli589
    Contributor

    Is the issue resolved? Cause I got this while trying with 10GB file upload:
    output
    P.S.: Sync with desktop client is also working well with such large files.

    Server Configurations

    • latest ocis master
    • owncloud desktop client Version 2.7.0daily20200708 (build 2764)
  6. added a commit that references this issue on Sep 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions