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:Jump to solution
Okay, we managed to fix it. I missed adding the new environment variable.
```
env { name = "ENVBUILDER_IGNORE_PATHS"...
env { name = "ENVBUILDER_IGNORE_PATHS"...
7 Replies
<#1375051167687507968>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
are you able to share your terraform template?
or have you not edited anything?
could you also send the devcontainer spec used
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
Okay, we managed to fix it. I missed adding the new environment variable.
thanks for following up :-)
@Phorcys closed the thread.