Last active
September 15, 2015 23:00
-
-
Save FilBot3/20abfedc80adaa99aeb0 to your computer and use it in GitHub Desktop.
chef_knife_cookbook_upload_notworking
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Turns out the ./cookbooks/confluence_install/metadata.rb didn't have the correct cookbook name, and that is why the cookbook failed to upload.