Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

error: " couldn't connect to host" #136

Open
ghost opened this issue Nov 27, 2013 · 2 comments
Open

error: " couldn't connect to host" #136

ghost opened this issue Nov 27, 2013 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 27, 2013

Hi everyone,
I'm trying to setup 2 nodes with BigCouch. I read some guides and:

  1. Install Ubuntu 12.04 on 2 VMWare machines (use NAT connection)
  2. Install CouchDB 1.4 & BigCouch
  3. Set FQDN on /etc/hostname on 2 machines (slave2.test.com, slave3.test.com)
  4. Set IP range on /etc/hotsts
    • 192.168.61.128 slave2.test.com slave2
    • 192.168.61.129 slave3.test.com slave3
  5. Edit /opt/bigcouch/etc/vm.args:

Then I try:

  • curl localhost:5984 -> {"couchdb":"Welcome","version":"1.1.1","bigcouch":"0.4.2"}
  • curl localhost:5986 -> {"couchdb":"Welcome","version":"1.1.1"}
  • curl slave2.test.com:5984 ->{"couchdb":"Welcome","version":"1.1.1","bigcouch":"0.4.2"}
  • curl slave2.test.com:5986 -> curl: (7) couldn't connect to host
  • curl -X PUT http://slave2.test.com:5986/nodes/bigcouch@slave3.test.com -d {} -> curl: (7) couldn't connect to host

Can you give some advices to make BigCouch working? Thank you very much.

@wohali
Copy link

wohali commented Nov 27, 2013

First off, the :5986 "backend" interface is only ever available on localhost (127.0.0.1). You'll have to do the curl against http://localhost/ and not the public IP address.

Second, you don't need CouchDB - just BigCouch. BigCouch isn't a CouchDB addon, it's a fork. Uninstall CouchDB and just run BigCouch on your nodes.

@ghost
Copy link
Author

ghost commented Nov 27, 2013

Dear Joan,
thank you for these helpful advances. Now BG 's working well on my virtual machines.

To run BG on local cluster, I need to use:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant