Skip to content

Instantly share code, notes, and snippets.

@bdangit
Last active December 20, 2015 04:28
Show Gist options
  • Save bdangit/6070688 to your computer and use it in GitHub Desktop.
Save bdangit/6070688 to your computer and use it in GitHub Desktop.
verbose error on Berkshelf.lock. Using berkshelf 2.0.7 and knife-solo 0.3.0.pre5
{
"sources": {
"shadow": {
"locked_version": "0.3.80",
"git": "git@github.com:bdangit/shadow.git",
"ref": "86855b301f73ce6a51183ba129ea2fa5b4215502"
},
"subversion": {
"locked_version": "1.0.2",
"site": {"scheme":"http","user":null,"password":null,"host":"cookbooks.opscode.com","port":null,"path":"/api/v1/cookbooks","query":null,"fragment":null}
},
"apt": {
"locked_version": "1.9.2",
"site": {"scheme":"http","user":null,"password":null,"host":"cookbooks.opscode.com","port":null,"path":"/api/v1/cookbooks","query":null,"fragment":null}
},
"sudo": {
"locked_version": "2.1.2",
"site": {"scheme":"http","user":null,"password":null,"host":"cookbooks.opscode.com","port":null,"path":"/api/v1/cookbooks","query":null,"fragment":null}
},
"apache2": {
"locked_version": "1.6.6",
"site": {"scheme":"http","user":null,"password":null,"host":"cookbooks.opscode.com","port":null,"path":"/api/v1/cookbooks","query":null,"fragment":null}
},
"mysql": {
"locked_version": "3.0.2",
"site": {"scheme":"http","user":null,"password":null,"host":"cookbooks.opscode.com","port":null,"path":"/api/v1/cookbooks","query":null,"fragment":null}
},
"php": {
"locked_version": "1.1.8",
"site": {"scheme":"http","user":null,"password":null,"host":"cookbooks.opscode.com","port":null,"path":"/api/v1/cookbooks","query":null,"fragment":null}
},
"windows": {
"locked_version": "1.8.10"
},
"chef_handler": {
"locked_version": "1.1.4"
},
"openssl": {
"locked_version": "1.0.2"
},
"build-essential": {
"locked_version": "1.4.0"
},
"xml": {
"locked_version": "1.1.2"
}
}
}
$ bundle exec gem list berkshelf
*** LOCAL GEMS ***
berkshelf (2.0.7)
$ bundle exec gem list knife-solo
*** LOCAL GEMS ***
knife-solo (0.3.0.pre5)
$ bundle exec knife solo cook -i [sshkey] [user@host] -VV
Starting 'Run'
Running Chef on [host]...
Checking Chef version...
DEBUG: Initial command sudo chef-solo --version 2>/dev/null | awk '$1 == "Chef:" {print $2}'
DEBUG: Initial command sudo -V
DEBUG: Running processed command sudo -V
DEBUG: sudo -V stdout: Sudo version 1.8.3p1
DEBUG: sudo -V stdout: Sudoers policy plugin version 1.8.3p1
DEBUG: sudo -V stdout: Sudoers file grammar version 40
DEBUG: sudo -V stdout: Sudoers I/O plugin version 1.8.3p1
DEBUG: Running processed command sudo -p 'knife sudo password: ' chef-solo --version 2>/dev/null | awk '$1 == "Chef:" {print $2}'
DEBUG: sudo -p 'knife sudo password: ' chef-solo --version 2>/dev/null | awk '$1 == "Chef:" {print $2}' stdout: 11.4.4
DEBUG: Node config 'nodes/[host].json' already exists
Installing Berkshelf cookbooks to 'cookbooks'...
/Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/gems/addressable-2.3.5/lib/addressable/uri.rb:101:in `rescue in parse': Can't convert Hash into String. (TypeError)
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/gems/addressable-2.3.5/lib/addressable/uri.rb:98:in `parse'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/bundler/gems/berkshelf-4df1a3db162a/lib/berkshelf/community_rest.rb:77:in `initialize'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/bundler/gems/berkshelf-4df1a3db162a/lib/berkshelf/locations/site_location.rb:34:in `new'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/bundler/gems/berkshelf-4df1a3db162a/lib/berkshelf/locations/site_location.rb:34:in `initialize'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/bundler/gems/berkshelf-4df1a3db162a/lib/berkshelf/location.rb:98:in `new'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/bundler/gems/berkshelf-4df1a3db162a/lib/berkshelf/location.rb:98:in `init'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/bundler/gems/berkshelf-4df1a3db162a/lib/berkshelf/cookbook_source.rb:248:in `from_default'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/bundler/gems/berkshelf-4df1a3db162a/lib/berkshelf/cookbook_source.rb:136:in `cached_and_location'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/bundler/gems/berkshelf-4df1a3db162a/lib/berkshelf/cookbook_source.rb:117:in `initialize'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/bundler/gems/berkshelf-4df1a3db162a/lib/berkshelf/lockfile.rb:40:in `new'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/bundler/gems/berkshelf-4df1a3db162a/lib/berkshelf/lockfile.rb:40:in `block in load!'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/bundler/gems/berkshelf-4df1a3db162a/lib/berkshelf/lockfile.rb:35:in `each'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/bundler/gems/berkshelf-4df1a3db162a/lib/berkshelf/lockfile.rb:35:in `load!'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/bundler/gems/berkshelf-4df1a3db162a/lib/berkshelf/lockfile.rb:27:in `initialize'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/bundler/gems/berkshelf-4df1a3db162a/lib/berkshelf/berksfile.rb:674:in `new'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/bundler/gems/berkshelf-4df1a3db162a/lib/berkshelf/berksfile.rb:674:in `lockfile'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/bundler/gems/berkshelf-4df1a3db162a/lib/berkshelf/berksfile.rb:745:in `source_from_lockfile'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/bundler/gems/berkshelf-4df1a3db162a/lib/berkshelf/berksfile.rb:740:in `block in apply_lockfile'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/bundler/gems/berkshelf-4df1a3db162a/lib/berkshelf/berksfile.rb:739:in `collect'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/bundler/gems/berkshelf-4df1a3db162a/lib/berkshelf/berksfile.rb:739:in `apply_lockfile'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/bundler/gems/berkshelf-4df1a3db162a/lib/berkshelf/berksfile.rb:412:in `install'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/bundler/gems/knife-solo-d5471f021dd4/lib/knife-solo/berkshelf.rb:20:in `install!'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/bundler/gems/knife-solo-d5471f021dd4/lib/knife-solo/cookbook_manager.rb:94:in `install'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/bundler/gems/knife-solo-d5471f021dd4/lib/chef/knife/solo_cook.rb:195:in `berkshelf_install'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/bundler/gems/knife-solo-d5471f021dd4/lib/chef/knife/solo_cook.rb:80:in `block in run'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/bundler/gems/knife-solo-d5471f021dd4/lib/chef/knife/solo_cook.rb:190:in `time'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/bundler/gems/knife-solo-d5471f021dd4/lib/chef/knife/solo_cook.rb:67:in `run'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/knife.rb:460:in `run_with_pretty_exceptions'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/knife.rb:173:in `run'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application/knife.rb:123:in `run'
from /Users/mog/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/gems/chef-11.4.4/bin/knife:25:in `<top (required)>'
from /Users/mog/.rbenv/versions/1.9.3-p385/bin/knife:23:in `load'
from /Users/mog/.rbenv/versions/1.9.3-p385/bin/knife:23:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment