Skip to content
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

Replication error: 412 file_exists #835

Closed
kevinkirkup opened this issue Jul 30, 2015 · 1 comment
Closed

Replication error: 412 file_exists #835

kevinkirkup opened this issue Jul 30, 2015 · 1 comment

Comments

@kevinkirkup
Copy link

Replication will fail after attempting to update an existing record from the database. Error 412 - file_exists. Seems to occur intermittently. This doesn't seem to happen when adding a new document.
SDK 1.1.0

Completely likely that I'm doing something incorrectly here.
Ignoring it doesn't seem to cause any problems though.

Trace Log

23:29:51.033‖ SyncVerbose: CBL_Pusher[https://some.server.com/some-database/]: Sending (
    "{051c0f4cc011b617409d8401e416fe59 #4-a1767ad7204c2a116ea39d00d660cbeb}"
)
23:29:51.034‖ SyncVerbose: CBL_Pusher[https://some.server.com/some-database/]: postProgressChanged (0/1, active=1 (batch=0, net=1), online=1)
23:29:51.034‖ SyncVerbose: CBL_Pusher[https://some.server.com/some-database/]: POST _bulk_docs
23:29:51.034‖ RemoteRequest: CBLRemoteJSONRequest[POST https://some.server.com/some-database/_bulk_docs]: Starting...
23:29:51.034| Sync: CBLReplication[to https://some.server.com/some-database/]: active, progress = 0 / 1, err: (null)
PUSH SYNC progress: 0.00
23:29:51.063‖ RemoteRequest: CBLRemoteJSONRequest[POST https://some.server.com/some-database/_bulk_docs]: Got response, status 412
23:29:51.063‖ CBLRemoteJSONRequest[POST https://some.server.com/some-database/_bulk_docs]: Got error Error Domain=CBLHTTP Code=412 "412 file_exists" UserInfo={NSURL=https://some.server.com/some-database/_bulk_docs, NSLocalizedFailureReason=file_exists, NSLocalizedDescription=412 file_exists}
23:29:51.064‖ Sync: CBL_Pusher[https://some.server.com/some-database/] Progress: set error = 412 file_exists
23:29:51.064‖ Sync: CBL_Pusher[https://some.server.com/some-database/] STOPPING...
23:29:51.064‖ Sync: Stopping 0 remote requests
23:29:51.064‖ Sync: CBL_Pusher[https://some.server.com/some-database/] Progress: 1 / 1
23:29:51.064‖ SyncVerbose: CBL_Pusher[https://some.server.com/some-database/]: postProgressChanged (1/1, active=1 (batch=0, net=1), online=1)
23:29:51.064‖ Sync: CBL_Pusher[https://some.server.com/some-database/] Progress: set active = 0
23:29:51.064‖ SyncVerbose: CBL_Pusher[https://some.server.com/some-database/]: postProgressChanged (1/1, active=0 (batch=0, net=0), online=1)
23:29:51.078‖ Sync: CBL_Pusher[https://some.server.com/some-database/] STOPPED
23:29:51.078‖ Replication: CBL_Pusher[https://some.server.com/some-database/] took 8.118 sec; error=Error Domain=CBLHTTP Code=412 "412 file_exists" UserInfo={NSURL=https://some.server.com/some-database/_bulk_docs, NSLocalizedFailureReason=file_exists, NSLocalizedDescription=412 file_exists}
23:29:51.078| Sync: CBLReplication[to https://some.server.com/some-database/]: stopped, progress = 1 / 1, err: 412 file_exists
Pull replication STOPPED
Last Error: Optional(Error Domain=CBLHTTP Code=412 "412 file_exists" UserInfo={NSURL=https://some.server.com/some-database/_bulk_docs, NSLocalizedFailureReason=file_exists, NSLocalizedDescription=412 file_exists})
@kevinkirkup kevinkirkup changed the title CouchDB utc_random UUID configuration causes Replication error: 412 file_exists Replication error: 412 file_exists Jul 30, 2015
@pasin
Copy link
Contributor

pasin commented Jul 30, 2015

I believed this is the same issue as #817 that was fixed in ef0dbd5. The fixed was merged into the master branch and most likely will be in v1.1.1. Meanwhile, could you please try to build the binary from the master branch and try?

I'm closing the issue now, and if you think it's a different issue, we could reopen it. Thanks!

@pasin pasin closed this as completed Jul 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants