consul agent ui is not starting error must specify data-dir

206 views
Skip to first unread message

Ankit singh

unread,
Jan 4, 2017, 7:32:40 AM1/4/17
to Consul
hello everyone
i am trying to setup consule on my local pc for development .As i am new to it i am following this guide https://www.consul.io/intro/getting-started/ui.html but stuck at web ui  i am trying to run it as mention in it using
consul agent -ui
command but getting error Must specify data directory using -data-dir.when i run command consul agent -data-dir=/tmp/consul then it showing multiple
ip addresses specify one ip address and then again the same error .i am stuck badly please tell how to correct it or is there any complete tutorial for fully
setting up consul for production.please help Thanx in advance.

Lowe Schmidt

unread,
Jan 4, 2017, 8:56:35 AM1/4/17
to consu...@googlegroups.com
Are you running "consul agent -dev -ui" ?

--
Lowe Schmidt | +46 723 867 157

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/consul/issues
IRC: #consul on Freenode
---
You received this message because you are subscribed to the Google Groups "Consul" group.
To unsubscribe from this group and stop receiving emails from it, send an email to consul-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/consul-tool/f765c655-9ec2-4f39-b7e4-389dd131e3ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ankit singh

unread,
Jan 4, 2017, 12:58:00 PM1/4/17
to Consul
yes i tried but i want web gui of consul?
is there any guide which explain full setup for setting consul

Lowe Schmidt

unread,
Jan 5, 2017, 5:59:43 AM1/5/17
to consu...@googlegroups.com
You have to be more specific I think. 

Is this for development or production?

What commands exactly are you running and what is the output?

I just ran the following on my windows machine without an issue.

PS C:\Users\lsc> .\consul.exe agent -dev -ui
==> Starting Consul agent...
==> Starting Consul agent RPC...
==> Consul agent running!
           Version: 'v0.7.2'
         Node name: 'TYR'
        Datacenter: 'dc1'
            Server: true (bootstrap: false)
       Client Addr: 127.0.0.1 (HTTP: 8500, HTTPS: -1, DNS: 8600, RPC: 8400)
      Cluster Addr: 127.0.0.1 (LAN: 8301, WAN: 8302)
    Gossip encrypt: false, RPC-TLS: false, TLS-Incoming: false
             Atlas: <disabled>

==> Log data will now stream in as it occurs:

    2017/01/05 11:57:41 [INFO] raft: Initial configuration (index=1): [{Suffrage:Voter ID:127.0.0.1:8300 Address:127.0.0.1:8300}]
    2017/01/05 11:57:41 [INFO] raft: Node at 127.0.0.1:8300 [Follower] entering Follower state (Leader: "")
    2017/01/05 11:57:41 [INFO] serf: EventMemberJoin: TYR 127.0.0.1
    2017/01/05 11:57:41 [INFO] consul: Adding LAN server TYR (Addr: tcp/127.0.0.1:8300) (DC: dc1)
    2017/01/05 11:57:41 [INFO] serf: EventMemberJoin: TYR.dc1 127.0.0.1
    2017/01/05 11:57:41 [INFO] consul: Adding WAN server TYR.dc1 (Addr: tcp/127.0.0.1:8300) (DC: dc1)
    2017/01/05 11:57:48 [ERR] agent: failed to sync remote state: No cluster leader
    2017/01/05 11:57:48 [WARN] raft: Heartbeat timeout from "" reached, starting election
    2017/01/05 11:57:48 [INFO] raft: Node at 127.0.0.1:8300 [Candidate] entering Candidate state in term 2
    2017/01/05 11:57:48 [DEBUG] raft: Votes needed: 1
    2017/01/05 11:57:48 [DEBUG] raft: Vote granted from 127.0.0.1:8300 in term 2. Tally: 1
    2017/01/05 11:57:48 [INFO] raft: Election won. Tally: 1
    2017/01/05 11:57:48 [INFO] raft: Node at 127.0.0.1:8300 [Leader] entering Leader state
    2017/01/05 11:57:48 [INFO] consul: cluster leadership acquired
    2017/01/05 11:57:48 [INFO] consul: New leader elected: TYR
    2017/01/05 11:57:48 [DEBUG] consul: reset tombstone GC to index 3
    2017/01/05 11:57:48 [INFO] consul: member 'TYR' joined, marking health alive
    2017/01/05 11:57:49 [INFO] agent: Synced service 'consul'
    2017/01/05 11:57:49 [DEBUG] agent: Node info in sync

--
Lowe Schmidt | +46 723 867 157

On 4 January 2017 at 18:58, Ankit singh <ankitsh...@gmail.com> wrote:
yes i tried but i want web gui of consul?
is there any guide which explain full setup for setting consul

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/consul/issues
IRC: #consul on Freenode
---
You received this message because you are subscribed to the Google Groups "Consul" group.
To unsubscribe from this group and stop receiving emails from it, send an email to consul-tool+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages