etcd: Fresh single-host install: "etcdserver: publish error: etcdserver: request timed out" and "Error: context deadline exceeded"
I’ve just started playing with etcd, so I’ve attempted to install the latest release (at this time, 3.3.4) on a single host (actually, an LXC container) to experiment with. Trouble is, I’m getting this error (“etcdserver: publish error: etcdserver: request timed out”) showing up repeatedly in the log once the server is started, and attempting to use the etcd with, for example, etcdctl put foo bar
produces the error “Error: context deadline exceeded”.
The log is as follows:
2018-04-30 22:54:30.714439 I | etcdmain: Loading server configuration from "/etc/etcd.conf"
2018-04-30 22:54:30.716094 I | etcdmain: etcd Version: 3.3.4
2018-04-30 22:54:30.716119 I | etcdmain: Git SHA: fdde8705f
2018-04-30 22:54:30.716132 I | etcdmain: Go Version: go1.9.5
2018-04-30 22:54:30.716142 I | etcdmain: Go OS/Arch: linux/amd64
2018-04-30 22:54:30.716153 I | etcdmain: setting maximum number of CPUs to 8, total number of available CPUs is 8
2018-04-30 22:54:30.718055 N | etcdmain: the server is already initialized as member before, starting as etcd member...
2018-04-30 22:54:30.718199 I | embed: listening for peers on http://0.0.0.0:2380
2018-04-30 22:54:30.718218 I | embed: pprof is enabled under /debug/pprof
2018-04-30 22:54:30.718254 I | embed: listening for client requests on 0.0.0.0:2379
2018-04-30 22:54:30.743954 I | etcdserver: name = arkane
2018-04-30 22:54:30.743980 I | etcdserver: data dir = /mnt/nas/etcd/arkane.etcd
2018-04-30 22:54:30.743993 I | etcdserver: member dir = /mnt/nas/etcd/arkane.etcd/member
2018-04-30 22:54:30.744005 I | etcdserver: heartbeat = 100ms
2018-04-30 22:54:30.744015 I | etcdserver: election = 1000ms
2018-04-30 22:54:30.744024 I | etcdserver: snapshot count = 10000
2018-04-30 22:54:30.744045 I | etcdserver: advertise client URLs = http://etcd.arkane-systems.lan:2379
2018-04-30 22:54:30.750161 I | etcdserver: restarting member da1dd496f65aadf6 in cluster 4164659cc46c0e7a at commit index 0
2018-04-30 22:54:30.750204 I | raft: da1dd496f65aadf6 became follower at term 0
2018-04-30 22:54:30.750220 I | raft: newRaft da1dd496f65aadf6 [peers: [], term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0]
2018-04-30 22:54:30.759231 W | auth: simple token is not cryptographically signed
2018-04-30 22:54:30.761159 I | etcdserver: starting server... [version: 3.3.4, cluster version: to_be_decided]
2018-04-30 22:54:37.761739 E | etcdserver: publish error: etcdserver: request timed out
2018-04-30 22:54:44.762028 E | etcdserver: publish error: etcdserver: request timed out
2018-04-30 22:54:51.762172 E | etcdserver: publish error: etcdserver: request timed out
2018-04-30 22:54:58.762419 E | etcdserver: publish error: etcdserver: request timed out
2018-04-30 22:55:05.762626 E | etcdserver: publish error: etcdserver: request timed out
2018-04-30 22:55:12.762856 E | etcdserver: publish error: etcdserver: request timed out
…and the configuration file I am using is as follows:
# This is the configuration file for the etcd server.
# Human-readable name for this member.
name: 'arkane'
# Path to the data directory.
data-dir: /mnt/nas/etcd/arkane.etcd
# Number of committed transactions to trigger a snapshot to disk.
snapshot-count: 10000
# List of comma separated URLs to listen on for peer traffic.
listen-peer-urls: http://0.0.0.0:2380
# List of comma separated URLs to listen on for client traffic.
listen-client-urls: http://0.0.0.0:2379
# List of this member's peer URLs to advertise to the rest of the cluster.
# The URLs needed to be a comma-separated list.
initial-advertise-peer-urls: http://etcd.arkane-systems.lan:2380
# List of this member's client URLs to advertise to the public.
# The URLs needed to be a comma-separated list.
advertise-client-urls: http://etcd.arkane-systems.lan:2379
# Initial cluster token for the etcd cluster during bootstrap.
initial-cluster-token: 'etcd-cluster'
# Initial cluster state ('new' or 'existing').
initial-cluster-state: 'new'
# Enable runtime profiling data via HTTP server
enable-pprof: true
# Enable debug-level logging for etcd.
debug: true
# Specify a particular log level for each etcd package (eg: 'etcdmain=CRITICAL,etcdserver=DEBUG'.
log-package-levels:
# Specify 'stdout' or 'stderr' to skip journald logging even when running under systemd.
log-outputs: [default]
# Force to create a new one member cluster.
force-new-cluster: false
auto-compaction-mode: periodic
auto-compaction-retention: "1"
Curiously, netstat -a
does not seem to show any listening sockets on tcp ports 2379 and 2380 for IPv4, only for IPv6:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:netbios-ssn *:* LISTEN
tcp 0 0 *:ssh *:* LISTEN
tcp 0 0 localhost:smtp *:* LISTEN
tcp 0 0 localhost:6010 *:* LISTEN
tcp 0 0 *:microsoft-ds *:* LISTEN
tcp 0 0 etcd.arkane-systems:ssh ATHENA.arkane-sys:51219 ESTABLISHED
tcp6 0 0 [::]:2379 [::]:* LISTEN
tcp6 0 0 [::]:netbios-ssn [::]:* LISTEN
tcp6 0 0 [::]:2380 [::]:* LISTEN
tcp6 0 0 [::]:ssh [::]:* LISTEN
tcp6 0 0 localhost:smtp [::]:* LISTEN
tcp6 0 0 localhost:6010 [::]:* LISTEN
tcp6 0 0 [::]:microsoft-ds [::]:* LISTEN
tcp6 0 0 fdc9:b01a:9d26:0::35328 fdc9:b01a::microsoft-ds ESTABLISHED
Any ideas as to what might be going on?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (7 by maintainers)
Sure, I can do that.