UI returns "Moved Permanently"

936 views
Skip to first unread message

Barry Kaplan

unread,
Oct 15, 2014, 4:35:47 AM10/15/14
to consu...@googlegroups.com
I don't see anything wrong with the settings. What could cause this?

ubuntu@ip-10-0-16-238:/var/lib/consul/ui$ sudo cat /etc/consul.d/default.json 
{
  "data_dir": "/var/lib/consul",
  "server": true,
  "bootstrap_expect": 3,
  "ui_dir": "/var/lib/consul/ui",
  "client_addr": "0.0.0.0"
}

ubuntu@ip-10-0-16-238:/var/lib/consul/ui$ consul info
WARNING: It is highly recommended to set GOMAXPROCS higher than 1

agent:
check_monitors = 0
check_ttls = 0
checks = 0
services = 0
....

ubuntu@ip-10-0-16-238:/var/lib/consul/ui$ curl localhost:8500/ui
<a href="/ui/">Moved Permanently</a>.



Brian Lalor

unread,
Oct 15, 2014, 6:27:51 AM10/15/14
to Barry Kaplan, consu...@googlegroups.com
On Oct 15, 2014, at 4:35 AM, Barry Kaplan <mem...@gmail.com> wrote:

I don't see anything wrong with the settings. What could cause this?

You’re not loading the correct URL and Consul’s helping you out. :-)  curl doesn’t follow redirects by default; add -L.

--
Brian Lalor

Barry Kaplan

unread,
Oct 15, 2014, 6:56:25 AM10/15/14
to consu...@googlegroups.com, mem...@gmail.com
Sorry. I only tried curl after the browser did not work. But thanks, I forgot about the non redirect following. 

When I first tried to use the UI the cluster was not established yet (only one server of 3 running). Now that the cluster is up the UI works. 

Is this expected? That the UI only works once the cluster is up?
Reply all
Reply to author
Forward
0 new messages