Skip to content

[Bug]: External Storage marked as unavailable for a short period of time after a file is uploaded #53409

Open
@ffrouin

Description

@ffrouin

⚠️ This issue respects the following points: ⚠️

Bug description

Hello,

I figured out, upgrading a nextcloud server from 30.0.1 to the latest release something broke with an external storage module. After investigations, it looks to be related to changes appearing in 30.0.4 release (lib/private/Files/SetupManager.php). If I do restore the 30.0.2 release of this file with the latest release, it works back for me.

Issue looks to be related to the Availability object class involved in the process to check external storage availability. After uploading a file on the external storage, the storage is marked as unavailable for less than a minute. The file is correctly uploaded., we can see when external storage is resumed.

The external backend we do use is a private webdav server working fine with rclone or cadaver dav clients as examples. Issue looks to be related to webdav calls between nextcloud server and the webdav external storage. We probably miss something with our webdav service implementation. Could someone help me to identify what's going wrong between nextcloud and our webdav external storage ?

Best Regards,
Freddy.

Steps to reproduce

As our external storage is a private technology, there is no way for the public to actually replay this issue.

Expected behavior

After uploading a file on the external storage, the storage is marked as unavailable for less than a minute. The file is correctly uploaded., we can see when external storage is resumed.

Nextcloud Server version

31

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Apache (supported)

Database engine version

MySQL

Is this bug present after an update or on a fresh install?

Updated from a MINOR version 30.0.2 to 30.0.4 to enable the issue.

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

2025-06-05T11:47:29.493059+02:00 nextcloud-2 nextcloud[52306]: {"reqId":"fsAv2sm6t5P5P7oRbgVU","level":3,"time":"2025-06-05T09:47:29+00:00","remoteAddr":"192.168.248.1","user":"freddy","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/files/freddy/CIDgravitygateway/","message":"{\"Exception\":\"Sabre\\\\DAV\\\\Exception\\\\ServiceUnavailable\",\"Message\":\"Storage with mount id 1 is not available\",\"Code\":0,\"Trace\":[

Additional info

No response

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