Cian
CCoder.com
•Created by WBR_K on 1/17/2025 in #help
Envbox in kubernetes, cgroup permission issue.
(and restart Docker)
14 replies
CCoder.com
•Created by WBR_K on 1/17/2025 in #help
Envbox in kubernetes, cgroup permission issue.
Try setting
"default-cgroupns-mode": "host"
in your /etc/docker/daemon.json
14 replies
CCoder.com
•Created by Greenman999 on 1/21/2025 in #help
Devcontainer starting is taking really long / multiple times building the Dockerfile?
Yep, with point 4) that's basically confirmation to me that you're running into the same issue
29 replies
CCoder.com
•Created by Greenman999 on 1/21/2025 in #help
Devcontainer starting is taking really long / multiple times building the Dockerfile?
I went ahead and created an issue with my observations: https://github.com/coder/coder/issues/16355
Please feel free to add any other relevant context you may have!
29 replies
CCoder.com
•Created by Greenman999 on 1/21/2025 in #help
Devcontainer starting is taking really long / multiple times building the Dockerfile?
For future reference, 4 minutes is not an unexpected amount of time for Envbuilder to build a non-trivial container from scratch. There are some ways to make this go faster, but the underlying build tool (kaniko) is fundamentally single-threaded and operates completely in userspace, meaning that it can't use nice things like overlayfs 😦
29 replies
CCoder.com
•Created by Greenman999 on 1/21/2025 in #help
Devcontainer starting is taking really long / multiple times building the Dockerfile?
@Greenman999 I'm fairly sure it's just the logs being shown multiple times by the UI for some reason. I was able to reproduce it just now using our
docker-compose
setup in coder/coder
with the same template, building the home-assistant image.
1) What version of Coder are you running? I can see the version of Envbuilder you're using from the log output.
2) Do you get the same behaviour if you hit https://$CODER_DEPLOYMENT/api/v2/workspaceagents/$WORKSPACE_AGENT_ID/logs
directly?
Note: You'll need to hit https://$CODER_DEPLOYMENT/api/v2/users/$YOUR_USERNAME/workspace/$WORKSPACE_NAME
and look for agent_id
to get the parameter for $WORKSPACE_AGENT_ID
).
That endpoint also returns the JSON-formatted logs which includes entry IDs and timestamps, so duplicates should be readily apparent there. If the container is really being built twice, you should see the string "Built image!" show up twice.
3) Do you get the same behaviour if you view the logs for the envbuilder container via the Docker CLI (docker logs container-name-goes-here
)?
3) If you refresh the workspace page, do you get the same number of logs? I've seen multiples of the logs before refresh, and the correct number after refresh.
Under the hood, when you expand the logs drawer, we send a GET to fetch all the currently persisted logs, and we then open a websocket to /logs?follow&after=$LAST_LOG_ID
. It's possible we're just not updating $LAST_LOG_ID
correctly in the UI.29 replies
CCoder.com
•Created by tsa on 10/2/2024 in #help
Can't delete a workspace which uses devcontainers
this is probably an issue with the template tbh, terraform is trying to delete the image
7 replies
CCoder.com
•Created by molitann on 10/8/2024 in #help
Envbuilder in Coder: wrong user is used when cache is enabled
Thanks @molitann ! Will add to the docs.
13 replies
CCoder.com
•Created by molitann on 10/8/2024 in #help
Envbuilder in Coder: wrong user is used when cache is enabled
try with
containerUser
instead of remoteUser
13 replies
CCoder.com
•Created by molitann on 10/8/2024 in #help
Envbuilder in Coder: wrong user is used when cache is enabled
I'm guessing that
remoteUser
should probably override whatever else gets auto-detected?13 replies
CCoder.com
•Created by molitann on 10/8/2024 in #help
Envbuilder in Coder: wrong user is used when cache is enabled
Hey @molitann can you also upload your Dockerfile? I'm able to repro this without the provider in the mix, it looks like it's related to when a user gets created as part of the devcontainer customizations
13 replies
CCoder.com
•Created by JustATempest on 9/19/2024 in #help
AWS EC2 (Devcontainer) fails with custom repo
FYI @JustATempest I updated the aws-devcontainer template: https://github.com/coder/coder/tree/4be5b2f/examples/templates/aws-devcontainer
I haven't been able to reproduce the hang you have been describing but I did add the facility to insert an SSH key into the VM so you can at least log in and poke around if things don't connect.
My experience with "taking a snapshot" is that it can sometimes take a while to complete though.
30 replies
CCoder.com
•Created by JustATempest on 9/19/2024 in #help
AWS EC2 (Devcontainer) fails with custom repo
Interesting... there may be some more detailed info in the cloud_init logs on the instance, but that's going to be annoying to get to without an SSH key in the instance.
30 replies
CCoder.com
•Created by JustATempest on 9/19/2024 in #help
AWS EC2 (Devcontainer) fails with custom repo
ENVBUILDER_VERBOSE=true
30 replies
CCoder.com
•Created by JustATempest on 9/19/2024 in #help
AWS EC2 (Devcontainer) fails with custom repo
At the 'taking a snapshot' it's basically hashing all of the files and based on the template you shared above, pushing the images to the remote cache. Do you have container logs from this stage? Meanwhile, I'm trying out your template on my own deployment.
30 replies
CCoder.com
•Created by JustATempest on 9/19/2024 in #help
AWS EC2 (Devcontainer) fails with custom repo
What version of Coder are you using here?
Can you also provide logs from the workspace container when the workspace is in this frozen/unhealthy state?
30 replies
CCoder.com
•Created by wizrds on 8/9/2024 in #help
Expose coder user SSH key to envbuilder
Looking more at the last message
error: temp remount: temp remount: bind mount /.ssh/id_rsa => /.envbuilder/mnt/.ssh/id_rsa: permission deniedAre you sure your
envbuilder
container is running as root? Do you have some container security policy in place?9 replies
CCoder.com
•Created by wizrds on 8/9/2024 in #help
Expose coder user SSH key to envbuilder
Thanks for the heads-up on the documentation inconsistency as well! I updated it just now.
9 replies
CCoder.com
•Created by wizrds on 8/9/2024 in #help
Expose coder user SSH key to envbuilder
Can you set
ENVBUILDER_VERBOSE=true
and try again?9 replies
CCoder.com
•Created by wizrds on 8/9/2024 in #help
Expose coder user SSH key to envbuilder
Which version of envbuilder are you using? (EDIT: I see the version string now)
9 replies