From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7A771158020 for ; Sat, 10 Dec 2022 18:31:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1C9B6E088C; Sat, 10 Dec 2022 18:31:50 +0000 (UTC) Received: from mout.web.de (mout.web.de [212.227.15.14]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6E80AE0871 for ; Sat, 10 Dec 2022 18:31:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1670697102; bh=hdQx/gIpnm7ey40udLUXYDxsJhswyd09ac/67CYHoHU=; h=X-UI-Sender-Class:Date:From:To:Subject:In-Reply-To:References; b=TP+V3xajz+FU4EskqFhAWMmXoTiVEihxJkDNa1IPV5/HIDugHdOnPOE20nex0RCbx 4xtOCz+doCUYrnq7jaMzQWMrPsNlDOwLeMnSgobOyjxu01K5vtz0sIOHR1JGcqWiN2 Mcn7lgW7s2py7rBTVTUJT/35iVhp9hJAp5svzcVQUpERbCzjEnvUQcaK5h8kxmc5Ap 9AJLI++s6DBrO+plA5MKpEXNJHhMO8tQXsgR1+Pf+ni5eo7Du5u8yEo3NBIu//WpTJ wqVq+pfuxyWmssSiYpi7XdKlIVajWgXhsQTpdogCssSi4+ZKp95dZegBT6LTy4wKE9 BIVBePh+R4Z+w== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from localhost ([213.55.225.15]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1N45xt-1ovNWR183F-00zrOL for ; Sat, 10 Dec 2022 19:31:42 +0100 Date: Sat, 10 Dec 2022 19:31:41 +0100 From: Andreas Fink To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Docker installation issues Message-ID: <20221210193141.1fe1a11b@web.de> In-Reply-To: References: X-Mailer: Claws Mail 4.1.1 (GTK 3.24.35; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:huVKCq2aT85jkK9FxJEA0czs0XGdo1pFdyhPMZrg8YCC6PvZozV tMoqNC+pcOYpTIQD0mQqd91q0M3d8WADVsRg/svGGa947zG4FasttbjnSZq4HObQW1Hebrp IK1r1t00iND2C5FRhjzqggVxSNrJEt5dECLfscfOVCdQhh6DRVqct/wsdUGRsfozeVEv8YA kGQbX2c+ACI1UkHlp4Npw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:WTq2ONbmePU=;oID1S7AMM9/RYsCbnPqdTvlcvRf iovdG7yogLQ+8a0enTtos/nH2D5/yrU64ZOo4zR5WeRX7BDCKcBhCN5c3HiKqKUGlKRFUul5I UrIKqBpFsuIAy5AtQPF3LV9uSgo42CfyGbdxC3jOcfiUack02Ph21rJ9v51mhHKrpC3pJElwr pQWnlYJLd05cc5+uqV3zE5MVZudTGIrApTOAv7shgLSVe+a6KfG9dbdnNd13fghQ0SPiXp/yj MYgZ+Jwx6UJnFwdFcLO2KI9/qPQQifjZBbqXYhCSaBx1Ykai5LZeppCozb0y5qRI4q6S/HyQk Lx2MfFzGYN7cfmgoa4ANPZPvJuyLS1DRoyVWG9m2u/lixMBMg/qIlFCOrX2+3a11aBL/x6MMD +9YdDiW88FU4gXzfzlJzh84cb832wWBGTHaM1w0VOhTx+7F+I05mY5B+6gfQUuN4M2at3ounl Bf6h6N2fVMHimxWEv9gL3rkHsiAIufMGPNh0BcLZ6dc1geh8j+Y584GvM0FpE41Tsr9nU1EDO e6ymVJGNb5DWCZNuuA/hjiy5OgDoG4VD2zskW+KmtDfyTN5xVrAYB+bmDVxJWI2u8ky96iSK7 6/w9EyjdfoQGPjHJ7zxrs1c1Umb5EfKE+cG2OwcwNFZLKwZz0pSMwUYfsRtQXTbS1yg6OJkOF XWbsw2eS7yKWgmTAoHxfL+ABmpLs3cIJtALo1QYevn8I/j6TLMJTNfP1LwNbEd3cPz44DlgGp MPr5nBQhHo15jP0FlNGBrA5p0jxTYW9SIp3hWl1al/MzFSX/FO5xnmfF76wLkSfroVYUzvECJ vWN/qHh6JfCgVrb//Kw4jJAjKbUkutZgTLM7sJTT7RfNQ2XlWFFxGRtmBaAbwFfn7fM5SRww4 eO2kCAbt4bghIrCPKNoW/JETiyYlk2emrKj65vJObufLBA3Jh5sSxGpctZhYjxIs1EardvRKo tn3/GZo0C/Rj9uoBpBs9DonvIXs= X-Archives-Salt: 9504e8f0-3c63-45d4-9272-b96ad3222f4f X-Archives-Hash: 1d575161f3ca1f5c5b5d6ab57359a4f2 On Sat, 10 Dec 2022 12:30:40 -0500 Mansour Al Akeel wrote: > I am using Openrc > > This was my initial /etc/conf.d/docker > DOCKER_OPTS=3D"--storage-driver overlay2 --data-root /srv/var/lib/docker= " > > when I try: > > $ docker pull hello-world > > Error response from daemon: Get "https://registry-1.docker.io/v2/": > net/http: request canceled while waiting for connection (Client.Timeout > exceeded while awaiting headers) > > Trying to troubleshoot: > > localhost /home/mansour # tail -n 20 /var/log/docker.log > time=3D"2022-12-10T12:17:03.473550705-05:00" level=3Dinfo msg=3D"scheme = \"unix\" > not registered, fallback to default scheme" module=3Dgrpc > time=3D"2022-12-10T12:17:03.473566413-05:00" level=3Dinfo > msg=3D"ccResolverWrapper: sending update to cc: > {[{unix:///run/containerd/containerd.sock 0 }] }" > module=3Dgrpc > time=3D"2022-12-10T12:17:03.473573787-05:00" level=3Dinfo msg=3D"ClientC= onn > switching balancer to \"pick_first\"" module=3Dgrpc > time=3D"2022-12-10T12:17:03.474530993-05:00" level=3Dinfo msg=3D"parsed = scheme: > \"unix\"" module=3Dgrpc > time=3D"2022-12-10T12:17:03.474545549-05:00" level=3Dinfo msg=3D"scheme = \"unix\" > not registered, fallback to default scheme" module=3Dgrpc > time=3D"2022-12-10T12:17:03.474563752-05:00" level=3Dinfo > msg=3D"ccResolverWrapper: sending update to cc: > {[{unix:///run/containerd/containerd.sock 0 }] }" > module=3Dgrpc > time=3D"2022-12-10T12:17:03.474571186-05:00" level=3Dinfo msg=3D"ClientC= onn > switching balancer to \"pick_first\"" module=3Dgrpc > time=3D"2022-12-10T12:17:03.478908716-05:00" level=3Dwarning msg=3D"Your= kernel > does not support cgroup blkio weight" > time=3D"2022-12-10T12:17:03.478927115-05:00" level=3Dwarning msg=3D"Your= kernel > does not support cgroup blkio weight_device" > time=3D"2022-12-10T12:17:03.479037897-05:00" level=3Dinfo msg=3D"Loading > containers: start." > time=3D"2022-12-10T12:17:03.495743563-05:00" level=3Dinfo msg=3D"failed = to read > ipv6 net.ipv6.conf..accept_ra" bridge=3Ddocker0 > syspath=3D/proc/sys/net/ipv6/conf/docker0/accept_ra > time=3D"2022-12-10T12:17:03.518761943-05:00" level=3Dinfo msg=3D"Default= bridge > (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --= bip > can be used to set a preferred IP address" > time=3D"2022-12-10T12:17:03.518886881-05:00" level=3Dinfo msg=3D"failed = to read > ipv6 net.ipv6.conf..accept_ra" bridge=3Ddocker0 > syspath=3D/proc/sys/net/ipv6/conf/docker0/accept_ra > time=3D"2022-12-10T12:17:03.534616741-05:00" level=3Dinfo msg=3D"Loading > containers: done." > time=3D"2022-12-10T12:17:03.541080189-05:00" level=3Dinfo msg=3D"Docker = daemon" > commit=3Da89b84221c graphdriver(s)=3Doverlay2 version=3D20.10.17 > time=3D"2022-12-10T12:17:03.541122352-05:00" level=3Dinfo msg=3D"Daemon = has > completed initialization" > time=3D"2022-12-10T12:17:03.549888103-05:00" level=3Dinfo msg=3D"API lis= ten on > /var/run/docker.sock" > time=3D"2022-12-10T12:17:27.025622231-05:00" level=3Dwarning msg=3D"Erro= r getting > v2 registry: Get \"https://registry-1.docker.io/v2/\": net/http: request > canceled while waiting for connection (Client.Timeout exceeded while > awaiting headers)" > time=3D"2022-12-10T12:17:27.025667054-05:00" level=3Dinfo msg=3D"Attempt= ing next > endpoint for pull after error: Get \"https://registry-1.docker.io/v2/\": > net/http: request canceled while waiting for connection (Client.Timeout > exceeded while awaiting headers)" > time=3D"2022-12-10T12:17:27.026851821-05:00" level=3Derror msg=3D"Handle= r for > POST /v1.41/images/create returned error: Get \" > https://registry-1.docker.io/v2/\": net/http: request canceled while > waiting for connection (Client.Timeout exceeded while awaiting headers)" > > time=3D"2022-12-10T12:15:42.036053086-05:00" level=3Dinfo msg=3D"loading= plugin > \"io.containerd.internal.v1.tracing\"..." type=3Dio.containerd.internal.= v1 > time=3D"2022-12-10T12:15:42.036068412-05:00" level=3Derror msg=3D"failed= to > initialize a tracing processor \"otlp\"" error=3D"no OpenTelemetry endpo= int: > skip plugin" > time=3D"2022-12-10T12:15:42.036100189-05:00" level=3Dinfo msg=3D"loading= plugin > \"io.containerd.grpc.v1.cri\"..." type=3Dio.containerd.grpc.v1 > time=3D"2022-12-10T12:15:42.036390695-05:00" level=3Dinfo msg=3D"Start c= ri plugin > with config {PluginConfig:{ContainerdConfig:{Snapshotter:overlayfs > DefaultRuntimeName:runc DefaultRuntime:{Type: Path: Engine: > PodAnnotations:[] ContainerAnnotations:[] Root: Options:map[] > PrivilegedWithoutHostDevices:false BaseRuntimeSpec: NetworkPluginConfDir= : > NetworkPluginMaxConfNum:0} UntrustedWorkloadRuntime:{Type: Path: Engine: > PodAnnotations:[] ContainerAnnotations:[] Root: Options:map[] > PrivilegedWithoutHostDevices:false BaseRuntimeSpec: NetworkPluginConfDir= : > NetworkPluginMaxConfNum:0} Runtimes:map[runc:{Type:io.containerd.runc.v2 > Path: Engine: PodAnnotations:[] ContainerAnnotations:[] Root: > Options:map[BinaryName: CriuImagePath: CriuPath: CriuWorkPath: IoGid:0 > IoUid:0 NoNewKeyring:false NoPivotRoot:false Root: ShimCgroup: > SystemdCgroup:false] PrivilegedWithoutHostDevices:false BaseRuntimeSpec: > NetworkPluginConfDir: NetworkPluginMaxConfNum:0}] NoPivot:false > DisableSnapshotAnnotations:true DiscardUnpackedLayers:false > IgnoreRdtNotEnabledErrors:false} > CniConfig:{NetworkPluginBinDir:/opt/cni/bin > NetworkPluginConfDir:/etc/cni/net.d NetworkPluginMaxConfNum:1 > NetworkPluginConfTemplate: IPPreference:} Registry:{ConfigPath: > Mirrors:map[] Configs:map[] Auths:map[] Headers:map[]} > ImageDecryption:{KeyModel:node} DisableTCPService:true > StreamServerAddress:127.0.0.1 StreamServerPort:0 StreamIdleTimeout:4h0m0= s > EnableSelinux:false SelinuxCategoryRange:1024 SandboxImage: > k8s.gcr.io/pause:3.6 StatsCollectPeriod:10 SystemdCgroup:false > EnableTLSStreaming:false X509KeyPairStreaming:{TLSCertFile: TLSKeyFile:} > MaxContainerLogLineSize:16384 DisableCgroup:false DisableApparmor:false > RestrictOOMScoreAdj:false MaxConcurrentDownloads:3 DisableProcMount:fals= e > UnsetSeccompProfile: TolerateMissingHugetlbController:true > DisableHugetlbController:true DeviceOwnershipFromSecurityContext:false > IgnoreImageDefinedVolumes:false NetNSMountsUnderStateDir:false > EnableUnprivilegedPorts:false EnableUnprivilegedICMP:false} > ContainerdRootDir:/var/lib/containerd > ContainerdEndpoint:/run/containerd/containerd.sock > RootDir:/var/lib/containerd/io.containerd.grpc.v1.cri > StateDir:/run/containerd/io.containerd.grpc.v1.cri}" > time=3D"2022-12-10T12:15:42.036530498-05:00" level=3Dinfo msg=3D"Connect > containerd service" > time=3D"2022-12-10T12:15:42.036627681-05:00" level=3Dinfo msg=3D"Get ima= ge > filesystem path > \"/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs\"" > time=3D"2022-12-10T12:15:42.036896077-05:00" level=3Derror msg=3D"failed= to load > cni during init, please check CRI plugin status before setting up networ= k > for pods" error=3D"cni config load failed: no network config found in > /etc/cni/net.d: cni plugin not initialized: failed to load cni config" > time=3D"2022-12-10T12:15:42.036986623-05:00" level=3Dinfo msg=3D"Start > subscribing containerd event" > time=3D"2022-12-10T12:15:42.037028034-05:00" level=3Dinfo msg=3D"Start r= ecovering > state" > time=3D"2022-12-10T12:15:42.037035874-05:00" level=3Dinfo msg=3Dserving.= .. > address=3D/run/containerd/containerd.sock.ttrpc > time=3D"2022-12-10T12:15:42.037068181-05:00" level=3Dinfo msg=3Dserving.= .. > address=3D/run/containerd/containerd.sock > time=3D"2022-12-10T12:15:42.037085346-05:00" level=3Dinfo msg=3D"contain= erd > successfully booted in 0.015889s" > time=3D"2022-12-10T12:15:42.037072303-05:00" level=3Dinfo msg=3D"Start e= vent > monitor" > time=3D"2022-12-10T12:15:42.037107987-05:00" level=3Dinfo msg=3D"Start s= napshots > syncer" > time=3D"2022-12-10T12:15:42.037119126-05:00" level=3Dinfo msg=3D"Start c= ni > network conf syncer for default" > time=3D"2022-12-10T12:15:42.037127266-05:00" level=3Dinfo msg=3D"Start s= treaming > server" > > > Looking at resolv.conf > > localhost /home/mansour # cat /etc/resolv.conf > # Generated by dhcpcd from wlp3s0.dhcp > # /etc/resolv.conf.head can replace this line > domain Home > nameserver 192.168.1.1 > # /etc/resolv.conf.tail can replace this line > > So, I added the following to my /etc/dhcpcd.conf > static domain_name_servers=3D8.8.8.8 8.8.4.4 192.168.1.1 > > And restarted dhcpcd: > > localhost /home/mansour # cat /etc/resolv.conf > # Generated by dhcpcd from wlp3s0.dhcp > # /etc/resolv.conf.head can replace this line > domain Home > nameserver 8.8.8.8 > nameserver 8.8.4.4 > nameserver 192.168.1.1 > # /etc/resolv.conf.tail can replace this line > > > docker.log still shows the same error: > time=3D"2022-12-10T12:28:16.519126445-05:00" level=3Dwarning msg=3D"Erro= r getting > v2 registry: Get \"https://registry-1.docker.io/v2/\": net/http: request > canceled while waiting for connection (Client.Timeout exceeded while > awaiting headers)" > time=3D"2022-12-10T12:28:16.519173944-05:00" level=3Dinfo msg=3D"Attempt= ing next > endpoint for pull after error: Get \"https://registry-1.docker.io/v2/\": > net/http: request canceled while waiting for connection (Client.Timeout > exceeded while awaiting headers)" > time=3D"2022-12-10T12:28:16.520489790-05:00" level=3Derror msg=3D"Handle= r for > POST /v1.41/images/create returned error: Get \" > https://registry-1.docker.io/v2/\": net/http: request canceled while > waiting for connection (Client.Timeout exceeded while awaiting headers)" > > I am not able to login with "docker login" > > Where do I look further for additional troubleshooting hints? Google did= n't > help a lot. > > Thank you. Hello, my first step would be checking if there is some inherent network problem reaching registry-1.docker.io/v2, e.g. via curl -v https://registry-1.docker.io/v2/ If that runs successfully, you could try if there is an MTU problem. I remember that I had to set MTU to 1450 in some virtualized environment, otherwise docker would not run correctly, i.e. I had in /etc/conf.d/docer DOCKER_OPTS=3D"--mtu=3D1450" Hope that gives you an idea what to look for. If both does not help, there is wireshark, to watch your network, very low-level, but might give some hints. Cheers Andreas