-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
precondition failed (412) from the server #7479
Comments
Is that some kind of server timeout ? CC @dragotin |
Unfortunately nothing more in the server logs. Could this be a result of aborted db connections? The php timeout is set to 600s so that's certainly not it… kuba On Feb 28, 2014, at 6:27 PM, Vincent Petry [email protected] wrote:
|
On update of already existing files, the client sends the ETag it expects to update as a If-Match Header, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.24 |
OK, that makes sense because I see this primarily when the same user is updating the files from two different clients at the same time. If that's normal operation mode then I think it should not be made visible to the user as error. Because it will make people think that something is wrong when it is not. kuba On Mar 5, 2014, at 11:36 AM, dragotin [email protected] wrote:
|
@moscicki Yeah, I agree. I would lower the level to debug for that message. It is not really an error. |
The PR #8488 moves the "precondition failed" log level to DEBUG. |
Hmmm, suddendly I'm having this repeatedly. After some time the sync client gives up so I force resync, but still get precondition failed. This is sync client 1.6.0 beta2 against OC 6.0.3:
It's my todo list file which I save very often. I'll see if I can debug it as long as I can reproduce the issue. |
It is stuck on preconditon failed. I have only one sync client running now. |
I tried changing the local file, but the error doesn't go away. @dragotin for the rescue ? |
I'll check what etag is in the remote DB and sync client DB. |
Server side:
Client side:
It seems the etag is not the same (assuming that md5 is the etag on the client side). I suppose I managed to get stuck in this situation because my laptop lost connectivity before. |
I give up. I just moved the file out of the sync folder, let it delete it from the server, then put it back. I think the sync client should probably at some point provide a way to "escape" from this kind of situation. |
Hi, Just to follow up... what should happen next? Should this be converted into a test-case and should we attempt to fix the client? I think this is clearly a problem that a client should be able to handle a bit better than now... Regarding storing the local etag I think there is a category of issues related to this, one of which I reported here: owncloud/client#1738 kuba |
I don't see what we can do about the client in this situation. Is anybody able to reproduce this situation and see which etag comes in the reply of a PUT request from the client? |
Hello everybody , i have the case with the last version client , and an OC7 Server . |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hello,
Under heavier load (with https) I am getting precondition failed (412) from the backend server (both proxy and backends are apache):
proxy server access log:
backend server access log:
client log:
02-28 10:13:50:491 void Mirall::CSyncThread::transferCompleted(const Mirall::SyncFileItem&) "x27.dat" 2 "Precondition failed"
The text was updated successfully, but these errors were encountered: