Skip to content

Sync client stops syncing when remote share not available #9376

Closed

Description

@PVince81

Steps:

  1. Setup "localserver" and "remoteserver".
  2. On "localserver" mount a public share from "remoteserver" as "test".
  3. Start sync client for "localserver", let it download the folder
  4. On "remoteserver", enable maintenance mode
  5. Wait for sync client

Expected result

Sync client syncs other folders and ignored "test"

Actual result

Sync client stops because it believes that the whole server is not available.

The issue is that "Storage is not available" is returned as 503.
Maybe we should return 403 for that folder instead.

@icewind1991 please have a look

CC @ogoffart @dragotin @schiesbn

Activity

  1. PVince81 commented on Jul 2, 2014

    @PVince81
    ContributorAuthor

    Setting to OC 7 CE, follow up from #9311

  2. ogoffart commented on Jul 2, 2014

    @ogoffart

    The owncloud client do not support partial sync yet.
    The server is doing the right thing returning a 503.
    The client will ahve to be fixed to take it into account.

  3. PVince81 commented on Jul 2, 2014

    @PVince81
    ContributorAuthor

    Okay fine. Just tried with 403 and it also aborted the sync with a fatal error.

    How is it going to differentiate between a "full server not available" and "storage not available" ?
    One idea is that if the call is directly on a subfolder it could interpret it as "storage not available" and then check whether "status.php" also returns 503.

    Another idea is to parse the error message...

  4. PVince81 commented on Jul 2, 2014

    @PVince81
    ContributorAuthor

    I raised it as owncloud/client#1923

    Let's keep this core ticket open in case we need changes in the message / flags / headers.

  5. ogoffart commented on Jul 2, 2014

    @ogoffart

    How is it going to differentiate between a "full server not available" and "storage not available" ?

    If we get 503 on status.php or on the root directory, then the full server is not available.
    I don't think there is the need to differentiate more than that.

  6. PVince81 commented on Jul 2, 2014

    @PVince81
    ContributorAuthor

    Ok, makes sense.
    Then I'll close this now.
    If you need anything else please reopen or write another issue 😄

  7. locked as resolved and limited conversation to collaborators on Aug 17, 2019
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