- From: Daniel DeLeo <
>
- To:
- Subject: [chef] Re: "Permission denied @ rb_sysopen" :(
- Date: Wed, 3 Dec 2014 08:28:44 -0800
On Wednesday, December 3, 2014 at 8:03 AM, Douglas Garstang wrote:
>
So... who's seen this with a 'vagrant up'?
>
>
I reinstalled everything... VirtualBox, vagrant, chefdk, vagrant plugs etc
>
yesterday. Only happening with this one cookbook.
>
>
Douglass-MacBook-Pro:slice-base doug$ vagrant provision
>
==> default: Loading Berkshelf datafile...
>
==> default: Sharing cookbooks with VM
>
==> default: Updating Vagrant's Berkshelf...
>
The following berks command failed to execute:
>
>
/usr/bin/berks vendor
>
/Users/doug/.berkshelf/vagrant-berkshelf/shelves/berkshelf20141203-7419-k0xtm1-default
>
--berksfile /Users/doug/git/chef/chef-cookbooks/slice-base/Berksfile
>
>
The stdout and stderr are shown below:
>
>
stdout: Resolving cookbook dependencies...
>
stderr: /opt/chefdk/embedded/lib/ruby/2.1.0/fileutils.rb:1402:in
>
`initialize': Permission denied @ rb_sysopen -
>
/Users/doug/.berkshelf/vagrant-berkshelf/shelves/berkshelf20141203-7419-k0xtm1-default/chef-solo-search/.git/objects/pack/pack-01bc017603cf76234865cc984f8f23e853190a3c.idx
>
(Errno::EACCES)
>
from /opt/chefdk/embedded/lib/ruby/2.1.0/fileutils.rb:1402:in `open'
>
from /opt/chefdk/embedded/lib/ruby/2.1.0/fileutils.rb:1402:in `block in
>
copy_file'
>
from /opt/chefdk/embedded/lib/ruby/2.1.0/fileutils.rb:1401:in `open'
>
from /opt/chefdk/embedded/lib/ruby/2.1.0/fileutils.rb:1401:in `copy_file'
>
from /opt/chefdk/embedded/lib/ruby/2.1.0/fileutils.rb:483:in `copy_file'
>
from /opt/chefdk/embedded/lib/ruby/2.1.0/fileutils.rb:400:in `block in cp'
>
from /opt/chefdk/embedded/lib/ruby/2.1.0/fileutils.rb:1579:in `block in
>
fu_each_src_dest'
>
from /opt/chefdk/embedded/lib/ruby/2.1.0/fileutils.rb:1595:in
>
`fu_each_src_dest0'
>
from /opt/chefdk/embedded/lib/ruby/2.1.0/fileutils.rb:1577:in
>
`fu_each_src_dest'
>
from /opt/chefdk/embedded/lib/ruby/2.1.0/fileutils.rb:399:in `cp'
>
from /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/file_syncer.rb:88:in
>
`block in sync'
>
from /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/file_syncer.rb:71:in
>
`each'
>
from /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/file_syncer.rb:71:in
>
`sync'
>
from /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/berksfile.rb:617:in
>
`block in vendor'
>
from /opt/chefdk/embedded/lib/ruby/2.1.0/tmpdir.rb:88:in `mktmpdir'
>
from /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/berksfile.rb:577:in
>
`vendor'
>
from /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/cli.rb:387:in
>
`vendor'
>
from
>
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:in
>
`run'
>
from
>
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in
>
`invoke_command'
>
from
>
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor.rb:359:in
>
`dispatch'
>
from /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/cli.rb:52:in
>
`dispatch'
>
from
>
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/base.rb:440:in
>
`start'
>
from /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/cli.rb:27:in
>
`execute!'
>
from /opt/chefdk/embedded/apps/berkshelf/bin/berks:5:in `<top (required)>'
>
from /usr/bin/berks:38:in `load'
>
from /usr/bin/berks:38:in `<main>'
>
>
>
It appears that you are not using the ChefDK. Please note that Vagrant
>
Berkshelf
>
works best when used with the ChefDK, and other installation methods are not
>
officially supported.
>
>
Please download and install the latest version of the ChefDK from:
>
>
https://downloads.getchef.com/chef-dk
>
>
and follow the installation instructions. Do not forget to add the ChefDK to
>
your PATH.
>
>
>
Doug
This file appears to be owned by root and you’re not allowed to read it:
/Users/doug/.berkshelf/vagrant-berkshelf/shelves/berkshelf20141203-7419-k0xtm1-default/chef-solo-search/.git/objects/pack/pack-01bc017603cf76234865cc984f8f23e853190a3c.idx
Try running `chown -R` on your ~/.berkshelf directory.
--
Daniel DeLeo
Archive powered by MHonArc 2.6.16.