-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
==> Starting Consul agent... ==> Error starting agent: agent: timeout starting DNS servers #3802
Comments
Hi @eddamalique01 there's an open loop 1 second timeout there that we could open up. Do you see this every time or is it sporadic? |
Make sure all the required ports are open too:
From Consul docs: |
Running into this on scaleway. The scaleway security group is configured correctly. Seeing it every time.
|
Ok, changing the configuration seems to have that error but introduced a new one
|
With this it works, but is still not accessible via the public ip
|
Figured it out. CentOS runs a firewall: |
There are two things I think we can do to clean up the UX here:
|
Hi Guys, has anyone of you found a way to fix that issue ? Please help |
I have the same issue , also looking for help |
@jaybe78 Your Agent is failing to start because it doesn't have permissions on /var/lib/consul/node-id. Presumably your data directory is /var/lib/consul and in that case the user you are running Consul as needs to have write permissions on that directory. @benzionyunger Is yours failing with the DNS error or the permission denied error? |
@mkeeler It was failing with permission denied. But I did manage to resolve the issue, it was stemming from a volume mount to the host which did not have writable permissions as default. |
Check if it is not fixed in #4598. A v1.6.1
@slackpad, why is it there? Do you remember? Maybe better question for @magiconair. We can probably close this once the exception question is answered/documented. |
I think #8234 may improve the UX here (if there is still a problem in recent versions). Any failures to start the long running goroutines should cause the agent to exit with the relevant error. |
This sounds like it's mostly been resolved, but please reopen if this is still an issue on current versions of Consul. |
I have a fix. If you installed consul via choco then run as an administrator And after that put downloaded consul.exe file from their original website into C:\ProgramData Fixed. |
root@edwin-Vostro-3900:~# ifconfig
docker0 Link encap:Ethernet HWaddr 02:42:54:54:02:8f
inet addr:172.17.0.1 Bcast:0.0.0.0 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
docker_gwbridge Link encap:Ethernet HWaddr 02:42:00:8e:48:66
inet addr:172.18.0.1 Bcast:0.0.0.0 Mask:255.255.0.0
inet6 addr: fe80::42:ff:fe8e:4866/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1758 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:323758 (323.7 KB)
enp2s0 Link encap:Ethernet HWaddr f4:8e:38:8a:67:cd
inet addr:172.16.15.167 Bcast:172.16.255.255 Mask:255.255.0.0
inet6 addr: fe80::ffa0:b32c:f0ea:ba7e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1053655 errors:0 dropped:0 overruns:0 frame:0
TX packets:332278 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:674991919 (674.9 MB) TX bytes:35364400 (35.3 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1681392 errors:0 dropped:0 overruns:0 frame:0
TX packets:1681392 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:993924398 (993.9 MB) TX bytes:993924398 (993.9 MB)
vboxnet0 Link encap:Ethernet HWaddr 0a:00:27:00:00:00
inet addr:192.168.99.1 Bcast:192.168.99.255 Mask:255.255.255.0
inet6 addr: fe80::800:27ff:fe00:0/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:208 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:36317 (36.3 KB)
vethf6711eb Link encap:Ethernet HWaddr de:77:ec:6a:b9:6f
inet6 addr: fe80::dc77:ecff:fe6a:b96f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1889 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:338981 (338.9 KB)
virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@edwin-Vostro-3900:~# consul members
Node Address Status Type Build Protocol DC Segment
edwin-Vostro-3900 127.0.0.1:8301 alive server 1.0.2 2 dc1
root@edwin-Vostro-3900:
# consul info# consul agent -server -bootstrap-expect=1 -data-dir=/tmp/consul -node=server-1 -bind=127.0.1.1 -enable-script-checks=true -config-dir=/etc/consul.dagent:
check_monitors = 0
check_ttls = 0
checks = 0
services = 0
build:
prerelease =
revision = b55059f
version = 1.0.2
consul:
bootstrap = false
known_datacenters = 1
leader = true
leader_addr = 127.0.0.1:8300
server = true
raft:
applied_index = 1166
commit_index = 1166
fsm_pending = 0
last_contact = 0
last_log_index = 1166
last_log_term = 2
last_snapshot_index = 0
last_snapshot_term = 0
latest_configuration = [{Suffrage:Voter ID:39f69dcb-ca84-2dc8-b5fb-0070005db287 Address:127.0.0.1:8300}]
latest_configuration_index = 1
num_peers = 0
protocol_version = 3
protocol_version_max = 3
protocol_version_min = 0
snapshot_version_max = 1
snapshot_version_min = 0
state = Leader
term = 2
runtime:
arch = amd64
cpu_count = 4
goroutines = 70
max_procs = 4
os = linux
version = go1.9.2
serf_lan:
coordinate_resets = 0
encrypted = false
event_queue = 1
event_time = 2
failed = 0
health_score = 0
intent_queue = 0
left = 0
member_time = 1
members = 1
query_queue = 0
query_time = 1
serf_wan:
coordinate_resets = 0
encrypted = false
event_queue = 0
event_time = 1
failed = 0
health_score = 0
intent_queue = 0
left = 0
member_time = 1
members = 1
query_queue = 0
query_time = 1
root@edwin-Vostro-3900:
BootstrapExpect is set to 1; this is the same as Bootstrap mode.
bootstrap = true: do not enable unless necessary
==> Starting Consul agent...
==> Error starting agent: agent: timeout starting DNS servers
Kindly help me to solve this error.
you have a question, please direct it to the
consul mailing list if it hasn't been
addressed in either the FAQ or in one
of the Consul Guides.
When filing a bug, please include the following:
Description of the Issue (and unexpected/desired result)
Reproduction steps
consul version
for both Client and ServerClient:
[client version here]
Server:
[server version here]
consul info
for both Client and ServerClient:
Server:
Operating system and Environment details
Log Fragments or Link to gist
Include appropriate Client or Server log fragments. If the log is longer
than a few dozen lines, please include the URL to the
gist.
TIP: Use
-log-level=TRACE
on the client and server to capture the maximum log detail.The text was updated successfully, but these errors were encountered: