Open rantoniuk opened 3 months ago
Thank you for reporting the issue. I am trying out the steps on my side. Can you please confirm the runtime in use? The error string has reference to containerd.
level=error time=2024-06-19T16:38:32Z msg="could not start Agent: API error (400): failed to create task for container: failed to create shim task: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/containerd/io.containerd.runtime.v2.task/moby/b2b6d9f3947516c395ac544748baaa909e0f7156067a1082c8592a0aea88517a/log.json: no such file or directory): /opt/aws/neuron/bin/oci_neuron_hook_wrapper.sh did not terminate successfully: exit status 2: unknown"
Quick reference for docs https://awsdocs-neuron.readthedocs-hosted.com/en/latest/containers/tutorials/tutorial-oci-hook.html
This report is about AWS AMI image that is supposed to have all the prerequisites for Neuron already installed, while it does not.
I'm trying to run ECS on inf1.2xlarge instance, using AMI ID:
ami-0a9852dd958cde533
,al2023-ami-ecs-neuron-hvm-2023.0.20240610-kernel-6.1-x86_64
.In the EC2 UserData, I'm doing:
That however results in Docker failing to start, with the following error:
Indeed, when trying to do this manually, I get an error:
After investigating, it seems that the
oci-add-hooks.x86_64
package is missing in the AMI image, after installing it docker starts up fine.