1 |
I am using Openrc |
2 |
|
3 |
This was my initial /etc/conf.d/docker |
4 |
DOCKER_OPTS="--storage-driver overlay2 --data-root /srv/var/lib/docker" |
5 |
|
6 |
when I try: |
7 |
|
8 |
$ docker pull hello-world |
9 |
|
10 |
Error response from daemon: Get "https://registry-1.docker.io/v2/": |
11 |
net/http: request canceled while waiting for connection (Client.Timeout |
12 |
exceeded while awaiting headers) |
13 |
|
14 |
Trying to troubleshoot: |
15 |
|
16 |
localhost /home/mansour # tail -n 20 /var/log/docker.log |
17 |
time="2022-12-10T12:17:03.473550705-05:00" level=info msg="scheme \"unix\" |
18 |
not registered, fallback to default scheme" module=grpc |
19 |
time="2022-12-10T12:17:03.473566413-05:00" level=info |
20 |
msg="ccResolverWrapper: sending update to cc: |
21 |
{[{unix:///run/containerd/containerd.sock <nil> 0 <nil>}] <nil> <nil>}" |
22 |
module=grpc |
23 |
time="2022-12-10T12:17:03.473573787-05:00" level=info msg="ClientConn |
24 |
switching balancer to \"pick_first\"" module=grpc |
25 |
time="2022-12-10T12:17:03.474530993-05:00" level=info msg="parsed scheme: |
26 |
\"unix\"" module=grpc |
27 |
time="2022-12-10T12:17:03.474545549-05:00" level=info msg="scheme \"unix\" |
28 |
not registered, fallback to default scheme" module=grpc |
29 |
time="2022-12-10T12:17:03.474563752-05:00" level=info |
30 |
msg="ccResolverWrapper: sending update to cc: |
31 |
{[{unix:///run/containerd/containerd.sock <nil> 0 <nil>}] <nil> <nil>}" |
32 |
module=grpc |
33 |
time="2022-12-10T12:17:03.474571186-05:00" level=info msg="ClientConn |
34 |
switching balancer to \"pick_first\"" module=grpc |
35 |
time="2022-12-10T12:17:03.478908716-05:00" level=warning msg="Your kernel |
36 |
does not support cgroup blkio weight" |
37 |
time="2022-12-10T12:17:03.478927115-05:00" level=warning msg="Your kernel |
38 |
does not support cgroup blkio weight_device" |
39 |
time="2022-12-10T12:17:03.479037897-05:00" level=info msg="Loading |
40 |
containers: start." |
41 |
time="2022-12-10T12:17:03.495743563-05:00" level=info msg="failed to read |
42 |
ipv6 net.ipv6.conf.<bridge>.accept_ra" bridge=docker0 |
43 |
syspath=/proc/sys/net/ipv6/conf/docker0/accept_ra |
44 |
time="2022-12-10T12:17:03.518761943-05:00" level=info msg="Default bridge |
45 |
(docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip |
46 |
can be used to set a preferred IP address" |
47 |
time="2022-12-10T12:17:03.518886881-05:00" level=info msg="failed to read |
48 |
ipv6 net.ipv6.conf.<bridge>.accept_ra" bridge=docker0 |
49 |
syspath=/proc/sys/net/ipv6/conf/docker0/accept_ra |
50 |
time="2022-12-10T12:17:03.534616741-05:00" level=info msg="Loading |
51 |
containers: done." |
52 |
time="2022-12-10T12:17:03.541080189-05:00" level=info msg="Docker daemon" |
53 |
commit=a89b84221c graphdriver(s)=overlay2 version=20.10.17 |
54 |
time="2022-12-10T12:17:03.541122352-05:00" level=info msg="Daemon has |
55 |
completed initialization" |
56 |
time="2022-12-10T12:17:03.549888103-05:00" level=info msg="API listen on |
57 |
/var/run/docker.sock" |
58 |
time="2022-12-10T12:17:27.025622231-05:00" level=warning msg="Error getting |
59 |
v2 registry: Get \"https://registry-1.docker.io/v2/\": net/http: request |
60 |
canceled while waiting for connection (Client.Timeout exceeded while |
61 |
awaiting headers)" |
62 |
time="2022-12-10T12:17:27.025667054-05:00" level=info msg="Attempting next |
63 |
endpoint for pull after error: Get \"https://registry-1.docker.io/v2/\": |
64 |
net/http: request canceled while waiting for connection (Client.Timeout |
65 |
exceeded while awaiting headers)" |
66 |
time="2022-12-10T12:17:27.026851821-05:00" level=error msg="Handler for |
67 |
POST /v1.41/images/create returned error: Get \" |
68 |
https://registry-1.docker.io/v2/\": net/http: request canceled while |
69 |
waiting for connection (Client.Timeout exceeded while awaiting headers)" |
70 |
|
71 |
time="2022-12-10T12:15:42.036053086-05:00" level=info msg="loading plugin |
72 |
\"io.containerd.internal.v1.tracing\"..." type=io.containerd.internal.v1 |
73 |
time="2022-12-10T12:15:42.036068412-05:00" level=error msg="failed to |
74 |
initialize a tracing processor \"otlp\"" error="no OpenTelemetry endpoint: |
75 |
skip plugin" |
76 |
time="2022-12-10T12:15:42.036100189-05:00" level=info msg="loading plugin |
77 |
\"io.containerd.grpc.v1.cri\"..." type=io.containerd.grpc.v1 |
78 |
time="2022-12-10T12:15:42.036390695-05:00" level=info msg="Start cri plugin |
79 |
with config {PluginConfig:{ContainerdConfig:{Snapshotter:overlayfs |
80 |
DefaultRuntimeName:runc DefaultRuntime:{Type: Path: Engine: |
81 |
PodAnnotations:[] ContainerAnnotations:[] Root: Options:map[] |
82 |
PrivilegedWithoutHostDevices:false BaseRuntimeSpec: NetworkPluginConfDir: |
83 |
NetworkPluginMaxConfNum:0} UntrustedWorkloadRuntime:{Type: Path: Engine: |
84 |
PodAnnotations:[] ContainerAnnotations:[] Root: Options:map[] |
85 |
PrivilegedWithoutHostDevices:false BaseRuntimeSpec: NetworkPluginConfDir: |
86 |
NetworkPluginMaxConfNum:0} Runtimes:map[runc:{Type:io.containerd.runc.v2 |
87 |
Path: Engine: PodAnnotations:[] ContainerAnnotations:[] Root: |
88 |
Options:map[BinaryName: CriuImagePath: CriuPath: CriuWorkPath: IoGid:0 |
89 |
IoUid:0 NoNewKeyring:false NoPivotRoot:false Root: ShimCgroup: |
90 |
SystemdCgroup:false] PrivilegedWithoutHostDevices:false BaseRuntimeSpec: |
91 |
NetworkPluginConfDir: NetworkPluginMaxConfNum:0}] NoPivot:false |
92 |
DisableSnapshotAnnotations:true DiscardUnpackedLayers:false |
93 |
IgnoreRdtNotEnabledErrors:false} |
94 |
CniConfig:{NetworkPluginBinDir:/opt/cni/bin |
95 |
NetworkPluginConfDir:/etc/cni/net.d NetworkPluginMaxConfNum:1 |
96 |
NetworkPluginConfTemplate: IPPreference:} Registry:{ConfigPath: |
97 |
Mirrors:map[] Configs:map[] Auths:map[] Headers:map[]} |
98 |
ImageDecryption:{KeyModel:node} DisableTCPService:true |
99 |
StreamServerAddress:127.0.0.1 StreamServerPort:0 StreamIdleTimeout:4h0m0s |
100 |
EnableSelinux:false SelinuxCategoryRange:1024 SandboxImage: |
101 |
k8s.gcr.io/pause:3.6 StatsCollectPeriod:10 SystemdCgroup:false |
102 |
EnableTLSStreaming:false X509KeyPairStreaming:{TLSCertFile: TLSKeyFile:} |
103 |
MaxContainerLogLineSize:16384 DisableCgroup:false DisableApparmor:false |
104 |
RestrictOOMScoreAdj:false MaxConcurrentDownloads:3 DisableProcMount:false |
105 |
UnsetSeccompProfile: TolerateMissingHugetlbController:true |
106 |
DisableHugetlbController:true DeviceOwnershipFromSecurityContext:false |
107 |
IgnoreImageDefinedVolumes:false NetNSMountsUnderStateDir:false |
108 |
EnableUnprivilegedPorts:false EnableUnprivilegedICMP:false} |
109 |
ContainerdRootDir:/var/lib/containerd |
110 |
ContainerdEndpoint:/run/containerd/containerd.sock |
111 |
RootDir:/var/lib/containerd/io.containerd.grpc.v1.cri |
112 |
StateDir:/run/containerd/io.containerd.grpc.v1.cri}" |
113 |
time="2022-12-10T12:15:42.036530498-05:00" level=info msg="Connect |
114 |
containerd service" |
115 |
time="2022-12-10T12:15:42.036627681-05:00" level=info msg="Get image |
116 |
filesystem path |
117 |
\"/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs\"" |
118 |
time="2022-12-10T12:15:42.036896077-05:00" level=error msg="failed to load |
119 |
cni during init, please check CRI plugin status before setting up network |
120 |
for pods" error="cni config load failed: no network config found in |
121 |
/etc/cni/net.d: cni plugin not initialized: failed to load cni config" |
122 |
time="2022-12-10T12:15:42.036986623-05:00" level=info msg="Start |
123 |
subscribing containerd event" |
124 |
time="2022-12-10T12:15:42.037028034-05:00" level=info msg="Start recovering |
125 |
state" |
126 |
time="2022-12-10T12:15:42.037035874-05:00" level=info msg=serving... |
127 |
address=/run/containerd/containerd.sock.ttrpc |
128 |
time="2022-12-10T12:15:42.037068181-05:00" level=info msg=serving... |
129 |
address=/run/containerd/containerd.sock |
130 |
time="2022-12-10T12:15:42.037085346-05:00" level=info msg="containerd |
131 |
successfully booted in 0.015889s" |
132 |
time="2022-12-10T12:15:42.037072303-05:00" level=info msg="Start event |
133 |
monitor" |
134 |
time="2022-12-10T12:15:42.037107987-05:00" level=info msg="Start snapshots |
135 |
syncer" |
136 |
time="2022-12-10T12:15:42.037119126-05:00" level=info msg="Start cni |
137 |
network conf syncer for default" |
138 |
time="2022-12-10T12:15:42.037127266-05:00" level=info msg="Start streaming |
139 |
server" |
140 |
|
141 |
|
142 |
Looking at resolv.conf |
143 |
|
144 |
localhost /home/mansour # cat /etc/resolv.conf |
145 |
# Generated by dhcpcd from wlp3s0.dhcp |
146 |
# /etc/resolv.conf.head can replace this line |
147 |
domain Home |
148 |
nameserver 192.168.1.1 |
149 |
# /etc/resolv.conf.tail can replace this line |
150 |
|
151 |
So, I added the following to my /etc/dhcpcd.conf |
152 |
static domain_name_servers=8.8.8.8 8.8.4.4 192.168.1.1 |
153 |
|
154 |
And restarted dhcpcd: |
155 |
|
156 |
localhost /home/mansour # cat /etc/resolv.conf |
157 |
# Generated by dhcpcd from wlp3s0.dhcp |
158 |
# /etc/resolv.conf.head can replace this line |
159 |
domain Home |
160 |
nameserver 8.8.8.8 |
161 |
nameserver 8.8.4.4 |
162 |
nameserver 192.168.1.1 |
163 |
# /etc/resolv.conf.tail can replace this line |
164 |
|
165 |
|
166 |
docker.log still shows the same error: |
167 |
time="2022-12-10T12:28:16.519126445-05:00" level=warning msg="Error getting |
168 |
v2 registry: Get \"https://registry-1.docker.io/v2/\": net/http: request |
169 |
canceled while waiting for connection (Client.Timeout exceeded while |
170 |
awaiting headers)" |
171 |
time="2022-12-10T12:28:16.519173944-05:00" level=info msg="Attempting next |
172 |
endpoint for pull after error: Get \"https://registry-1.docker.io/v2/\": |
173 |
net/http: request canceled while waiting for connection (Client.Timeout |
174 |
exceeded while awaiting headers)" |
175 |
time="2022-12-10T12:28:16.520489790-05:00" level=error msg="Handler for |
176 |
POST /v1.41/images/create returned error: Get \" |
177 |
https://registry-1.docker.io/v2/\": net/http: request canceled while |
178 |
waiting for connection (Client.Timeout exceeded while awaiting headers)" |
179 |
|
180 |
I am not able to login with "docker login" |
181 |
|
182 |
Where do I look further for additional troubleshooting hints? Google didn't |
183 |
help a lot. |
184 |
|
185 |
Thank you. |