Permission denied issue after upgrading to 1.1.0 from 0.2.9 envbuilder

We are using Devcontainer Kubernetes: coder version: 2.20.2 It's working fine with version 0.2.9, but when I use the latest version, it gives me a Permission denied issue. #1: Parsed Git URL as "https://github.com/******/******#development" #1: 📦 The repository already exists! [157.427µs] No Dockerfile specified, looking for a devcontainer.json... Building in Devcontainer mode using /.devcontainer/coder/devcontainer.json skip rw mount / skip rw mount /proc skip rw mount /dev skip rw mount /dev/pts skip rw mount /dev/mqueue skip mount /sys under ignored prefix /sys skip mount /sys/fs/cgroup under ignored prefix /sys skip rw mount /workspaces temp remount /config/our_priv_key.pem error: temp remount: temp remount: bind mount /config/our_priv_key.pem => /.envbuilder/mnt/config/our_priv_key.pem: permission denied
Solution:
Okay, we managed to fix it. I missed adding the new environment variable. ```
env { name = "ENVBUILDER_IGNORE_PATHS"...
Jump to solution
7 Replies
Codercord
Codercord•5mo ago
Codercord
Codercord•5mo ago
<#1375051167687507968>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Phorcys
Phorcys•5mo ago
are you able to share your terraform template? or have you not edited anything? could you also send the devcontainer spec used
Shreeram Silwal
Shreeram SilwalOP•5mo ago
I haven't edited anything. I have a configmap/secret in a k8s deployment, and it's not allowing me to mount with a permission issue when I use the new envbuilder version. We have some hardcoded confidential information on the template we will not be able to share it here. 🙂 But we are following a similar template here. https://registry.coder.com/templates/kubernetes-devcontainer?tab=source but we have configmaps and secrets as volumemount in k8s deployment.
Solution
Shreeram Silwal
Shreeram Silwal•5mo ago
Okay, we managed to fix it. I missed adding the new environment variable.

env {
name = "ENVBUILDER_IGNORE_PATHS"
value = "/config,/var/run"
}

env {
name = "ENVBUILDER_IGNORE_PATHS"
value = "/config,/var/run"
}
Phorcys
Phorcys•5mo ago
thanks for following up :-)
Codercord
Codercord•5mo ago
@Phorcys closed the thread.

Did you find this page helpful?