# Unable to exec pod getting error exit code 126

**URL:** <https://discuss.kubernetes.io/t/unable-to-exec-pod-getting-error-exit-code-126/21390>\
**Category:** General Discussions\
**Created:** [September 22, 2022, 8:54am UTC](https://discuss.kubernetes.io/t/unable-to-exec-pod-getting-error-exit-code-126/21390 "2022-09-22T08:54:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anupam24april](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@anupam24april](https://discuss.kubernetes.io/u/anupam24april)\
**Post date:** [September 22, 2022, 8:54am UTC](https://discuss.kubernetes.io/t/unable-to-exec-pod-getting-error-exit-code-126/21390/1 "2022-09-22T08:54:06Z")

</div>

Hi Team,

We have kuebernetes cluster of 4 nodes in production. We are not able to exec into pod by kubectl exec command getting error: “OCI runtime exec failed: exec failed: unable to start container process: open /dev/pts/0: operation not permitted: unknown command terminated with exit code 126”. After restart node or docker service or restart pod we are able to exec into pods. After few days later same issue coming.

Command: kubect exec -it – bash

### Cluster information:

Kubernetes version: 1.23.8  
Installation method: kubeadm  
Host OS: ubuntu 22.04  
kernel version: 5.15.0-46-generic  
CNI and version: 0.3.1  
CRI and version: 20.10.17

Please anyone help. Thanks in advance.

Regards,  
Anupam
