Skip to content

TUS uploads can get permanently stuck after failed resume; stale uploadinfo is not reset since 3.0 #898

Closed

Description

@zerox80

Since 3.0, large Windows batch uploads (~20GB, many files) become unreliable/stuck. Before 3.0 this worked.

Suspected regression:

  • Enable http2 support by default #333 enabled HTTP/2 by default.
  • Account starts with _http2Supported=true.
  • Folder::loadSyncOptions() returns 20 network jobs for HTTP/2.
  • OwncloudPropagator::maximumActiveTransferJob() now uses std::max(3, ceil(parallelJobs/2)), which allows 10 active transfer jobs with HTTP/2 instead of capping at 3.
  • Backend advertises TUS creation-with-upload with default 10MB max chunk size.
  • Remove unused code from UploadInfo #637 removed repeated upload error reset logic for UploadInfo/TUS.

Repro:

  1. Windows client 3.0.
  2. OpenCloud backend with default TUS upload protocol.
  3. Drop ~20GB/many files into sync folder.
  4. Observe upload timeouts/stuck/retries/incomplete uploads.
  5. Retest with OPENCLOUD_HTTP2_DISABLED=1 or with transfer concurrency capped at 3.

Expected:
Large batch upload eventually completes.

Actual:
Uploads become unreliable/stuck after 3.0.

@guruz @dragotin

Activity

  1. zerox80 commented on May 9, 2026

    @zerox80
    SponsorContributorAuthor

    The issue is not only that uploads fail; after failure the client appears to get stuck permanently. It does not retry from a clean state.

    Suspected root cause:

    • TUS upload info is persisted in the sync journal.
    • On the next sync, PropagateUploadFileTUS::doStartUpload() reuses the persisted UploadInfo URL and starts with a HEAD request.
    • If that persisted TUS location is stale/broken, commonErrorHandling() aborts the upload.
    • The failed UploadInfo is not cleared in that error path.
    • PR Remove unused code from UploadInfo #637 removed checkResettingErrors() and UploadInfo::_errorCount, so repeated failures no longer reset the saved upload state.
    • PR Don't persist invalid upload info #638 only avoids persisting invalid upload info without a location, but does not handle stale/broken locations that were already persisted.
  2. changed the title [-]Windows: large batch uploads regress after 3.0 with HTTP/2/TUS, likely due to excessive parallel transfers[/-] [+]TUS uploads can get permanently stuck after failed resume; stale uploadinfo is not reset since 3.0[/+] on May 9, 2026
  3. guruz commented on Jun 2, 2026

    @guruz
    Contributor

    If that persisted TUS location is stale/broken, commonErrorHandling() aborts the upload.

    You mean server side?

    Do you have any more info which error is shown in client?

  4. guruz commented on Jun 2, 2026

    @guruz
    Contributor

    Retest with OPENCLOUD_HTTP2_DISABLED=1 or with transfer concurrency capped at 3.

    Are you saying this leads it to be stale on server side or?

    Would this also mean one needs files with multiple chunks to get to reproduce this?

  5. zerox80 commented on Jun 4, 2026

    @zerox80
    SponsorContributorAuthor

    Retest with OPENCLOUD_HTTP2_DISABLED=1 or with transfer concurrency capped at 3.

    Are you saying this leads it to be stale on server side or?

    Would this also mean one needs files with multiple chunks to get to reproduce this?

    I think the HTTP2 changes are just too much, i guess HTTP1 logic hasn't been touched in 3.0.

  6. zerox80 commented on Jun 4, 2026

    @zerox80
    SponsorContributorAuthor

    If that persisted TUS location is stale/broken, commonErrorHandling() aborts the upload.

    You mean server side?

    Do you have any more info which error is shown in client?

    Not sure - because it works good for other Clients. I tried uploading lot of stuff in my Cloud, couldn't reproduce the error anymore. Maybe its a very special edge-case, where it is just not stable for different scenarios. (Example: if you run a VPS, u share the Compute power, if sometimes a server runs heavy tasks u can get throttled - maybe then it could cause such errors?, so that's what i mean, maybe it is somehow fixed now, maybe it is just a special case which isn't very easy to reproduce.)

    The issue is more, that the Client either doesn't show anything OR force sync won't fix a broken state. That issue was when the 3.0 got stable released i think, some months ago. I tried uploadign stuff yesterday, and it worked fine. Those files were my Backups before i resetted my Computers, so it is a kinda heavy upload task.

  7. github-actions commented on Jul 5, 2026

    @github-actions

    This issue was marked stale because it has been open for 30 days with no activity. Remove the stale label or comment or this will be closed in 7 days.

  8. github-actions commented on Jul 13, 2026

    @github-actions

    The issue was marked as stale for 7 days and closed automatically.

  9. added a commit that references this issue on Jul 22, 2026
    da297ae
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