Hi all i got this error: error: Internal error occurred: error executing command . . .

Rodrigue Yossa:
hi all
i got this error: error: Internal error occurred: error executing command in container: failed to exec in container: failed to start exec “f25d4f3531cfc7a4a8f9b9b724c7336bd2ee493718e05fe8afc3436873fd2636”: OCI runtime exec failed: exec failed: unable to start container process: exec: “bash”: executable file not found in $PATH: unknown

When i run kubectl exec -it my-pod – bash

Can someone help me to fix it please?

Sagar Utekar:
try using other shells,
kubectl exec -it my-pod – sh

Rodrigue Yossa:
same error

Sagar Utekar:
what is k8s version ? how long this pod has been running ?

Rodrigue Yossa:
its worked before…but after i restart my nodes/controler…i f face this error

Rodrigue Yossa:
1.24

Rodrigue Yossa:
k8s version= 1.24.0 error is for all pods, new and old one

Alistair Mackay:
What image is the container running? If it is one you built yourself, what is the base image (i.e. FROM image in dockerfile)?

Sagar Utekar:
can you restart pod and see if it fix your issue ?
Have seen this problem on 1.24+

Rodrigue Yossa:
image is http://gcr.io/google-samples/hello-app:1.0|gcr.io/google-samples/hello-app:1.0

Alistair Mackay:
It is likely that this image is built on a distroless base, which means that it has no shells or standard commands included

Rodrigue Yossa:
thanks @Alistair Mackay you are rigth …i try new pod with ubuntu image and i can run exec command