You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Matt Adams <ma...@radicaldynamic.com> on 2011/04/01 07:29:34 UTC
PUT new database sometimes returns 412 (database does not already
exist)
Folks:
I am running into a situation where a PUT request to create a new
database fails intermittently with a 412 vs the 201 that is expected.
The databases in question do not exist. Excerpt from couch.log follows:
[Fri, 01 Apr 2011 01:38:21 GMT] [info] [<0.22507.62>] 127.0.0.1 - -
'PUT' /db_697395af0bbde88013484fb53a01e04e/? 201
[Fri, 01 Apr 2011 01:38:21 GMT] [info] [<0.22508.62>] 127.0.0.1 - -
'PUT'
/db_697395af0bbde88013484fb53a01e04e/_design/FormDefinitionDocument? 201
[Fri, 01 Apr 2011 01:38:21 GMT] [info] [<0.22509.62>] 127.0.0.1 - -
'PUT' /db_697395af0bbde88013484fb53a01e04e/_design/FormInstanceDocument? 201
[Fri, 01 Apr 2011 01:38:21 GMT] [info] [<0.22514.62>] 127.0.0.1 - -
'PUT' /db_697395af0bbde88013484fb53a01e04e/_security? 200
...
[Fri, 01 Apr 2011 03:15:00 GMT] [info] [<0.28690.62>] 127.0.0.1 - -
'PUT' /db_697395af0bbde88013484fb53a02266f/? 412
[Fri, 01 Apr 2011 03:15:00 GMT] [info] [<0.28691.62>] 127.0.0.1 - -
'PUT'
/db_697395af0bbde88013484fb53a02266f/_design/FormDefinitionDocument? 404
[Fri, 01 Apr 2011 03:15:00 GMT] [info] [<0.28693.62>] 127.0.0.1 - -
'PUT' /db_697395af0bbde88013484fb53a02266f/_security? 404
[Fri, 01 Apr 2011 03:15:00 GMT] [info] [<0.28692.62>] 127.0.0.1 - -
'PUT' /db_697395af0bbde88013484fb53a02266f/_design/FormInstanceDocument? 404
Has anyone else experienced this behaviour? I am running CouchDB 1.0.2
compiled from source (no modifications) with Erlang R14B01 running on
Debian Linux 32bit.
In the meantime I will be trying to reproduce this successfully and get
more out of Couch and the process that is controlling this.
Any suggestions or hints would be greatly appreciated.
Thanks,
Matt
--
Matt Adams
Radical Dynamic
www.radicaldynamic.com