dweremeichik commented on issue #69: "Empty reply from server" with local.ini 
file without bind_address specified
URL: https://github.com/apache/couchdb-docker/issues/69#issuecomment-399724933
 
 
   I also ran into this wall for multiple hours...
   I ended up having to set the following in my custom ini file to be able to 
access the db.
   ```
   [chttpd]
   bind_address = 0.0.0.0
   ```
   
   Steps to reproduce:
   
   1. Put an empty file at /opt/couchdb/etc/local.d/10-test.ini
   
   1. Execute `docker run --name my-couchdb -v 
/opt/couchdb/etc/local.d:/opt/couchdb/etc/local.d -p 5984:5984 -d couchdb`
   
   1. Execute `curl http://127.0.0.1:5984` the result will be `curl: (52) Empty 
reply from server`
   
   1. As the above will result in the inability to connect... add the following 
to /opt/couchdb/etc/local.d/10-test.ini 
        [chttpd]
        bind_address = 0.0.0.0
   1. Execute `docker run --name my-couchdb -v 
/opt/couchdb/etc/local.d:/opt/couchdb/etc/local.d -p 5984:5984 -d couchdb` 
again 
   
   1. Execute `curl http://127.0.0.1:5984` the result will be 
`{"couchdb":"Welcome","version":"2.1.1","features":["scheduler"],"vendor":{"name":"The
 Apache Software Foundation"}}`
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to