Skip to content

[QA] Client does not resume download from ocis after restart #1026

Closed

Description

@jnweiger

Client 2.7.2 on Linux connected to ocis-1.0.0-rc6 deployed via hetzner-deploy/make_ocis_eos_compose_test.sh

  • connect client to server as user moss, wait for initial sync
  • throttle the client bandwidth to 100kb download speed.
  • add an 11 MB file to the server (in a different way, not through this client)
  • the client starts downloading.
  • when half of the file is downloaded, (after ca 1min) quit the client and restart the client.
  • the client does not continue where it left off. The half downloaded file gets truncated.

image

Expected behaviour: Using TUS, the client picks up the left-over temporary file and continues at its end.

Reported from CI a long time ago

found when starting to run API tests with OCIS

try to download only a range of a file, e.g.: curl http://localhost:9140/remote.php/webdav/home/welcome.txt -u einstein:relativity -H "Range: bytes=51-77"
Expected behaviour:

only a range of the file should be downloaded
Actual behaviour:

the complete file is downloaded

Activity

  1. michaelstingl commented on Dec 4, 2020

    @michaelstingl
  2. TheOneRing commented on Dec 4, 2020

    @TheOneRing
  3. TheOneRing commented on Dec 4, 2020

    @TheOneRing
    Contributor

    Wait this is about downloads....
    Downloads are unrelated to tus.
    Please compare the behaviour to oc10 if its ocis only this is not a client bug.

  4. changed the title [-][QA] Client does not resume download after restart[/-] [+][QA] Client does not resume download from ocis after restart[/+] on Dec 4, 2020
  5. jnweiger commented on Dec 4, 2020

    @jnweiger
    ContributorAuthor

    Tested desktop client 2.7.2 on Linux against on 10.6.0-rc1

    Place an 11MB file on the server, wait until the download made some progress, then interrupt via

    • kill with CTRL-C; restart client
    • quit from the GUI; restart client
    • network outage, client prints "Connection Timeout", reconnect network, wait.
    • pause sync, client prints "Operation canceled"; resume sync
    • Restart sync, client prints "Operation canceled", wait

    In all cases, a temp file of the form

    -rw-rw-r--   1 testy testy 1772412 Dec  4 14:11 .Polymorphia_for_48_Penderezki.mp3.~5392deec
    

    is left around after the interrupt.
    The file continues to grow after the resume, and is renamed to the final name eventually. OK

    Seems we have to involve the ocis team here!

  6. TheOneRing commented on Dec 4, 2020

    @TheOneRing
    Contributor
  7. michaelstingl commented on Dec 4, 2020

    @michaelstingl
    Contributor

    Seems we have to involve the ocis team here!

    I think desktop uses range requests or some offset to continue with the download. Not sure if they're already supported in oCIS. @jnweiger did you capture the logs after client restart. HTTP logging should show you the exact request the client performs here.

  8. butonic commented on Dec 4, 2020

    @butonic
    Contributor

    range is not supported yet ... we could add it tho the next sprint

  9. michaelstingl commented on Dec 4, 2020

    @michaelstingl
    Contributor

    range is not supported yet ... we could add it tho the next sprint

    Would be nice to have, otherwise a capability that announces this feature would be useful?

  10. micbar commented on Dec 4, 2020

    @micbar
    Contributor

    ok. Unrelated to TUS but related to ocis

    If this is a server issue, i would move it to ocis and add to the sprint on monday.

  11. TheOneRing commented on Dec 4, 2020

    @TheOneRing
    Contributor

    ok. Unrelated to TUS but related to ocis

    If this is a server issue, i would move it to ocis and add to the sprint on monday.

    Sounds perfect

  12. jnweiger commented on Dec 4, 2020

    @jnweiger
    ContributorAuthor

    8280-logs.zip
    Logs from various interrupt/resume tests

  13. transferred this issue fromowncloud/clienton Dec 4, 2020
  14. 6 remaining items

  15. individual-it commented on Dec 22, 2020

    @individual-it
    Member
  16. added
    Category:Technical
    and removed on Jan 13, 2021
  17. added
    Priority:p2-high
    on May 30, 2022
  18. C0rby commented on Jun 2, 2022

    @C0rby
    Contributor

    This seems to be working now. Range requests have been implemented 11 months ago.
    Range requests via curl and resumed download in the client work. 👍

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

    Category:TechnicalPriority:p2-highPriority:p3-mediumType:Bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions