Closed fifofonix closed 7 months ago
We would really benefit from having Docker tests.
Made a very basic test in https://github.com/coreos/fedora-coreos-config/pull/2622
For reference, the error is:
[root@cosa-devsh ~]# docker run -d nginx
Unable to find image 'nginx:latest' locally
latest: Pulling from library/nginx
360eba32fa65: Pull complete
c5903f3678a7: Pull complete
27e923fb52d3: Pull complete
72de7d1ce3a4: Pull complete
94f34d60e454: Pull complete
e42dcfe1730b: Pull complete
907d1bb4e931: Pull complete
Digest: sha256:112b224f9d7f74ac22211c70108f4328c80be7eb2768f7ee6ace6b120fbaf593
Status: Downloaded newer image for nginx:latest
b3801713762f7e61151fc0a96ed919ca8ee1661df6822d2a80117e21ba69307d
docker: Error response from daemon: failed to create task for container: failed to create shim task: ttrpc: cannot marshal unknown type: *task.CreateTaskRequest: unknown.
Also appears to be an issue in Fedora Cloud at least: https://bugzilla.redhat.com/show_bug.cgi?id=2239849#c1
From today's meeting:
* AGREED: We'll pause the rollout of the next stream due to
https://github.com/coreos/fedora-coreos-tracker/issues/1578
(travier, 16:51:35)
My initial testing of Fedora CoreOS 39.20230916.1.1 also failed with a similar error in the kubelet and containerd. Note this a kubelet configured to use containerd as it's runtime --container-runtime-endpoint=unix:///run/containerd/containerd.sock
.
containerd error:
containerd[1724]: time="2023-09-21T09:58:23.625852918Z" level=error msg="RunPodSandbox for &PodSandboxMetadata{Name:kube-apiserver-192.168.121.11,Uid:97fc473b4e71c3ac01e7b0468cde9a25,Namespace:kube-system,Attempt:0,} failed, error" error="failed to create containerd task: failed to create shim task: ttrpc: cannot marshal unknown type: *task.CreateTaskRequest: unknown"
kubelet error:
kubelet[2665]: E0921 09:58:23.629804 2667 remote_runtime.go:176] "RunPodSandbox from runtime service failed" err="rpc error: code = Unknown desc = failed to create containerd task: failed to create shim task: ttrpc: cannot marshal unknown type: *task.CreateTaskRequest: unknown"
My initial testing of Fedora CoreOS 39.20230916.1.1 also failed with a similar error in the kubelet and containerd. Note this a kubelet configured to use containerd as it's runtime
--container-runtime-endpoint=unix:///run/containerd/containerd.sock
.containerd error:
containerd[1724]: time="2023-09-21T09:58:23.625852918Z" level=error msg="RunPodSandbox for &PodSandboxMetadata{Name:kube-apiserver-192.168.121.11,Uid:97fc473b4e71c3ac01e7b0468cde9a25,Namespace:kube-system,Attempt:0,} failed, error" error="failed to create containerd task: failed to create shim task: ttrpc: cannot marshal unknown type: *task.CreateTaskRequest: unknown"
kubelet error:
kubelet[2665]: E0921 09:58:23.629804 2667 remote_runtime.go:176] "RunPodSandbox from runtime service failed" err="rpc error: code = Unknown desc = failed to create containerd task: failed to create shim task: ttrpc: cannot marshal unknown type: *task.CreateTaskRequest: unknown"
Thanks for this. Saves me testing this on our next
k8s cluster this morning which was on my to-do list.
It seems the containerd package is broken. A clean instance with docker completely disabled can't run a container in containerd with it's own ctr client.
I was able to downgrade to containerd-1.6.19-1.fc39 and things seem to work. I'll open a PR to revert to this version of containerd while investigation takes place on the new version.
The fix for this went into next
stream release 39.20230916.1.2
. Please try out the new release and report issues.
Re-opened as this is not truly "fixed". https://github.com/coreos/fedora-coreos-config/pull/2625 is a temporary workaround.
New BZ to follow (the other got closed out as duplicate): https://bugzilla.redhat.com/show_bug.cgi?id=2237396
I also have this issue with F39 workstation beta.
Downgrading helps:
sudo dnf install ~/Downloads/containerd-1.6.19-2.fc39.x86_64.rpm
Hi @stefangweichinger this is an issue tracker specific to Fedora CoreOS.
For fedora in general we are following the bug at https://bugzilla.redhat.com/show_bug.cgi?id=2237396. Can you add your comment there?
I'll mark these two comments as off-topic since this tracker is Fedora CoreOS specific.
Hi @stefangweichinger this is an issue tracker specific to Fedora CoreOS.
For fedora in general we are following the bug at https://bugzilla.redhat.com/show_bug.cgi?id=2237396. Can you add your comment there?
I'll mark these two comments as off-topic since this tracker is Fedora CoreOS specific.
Maybe you have to mark this one as well ... ? Thanks for the correction and the link, I posted there now.
This seem error seems to be present again with Fedora 39. Unable to open any docker containers that worked before updating. Otherwise nothing changed with containers.
Example output:
docker start mynodered
Error response from daemon: failed to create task for container: failed to create shim task: ttrpc: cannot marshal unknown type: *task.CreateTaskRequest: unknown
@webs397 are you running Fedora CoreOS? If so what version of Fedora CoreOS are you using (show the output of rpm-ostree status
). If not, you need to comment on and follow https://bugzilla.redhat.com/show_bug.cgi?id=2237396
@dustymabe Oh, no I am on Fedora Workstation 39. Thanks for the response I will check it out!
I'm running couple of Fedora Servers 39. With:
If you're not running Fedora CoreOS, please follow https://bugzilla.redhat.com/show_bug.cgi?id=2237396
I confirm that downgrading containerd-1.6.23-1.fc39.x86_64
to containerd-1.6.19-2.fc39.x86_64
from https://koji.fedoraproject.org/koji/buildinfo?buildID=2236784 and running systemctl restart docker
fixed the:
docker: Error response from daemon: failed to create task for container: failed to create shim task: ttrpc: cannot marshal unknown type: *task.CreateTaskRequest: unknown.
error on my Fedora 39 Workstation.
EDIT: Sorry, just now I realized that I duplicated existing comment that was marked as off-topic. I found this issue as first result in Google. I did not realize what repository it this. :pensive:
Locking this issue for now to prevent new off-topic comments. Please follow https://bugzilla.redhat.com/show_bug.cgi?id=2237396
There is a proposed update to fix this problem in Fedora 39. I have opened a fast-track PR to get it into testing-devel
.
Describe the bug
As detailed here basic
docker run
commands fail on task creation.https://bugzilla.redhat.com/show_bug.cgi?id=2239849
Reproduction steps
next
nodedocker run -d nginx
(Errors)docker ps
shows no running processExpected behavior
Nginx container launches as evidenced in a
docker ps
command.Actual behavior
Docker run fails on task creation. No running container.
System details
Butane or Ignition config
No response
Additional information
Ignition has some proxy declaration but that's it.
No crypto modifications or changes to docker settings etc.