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

Berks vendor in publish phase causes permission denied on client key when pulling from a chef server #6

Open
ndobson opened this issue May 29, 2015 · 3 comments · May be fixed by #7
Open
Labels
Type: Enhancement Adds new functionality.

Comments

@ndobson
Copy link

ndobson commented May 29, 2015

berks vendor in publish phase causes permission denied on client key when pulling from chef server, probably want to have berks use the delivery.pem instead

 execute[berks_vendor_cookbook_ge_delivery_chef] action run

    ================================================================================
    Error executing action `run` on resource 'execute[berks_vendor_cookbook_ge_delivery_chef]'
    ================================================================================

    Mixlib::ShellOut::ShellCommandFailed
    ------------------------------------
    Expected process to exit with [0], but received '1'
    ---- Begin output of berks vendor /var/opt/delivery/workspace/3.166.221.12/ge_capital/archops/ge_delivery_chef/master/build/publish/cache/cookbook-upload ----
    STDOUT: Resolving cookbook dependencies...
    Fetching 'ge_delivery_chef' from source at .
    Fetching cookbook index from http://3.166.220.156...
    Installing chef-vault (1.3.0) from http://3.166.220.156 ([chef_server] https://3.166.221.11:443/organizations/archops)
    Installing delivery-truck (1.5.0) from http://3.166.220.156 ([chef_server] https://3.166.221.11:443/organizations/archops)
    Using ge_delivery_chef (0.2.20) from source at .
    STDERR: /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.1.2/lib/ridley/client.rb:144:in `read': Permission denied @ rb_sysopen - /etc/chef/client.pem (Errno::EACCES)
        from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.1.2/lib/ridley/client.rb:144:in `initialize'
        from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `public_send'
@ndobson ndobson linked a pull request May 30, 2015 that will close this issue
@afiune
Copy link
Contributor

afiune commented Jun 2, 2015

@ndobson Could you show me the permissions on the file /etc/chef/client.pem?

@afiune
Copy link
Contributor

afiune commented Jun 16, 2015

@ndobson any update on this? 😄

@ndobson
Copy link
Author

ndobson commented Jun 23, 2015

@afiune yes currently we have a wrapper build cookbook that is laying down a .berkshelf/config.json containing the path to the client key in both the publish and unit phases. Is this something that you think should be integrated into delivery-truck?

@cheeseplus cheeseplus added the Type: Enhancement Adds new functionality. label Feb 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Adds new functionality.
Development

Successfully merging a pull request may close this issue.

4 participants