Hello Bsoko,
On Jul 14, 2008, at 15:57, Bosko Milekic wrote:
# Exception raised:
{"error":"EXIT","reason":"{{badmatch,{error,econnrefused}},\n
[{couch_rep,do_http_request,3},\n {couch_rep,open_doc,3},\n
{couch_rep,replicate,3},\n {couch_httpd,handle_replicate_request,
2},\n
{couch_httpd,handle_request,2},\n {mochiweb_http,headers,4},\n
{proc_lib,init_p,5}]}"}
(this running the suite from Firefox2, seems to be easily
reproducable)
When running the test suite from Safari, I get seemingly much more
random failures. For instance, this last run I have:
multiple_rows failing with:
Exception raised: {"error":"conflict","reason":"Update
conflict","line":54,"sourceURL":"http://localhost:5984/_utils/script/couch.js?0.8.0a
"}
design_docs failing with:
Exception raised: {"error":"conflict","reason":"Update
conflict","line":77,"sourceURL":"http://localhost:5984/_utils/script/couch.js?0.8.0a
"}
This seems to be a mochiweb concurrency issue. we are currently
looking
into this. These are really quite strange, if you can find out more
about
them, we'd be glad for every hint.
Firefox usually doesn't show these errors because it looks like it
is not
sending requests as fast as Safari.
replication failing with:
Exception raised:
{"error":"EXIT","reason":"{{badmatch,{error,econnrefused}},\n
[{couch_rep,do_http_request,3},\n {couch_rep,open_doc,3},\n
{couch_rep,replicate,3},\n
{couch_httpd,handle_replicate_request,2},\n
{couch_httpd,handle_request,2},\n {mochiweb_http,headers,4},\n
{proc_lib,init_p,5}]}","line":200,"sourceURL":"http://localhost:5984/_utils/script/couch.js?0.8.0a
"}
This is just as Johan says: localhost resolves to :::1 first on OS
X and
since CouchDB only listens on IPv4 addresses, the connection fails.
Try accessing CouchDB through 127.0.0.1 or disable IPv6 to get that
working.