Skip to content

Instantly share code, notes, and snippets.

@FilBot3
Last active September 15, 2015 23:00
Show Gist options
  • Select an option

  • Save FilBot3/20abfedc80adaa99aeb0 to your computer and use it in GitHub Desktop.

Select an option

Save FilBot3/20abfedc80adaa99aeb0 to your computer and use it in GitHub Desktop.
chef_knife_cookbook_upload_notworking
[vagrant@centos6 vagrant]$ chef exec knife cookbook upload confluence_install
ERROR: Could not find cookbook confluence_install in your cookbook path, skipping it
ERROR: Failed to upload 1 cookbook.
[vagrant@centos6 vagrant]$ chef exec knife cookbook upload confluence_install -o ./cookbooks/
ERROR: Could not find cookbook confluence_install in your cookbook path, skipping it
ERROR: Failed to upload 1 cookbook.
[vagrant@centos6 vagrant]$ chef exec knife cookbook upload confluence_install -o /vagrant/cookbooks/
ERROR: Could not find cookbook confluence_install in your cookbook path, skipping it
ERROR: Failed to upload 1 cookbook.
[vagrant@centos6 vagrant]$ chef exec knife cookbook upload confluence_install -o /vagrant/cookbooks/ --verbose
INFO: Using configuration from /vagrant/.chef/knife.rb
ERROR: Could not find cookbook confluence_install in your cookbook path, skipping it
ERROR: Failed to upload 1 cookbook.
[vagrant@centos6 vagrant]$ cat .chef/knife.rb
# See https://docs.getchef.com/config_rb_knife.html for more information on knife configuration options
current_dir = File.dirname(__FILE__)
log_level :info
log_location STDOUT
node_name "user01"
client_key "#{current_dir}/user01.pem"
validation_client_name "main-validator"
validation_key "#{current_dir}/main-validator.pem"
chef_server_url "https://chef.devcerner.com/organizations/main"
cookbook_path ["#{current_dir}/../cookbooks"]
[vagrant@centos6 vagrant]$ chef --version
Chef Development Kit Version: 0.7.0
chef-client version: 12.4.1
berks version: 3.2.4
kitchen version: 1.4.2
C:\Users\user01\Documents\GitHub\ec-main-dev-chef
λ chef exec knife cookbook upload confluence_install --verbose
INFO: Using configuration from C:/Users/user01/Documents/GitHub/ec-main-dev-chef/.chef/knife.rb
ERROR: Could not find cookbook confluence_install in your cookbook path, skipping it
ERROR: Failed to upload 1 cookbook.
C:\Users\user01\Documents\GitHub\ec-main-dev-chef
λ chef exec knife cookbook upload confluence_install -o C:\Users\user01\Documents\GitHub\ec-main-dev-chef\cookbooks\
ERROR: Could not find cookbook confluence_install in your cookbook path, skipping it
ERROR: Failed to upload 1 cookbook.
C:\Users\user01\Documents\GitHub\ec-main-dev-chef
λ ls -l cookbooks\
total 4
-rw-r--r-- 1 user01 Administ 3201 Sep 9 13:42 README.md
drwxr-xr-x 16 user01 Administ 4096 Sep 15 16:56 confluence_install
drwxr-xr-x 5 user01 Administ 0 Sep 9 13:42 example
@FilBot3
Copy link
Copy Markdown
Author

FilBot3 commented Sep 15, 2015

Turns out the ./cookbooks/confluence_install/metadata.rb didn't have the correct cookbook name, and that is why the cookbook failed to upload.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment