R
Runpod5mo ago
Nicolay

Could not resolve host: github.com

Its not possible to git clone in pods ?
Solution:
For anyone dealing with similar issues: Try adding at least a 20 second sleep in your entrypoint (untested, but it might help). However, what definitely works 100%: put everything needed directly into the Docker image (e.g. handle git clone and similar tasks during the Docker build, not at runtime). This way, everything just works....
Jump to solution
19 Replies
Nicolay
NicolayOP5mo ago
i have my own docker img and locally it runs just fine, but in pod i get error fatal: unable to access 'git URL': Could not resolve host: github.com
Dj
Dj5mo ago
This shouldn't be happening, can you share your Pod ID? I'll take a look. @Nicolay
Nicolay
NicolayOP5mo ago
hello, pod_id: qgp73qnibiesfy it was terminated, but i can launch a new one
Dj
Dj5mo ago
You should launch a new one, I'm taking down this machine for a little bit
No description
Nicolay
NicolayOP5mo ago
i have just launch new one gkveesj0dwx0l0 its now pulling docker img still same error
Dj
Dj5mo ago
I don't see the same error, can you try by doing something like apt update?
Nicolay
NicolayOP5mo ago
I can’t connect to the container because it didn’t pass the initial startup. I’m getting this error: Error response from daemon: Container 5f0fdf74f0dfdf82c0417d4272ceb8fa8f5362449321b9e5066dfec0d46c0b93 is not running Connection to 100.65.21.83 closed. Connection to ssh.runpod.io closed. So unfortunately, I can’t run apt update or access the container at all. error from system start container for nicolay2145/comfy-wan-2.1:latest: begin error starting sidecar: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: failed to cache mappings for userns: userns spawn: open userns path /proc/3936690/ns/user failed: No such file or directory: unknown
Nicolay
NicolayOP5mo ago
No description
Dj
Dj5mo ago
Try cloning into / or another directory you're certain exists at startup? Also, if you have a pod open currently are you able to get to SSH?
Nicolay
NicolayOP5mo ago
The script fails specifically at the git clone step:
git clone https://"${GITHUB_TOKEN}":x-oauth-basic@github.com/nikolas2145/ComfyUI.git /app/ComfyUI
git clone https://"${GITHUB_TOKEN}":x-oauth-basic@github.com/nikolas2145/ComfyUI.git /app/ComfyUI
The container can't access GitHub during startup, so cloning always fails. No, I'm not able to SSH into the pod at all. The pod never fully starts, because it fails at the git clone step during initialization. So I can't access the shell or do anything inside – it always crashes and restarts from the beginning. Locally, the git clone step works every time – it's only on RunPod where the container can't reach GitHub.
Dj
Dj5mo ago
Can you try making another Pod? I just simulated doing the same thing and I'm just fine :<
Dj
Dj5mo ago
No description
Nicolay
NicolayOP5mo ago
can i ask what region are you using ?
Dj
Dj5mo ago
I just deleted the pod lol I can test it in EUR-IS-1 like you were on
Dj
Dj5mo ago
😄
No description
Nicolay
NicolayOP5mo ago
Are you using the official RunPod template for this? https://www.runpod.io/console/hub/runpod-workers/worker-comfyui I checked the official RunPod ComfyUI worker. It doesn’t use git clone for ComfyUI at all, but relies on comfy-cli to do the installation (see the Dockerfile). Is there a reason for this? Is comfy-cli whitelisted in your network, or are direct git clone requests restricted in some way?
Dj
Dj5mo ago
There is no restriction or whitelist to our networking, I'm texting with a random PyTorch version but functionally all the pods are just docker containers with files in them anyway
Nicolay
NicolayOP5mo ago
Alright, I’ll try it the way it’s done in your official Dockerfile and see how it goes. Thank you very much for your help! If I run into any other issues, I’ll open a ticket.
Solution
Nicolay
Nicolay5mo ago
For anyone dealing with similar issues: Try adding at least a 20 second sleep in your entrypoint (untested, but it might help). However, what definitely works 100%: put everything needed directly into the Docker image (e.g. handle git clone and similar tasks during the Docker build, not at runtime). This way, everything just works.

Did you find this page helpful?