Skip to content

Instantly share code, notes, and snippets.

@trinitronx
Created September 27, 2013 17:07
Show Gist options
  • Select an option

  • Save trinitronx/6731788 to your computer and use it in GitHub Desktop.

Select an option

Save trinitronx/6731788 to your computer and use it in GitHub Desktop.
VAGRANT_LOG=INFO vagrant up
INFO global: Vagrant version: 1.3.3
INFO manager: Registered plugin: box command
INFO manager: Registered plugin: destroy command
INFO manager: Registered plugin: halt command
INFO manager: Registered plugin: help command
INFO manager: Registered plugin: init command
INFO manager: Registered plugin: package command
INFO manager: Registered plugin: plugin command
INFO manager: Registered plugin: provision command
INFO manager: Registered plugin: reload command
INFO manager: Registered plugin: resume command
INFO manager: Registered plugin: ssh command
INFO manager: Registered plugin: ssh-config command
INFO manager: Registered plugin: status command
INFO manager: Registered plugin: suspend command
INFO manager: Registered plugin: up command
INFO manager: Registered plugin: ssh communicator
INFO manager: Registered plugin: Arch guest
INFO manager: Registered plugin: CoreOS guest
INFO manager: Registered plugin: Darwin guest
INFO manager: Registered plugin: Debian guest
INFO manager: Registered plugin: Fedora guest
INFO manager: Registered plugin: FreeBSD guest
INFO manager: Registered plugin: Gentoo guest
INFO manager: Registered plugin: Linux guest.
INFO manager: Registered plugin: OmniOS guest.
INFO manager: Registered plugin: OpenBSD guest
INFO manager: Registered plugin: PLD Linux guest
INFO manager: Registered plugin: RedHat guest
INFO manager: Registered plugin: Solaris guest.
INFO manager: Registered plugin: Solaris 11 guest.
INFO manager: Registered plugin: SUSE guest
INFO manager: Registered plugin: Ubuntu guest
INFO manager: Registered plugin: Arch host
INFO manager: Registered plugin: BSD host
INFO manager: Registered plugin: Fedora host
INFO manager: Registered plugin: FreeBSD host
INFO manager: Registered plugin: Gentoo host
INFO manager: Registered plugin: Linux host
INFO manager: Registered plugin: OpenSUSE host
INFO manager: Registered plugin: Slackware host
INFO manager: Registered plugin: Windows host
INFO manager: Registered plugin: kernel
INFO manager: Registered plugin: kernel
INFO manager: Registered plugin: VirtualBox provider
INFO manager: Registered plugin: ansible
INFO manager: Registered plugin: CFEngine Provisioner
INFO manager: Registered plugin: chef
INFO manager: Registered plugin: file
INFO manager: Registered plugin: puppet
INFO manager: Registered plugin: salt
INFO manager: Registered plugin: shell
INFO vagrant: `vagrant` invoked: ["up"]
INFO environment: Environment initialized (#<Vagrant::Environment:0x00000100b64af8>)
INFO environment: - cwd: /Users/vagrant/src/gloo/gloo-chef
INFO environment: Home path: /Users/vagrant/.vagrant.d
INFO environment: Local data path: /Users/vagrant/src/gloo/gloo-chef/.vagrant
INFO environment: Loading plugin from JSON: vagrant-berkshelf
INFO manager: Registered plugin: berkshelf
INFO environment: Running hook: environment_load
INFO environment: Initializing config...
INFO loader: Set :default = "/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/config/default.rb"
INFO loader: Set :root = #<Pathname:/Users/vagrant/src/gloo/gloo-chef/Vagrantfile>
INFO loader: Loading configuration in order: [:default, :home, :root]
INFO hosts: Host class: VagrantPlugins::HostBSD::Host
INFO runner: Running action: #<Vagrant::Action::Builder:0x00000101fb0638>
INFO cli: CLI: [] "up" []
INFO command: Active machine found with name gloofrontend. Using provider: virtualbox
INFO environment: Getting machine: gloofrontend (virtualbox)
INFO environment: Uncached load of machine.
INFO loader: Set :vm_gloofrontend = [["2", #<Proc:0x00000100e191e0@/Users/vagrant/src/gloo/gloo-chef/vagrant-projects/dual-arch.Vagrantfile:35>]]
INFO loader: Loading configuration in order: [:default, :home, :root, :vm_gloofrontend]
INFO box_collection: Searching for box: gloofrontend (virtualbox) in /Users/vagrant/.vagrant.d/boxes/gloofrontend/virtualbox/metadata.json
INFO box_collection: Box found: gloofrontend (virtualbox)
INFO environment: Box exists with Vagrantfile. Reloading machine config.
INFO loader: Set :box_gloofrontend_virtualbox = #<Pathname:/Users/vagrant/.vagrant.d/boxes/gloofrontend/virtualbox/Vagrantfile>
INFO loader: Loading configuration in order: [:default, :box_gloofrontend_virtualbox, :home, :root, :vm_gloofrontend]
INFO machine: Initializing machine: gloofrontend
INFO machine: - Provider: VagrantPlugins::ProviderVirtualBox::Provider
INFO machine: - Box: #<Vagrant::Box:0x000001029f9c98>
INFO machine: - Data dir: /Users/vagrant/src/gloo/gloo-chef/.vagrant/machines/gloofrontend/virtualbox
INFO base: VBoxManage path: VBoxManage
INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "--version"]
INFO subprocess: Command not in the installer. Removing DYLD_LIBRARY_PATH
INFO meta: Using VirtualBox driver: VagrantPlugins::ProviderVirtualBox::Driver::Version_4_2
INFO base: VBoxManage path: VBoxManage
INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "showvminfo", "6bbb534c-48b8-4d8d-9e9a-8237fdb0c702"]
INFO subprocess: Command not in the installer. Removing DYLD_LIBRARY_PATH
INFO environment: Getting machine: gloobackend (virtualbox)
INFO environment: Uncached load of machine.
INFO loader: Set :vm_gloobackend = [["2", #<Proc:0x00000100e18dd0@/Users/vagrant/src/gloo/gloo-chef/vagrant-projects/dual-arch.Vagrantfile:83>]]
INFO loader: Loading configuration in order: [:default, :home, :root, :vm_gloobackend]
ERROR loader: Unknown config sources: [:vm_gloofrontend, :box_gloofrontend_virtualbox]
INFO box_collection: Searching for box: gloobackend (virtualbox) in /Users/vagrant/.vagrant.d/boxes/gloobackend/virtualbox/metadata.json
INFO box_collection: Searching for V1 box: gloobackend
INFO box_collection: Box not found: gloobackend (virtualbox)
INFO machine: Initializing machine: gloobackend
INFO machine: - Provider: VagrantPlugins::ProviderVirtualBox::Provider
INFO machine: - Box:
INFO machine: - Data dir: /Users/vagrant/src/gloo/gloo-chef/.vagrant/machines/gloobackend/virtualbox
INFO base: VBoxManage path: VBoxManage
INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "--version"]
INFO subprocess: Command not in the installer. Removing DYLD_LIBRARY_PATH
INFO meta: Using VirtualBox driver: VagrantPlugins::ProviderVirtualBox::Driver::Version_4_2
INFO base: VBoxManage path: VBoxManage
INFO command: With machine: gloofrontend (VirtualBox (6bbb534c-48b8-4d8d-9e9a-8237fdb0c702))
INFO interface: info: Bringing machine 'gloofrontend' up with 'virtualbox' provider...
Bringing machine 'gloofrontend' up with 'virtualbox' provider...
INFO command: With machine: gloobackend (VirtualBox (new VM))
INFO interface: info: Bringing machine 'gloobackend' up with 'virtualbox' provider...
Bringing machine 'gloobackend' up with 'virtualbox' provider...
INFO batch_action: Enabling parallelization by default.
INFO batch_action: Disabling parallelization because provider doesn't support it: virtualbox
INFO batch_action: Batch action will parallelize: false
INFO batch_action: Starting action: #<Vagrant::Machine:0x00000101fb74d8> up {:destroy_on_error=>true, :parallel=>true, :provision_ignore_sentinel=>false, :provision_types=>nil}
INFO machine: Calling action: up on provider VirtualBox (6bbb534c-48b8-4d8d-9e9a-8237fdb0c702)
INFO runner: Preparing hooks for middleware sequence...
INFO runner: 1 hooks defined.
INFO runner: Running action: #<Vagrant::Action::Builder:0x000001018808e0>
INFO warden: Calling IN action: #<VagrantPlugins::ProviderVirtualBox::Action::CheckVirtualbox:0x00000100b47048>
INFO base: VBoxManage path: VBoxManage
INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "--version"]
INFO subprocess: Command not in the installer. Removing DYLD_LIBRARY_PATH
INFO meta: Using VirtualBox driver: VagrantPlugins::ProviderVirtualBox::Driver::Version_4_2
INFO base: VBoxManage path: VBoxManage
INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "list", "hostonlyifs"]
INFO subprocess: Command not in the installer. Removing DYLD_LIBRARY_PATH
INFO warden: Calling IN action: #<Vagrant::Action::Builtin::Call:0x00000100b46e18>
INFO runner: Preparing hooks for middleware sequence...
INFO runner: 1 hooks defined.
INFO runner: Running action: #<Vagrant::Action::Builder:0x00000101f4b5d0>
INFO warden: Calling IN action: #<VagrantPlugins::ProviderVirtualBox::Action::Created:0x000001028172e0>
INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "showvminfo", "6bbb534c-48b8-4d8d-9e9a-8237fdb0c702", "--machinereadable"]
INFO subprocess: Command not in the installer. Removing DYLD_LIBRARY_PATH
INFO warden: Calling OUT action: #<VagrantPlugins::ProviderVirtualBox::Action::Created:0x000001028172e0>
INFO runner: Preparing hooks for middleware sequence...
INFO runner: 1 hooks defined.
INFO runner: Running action: #<Vagrant::Action::Warden:0x000001018e3dc8>
INFO warden: Calling IN action: #<Vagrant::Action::Builtin::EnvSet:0x00000100b44410>
INFO warden: Calling IN action: #<Berkshelf::Vagrant::Action::SetUI:0x00000100b44320>
INFO warden: Calling IN action: #<Berkshelf::Vagrant::Action::LoadShelf:0x00000100b442a8>
INFO warden: Calling IN action: #<Berkshelf::Vagrant::Action::ConfigureChef:0x00000100b17de8>
INFO warden: Calling IN action: #<Vagrant::Action::Builtin::ConfigValidate:0x00000100b17dc0>
INFO warden: Calling IN action: #<Vagrant::Action::Builtin::Call:0x00000100b1e968>
INFO runner: Preparing hooks for middleware sequence...
INFO runner: 1 hooks defined.
INFO runner: Running action: #<Vagrant::Action::Builder:0x00000102a43f78>
INFO warden: Calling IN action: #<VagrantPlugins::ProviderVirtualBox::Action::Created:0x00000100fa0d88>
INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "showvminfo", "6bbb534c-48b8-4d8d-9e9a-8237fdb0c702", "--machinereadable"]
INFO subprocess: Command not in the installer. Removing DYLD_LIBRARY_PATH
INFO warden: Calling OUT action: #<VagrantPlugins::ProviderVirtualBox::Action::Created:0x00000100fa0d88>
INFO runner: Preparing hooks for middleware sequence...
INFO runner: 1 hooks defined.
INFO runner: Running action: #<Vagrant::Action::Warden:0x00000101f64990>
INFO warden: Calling IN action: #<VagrantPlugins::ProviderVirtualBox::Action::CheckVirtualbox:0x00000100b1c028>
INFO base: VBoxManage path: VBoxManage
INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "--version"]
INFO subprocess: Command not in the installer. Removing DYLD_LIBRARY_PATH
INFO meta: Using VirtualBox driver: VagrantPlugins::ProviderVirtualBox::Driver::Version_4_2
INFO base: VBoxManage path: VBoxManage
INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "list", "hostonlyifs"]
INFO subprocess: Command not in the installer. Removing DYLD_LIBRARY_PATH
INFO warden: Calling IN action: #<Vagrant::Action::Builtin::ConfigValidate:0x00000100b1be48>
INFO warden: Calling IN action: #<Vagrant::Action::Builtin::Call:0x00000100b230a8>
INFO runner: Preparing hooks for middleware sequence...
INFO runner: 1 hooks defined.
INFO runner: Running action: #<Vagrant::Action::Builder:0x00000100fa6af8>
INFO warden: Calling IN action: #<VagrantPlugins::ProviderVirtualBox::Action::IsRunning:0x00000100fa4f78>
INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "showvminfo", "6bbb534c-48b8-4d8d-9e9a-8237fdb0c702", "--machinereadable"]
INFO subprocess: Command not in the installer. Removing DYLD_LIBRARY_PATH
INFO warden: Calling OUT action: #<VagrantPlugins::ProviderVirtualBox::Action::IsRunning:0x00000100fa4f78>
INFO runner: Preparing hooks for middleware sequence...
INFO runner: 1 hooks defined.
INFO runner: Running action: #<Vagrant::Action::Warden:0x00000100abd690>
INFO warden: Calling IN action: #<Vagrant::Action::Builtin::Call:0x00000100a30920>
INFO runner: Preparing hooks for middleware sequence...
INFO runner: 1 hooks defined.
INFO runner: Running action: #<Vagrant::Action::Builder:0x00000101f8f348>
INFO warden: Calling IN action: #<VagrantPlugins::ProviderVirtualBox::Action::IsSaved:0x00000102801968>
INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "showvminfo", "6bbb534c-48b8-4d8d-9e9a-8237fdb0c702", "--machinereadable"]
INFO subprocess: Command not in the installer. Removing DYLD_LIBRARY_PATH
INFO warden: Calling OUT action: #<VagrantPlugins::ProviderVirtualBox::Action::IsSaved:0x00000102801968>
INFO runner: Preparing hooks for middleware sequence...
INFO runner: 1 hooks defined.
INFO runner: Running action: #<Vagrant::Action::Warden:0x00000101ba3720>
INFO warden: Calling IN action: #<Vagrant::Action::Builtin::Call:0x00000101ba36a8>
INFO runner: Preparing hooks for middleware sequence...
INFO runner: 1 hooks defined.
INFO runner: Running action: #<Vagrant::Action::Builder:0x000001028c1178>
INFO warden: Calling IN action: #<VagrantPlugins::ProviderVirtualBox::Action::IsPaused:0x00000102abb2d0>
INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "showvminfo", "6bbb534c-48b8-4d8d-9e9a-8237fdb0c702", "--machinereadable"]
INFO subprocess: Command not in the installer. Removing DYLD_LIBRARY_PATH
INFO warden: Calling OUT action: #<VagrantPlugins::ProviderVirtualBox::Action::IsPaused:0x00000102abb2d0>
INFO runner: Preparing hooks for middleware sequence...
INFO runner: 1 hooks defined.
INFO runner: Running action: #<Vagrant::Action::Warden:0x00000101968b40>
INFO warden: Calling IN action: #<VagrantPlugins::ProviderVirtualBox::Action::CheckAccessible:0x00000101968ac8>
INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "showvminfo", "6bbb534c-48b8-4d8d-9e9a-8237fdb0c702", "--machinereadable"]
INFO subprocess: Command not in the installer. Removing DYLD_LIBRARY_PATH
INFO warden: Calling IN action: #<VagrantPlugins::ProviderVirtualBox::Action::CleanMachineFolder:0x00000101968aa0>
INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "list", "systemproperties"]
INFO subprocess: Command not in the installer. Removing DYLD_LIBRARY_PATH
INFO warden: Calling IN action: #<VagrantPlugins::ProviderVirtualBox::Action::SetName:0x00000101968a78>
INFO setname: Default name was already set before, not doing it again.
INFO warden: Calling IN action: #<VagrantPlugins::ProviderVirtualBox::Action::ClearForwardedPorts:0x00000101f30cd0>
INFO interface: info: Clearing any previously set forwarded ports...
[gloofrontend] Clearing any previously set forwarded ports...
INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "showvminfo", "6bbb534c-48b8-4d8d-9e9a-8237fdb0c702", "--machinereadable"]
INFO subprocess: Command not in the installer. Removing DYLD_LIBRARY_PATH
INFO warden: Calling IN action: #<Vagrant::Action::Builtin::Provision:0x00000101f308e8>
INFO provision: Checking provisioner sentinel if we should run...
INFO provision: Sentinel found! Not provisioning.
INFO warden: Calling IN action: #<Berkshelf::Vagrant::Action::Install:0x00000101fd3958>
INFO interface: warn: This version of the Berkshelf plugin has not been fully tested on this version of Vagrant.
[Berkshelf] This version of the Berkshelf plugin has not been fully tested on this version of Vagrant.
INFO interface: warn: You should check for a newer version of vagrant-berkshelf.
[Berkshelf] You should check for a newer version of vagrant-berkshelf.
INFO interface: warn: If you encounter any errors with this version, please report them at https://github.com/RiotGames/vagrant-berkshelf/issues
[Berkshelf] If you encounter any errors with this version, please report them at https://github.com/RiotGames/vagrant-berkshelf/issues
INFO interface: warn: You can also join the discussion in #berkshelf on Freenode.
[Berkshelf] You can also join the discussion in #berkshelf on Freenode.
INFO interface: info: Updating Vagrant's berkshelf: '/Users/vagrant/.berkshelf/gloofrontend/vagrant/berkshelf-20130926-2715-1nz38k6-gloofrontend'
[Berkshelf] Updating Vagrant's berkshelf: '/Users/vagrant/.berkshelf/gloofrontend/vagrant/berkshelf-20130926-2715-1nz38k6-gloofrontend'
INFO interface: info: Using chef-client (3.0.6)
[Berkshelf] Using chef-client (3.0.6)
INFO interface: info: Using database (1.4.0)
[Berkshelf] Using database (1.4.0)
INFO interface: info: Using firewall (0.11.0)
[Berkshelf] Using firewall (0.11.0)
INFO interface: info: Using git (2.6.0)
[Berkshelf] Using git (2.6.0)
INFO interface: info: Using java (1.13.0)
[Berkshelf] Using java (1.13.0)
INFO interface: info: Using logrotate (1.3.0)
[Berkshelf] Using logrotate (1.3.0)
INFO interface: info: Using newrelic (0.5.3)
[Berkshelf] Using newrelic (0.5.3)
INFO interface: info: Using nginx (1.8.0)
[Berkshelf] Using nginx (1.8.0)
INFO interface: info: Using ntp (1.4.0)
[Berkshelf] Using ntp (1.4.0)
INFO interface: info: Using openssh (1.2.2)
[Berkshelf] Using openssh (1.2.2)
INFO interface: info: Using partial_search (1.0.2)
[Berkshelf] Using partial_search (1.0.2)
INFO interface: info: Using ruby_build (0.8.0)
[Berkshelf] Using ruby_build (0.8.0)
INFO interface: info: Using ssh_known_hosts (1.0.2)
[Berkshelf] Using ssh_known_hosts (1.0.2)
INFO interface: info: Using sudo (2.2.0)
[Berkshelf] Using sudo (2.2.0)
INFO interface: info: Using tmux (1.3.2)
[Berkshelf] Using tmux (1.3.2)
INFO interface: info: Using users (1.5.2)
[Berkshelf] Using users (1.5.2)
INFO interface: info: Using vim (1.0.2)
[Berkshelf] Using vim (1.0.2)
INFO interface: info: Using chef-solo-search (0.4.0) at './site-cookbooks/chef-solo-search'
[Berkshelf] Using chef-solo-search (0.4.0) at './site-cookbooks/chef-solo-search'
INFO interface: info: Using firefox (0.0.1) at './site-cookbooks/firefox'
[Berkshelf] Using firefox (0.0.1) at './site-cookbooks/firefox'
INFO interface: info: Using jruby (0.1.0) at './site-cookbooks/jruby'
[Berkshelf] Using jruby (0.1.0) at './site-cookbooks/jruby'
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/downloader.rb:73
if source.location
[68, 77] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/downloader.rb
68 # @return [Array]
69 # an array containing the downloaded CachedCookbook and the Location used
70 # to download the cookbook
71 def download(source)
72 require 'debugger'; debugger
=> 73 if source.location
74 begin
75 location = source.location
76 cached = download_location(source, location, true)
77 source.cached_cookbook = cached
(rdb:1) p source
#<Berkshelf::CookbookSource: apt (= 1.9.3), locked_version: 1.9.3, groups: [:default], location: git: 'git://github.com/trinitronx/apt.git' with branch: 'master' at ref: '61d59d94a5fc7c8ff23b51f743bbc116468edc69'>
(rdb:1) step
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/cookbook_source.rb:172
@location
[167, 176] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/cookbook_source.rb
167 # community API, :git, or a :path location. By default, this will be the
168 # community API.
169 #
170 # @return [Berkshelf::Location]
171 def location
=> 172 @location
173 end
174
175 # The list of groups this CookbookSource belongs to.
176 #
(rdb:1) step
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/downloader.rb:74
begin
[69, 78] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/downloader.rb
69 # an array containing the downloaded CachedCookbook and the Location used
70 # to download the cookbook
71 def download(source)
72 require 'debugger'; debugger
73 if source.location
=> 74 begin
75 location = source.location
76 cached = download_location(source, location, true)
77 source.cached_cookbook = cached
78
(rdb:1) step
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/downloader.rb:75
location = source.location
[70, 79] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/downloader.rb
70 # to download the cookbook
71 def download(source)
72 require 'debugger'; debugger
73 if source.location
74 begin
=> 75 location = source.location
76 cached = download_location(source, location, true)
77 source.cached_cookbook = cached
78
79 return [cached, location]
(rdb:1) help
ruby-debug help v1.6.2
Type 'help <command-name>' for help on a specific command
Available commands:
backtrace delete enable help list ps save start undisplay
break disable eval info method putl set step up
catch display exit irb next quit show thread var
condition down finish jump p reload skip tmate where
continue edit frame kill pp restart source trace
(rdb:1) st
*** NameError Exception: undefined local variable or method `st' for #<Berkshelf::Downloader:0x000001009ff6b8>
(rdb:1) next
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/downloader.rb:76
cached = download_location(source, location, true)
[71, 80] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/downloader.rb
71 def download(source)
72 require 'debugger'; debugger
73 if source.location
74 begin
75 location = source.location
=> 76 cached = download_location(source, location, true)
77 source.cached_cookbook = cached
78
79 return [cached, location]
80 rescue => e
(rdb:1) p location
git: 'git://github.com/trinitronx/apt.git' with branch: 'master' at ref: '61d59d94a5fc7c8ff23b51f743bbc116468edc69'
(rdb:1) step
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/downloader.rb:120
location.download(storage_path)
[115, 124] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/downloader.rb
115 # return nil
116 #
117 # @return [Berkshelf::CachedCookbook, nil]
118 # the downloaded cached cookbook, or nil if one was not found
119 def download_location(source, location, raise_if_not_found = false)
=> 120 location.download(storage_path)
121 rescue Berkshelf::CookbookNotFound
122 raise if raise_if_not_found
123 nil
124 end
(rdb:1) p source
#<Berkshelf::CookbookSource: apt (= 1.9.3), locked_version: 1.9.3, groups: [:default], location: git: 'git://github.com/trinitronx/apt.git' with branch: 'master' at ref: '61d59d94a5fc7c8ff23b51f743bbc116468edc69'>
(rdb:1) p location
git: 'git://github.com/trinitronx/apt.git' with branch: 'master' at ref: '61d59d94a5fc7c8ff23b51f743bbc116468edc69'
(rdb:1) p raise_if_not_found
true
(rdb:1) p storage_path
#<Pathname:/Users/vagrant/.berkshelf/gloofrontend/cookbooks>
(rdb:1) step
/Applications/Vagrant/embedded/lib/ruby/1.9.1/forwardable.rb:200
begin
[195, 204] in /Applications/Vagrant/embedded/lib/ruby/1.9.1/forwardable.rb
195 # q.push 23 #=> NoMethodError
196 #
197 def def_instance_delegator(accessor, method, ali = method)
198 line_no = __LINE__; str = %{
199 def #{ali}(*args, &block)
=> 200 begin
201 #{accessor}.__send__(:#{method}, *args, &block)
202 rescue Exception
203 [email protected]_if{|s| %r"#{Regexp.quote(__FILE__)}"o =~ s} unless Forwardable::debug
204 ::Kernel::raise
(rdb:1) p accessor
*** NameError Exception: undefined local variable or method `accessor' for #<Berkshelf::Downloader:0x000001009ff6b8>
(rdb:1) p method
*** ArgumentError Exception: wrong number of arguments(0 for 1)
(rdb:1) step
/Applications/Vagrant/embedded/lib/ruby/1.9.1/forwardable.rb:201
#{accessor}.__send__(:#{method}, *args, &block)
[196, 205] in /Applications/Vagrant/embedded/lib/ruby/1.9.1/forwardable.rb
196 #
197 def def_instance_delegator(accessor, method, ali = method)
198 line_no = __LINE__; str = %{
199 def #{ali}(*args, &block)
200 begin
=> 201 #{accessor}.__send__(:#{method}, *args, &block)
202 rescue Exception
203 [email protected]_if{|s| %r"#{Regexp.quote(__FILE__)}"o =~ s} unless Forwardable::debug
204 ::Kernel::raise
205 end
(rdb:1) p accessor
*** NameError Exception: undefined local variable or method `accessor' for #<Berkshelf::Downloader:0x000001009ff6b8>
(rdb:1) print accessor
*** NameError Exception: undefined local variable or method `accessor' for #<Berkshelf::Downloader:0x000001009ff6b8>
(rdb:1) next
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/locations/git_location.rb:56
if cached?(destination)
[51, 60] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/locations/git_location.rb
51
52 # @param [#to_s] destination
53 #
54 # @return [Berkshelf::CachedCookbook]
55 def download(destination)
=> 56 if cached?(destination)
57 @ref ||= Berkshelf::Git.rev_parse(revision_path(destination))
58 return local_revision(destination)
59 end
60
(rdb:1) p destination
#<Pathname:/Users/vagrant/.berkshelf/gloofrontend/cookbooks>
(rdb:1) step
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/locations/git_location.rb:114
revision_path(destination) && File.exists?(revision_path(destination))
[109, 118] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/locations/git_location.rb
109
110 tmp_clone
111 end
112
113 def cached?(destination)
=> 114 revision_path(destination) && File.exists?(revision_path(destination))
115 end
116
117 def local_revision(destination)
118 path = revision_path(destination)
(rdb:1) p revision_path(destination)
"/Users/vagrant/.berkshelf/gloofrontend/cookbooks/apt-61d59d94a5fc7c8ff23b51f743bbc116468edc69"
(rdb:1) p File.exists?(revision_path(destination))
false
(rdb:1) next
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/locations/git_location.rb:61
Berkshelf::Git.checkout(clone, ref || branch) if ref || branch
[56, 65] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/locations/git_location.rb
56 if cached?(destination)
57 @ref ||= Berkshelf::Git.rev_parse(revision_path(destination))
58 return local_revision(destination)
59 end
60
=> 61 Berkshelf::Git.checkout(clone, ref || branch) if ref || branch
62 @ref = Berkshelf::Git.rev_parse(clone)
63
64 tmp_path = rel ? File.join(clone, rel) : clone
65 unless File.chef_cookbook?(tmp_path)
(rdb:1) p clone
*** Berkshelf::GitError Exception: Berkshelf::GitError
(rdb:1) p ref
"61d59d94a5fc7c8ff23b51f743bbc116468edc69"
(rdb:1) p branch
"master"
(rdb:1) step
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/locations/git_location.rb:104
tmp_clone = File.join(self.class.tmpdir, uri.gsub(/[\/:]/,'-'))
[99, 108] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/locations/git_location.rb
99 def git
100 @git ||= Berkshelf::Git.new(uri)
101 end
102
103 def clone
=> 104 tmp_clone = File.join(self.class.tmpdir, uri.gsub(/[\/:]/,'-'))
105
106 unless File.exists?(tmp_clone)
107 Berkshelf::Git.clone(uri, tmp_clone)
108 end
(rdb:1) next
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/locations/git_location.rb:106
unless File.exists?(tmp_clone)
[101, 110] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/locations/git_location.rb
101 end
102
103 def clone
104 tmp_clone = File.join(self.class.tmpdir, uri.gsub(/[\/:]/,'-'))
105
=> 106 unless File.exists?(tmp_clone)
107 Berkshelf::Git.clone(uri, tmp_clone)
108 end
109
110 tmp_clone
(rdb:1) p tmp_clone
"/Users/vagrant/.berkshelf/gloofrontend/tmp/d20130927-18892-1sejcmv/git---github.com-trinitronx-apt.git"
(rdb:1) step
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/locations/git_location.rb:110
tmp_clone
[105, 114] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/locations/git_location.rb
105
106 unless File.exists?(tmp_clone)
107 Berkshelf::Git.clone(uri, tmp_clone)
108 end
109
=> 110 tmp_clone
111 end
112
113 def cached?(destination)
114 revision_path(destination) && File.exists?(revision_path(destination))
(rdb:1) p tmp_clone
"/Users/vagrant/.berkshelf/gloofrontend/tmp/d20130927-18892-1sejcmv/git---github.com-trinitronx-apt.git"
(rdb:1) step
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb:56
Dir.chdir repo_path do
[51, 60] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb
51 # @param [String] repo_path
52 # path to a Git repo on disk
53 # @param [String] ref
54 # reference to checkout
55 def checkout(repo_path, ref)
=> 56 Dir.chdir repo_path do
57 git('checkout', '-qf', revision_from_ref(repo_path, ref))
58 end
59 end
60
(rdb:1) step
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb:57
git('checkout', '-qf', revision_from_ref(repo_path, ref))
[52, 61] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb
52 # path to a Git repo on disk
53 # @param [String] ref
54 # reference to checkout
55 def checkout(repo_path, ref)
56 Dir.chdir repo_path do
=> 57 git('checkout', '-qf', revision_from_ref(repo_path, ref))
58 end
59 end
60
61 # @param [String] repo_path
(rdb:1) p revision_from_ref(repo_path, ref)
*** Berkshelf::InvalidGitRef Exception: Berkshelf::InvalidGitRef
(rdb:1) p repo_path
"/Users/vagrant/.berkshelf/gloofrontend/tmp/d20130927-18892-1sejcmv/git---github.com-trinitronx-apt.git"
(rdb:1) p ref
"61d59d94a5fc7c8ff23b51f743bbc116468edc69"
(rdb:1) p revision_from_ref(repo_path, ref)
*** Berkshelf::InvalidGitRef Exception: Berkshelf::InvalidGitRef
(rdb:1) step
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb:104
begin
[99, 108] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb
99 # @return [String]
100 # the sha revision for the given ref
101 #
102 # @raise [InvalidGitRef] if the ref could not be found
103 def revision_from_ref(repo_path, ref)
=> 104 begin
105 show_ref(repo_path, ref)
106 rescue GitError
107 begin
108 git('rev-parse', ref)
(rdb:1) step
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb:105
show_ref(repo_path, ref)
[100, 109] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb
100 # the sha revision for the given ref
101 #
102 # @raise [InvalidGitRef] if the ref could not be found
103 def revision_from_ref(repo_path, ref)
104 begin
=> 105 show_ref(repo_path, ref)
106 rescue GitError
107 begin
108 git('rev-parse', ref)
109 ref
(rdb:1) step
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb:80
Dir.chdir repo_path do
[75, 84] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb
75 # @return [String]
76 # the sha revision for the given ref
77 #
78 # @raise [AmbiguousGitRef] if the ref could refer to more than one revision
79 def show_ref(repo_path, ref)
=> 80 Dir.chdir repo_path do
81 lines = git('show-ref', ref).lines.to_a
82
83 raise AmbiguousGitRef, ref if lines.size > 1
84
(rdb:1) step
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb:81
lines = git('show-ref', ref).lines.to_a
[76, 85] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb
76 # the sha revision for the given ref
77 #
78 # @raise [AmbiguousGitRef] if the ref could refer to more than one revision
79 def show_ref(repo_path, ref)
80 Dir.chdir repo_path do
=> 81 lines = git('show-ref', ref).lines.to_a
82
83 raise AmbiguousGitRef, ref if lines.size > 1
84
85 lines.first.chomp.split(/\s/).first
(rdb:1) p git('show-ref', ref).lines.to_a
*** Berkshelf::GitError Exception: Berkshelf::GitError
(rdb:1) step
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb:23
command.unshift(git_cmd)
[18, 27] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb
18 # @param [Array<String>]
19 #
20 # @return [String]
21 # the output of the execution of the Git command
22 def git(*command)
=> 23 command.unshift(git_cmd)
24 command_str = command.map { |p| quote_cmd_arg(p) }.join(' ')
25 response = shell_out(command_str)
26
27 unless response.success?
(rdb:1) p git_cmd
"/usr/local/bin/git"
(rdb:1) p command
["show-ref", "61d59d94a5fc7c8ff23b51f743bbc116468edc69"]
(rdb:1) next
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb:24
command_str = command.map { |p| quote_cmd_arg(p) }.join(' ')
[19, 28] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb
19 #
20 # @return [String]
21 # the output of the execution of the Git command
22 def git(*command)
23 command.unshift(git_cmd)
=> 24 command_str = command.map { |p| quote_cmd_arg(p) }.join(' ')
25 response = shell_out(command_str)
26
27 unless response.success?
28 raise GitError.new(response.stderr.strip)
(rdb:1) p command_str
nil
(rdb:1) p command.map { |p| quote_cmd_arg(p) }.join(' ')
"/usr/local/bin/git show-ref 61d59d94a5fc7c8ff23b51f743bbc116468edc69"
(rdb:1) next
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb:24
command_str = command.map { |p| quote_cmd_arg(p) }.join(' ')
[19, 28] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb
19 #
20 # @return [String]
21 # the output of the execution of the Git command
22 def git(*command)
23 command.unshift(git_cmd)
=> 24 command_str = command.map { |p| quote_cmd_arg(p) }.join(' ')
25 response = shell_out(command_str)
26
27 unless response.success?
28 raise GitError.new(response.stderr.strip)
(rdb:1) next
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb:24
command_str = command.map { |p| quote_cmd_arg(p) }.join(' ')
[19, 28] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb
19 #
20 # @return [String]
21 # the output of the execution of the Git command
22 def git(*command)
23 command.unshift(git_cmd)
=> 24 command_str = command.map { |p| quote_cmd_arg(p) }.join(' ')
25 response = shell_out(command_str)
26
27 unless response.success?
28 raise GitError.new(response.stderr.strip)
(rdb:1) next
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb:24
command_str = command.map { |p| quote_cmd_arg(p) }.join(' ')
[19, 28] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb
19 #
20 # @return [String]
21 # the output of the execution of the Git command
22 def git(*command)
23 command.unshift(git_cmd)
=> 24 command_str = command.map { |p| quote_cmd_arg(p) }.join(' ')
25 response = shell_out(command_str)
26
27 unless response.success?
28 raise GitError.new(response.stderr.strip)
(rdb:1) next
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb:25
response = shell_out(command_str)
[20, 29] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb
20 # @return [String]
21 # the output of the execution of the Git command
22 def git(*command)
23 command.unshift(git_cmd)
24 command_str = command.map { |p| quote_cmd_arg(p) }.join(' ')
=> 25 response = shell_out(command_str)
26
27 unless response.success?
28 raise GitError.new(response.stderr.strip)
29 end
(rdb:1) step
/Users/vagrant/.vagrant.d/gems/gems/buff-shell_out-0.1.0/lib/buff/shell_out.rb:20
process_status, out, err = jruby? ? jruby_out(command) : mri_out(command)
[15, 24] in /Users/vagrant/.vagrant.d/gems/gems/buff-shell_out-0.1.0/lib/buff/shell_out.rb
15 # @param [String] command
16 # The command to execute
17 #
18 # @return [ShellOut::Response]
19 def shell_out(command)
=> 20 process_status, out, err = jruby? ? jruby_out(command) : mri_out(command)
21 Response.new(process_status, out, err)
22 end
23
24 private
(rdb:1) p jruby?
false
(rdb:1) p mri_out(command)
[128, "", "fatal: Not a git repository (or any of the parent directories): .git\n"]
(rdb:1) Dir.glob('*')
[]
(rdb:1) Dir.getwd
"/Users/vagrant/.berkshelf/gloofrontend/tmp/d20130927-18892-1sejcmv/git---github.com-trinitronx-apt.git"
(rdb:1) frame
#0 Buff::ShellOut.shell_out(command#String)
at line /Users/vagrant/.vagrant.d/gems/gems/buff-shell_out-0.1.0/lib/buff/shell_out.rb:20
(rdb:1) next
/Users/vagrant/.vagrant.d/gems/gems/buff-shell_out-0.1.0/lib/buff/shell_out.rb:21
Response.new(process_status, out, err)
[16, 25] in /Users/vagrant/.vagrant.d/gems/gems/buff-shell_out-0.1.0/lib/buff/shell_out.rb
16 # The command to execute
17 #
18 # @return [ShellOut::Response]
19 def shell_out(command)
20 process_status, out, err = jruby? ? jruby_out(command) : mri_out(command)
=> 21 Response.new(process_status, out, err)
22 end
23
24 private
25
(rdb:1) p process_status
128
(rdb:1) p out
""
(rdb:1) p err
"fatal: Not a git repository (or any of the parent directories): .git\n"
(rdb:1) next
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb:27
unless response.success?
[22, 31] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb
22 def git(*command)
23 command.unshift(git_cmd)
24 command_str = command.map { |p| quote_cmd_arg(p) }.join(' ')
25 response = shell_out(command_str)
26
=> 27 unless response.success?
28 raise GitError.new(response.stderr.strip)
29 end
30
31 response.stdout.strip
(rdb:1) step
/Users/vagrant/.vagrant.d/gems/gems/buff-shell_out-0.1.0/lib/buff/shell_out/response.rb:21
exitstatus == 0
[16, 25] in /Users/vagrant/.vagrant.d/gems/gems/buff-shell_out-0.1.0/lib/buff/shell_out/response.rb
16 @stdout = stdout
17 @stderr = stderr
18 end
19
20 def success?
=> 21 exitstatus == 0
22 end
23
24 def error?
25 !success?
(rdb:1) step
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb:28
raise GitError.new(response.stderr.strip)
[23, 32] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb
23 command.unshift(git_cmd)
24 command_str = command.map { |p| quote_cmd_arg(p) }.join(' ')
25 response = shell_out(command_str)
26
27 unless response.success?
=> 28 raise GitError.new(response.stderr.strip)
29 end
30
31 response.stdout.strip
32 end
(rdb:1) step
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/errors.rb:45
@stderr = stderr.to_s
[40, 49] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/errors.rb
40 status_code(104)
41
42 # @param [#to_s] stderr
43 # the error that came from stderr
44 def initialize(stderr)
=> 45 @stderr = stderr.to_s
46 end
47
48 # A common header for all git errors. The #to_s method should
49 # use this before outputting any specific errors.
(rdb:1) next
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb:106
rescue GitError
[101, 110] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb
101 #
102 # @raise [InvalidGitRef] if the ref could not be found
103 def revision_from_ref(repo_path, ref)
104 begin
105 show_ref(repo_path, ref)
=> 106 rescue GitError
107 begin
108 git('rev-parse', ref)
109 ref
110 rescue GitError
(rdb:1) step
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb:107
begin
[102, 111] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb
102 # @raise [InvalidGitRef] if the ref could not be found
103 def revision_from_ref(repo_path, ref)
104 begin
105 show_ref(repo_path, ref)
106 rescue GitError
=> 107 begin
108 git('rev-parse', ref)
109 ref
110 rescue GitError
111 raise InvalidGitRef, ref
(rdb:1) step
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb:108
git('rev-parse', ref)
[103, 112] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb
103 def revision_from_ref(repo_path, ref)
104 begin
105 show_ref(repo_path, ref)
106 rescue GitError
107 begin
=> 108 git('rev-parse', ref)
109 ref
110 rescue GitError
111 raise InvalidGitRef, ref
112 end
(rdb:1) p git('rev-parse', ref)
*** Berkshelf::GitError Exception: Berkshelf::GitError
(rdb:1) step
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb:23
command.unshift(git_cmd)
[18, 27] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb
18 # @param [Array<String>]
19 #
20 # @return [String]
21 # the output of the execution of the Git command
22 def git(*command)
=> 23 command.unshift(git_cmd)
24 command_str = command.map { |p| quote_cmd_arg(p) }.join(' ')
25 response = shell_out(command_str)
26
27 unless response.success?
(rdb:1) next
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb:24
command_str = command.map { |p| quote_cmd_arg(p) }.join(' ')
[19, 28] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb
19 #
20 # @return [String]
21 # the output of the execution of the Git command
22 def git(*command)
23 command.unshift(git_cmd)
=> 24 command_str = command.map { |p| quote_cmd_arg(p) }.join(' ')
25 response = shell_out(command_str)
26
27 unless response.success?
28 raise GitError.new(response.stderr.strip)
(rdb:1) next
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb:24
command_str = command.map { |p| quote_cmd_arg(p) }.join(' ')
[19, 28] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb
19 #
20 # @return [String]
21 # the output of the execution of the Git command
22 def git(*command)
23 command.unshift(git_cmd)
=> 24 command_str = command.map { |p| quote_cmd_arg(p) }.join(' ')
25 response = shell_out(command_str)
26
27 unless response.success?
28 raise GitError.new(response.stderr.strip)
(rdb:1) next
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb:24
command_str = command.map { |p| quote_cmd_arg(p) }.join(' ')
[19, 28] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb
19 #
20 # @return [String]
21 # the output of the execution of the Git command
22 def git(*command)
23 command.unshift(git_cmd)
=> 24 command_str = command.map { |p| quote_cmd_arg(p) }.join(' ')
25 response = shell_out(command_str)
26
27 unless response.success?
28 raise GitError.new(response.stderr.strip)
(rdb:1) next
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb:24
command_str = command.map { |p| quote_cmd_arg(p) }.join(' ')
[19, 28] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb
19 #
20 # @return [String]
21 # the output of the execution of the Git command
22 def git(*command)
23 command.unshift(git_cmd)
=> 24 command_str = command.map { |p| quote_cmd_arg(p) }.join(' ')
25 response = shell_out(command_str)
26
27 unless response.success?
28 raise GitError.new(response.stderr.strip)
(rdb:1) next
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb:25
response = shell_out(command_str)
[20, 29] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb
20 # @return [String]
21 # the output of the execution of the Git command
22 def git(*command)
23 command.unshift(git_cmd)
24 command_str = command.map { |p| quote_cmd_arg(p) }.join(' ')
=> 25 response = shell_out(command_str)
26
27 unless response.success?
28 raise GitError.new(response.stderr.strip)
29 end
(rdb:1) p command_str
"/usr/local/bin/git rev-parse 61d59d94a5fc7c8ff23b51f743bbc116468edc69"
(rdb:1) p shell_out(command_str)
#<Buff::ShellOut::Response:0x000001029db770 @exitstatus=128, @stdout="", @stderr="fatal: Not a git repository (or any of the parent directories): .git\n">
(rdb:1) next
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb:27
unless response.success?
[22, 31] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb
22 def git(*command)
23 command.unshift(git_cmd)
24 command_str = command.map { |p| quote_cmd_arg(p) }.join(' ')
25 response = shell_out(command_str)
26
=> 27 unless response.success?
28 raise GitError.new(response.stderr.strip)
29 end
30
31 response.stdout.strip
(rdb:1) next
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb:28
raise GitError.new(response.stderr.strip)
[23, 32] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb
23 command.unshift(git_cmd)
24 command_str = command.map { |p| quote_cmd_arg(p) }.join(' ')
25 response = shell_out(command_str)
26
27 unless response.success?
=> 28 raise GitError.new(response.stderr.strip)
29 end
30
31 response.stdout.strip
32 end
(rdb:1) next
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb:111
raise InvalidGitRef, ref
[106, 115] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/git.rb
106 rescue GitError
107 begin
108 git('rev-parse', ref)
109 ref
110 rescue GitError
=> 111 raise InvalidGitRef, ref
112 end
113 end
114 end
115
(rdb:1) next
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/downloader.rb:81
raise if e.kind_of?(CookbookValidationFailure)
[76, 85] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/downloader.rb
76 cached = download_location(source, location, true)
77 source.cached_cookbook = cached
78
79 return [cached, location]
80 rescue => e
=> 81 raise if e.kind_of?(CookbookValidationFailure)
82 Berkshelf.formatter.error "Failed to download '#{source.name}' from #{source.location}"
83 end
84 else
85 locations.each do |loc|
(rdb:1) p e
#<Berkshelf::InvalidGitRef: An error occurred during Git execution:
Invalid Git ref: '61d59d94a5fc7c8ff23b51f743bbc116468edc69'
>
(rdb:1) next
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/downloader.rb:82
Berkshelf.formatter.error "Failed to download '#{source.name}' from #{source.location}"
[77, 86] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/downloader.rb
77 source.cached_cookbook = cached
78
79 return [cached, location]
80 rescue => e
81 raise if e.kind_of?(CookbookValidationFailure)
=> 82 Berkshelf.formatter.error "Failed to download '#{source.name}' from #{source.location}"
83 end
84 else
85 locations.each do |loc|
86 options = loc[:options].merge(loc[:type] => loc[:value])
(rdb:1) next
INFO interface: error: Failed to download 'apt' from git: 'git://github.com/trinitronx/apt.git' with branch: 'master' at ref: '61d59d94a5fc7c8ff23b51f743bbc116468edc69'
[Berkshelf] Failed to download 'apt' from git: 'git://github.com/trinitronx/apt.git' with branch: 'master' at ref: '61d59d94a5fc7c8ff23b51f743bbc116468edc69'
/Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/downloader.rb:97
raise CookbookNotFound, "Cookbook '#{source.name}' not found in any of the default locations"
[92, 101] in /Users/vagrant/.vagrant.d/gems/gems/berkshelf-2.0.10/lib/berkshelf/downloader.rb
92 return [cached, location]
93 end
94 end
95 end
96
=> 97 raise CookbookNotFound, "Cookbook '#{source.name}' not found in any of the default locations"
98 end
99
100 private
101
(rdb:1) next
/Users/vagrant/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.3/lib/berkshelf/vagrant/action/install.rb:35
raise Berkshelf::VagrantWrapperError.new(e)
[30, 39] in /Users/vagrant/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.3/lib/berkshelf/vagrant/action/install.rb
30 install(env)
31 end
32
33 @app.call(env)
34 rescue Berkshelf::BerkshelfError => e
=> 35 raise Berkshelf::VagrantWrapperError.new(e)
36 end
37
38 private
39
(rdb:1) next
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:37
rescue SystemExit
[32, 41] in /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb
32 action = @actions.shift
33 @logger.info("Calling IN action: #{action}")
34 @stack.unshift(action).first.call(env)
35 raise Errors::VagrantInterrupt if env[:interrupted]
36 @logger.info("Calling OUT action: #{action}")
=> 37 rescue SystemExit
38 # This means that an "exit" or "abort" was called. In these cases,
39 # we just exit immediately.
40 raise
41 rescue Exception => e
(rdb:1) next
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:44
if e != @last_error
[39, 48] in /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb
39 # we just exit immediately.
40 raise
41 rescue Exception => e
42 # We guard this so that the Warden only outputs this once for
43 # an exception that bubbles up.
=> 44 if e != @last_error
45 @logger.error("Error occurred: #{e}")
46 @last_error = e
47 end
48
(rdb:1) cont
ERROR warden: Error occurred: Berkshelf::CookbookNotFound: Cookbook 'apt' not found in any of the default locations
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
ERROR warden: Error occurred: Berkshelf::CookbookNotFound: Cookbook 'apt' not found in any of the default locations
INFO warden: Beginning recovery process...
INFO warden: Calling recover: #<Vagrant::Action::Builtin::Call:0x00000101ba36a8>
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
INFO warden: Recovery complete.
ERROR warden: Error occurred: Berkshelf::CookbookNotFound: Cookbook 'apt' not found in any of the default locations
INFO warden: Beginning recovery process...
INFO warden: Calling recover: #<Vagrant::Action::Builtin::Call:0x00000100a30920>
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
INFO warden: Recovery complete.
ERROR warden: Error occurred: Berkshelf::CookbookNotFound: Cookbook 'apt' not found in any of the default locations
INFO warden: Beginning recovery process...
INFO warden: Calling recover: #<Vagrant::Action::Builtin::Call:0x00000100b230a8>
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
INFO warden: Calling recover: #<Vagrant::Action::Builtin::Call:0x00000100b1e968>
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
INFO warden: Calling recover: #<Vagrant::Action::Builtin::Call:0x00000100b46e18>
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
INFO warden: Recovery complete.
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
INFO environment: Running hook: environment_unload
INFO runner: Running action: #<Vagrant::Action::Builder:0x000001018404c0>
ERROR vagrant: Vagrant experienced an error! Details:
ERROR vagrant: #<Berkshelf::VagrantWrapperError: Berkshelf::CookbookNotFound: Cookbook 'apt' not found in any of the default locations>
ERROR vagrant: Berkshelf::CookbookNotFound: Cookbook 'apt' not found in any of the default locations
ERROR vagrant: /Users/vagrant/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.3/lib/berkshelf/vagrant/action/install.rb:35:in `rescue in call'
/Users/vagrant/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.3/lib/berkshelf/vagrant/action/install.rb:13:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/builtin/provision.rb:54:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/plugins/providers/virtualbox/action/clear_forwarded_ports.rb:13:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/plugins/providers/virtualbox/action/set_name.rb:19:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/plugins/providers/virtualbox/action/clean_machine_folder.rb:17:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/plugins/providers/virtualbox/action/check_accessible.rb:18:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/runner.rb:61:in `block in run'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/util/busy.rb:19:in `busy'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/runner.rb:61:in `run'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/builtin/call.rb:51:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/runner.rb:61:in `block in run'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/util/busy.rb:19:in `busy'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/runner.rb:61:in `run'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/builtin/call.rb:51:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/runner.rb:61:in `block in run'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/util/busy.rb:19:in `busy'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/runner.rb:61:in `run'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/builtin/call.rb:51:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/builtin/call.rb:57:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
/Users/vagrant/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.3/lib/berkshelf/vagrant/action/configure_chef.rb:23:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
/Users/vagrant/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.3/lib/berkshelf/vagrant/action/load_shelf.rb:28:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
/Users/vagrant/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.3/lib/berkshelf/vagrant/action/set_ui.rb:12:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/builtin/env_set.rb:19:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/builtin/call.rb:57:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/warden.rb:34:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/builder.rb:116:in `call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/runner.rb:61:in `block in run'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/util/busy.rb:19:in `busy'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/action/runner.rb:61:in `run'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/machine.rb:147:in `action'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/batch_action.rb:63:in `block (2 levels) in run'
INFO interface: error: Berkshelf::CookbookNotFound: Cookbook 'apt' not found in any of the default locations
Berkshelf::CookbookNotFound: Cookbook 'apt' not found in any of the default locations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment