Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission denied to create directory /porter #148

Open
tompaana opened this issue Jun 16, 2023 · 4 comments
Open

Permission denied to create directory /porter #148

tompaana opened this issue Jun 16, 2023 · 4 comments

Comments

@tompaana
Copy link

tompaana commented Jun 16, 2023

When we try to run an install action with the CNAB driver and using a bundle published in a registry (porter install <installation name> --driver azure --reference <bundle registry ref> ...), we run into the following error:

Creating Azure Container Instance To Execute Bundle
Running Bundle Instance in Azure Container Instance
mkdir: cannot create directory '/porter': Permission denied

Porter version used: 1.0.14

Error happening possibly on line 1072 of aci-driver.go.

Building a Porter bundle by using a Dockerfile template with line RUN mkdir /porter && chown ${BUNDLE_UID} /porter will work, but this is a workaround very hard to sell.

@squillace
Copy link
Contributor

Hi @tompaana we'll need a bit more here. So this is in the ACI service? @simongdavies any ideas?

@squillace
Copy link
Contributor

if you can chown and get it to run, then it's a question of setting perms right, of course. I'm quite sure there's a solution here.

@tompaana
Copy link
Author

@squillace I updated the description. We are indeed using the ACI service and the error occurs in the newly spun up container instance. Perms issue definitely, but is it something we're doing wrong or a compatibility issue with the latest Porter version...

@squillace
Copy link
Contributor

I believe that Simon's going to have a look at this. Running in userspace will affect this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants