Consul UI does not show

2.3k Views Asked by At

Running single node Consul (v1.8.4) on Ubuntu 18.04. consul service is up, I had set the ui to be true (default). But when I try access http://192.168.37.128:8500/ui This site can’t be reached 192.168.37.128 took too long to respond.

ui.json

{
"addresses": {
"http": "0.0.0.0"
  }
}

consul.service file:

[Unit] Description=Consul Documentation=https://www.consul.io/ [Service] ExecStart=/usr/bin/consul agent –server –ui –data-dir=/temp/consul –bootstrap-expect=1 –node=vault –bind=–config-dir=/etc/consul.d/ ExecReload=/bin/kill –HUP $MAINPID LimitNOFILE=65536 [Install] WantedBy=multi-user.target

systemctl status consul

    ● consul.service - Consul
       Loaded: loaded (/etc/systemd/system/consul.service; disabled; vendor preset: enabled)
       Active: active (running) since Sun 2020-10-04 19:19:08 CDT; 50min ago
         Docs: https://www.consul.io/
     Main PID: 9477 (consul)
        Tasks: 9 (limit: 4980)
       CGroup: /system.slice/consul.service
               └─9477 /opt/consul/bin/consul agent -server -ui -data-dir=/temp/consul -bootstrap-expect=1 -node=vault -bind=1
    
agent.server.raft: heartbeat timeout reached, starting election: last-leader=
agent.server.raft: entering candidate state: node="Node at 192.168.37.128:8300 [Candid
agent.server.raft: election won: tally=1                
agent.server.raft: entering leader state: leader="Node at 192.168.37.128:8300 [Leader]
agent.server: cluster leadership acquired               
agent.server: New leader elected: payload=vault         
agent.leader: started routine: routine="federation state anti-entropy"  
agent.leader: started routine: routine="federation state pruning"   
agent.leader: started routine: routine="CA root pruning"        
agent: Synced node info     

            

Shows bind at 192.168.37.128:8300

1

There are 1 best solutions below

0
On

This issue was firewall, had to open firewall on 8500 sudo ufw allow 8500/tcp