signature.asc
Description: PGP signature
Hi!
Tanguy LE CARROUR <[email protected]> writes: > Hi Guix, > > My `dockerd` service has stopped working weeks (months!?) ago, but I've > had no use for it in the meantime, so it was no big deal, until today… > > My configuration looks like this: > > ```scm > ;… > (use-service-modules desktop docker) > > (operating-system > ;… > (services > (append > (list > (service docker-service-type) > ;… > )))) > ``` > > This used to be enough. But now, it doesn't auto-start any more and, > when I `sudo herd start dockerd`, it hangs and displays: > > ```console > $ sudo herd start dockerd > Password: > Service dockerd could not be started. > herd: failed to start service dockerd > ``` > > The log contains the following: > > ```log:/var/log/docker.log > time="2022-03-31T11:31:32.027833616+02:00" level=info msg="Starting up" > time="2022-03-31T11:31:32.031576010+02:00" level=info msg="parsed scheme: > \"unix\"" module=grpc > time="2022-03-31T11:31:32.031661605+02:00" level=info msg="scheme \"unix\" > not registered, fallback to default scheme" module=grpc > time="2022-03-31T11:31:32.031760157+02:00" level=info msg="ccResolverWrapper: > sending update to cc: {[{unix:///run/containerd/containerd.sock 0 <nil>}] > <nil>}" module=grpc > time="2022-03-31T11:31:32.031816856+02:00" level=info msg="ClientConn > switching balancer to \"pick_first\"" module=grpc > failed to start daemon: failed to dial "/run/containerd/containerd.sock": > unknown service containerd.services.namespaces.v1.Namespaces: not implemented > ``` > > `containerd` seems to be running fine, even though I sometimes see the > following in the log: > > ```log:/var/log/docker.log > failed to start containerd: exec: "containerd": executable file not found in > $PATH > ``` That's strange, I can also see this in my logs from back in April 2021, but not since then. As a shot in the dark, could you try the attached patch? It's something I added while looking at updating docker (I need to rebase this series and get it committed). It's a bugfix, the patch-paths phase does not run withouth it so it could be related to your issues. But for some strange reason it's been working for me. https://issues.guix.gnu.org/52790#1
signature.asc
Description: PGP signature
From b7ca964bd265a06ffeb9b2f1d6a36c592876fd52 Mon Sep 17 00:00:00 2001 From: Pierre Langlois <[email protected]> Date: Sat, 25 Dec 2021 02:04:35 +0000 Subject: [PATCH] gnu: containerd: Fix patch-paths build phase. * gnu/packages/docker.scm (containerd)[arguments]: Add 'patch-paths phases after 'unpack because 'chdir doesn't exist. Substitute runc binary for "pkg/cri/config/config_unix.go". --- gnu/packages/docker.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/packages/docker.scm b/gnu/packages/docker.scm index 3f52f4f8db..9b15405a72 100644 --- a/gnu/packages/docker.scm +++ b/gnu/packages/docker.scm @@ -190,7 +190,7 @@ (define-public containerd `(#:import-path "github.com/containerd/containerd" #:phases (modify-phases %standard-phases - (add-after 'chdir 'patch-paths + (add-after 'unpack 'patch-paths (lambda* (#:key inputs import-path outputs #:allow-other-keys) (with-directory-excursion (string-append "src/" import-path) (substitute* "runtime/v1/linux/runtime.go" -- 2.34.0
Thanks, Pierre
