flynn-archive / slugbuilder

Archived -- see https://github.com/flynn/flynn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Permission denied - /tmp/cache/vendor (Errno::EACCES)

jschneiderhan opened this issue · comments

This isn't really an issue, just something that I was bitten by and figured I would share in case anyone else has a similar problem in the future.

If you are using boot2docker and are getting an error message similar to the following while trying to use the caching functionality, remember that the host directory needs to be present on the host of the Docker daemon (the boot2docker VM), not on your outermost host. If you create the directory within the boot2docker vm everything works like a charm.

docker run -v /tmp/app-cache:/tmp/cache:rw -i -a stdin -a stdout flynn/slugbuilder

... and are getting an error message like the following ...

-----> Ruby app detected
-----> Compiling Ruby/Rails
/usr/lib/ruby/1.9.1/fileutils.rb:247:in `mkdir': Permission denied - /tmp/cache/vendor (Errno::EACCES)
        from /usr/lib/ruby/1.9.1/fileutils.rb:247:in `fu_mkdir'
        from /usr/lib/ruby/1.9.1/fileutils.rb:221:in `block (2 levels) in mkdir_p'
        from /usr/lib/ruby/1.9.1/fileutils.rb:219:in `reverse_each'
        from /usr/lib/ruby/1.9.1/fileutils.rb:219:in `block in mkdir_p'
        from /usr/lib/ruby/1.9.1/fileutils.rb:205:in `each'
        from /usr/lib/ruby/1.9.1/fileutils.rb:205:in `mkdir_p'

Closing since this isn't really an issue with the codebase