-
I want to create a 3-server couchdb cluster on provisioned instances running docker, but I can't get the nodes to connect. Here's my code for couchdb setup:
And here's the output:
The required ports are open:
It's ansible code, but that isn't relevant here, since the shell commands throw the same error even when I run them on the terminal. Adding the nodes appends their address to the 'cluster nodes' list, but not the 'all nodes' list, and the same time out error is thrown when I try to finish the cluster setup. I am guessing that it's got something to do with the environment variables. I did set the erlang cookie and the shared secret, but the vm.args file did not have a -setcookie command in it. It had the proper name (couchdb@aws_address), but the cookie wasn't in it. and There was no .erlang.cookie file in the /opt/couchdb folder either, but I am not sure if that's the reason for the failure, since it was set as an environment variable. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Nvm, I hadn't published ports 4369 and 9100-9200 from docker to host. Also had to set the the same hashed password on all nodes. |
Beta Was this translation helpful? Give feedback.
Nvm, I hadn't published ports 4369 and 9100-9200 from docker to host. Also had to set the the same hashed password on all nodes.