# FailedCreatePodSandBox

**URL:** <https://discuss.kubernetes.io/t/failedcreatepodsandbox/25216>\
**Category:** General Discussions\
**Tags:** network\
**Created:** [August 24, 2023, 2:36pm UTC](https://discuss.kubernetes.io/t/failedcreatepodsandbox/25216 "2023-08-24T14:36:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![naravotta](https://avatars.discourse-cdn.com/v4/letter/n/5e9695/32.png) [@naravotta](https://discuss.kubernetes.io/u/naravotta)\
**Post date:** [August 24, 2023, 2:36pm UTC](https://discuss.kubernetes.io/t/failedcreatepodsandbox/25216/1 "2023-08-24T14:36:50Z")

</div>

I have been troubleshooting this for a bit of time here but have not found further documentation (possibly due to how I am searching/troubleshooting). I can show the manifest, but I do not think that is the issue.

I have utilized the documentation from the Kubernetes deployment process.  
I appreciate your time..

Below is the error I receive when deplying.

# Commands run

`kubectl apply -f draft-nginx-manifest.yaml`

After running this, it deploys and the status is shown below.

`*@*:~$ kubectl get pods NAME READY STATUS RESTARTS AGE nginx-deployment-cbdccf466-2l64z 0/1 ContainerCreating 0 12d nginx-deployment-cbdccf466-7r57h 0/1 ContainerCreating 0 12d nginx-deployment-cbdccf466-8r2th 0/1 ContainerCreating 0 12d nginx-deployment-cbdccf466-db7k6 0/1 ContainerCreating 0 12d nginx-deployment-cbdccf466-grbht 0/1 ContainerCreating 0 12d nginx-deployment-cbdccf466-tp5qr 0/1 ContainerCreating 0 12d `

`*@*:~$ kubectl get deploy NAME READY UP-TO-DATE AVAILABLE AGE nginx-deployment 0/6 6 0 12d `

` Warning FailedCreatePodSandBox 75s (x65421 over 9d) kubelet (combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "e1e24f4013948e78a958f2ff2cc4e3b0f20af64744158dfe965c57b31cb891fb": plugin type="flannel" failed (add): loadFlannelSubnetEnv failed: open /run/flannel/subnet.env: no such file or directory`

To preface, I am very new and still exploring the manifest creation/testing Kubernetes.

### Cluster information:

#### Kubernetes version:

Client Version: version.Info{Major:“1”, Minor:“27”, GitVersion:“v1.27.3”, GitCommit:“25b4e43193bcda6c7328a6d147b1fb73a33f1598”, GitTreeState:“clean”, BuildDate:“2023-06-14T09:53:42Z”, GoVersion:“go1.20.5”, Compiler:“gc”, Platform:“linux/amd64”}  
Kustomize Version: v5.0.1  
Server Version: version.Info{Major:“1”, Minor:“27”, GitVersion:“v1.27.3”, GitCommit:“25b4e43193bcda6c7328a6d147b1fb73a33f1598”, GitTreeState:“clean”, BuildDate:“2023-06-14T09:47:40Z”, GoVersion:“go1.20.5”, Compiler:“gc”, Platform:“linux/amd64”}

#### Cloud being used: bare-metal

#### Installation method:

#### Host OS: Ubuntu 22.04.2 LTS

#### CNI and version:

{  
“name”: “cbr0”,  
“cniVersion”: “0.3.1”,  
“plugins”: [  
{  
“type”: “flannel”,  
“delegate”: {  
“hairpinMode”: true,  
“isDefaultGateway”: true  
}  
},  
{  
“type”: “portmap”,  
“capabilities”: {  
“portMappings”: true  
}  
}  
]  
}

#### CRI and version:

containerd://1.6.21
