Reputation: 325
I'm trying to deploy a CockroachDB cluster on Digital Ocean. I followed the steps listed in the tutorial here https://www.digitalocean.com/community/tutorials/how-to-deploy-cockroachdb-on-a-three-node-cluster-on-ubuntu-16-04
I can see cockroachdb running on the host but I'm unable to access the Web Admin UI.
I'm having the same issue when accessing it through an application.
This is the start command and response. Note: I enable Private Networking when creating the droplets, could this be because of that?
roach@cockroach-01:~$ cockroach start --insecure --background --advertise-host=10.132.10.114
*
* WARNING: RUNNING IN INSECURE MODE!
*
* - Your cluster is open for any client that can access <all your IP addresses>.
* - Any user, even root, can log in without providing a password.
* - Any user, connecting as root, can read or write any data in your cluster.
* - There is no network encryption nor authentication, and thus no confidentiality.
*
* Check out how to secure your cluster: https://www.cockroachlabs.com/docs/stable/secure-a-cluster.html
*
CockroachDB node starting at 2017-11-10 22:59:07.153981296 +0000 UTC (took 0.4s)
build: CCL v1.1.2 @ 2017/11/02 19:32:03 (go1.8.3)
admin: http://cockroach-01:8080
sql: postgresql://[email protected]:26257?application_name=cockroach&sslmode=disable
logs: /home/roach/cockroach-data/logs
store[0]: path=/home/roach/cockroach-data
status: initialized new cluster
clusterID: 77dea0f4-d2c1-49c3-bfe9-8686a6084603
nodeID: 1
Upvotes: 0
Views: 1171
Reputation: 86
I had this same thing happen to me on DigitalOcean. Try setting the -http-host flag when you start up the node to the public IP address for your DigitalOcean instance.
Upvotes: 0
Reputation: 21035
This is most likely a firewall issue. Can you make sure to have ports 26257 (sql port) and 8080 (admin UI) port allowed from your IP address.
Checking the actual node may be a good first step. To make sure the admin UI is running, could you try to ssh into your droplet and run:
$ curl -k https://localhost:8080/health
This may be http
if you're running with --insecure
, and it may be your internal IP if you are not listening on all interfaces (you can find your IP with ifconfig
)
It is also possible that things have changed a bit, the docs you point to were written back when cockroach was still in beta. You can find up-to-date deployment instructions on our website: https://www.cockroachlabs.com/docs/stable/deploy-cockroachdb-on-digital-ocean.html
Upvotes: 1