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

mkdir: cannot create directory ‘/app/vendor/bundle’: Permission denied #1

Open
cmrichards opened this issue May 9, 2017 · 1 comment

Comments

@cmrichards
Copy link

I've just installed nanobox and docker for the first time. Following the instructions in the readme here gives me this error:

sudo nanobox run rails s
Preparing environment :


  • HEADS UP:
  • This is the first build for this project and will take longer than usual.
  • Future builds will pull from the cache and will be much faster.

Building runtime :
✓ Starting docker container
✓ Preparing environment for build
✓ Gathering requirements
! Mounting cache_dirs

! FAILED TO MKDIR -P /APP/VENDOR/BUNDLE !

Exit
1

Command
su - gonano -c "mkdir -p /app/vendor/bundle"

Output
mkdir: cannot create directory ‘/app/vendor/bundle’: Permission denied

Error : failed to execute hook (mount) on b38eae740846cc02e8a3145cfd6a66702f83da9910c8383c683cbf15c54bb779: util:Exec:/opt/nanobox/hooks/mount: bad exit code(1):
Context : failed to build the code

Any idea what's causing it?

@mhornbacher
Copy link
Contributor

mhornbacher commented Oct 11, 2017

It looks like a permissions issue with the container. Can't seem to replicate it on my Ubuntu 17.04 workstation.

Are you still getting this error?

sdomino pushed a commit that referenced this issue Dec 27, 2017
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