# Opensearch pod failling with CrashLoopBack Error

**URL:** https://forum.opensearch.org/t/opensearch-pod-failling-with-crashloopback-error/8045
**Category:** DevOps
**Created:** [December 16, 2021, 9:20am UTC](https://forum.opensearch.org/t/opensearch-pod-failling-with-crashloopback-error/8045 "2021-12-16T09:20:19Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![opensearch](https://avatars.discourse-cdn.com/v4/letter/o/f475e1/32.png) [@opensearch](https://forum.opensearch.org/u/opensearch)
#### Post date: [December 16, 2021, 9:20am UTC](https://forum.opensearch.org/t/opensearch-pod-failling-with-crashloopback-error/8045/1 "2021-12-16T09:20:19Z")

</div>

Hi Team,

We have tried OpenSearch installation using OpenSearch helm chart in the AKS Cluster. We could see pod are getting failed with CrashLoopBackError with the below error.

**Warning Failed 21s (x4 over 65s) kubelet Error: failed to create containerd task: OCI runtime create failed: container\_linux.go:370: starting container process caused: process\_linux.go:459: container init caused: rootfs\_linux.go:59: mounting “/var/lib/kubelet/pods/aecd5368-462b-4af5-addb-d904c980c3f4/volume-subpaths/config/opensearch/2” to rootfs at “/run/containerd/io.containerd.runtime.v1.linux/k8s.io/opensearch/rootfs/usr/share/opensearch/config/opensearch.yml” caused: not a directory: unknown**  
**Warning BackOff 9s (x6 over 64s) kubelet Back-off restarting failed container**.

Thanks & Regards,  
Mounika

---

<div class="post-metadata">

### Author: ![searchymcsearchface](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/searchymcsearchface/32/868_2.png) [@searchymcsearchface](https://forum.opensearch.org/u/searchymcsearchface)
#### Post date: [December 16, 2021, 2:50pm UTC](https://forum.opensearch.org/t/opensearch-pod-failling-with-crashloopback-error/8045/2 "2021-12-16T14:50:34Z")

</div>

Moved to the DevOps category. @TheAlgo Any thoughts here?

---

<div class="post-metadata">

### Author: ![TheAlgo](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@TheAlgo](https://forum.opensearch.org/u/TheAlgo)
#### Post date: [December 16, 2021, 4:48pm UTC](https://forum.opensearch.org/t/opensearch-pod-failling-with-crashloopback-error/8045/3 "2021-12-16T16:48:56Z")

</div>

> [@opensearch](#):
>
> mounting “/var/lib/kubelet/pods/aecd5368-462b-4af5-addb-d904c980c3f4/volume-subpaths/config/opensearch/2

@opensearch Can you manually unmount the volume and force delete the pods and retry again? From a bird view it looks like a mounting issue.

---

<div class="post-metadata">

### Author: ![opensearch](https://avatars.discourse-cdn.com/v4/letter/o/f475e1/32.png) [@opensearch](https://forum.opensearch.org/u/opensearch)
#### Post date: [December 17, 2021, 7:27am UTC](https://forum.opensearch.org/t/opensearch-pod-failling-with-crashloopback-error/8045/4 "2021-12-17T07:27:10Z")

</div>

> [@TheAlgo](#):
>
> Can you manually unmount the volume and force delete the pods and retry again? From a bird view it looks like a mounting issue.

@TheAlgo -we tried that, Still can see Crash Loopback error only.

---

<div class="post-metadata">

### Author: ![sreekanth](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sreekanth](https://forum.opensearch.org/u/sreekanth)
#### Post date: [December 17, 2021, 10:13am UTC](https://forum.opensearch.org/t/opensearch-pod-failling-with-crashloopback-error/8045/5 "2021-12-17T10:13:21Z")

</div>

> [@opensearch](#):
>
> “/run/containerd/io.containerd.runtime.v1.linux/k8s.io/opensearch/rootfs/usr/share/opensearch/config/opensearch.yml” caused: not a directory: unknown

Could it be the case that you need to point it to a directory instead we are pointing to .yml

---

<div class="post-metadata">

### Author: ![opensearch](https://avatars.discourse-cdn.com/v4/letter/o/f475e1/32.png) [@opensearch](https://forum.opensearch.org/u/opensearch)
#### Post date: [December 20, 2021, 11:40am UTC](https://forum.opensearch.org/t/opensearch-pod-failling-with-crashloopback-error/8045/6 "2021-12-20T11:40:05Z")

</div>

tried , but no luck.

---

<div class="post-metadata">

### Author: ![sreekanth](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sreekanth](https://forum.opensearch.org/u/sreekanth)
#### Post date: [December 20, 2021, 1:29pm UTC](https://forum.opensearch.org/t/opensearch-pod-failling-with-crashloopback-error/8045/7 "2021-12-20T13:29:40Z")

</div>

Could you please share the entire log snippet

---

<div class="post-metadata">

### Author: ![opensearch](https://avatars.discourse-cdn.com/v4/letter/o/f475e1/32.png) [@opensearch](https://forum.opensearch.org/u/opensearch)
#### Post date: [January 5, 2022, 5:59am UTC](https://forum.opensearch.org/t/opensearch-pod-failling-with-crashloopback-error/8045/8 "2022-01-05T05:59:32Z")

</div>

Hi Team,

Due to security constraints, in Our project few polices got enabled. So we disabled Read only filesystem, escalation privileges etc. Post that able to setup OpenSearch using helm in aks cluster.
