You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
If a file download fails with 503, don't abort the whole sync #5088
The definition of 503 is: If the 503 is returned to a PROPFIND on root, it means that the server is in maintenance, and the whole sync goes offline.
If the 503 is returned on any operation on an individual file or (more imnportant) folder, it means that the folder is not available current, and is IGNORED. That behavior is important for external storages that can go away because of their own problems. The server will return 503 for them in that case, to avoid the client remove all their contents in the dir.
Mmh, looks like the client needs more careful backoff then. The other ask for 503s was "please give the server some breathing room when you see it" (for the overload or maintenance case). I guess we could keep going after the first and only abort when a certain number of errors have accumulated.
@moscicki If I understand you correctly you're using 503s on a resource level and they can be persistent? Is this related to the overloading with "503 storage unavailable"?
I guess we could keep going after the first and only abort when a certain number of errors have accumulated.
But what's the number?
Indeed maybe it would be better for @moscicki to mark the whole directory as "503 storage unavailable" as this won't abort the sync?
Cannot do that. We get 503 when a file to be downloaded is "busy" (similar
to "locked"). A problem is that sometime files may stay a long time in such
state.
@butonic@DeepDiver1975@PVince81@ogoffart Didn't we somewhere say we could support sending a Retry-After header (optional) on 503 GET in case we think the file will come back up soon and should not abort the whole sync?
"Undefined variable: http_response_header" is an error message the server sends. I don't know why it's intermittent.
A 503 during discovery should mean "ignore that folder" and the sync should continue with other files. A 503 during propagation is normally a normal error where other files will be synced after. The exception is if the 503 reply contains ">Sabre\DAV\Exception\ServiceUnavailable<" because then we assume maintenance mode has been switched on and abort the sync.
@HanaGemela I've added a PR for an unreliable workaround in 2.6.0 - a reliable fix will need to be deferred to 2.6.1. (it currently relies on the s:message string, which is a user-facing translatable string; a correct solution would trigger a follow-up request to status.php to check for maintenance mode)
Activity
dragotin commentedon Jul 28, 2016
Where does the 503 come from?
The definition of 503 is: If the 503 is returned to a PROPFIND on root, it means that the server is in maintenance, and the whole sync goes offline.
If the 503 is returned on any operation on an individual file or (more imnportant) folder, it means that the folder is not available current, and is IGNORED. That behavior is important for external storages that can go away because of their own problems. The server will return 503 for them in that case, to avoid the client remove all their contents in the dir.
guruz commentedon Jul 28, 2016
@dragotin See bug subject, file download :-)
guruz commentedon Sep 26, 2016
Related #5187
moscicki commentedon Nov 14, 2018
Yes, we also see this and it affects our production services. One GET 503 will block the entire synchronization for all unrelated files as well.
guruz commentedon Nov 16, 2018
@moscicki (semi-related) How long are your files usually 503?
ckamm commentedon Nov 21, 2018
Mmh, looks like the client needs more careful backoff then. The other ask for 503s was "please give the server some breathing room when you see it" (for the overload or maintenance case). I guess we could keep going after the first and only abort when a certain number of errors have accumulated.
@moscicki If I understand you correctly you're using 503s on a resource level and they can be persistent? Is this related to the overloading with "503 storage unavailable"?
guruz commentedon Nov 21, 2018
But what's the number?
Indeed maybe it would be better for @moscicki to mark the whole directory as "503 storage unavailable" as this won't abort the sync?
moscicki commentedon Nov 21, 2018
guruz commentedon Nov 22, 2018
@butonic @DeepDiver1975 @PVince81 @ogoffart Didn't we somewhere say we could support sending a
Retry-Afterheader (optional) on 503 GET in case we think the file will come back up soon and should not abort the whole sync?20 remaining items
HanaGemela commentedon Aug 6, 2019
@ckamm Great, now I see the error message only once.
Still some issues here:
ckamm commentedon Aug 7, 2019
@HanaGemela
HanaGemela commentedon Aug 7, 2019
@ckamm then it's broken, the sync should continue but it doesn't
ckamm commentedon Aug 7, 2019
@HanaGemela How do you set up the 503 reply for your tests? I need it to reproduce your specific case.
HanaGemela commentedon Aug 7, 2019
@ckamm Start two servers:
docker run -e OWNCLOUD_SHARING_FEDERATION_ALLOW_HTTP_FALLBACK=true -p 8080:8080 owncloud/server
docker run -e OWNCLOUD_SHARING_FEDERATION_ALLOW_HTTP_FALLBACK=true -p 8081:8080 owncloud/server
Then:
ckamm commentedon Aug 12, 2019
Thanks, that helped. An unavilable federated share gets reported as:
but the error handling code assumes this ServiceUnavailable means maintenance mode and considers it a fatal error.
Don't fatal on "Storage temporarily unavailable"
ckamm commentedon Aug 12, 2019
@HanaGemela I've added a PR for an unreliable workaround in 2.6.0 - a reliable fix will need to be deferred to 2.6.1. (it currently relies on the
s:messagestring, which is a user-facing translatable string; a correct solution would trigger a follow-up request to status.php to check for maintenance mode)Don't fatal on "Storage temporarily unavailable"
HanaGemela commentedon Sep 6, 2019
Works as expected on 2.6.0rc1 (build 12411), mac 10.14.6