Comment 3 for bug 523327

Revision history for this message
C de-Avillez (hggdh2) wrote : Re: bughugger crashed with AttributeError in __init__()

ah, and I found my problem: /etc/hosts had 127.0.1.1 localhost. It should have been 127.0.0.1 instead.

Of course, there is still a mismatch: if couchdb expects to connect to localhost, it also should open the listener on the associated IP address, not hard-code it to 127.0.0.1.

So:

(1) python-httplib2 returned an AttributeError instead of a 'connection refused'; the patch above seems to fix it.
(2) couchdb seems to open a listener on 127.0.0.1:40221, but provides the URL as "localhost:40221". usually localhost *is* 127.0.0.1,but not always.

Not sure what to do now, though. I feel this should be documented somewhere, but I do not know where.