Skip to content

Instantly share code, notes, and snippets.

@scottmuc
Created January 2, 2016 18:58
Show Gist options
  • Save scottmuc/f534115f7c3b82d2f8d5 to your computer and use it in GitHub Desktop.
Save scottmuc/f534115f7c3b82d2f8d5 to your computer and use it in GitHub Desktop.
Recipe: sprout-homebrew::cask
* directory[/usr/local/Library/Taps] action create[2016-01-02T19:45:57+01:00] INFO: Processing directory[/usr/local/Library/Taps] action create (sprout-homebrew::cask line 3)
(up to date)
* homebrew_tap[caskroom/cask] action tap[2016-01-02T19:45:57+01:00] INFO: Processing homebrew_tap[caskroom/cask] action tap (sprout-homebrew::cask line 8)
(up to date)
* package[caskroom/cask/brew-cask] action install[2016-01-02T19:45:57+01:00] INFO: Processing package[caskroom/cask/brew-cask] action install (sprout-homebrew::cask line 10)
(up to date)
* package[caskroom/cask/brew-cask] action upgrade[2016-01-02T19:45:57+01:00] INFO: Processing package[caskroom/cask/brew-cask] action upgrade (sprout-homebrew::cask line 12)
(up to date)
* directory[/opt/homebrew-cask/Caskroom] action create[2016-01-02T19:45:58+01:00] INFO: Processing directory[/opt/homebrew-cask/Caskroom] action create (sprout-homebrew::cask line 17)
(up to date)
* directory[/opt/homebrew-cask] action create[2016-01-02T19:45:58+01:00] INFO: Processing directory[/opt/homebrew-cask] action create (sprout-homebrew::cask line 25)
(up to date)
Recipe: <Dynamically Defined Resource>
* execute[brew cask install 1password] action run[2016-01-02T19:45:58+01:00] INFO: Processing execute[brew cask install 1password] action run (/Users/scott/workstation/cookbooks/sprout-homebrew/providers/cask.rb line 5)
==> Downloading https://d13itkw33a7sus.cloudfront.net/dist/1P/mac4/1Password-5.4.2.zip
Already downloaded: /Library/Caches/Homebrew/1password-5.4.2.zip
Most likely, this means you have an outdated version of homebrew-cask. Please run:
brew update; brew cleanup; brew cask cleanup
If this doesn’t fix the problem, please report this bug:
https://github.com/caskroom/homebrew-cask#reporting-bugs
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:349:in `symlink'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:349:in `block in ln_s'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1574:in `fu_each_src_dest0'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:347:in `ln_s'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:370:in `ln_sf'
/usr/local/Library/Taps/caskroom/homebrew-cask/lib/hbc/download.rb:45:in `create_cache_symlink'
/usr/local/Library/Taps/caskroom/homebrew-cask/lib/hbc/download.rb:15:in `perform'
/usr/local/Library/Taps/caskroom/homebrew-cask/lib/hbc/installer.rb:94:in `download'
/usr/local/Library/Taps/caskroom/homebrew-cask/lib/hbc/installer.rb:68:in `install'
/usr/local/Library/Taps/caskroom/homebrew-cask/lib/hbc/cli/install.rb:20:in `block in install_casks'
/usr/local/Library/Taps/caskroom/homebrew-cask/lib/hbc/cli/install.rb:17:in `each'
/usr/local/Library/Taps/caskroom/homebrew-cask/lib/hbc/cli/install.rb:17:in `install_casks'
/usr/local/Library/Taps/caskroom/homebrew-cask/lib/hbc/cli/install.rb:6:in `run'
/usr/local/Library/Taps/caskroom/homebrew-cask/lib/hbc/cli.rb:78:in `run_command'
/usr/local/Library/Taps/caskroom/homebrew-cask/lib/hbc/cli.rb:116:in `process'
/usr/local/Library/Taps/caskroom/homebrew-cask/cmd/brew-cask.rb:26:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/local/Library/brew.rb:69:in `require?'
/usr/local/Library/brew.rb:149:in `<main>'
================================================================================
Error executing action `run` on resource 'execute[brew cask install 1password]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of brew cask install --appdir="/Applications" 1password ----
STDOUT: ==> Downloading https://d13itkw33a7sus.cloudfront.net/dist/1P/mac4/1Password-5.4.2.zip
Already downloaded: /Library/Caches/Homebrew/1password-5.4.2.zip
Most likely, this means you have an outdated version of homebrew-cask. Please run:
brew update; brew cleanup; brew cask cleanup
If this doesn’t fix the problem, please report this bug:
https://github.com/caskroom/homebrew-cask#reporting-bugs
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:349:in `symlink'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:349:in `block in ln_s'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1574:in `fu_each_src_dest0'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:347:in `ln_s'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:370:in `ln_sf'
/usr/local/Library/Taps/caskroom/homebrew-cask/lib/hbc/download.rb:45:in `create_cache_symlink'
/usr/local/Library/Taps/caskroom/homebrew-cask/lib/hbc/download.rb:15:in `perform'
/usr/local/Library/Taps/caskroom/homebrew-cask/lib/hbc/installer.rb:94:in `download'
/usr/local/Library/Taps/caskroom/homebrew-cask/lib/hbc/installer.rb:68:in `install'
/usr/local/Library/Taps/caskroom/homebrew-cask/lib/hbc/cli/install.rb:20:in `block in install_casks'
/usr/local/Library/Taps/caskroom/homebrew-cask/lib/hbc/cli/install.rb:17:in `each'
/usr/local/Library/Taps/caskroom/homebrew-cask/lib/hbc/cli/install.rb:17:in `install_casks'
/usr/local/Library/Taps/caskroom/homebrew-cask/lib/hbc/cli/install.rb:6:in `run'
/usr/local/Library/Taps/caskroom/homebrew-cask/lib/hbc/cli.rb:78:in `run_command'
/usr/local/Library/Taps/caskroom/homebrew-cask/lib/hbc/cli.rb:116:in `process'
/usr/local/Library/Taps/caskroom/homebrew-cask/cmd/brew-cask.rb:26:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/local/Library/brew.rb:69:in `require?'
/usr/local/Library/brew.rb:149:in `<main>'
STDERR: Error: Permission denied - (/Library/Caches/Homebrew/1password-5.4.2.zip, /Library/Caches/Homebrew/Casks/1password-5.4.2.zip)
---- End output of brew cask install --appdir="/Applications" 1password ----
Ran brew cask install --appdir="/Applications" 1password returned 1
Resource Declaration:
---------------------
# In /Users/scott/workstation/cookbooks/sprout-homebrew/providers/cask.rb
5: execute "brew cask install #{package}" do
6: only_if "brew cask info #{package} | grep 'Not installed' > /dev/null 2>&1"
7: user node['sprout']['user']
8: command "brew cask install #{new_resource.opts} #{package}"
9: end
10:
Compiled Resource:
------------------
# Declared in /Users/scott/workstation/cookbooks/sprout-homebrew/providers/cask.rb:5:in `block in class_from_file'
execute("brew cask install 1password") do
action "run"
retries 0
retry_delay 2
command "brew cask install --appdir=\"/Applications\" 1password"
backup 5
returns 0
user "scott"
cookbook_name :"sprout-homebrew"
only_if "brew cask info 1password | grep 'Not installed' > /dev/null 2>&1"
end
[2016-01-02T19:45:58+01:00] INFO: Running queued delayed notifications before re-raising exception
[2016-01-02T19:45:58+01:00] ERROR: Running exception handlers
[2016-01-02T19:45:58+01:00] ERROR: Exception handlers complete
[2016-01-02T19:45:58+01:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 11 resources updated
[2016-01-02T19:45:59+01:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment