Skip to content

Properly handle unavailable external storages #11792

Closed

Description

@PVince81

An unavailable external storage is whenever a storage has already been mounted once, the mount point exists, but one of the following occurred:

  1. Remote credentials/password changed
  2. Temporary network failure, remote not reachable

So far, not all the backends properly support this and some can have weird behaviors.
The only one that seems to work correctly is the "ownCloud" backend (and server to server sharing).

Here are the backends to verify and/or raise tickets for:

We need to make sure that every backend will throw a \OCP\Files\StorageNotAvailableException whenever one of the causes mentioned above appear.

@MTRichards @craigpg @karlitschek @icewind1991 @jvillafanez @jmaciasportela

Activity

  1. PVince81 commented on Oct 27, 2014

    @PVince81
    ContributorAuthor

    The sync client also needs to be able to react to 503, this was raised here: owncloud/client#1923

  2. PVince81 commented on Nov 6, 2014

    @PVince81
    ContributorAuthor

    Note: it is the responsibility of the Storage class to decide whenever the remote error needs to lead to StorageNotAvailableException or another exception.

  3. added this to the milestone on Nov 6, 2014
  4. PVince81 commented on Nov 7, 2014

    @PVince81
    ContributorAuthor

    @icewind1991 can you help with this ?

  5. PVince81 commented on Nov 7, 2014

    @PVince81
    ContributorAuthor

    Goal is that when an ext storage isn't available WebDAV and Web UI still work instead of throwing 500.
    Making the ext storages all raise \OCP\Files\StorageNotAvailableException when appropriate should make it work.
    Note that #11992 #11992 needs to be merged first for it to work with WebDAV.

  6. modified the milestones: , on Nov 7, 2014
  7. icewind1991 commented on Nov 7, 2014

    @icewind1991
    Contributor

    WebDAV should throw the correct exceptions already
    FTP I dont think is doable with the current backend (based on the builtin stream wrapper)
    SMB might be doable with the currently backend but probably a lot of work, the new SMB backend will make it easy.
    SFT, Amazon, Swift, Google Drive and Dropbox should be doable as long as their libraries expose the correct exceptions

  8. PVince81 commented on Nov 7, 2014

    @PVince81
    ContributorAuthor

    Thanks for the info.
    If needed we can split the task in separate tickets and do this progressively.

    From what I saw with Dropbox, if I simulate a missing "api.dropbox.com" it will throw a "NotFound" exception which might or might not be the same as a file not found exception. This means potentially extra logic to properly detect such cases.

  9. modified the milestones: , 2014-sprint-07 on Nov 10, 2014
  10. modified the milestones: , on Jan 7, 2015
  11. 24 remaining items

  12. ownclouders commented on Jan 13, 2018

    @ownclouders
    Contributor

    Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.

    (This is an automated comment from GitMate.io.)

  13. ownclouders commented on Feb 23, 2018

    @ownclouders
    Contributor

    Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.

    (This is an automated comment from GitMate.io.)

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions