-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Distinguish 503 Storage not available from 503 Service unavailable #1923
Comments
@ogoffart As discussed also make sure that 503 is never blacklisted as it is supposed to be the temporary answer from the server. |
We shouldn't probably blacklist 5xx bugs at all. Currently we do not very much verify the http error code, see src/libsync/owncloudpropagator.cpp, line 94, it blacklists everything. |
@dragotin I remember some months ago we had the same discussion and @ogoffart and you said that 500 should not be blacklisted because the server might go bonkers on a file and then it would be re-uploaded all the time. @DeepDiver1975 @PVince81 Do you have an opinion on this? |
Can you remind us what the purpose of the blacklist is ? From what I understand it's mostly to avoid retrying the same broken file over and over again and annoy the user with error messages in the popup ? |
This is about client side blacklisting - totally unrelated to our server blacklist. |
The question is if all possible storage backends return a 4xx for those kind of error or a 5xx. |
Reminder: Maybe the update phase of csync must also handle the |
One reason for example is if you connect to a remote ownCloud, SFTP or sharepoint, and the remote password has changed, in which case we also return 503 unavailable. |
There are also discussions about providing an offline mode for storages in the future: owncloud/core#11149 |
If the server could send the directory for which the 503 is valid, we could set it to ignore... maybe. @PVince81 would that be feasible? |
In what way would the it be sent ? Currently in my test case I have a folder "/oc" which returns 503 when you do any operations on it. In what part of the discovery should information be returned ? |
This branch proposes a fix for this problem: https://github.com/owncloud/mirall/tree/fix_service_unavailable |
please keep in mind that due to e.g. upgrade we will respond with 503 at any time - you cannot rely on the resource type you are asking for. the clean solution would be to have dedicated status codes for dedicated situations |
well, 503 on status.php will abort the sync anyway. |
sure - but it can happen during any other sync step as well and you can make no assumption about the reason |
I'm closing this ticket because we handle
correctly now. A upgrade-induced 503 during discovery or up/downloads will lead to a sync failure. I'll make a new ticket to track and discuss that issue. |
See owncloud/core#9376
From the introduction of server to server sharing, it can happen that a specific mount point is not available so any operation on that folder would return "503 Storage not available".
Currently the sync client shuts down itself (gray) and stops syncing, believing that the whole server is down.
@ogoffart suggested this needs to be fixed in a later version of the sync client.
The text was updated successfully, but these errors were encountered: