Skip to content

[1.6.3] Large file upload to SFTP external storage gives ConnectionTimeout #2260

Closed

Description

@ser72

Expected Behavior
No error

Actual Behavior
CONNECTION TIMEOUT error though file is uploaded

Steps

  1. Create a Large file (4GB for instance)
  2. Sync to an SFTP External storage folder
  3. The progress bar completes, however, since reassembly takes so long on this scenario, the client gives an error "Connection Timeout"

connection_timeout

Watching the SFTP server, the .part file continues to grow and the file eventually is assembled:

root@ubuntu:/home/ser72# ls -al
total 4195180
drwxr-xr-x 3 ser72 ser72       4096 Oct  1 09:27 .
drwxr-xr-x 3 root  root        4096 Aug 21 13:54 ..
-rw-rw-r-- 1 ser72 ser72 4294967296 Oct  1 09:27 5gig

But the user thinks the sync failed due to Connection Timeout error.

Client logs on S3 Support/github-issues/mirall/2260

Activity

  1. guruz commented on Oct 1, 2014

    @guruz
    Contributor

    Semi-Internal note:

    The progress bar completes, however, since reassembly takes so long on this scenario, the client gives an error "Connection Timeout"

    A possible solution to this could be the Poll Job Architecture we have.
    The client side code is ready (in a branch), however the server side code for SFTP is not done/planned currently.

  2. dragotin commented on Oct 1, 2014

    @dragotin
    Contributor

    Another solution would be that the server assembles the file on the fly rather than after receiving the final part.

  3. dragotin commented on Oct 3, 2014

    @dragotin
    Contributor

    I think we can implement the poll url for the next major version. @MTRichards ?
    @DeepDiver1975

  4. dragotin commented on Oct 10, 2014

    @dragotin
    Contributor

    Here is what I find in the logfile:

    10-01 09:17:56:893 csync_update: Update detection for local replica took 0.03 seconds walking 11 files.
    10-01 09:17:56:893 oc_module: opendir method called on owncloud://192.168.1.105/owncloud605/remote.php/webdav/SFTP
    10-01 09:17:56:894 oc_module: * scheme owncloud
    10-01 09:17:56:894 oc_module: * host 192.168.1.105
    10-01 09:17:56:895 oc_module: * port 0
    10-01 09:17:56:895 oc_module: * path /owncloud605/remote.php/webdav/SFTP
    10-01 09:17:56:896 oc_module: * user 
    10-01 09:17:56:896 oc_module: Timeout set to 300 seconds
    10-01 09:17:56:896 oc_module: No proxy configured.
    ...
    10-01 09:22:56:929 oc_module: Neon error code was 6
    10-01 09:22:56:929 oc_module: Neon error code was 6
    10-01 09:22:56:929 oc_module: WRN: propfind named failed with 6, request error: Could not read status line: connection timed out
    10-01 09:22:56:929 oc_module: Errno set to 10007
    10-01 09:22:56:929 csync_ftw: opendir failed for owncloud://192.168.1.105/owncloud605/remote.php/webdav/SFTP - errno 10007
    10-01 09:22:56:930 syncengine.cpp:414  #### ERROR during  csync_update :  "A network connection timeout happend. Could not read status line: connection timed out" 
    10-01 09:22:56:931 syncengine.cpp:678 CSync run took  300077 
    

    That means that the PROPGET request on the SFTP folder does not respond within 5 minutes. That should be investigated on server side please.

  5. dragotin commented on Nov 27, 2014

    @dragotin
    Contributor

    This needs to be postponed until we have a decision on the Async PUT, CC @karlitschek @craigpg

  6. dragotin commented on Feb 17, 2015

    @dragotin
    Contributor

    Closing this as this is nothing that can now be fixed on the client side. Lets focus on the progress in owncloud/core#12097 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions