C
Coder.com•2mo ago
johnk

Coder docker container works on N4 Google Compute instance but no longer C4

Hello, I have been using coder a ton lately and it's been amazing! I have been using the C4 instance for a few weeks, then recently (within the last few days) used N4 instead. In that time, it appears coder's docker template has become incompatible. To reproduce: 1. Create c4-standard-8 machine 2. Run the following commands 2.a sudo apt install docker.io 2.b sudo usermod -aG docker ${USER} 2.c sudo chmod 666 /var/run/docker.sock 2.d curl -L https://coder.com/install.sh | sh 2.e coder server 3. Open coder, login, and create a workspace using the docker template, you will notice it hangs at docker_image.main: Still creating. forever. if you find the dockerfile and manually run it with docker build . -t test:1 you will see it's an endless loop of this
---> 35a88802559d
Step 2/6 : RUN apt-get update && apt-get install -y curl git golang sudo vim wget && rm -rf /var/lib/apt/lists/*
---> Running in b9f76bfbc76d
Ign:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:2 http://archive.ubuntu.com/ubuntu noble InRelease
Ign:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Ign:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Ign:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:2 http://archive.ubuntu.com/ubuntu noble InRelease
Err:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Connection failed [IP: 91.189.91.81 80]
Ign:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
---> 35a88802559d
Step 2/6 : RUN apt-get update && apt-get install -y curl git golang sudo vim wget && rm -rf /var/lib/apt/lists/*
---> Running in b9f76bfbc76d
Ign:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:2 http://archive.ubuntu.com/ubuntu noble InRelease
Ign:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Ign:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Ign:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:2 http://archive.ubuntu.com/ubuntu noble InRelease
Err:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Connection failed [IP: 91.189.91.81 80]
Ign:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
None of this happens for N4 or others. How do I fix this?
3 Replies
Codercord
Codercord•2mo ago
<#1265163443820826636>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Atif
Atif•2mo ago
This lokks like the C4 VMs are having struggle reaching Ubuntu repos. Its a Google cloud networking issue and not linked with Coder.
johnk
johnk•2mo ago
Ohhh that makes sense. Bad timing because in that time I stopped using it and started using N4 😭 thank you though! I checked for ongoing issues in the dashboard but nothing relevant.
Want results from more Discord servers?
Add your server