Skip to content

Instantly share code, notes, and snippets.

<script type="text/javascript">
piAId = '10162';
piCId = '27375';
(function() {
function async_load(){
var s = document.createElement('script'); s.type = 'text/javascript';
s.src = ('https:' == document.location.protocol ? 'https://pi' : 'http://cdn') + '.pardot.com/pd.js';
var c = document.getElementsByTagName('script')[0]; c.parentNode.insertBefore(s, c);
}
@derekperkins
derekperkins / gist:6583944
Created September 16, 2013 17:39
syslog error
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'nozzle-vagrant'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
@derekperkins
derekperkins / gist:6584136
Created September 16, 2013 17:55
vagrant provision
$ vagrant provision
[default] Running provisioner: shell...
[default] Running: C:/cygwin64/tmp/vagrant-shell20130916-6600-32eymi
stdin: is not a tty
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6790 100 6790 0 0 11593 0 --:--:-- --:--:-- --:--:-- 15396
Downloading Chef for ubuntu...
Installing Chef
(Reading database ... 64715 files and directories currently installed.)
@derekperkins
derekperkins / gist:6588517
Created September 17, 2013 00:22
Vagrant Provision
[2013-09-17T00:14:57+00:00] INFO: template[/var/www/.ssh/wrap-ssh4git.sh] mode c
hanged to 700
←[0m
================================================================================
←[0m
←[31mError executing action `sync` on resource 'git[nozzle_web]'←[0m
================================================================================
←[0m
←[0m
@derekperkins
derekperkins / gist:6589992
Created September 17, 2013 04:11
Git Error
================================================================================
←[0m
←[31mError executing action `sync` on resource 'git[/var/www/nozzle/htdocs]'←[0m
================================================================================
←[0m
←[0m
Mixlib::ShellOut::ShellCommandFailed←[0m
------------------------------------←[0m
@derekperkins
derekperkins / gist:6598634
Created September 17, 2013 18:30
VMWare Try
C:\nozzle-chef>vagrant up --provider=vmware_workstation
Bringing machine 'default' up with 'vmware_workstation' provider...
[default] Verifying vmnet devices are healthy...
[default] Preparing network adapters...
[default] Starting the VMware VM...
[default] Waiting for the VM to finish booting...
[default] The machine is booted and ready!
[default] Forwarding ports...
[default] -- 22 => 2222
[default] -- 80 => 8082
@derekperkins
derekperkins / gist:6599335
Created September 17, 2013 19:19
Unsuccessful vagrant provision
C:\nozzle-chef>git pull
remote: Counting objects: 5, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 1), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.
From https://bitbucket.org/patrickhumpal/nozzle-chef
1a2ca75..030ab91 master -> origin/master
Updating 1a2ca75..030ab91
Fast-forward
bootstrap.sh | 2 +-
@derekperkins
derekperkins / gist:6600975
Created September 17, 2013 21:35
Using your new box
C:\nozzle-chef>vagrant up --provider=vmware_workstation
Bringing machine 'default' up with 'vmware_workstation' provider...
[default] Box 'nozzle-vagrant' was not found. Fetching box from specified URL fo
r
the provider 'vmware_workstation'. Note that if the URL does not have
a box for this provider, you should interrupt Vagrant now and add
the box yourself. Otherwise Vagrant will attempt to download the
full box prior to discovering this error.
Downloading or copying the box...
←[0KExtracting box...ate: 7032k/s, Estimated time remaining: --:--:--)
@derekperkins
derekperkins / gist:6602359
Created September 17, 2013 23:46
/var/chef/cache/chef-stacktrace.out
Generated at 2013-09-17 21:33:26 +0000
Chef::Exceptions::CookbookNotFound: Cookbook apt not found. If you're loading apt from another cookbook, make sure you configure the dependency in your metadata
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.6.0/lib/chef/cookbook/cookbook_collection.rb:38:in `block in initialize'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-6.18.0/lib/ohai/mash.rb:77:in `yield'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-6.18.0/lib/ohai/mash.rb:77:in `default'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-6.18.0/lib/ohai/mash.rb:77:in `default'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.6.0/lib/chef/run_context/cookbook_compiler.rb:265:in `[]'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.6.0/lib/chef/run_context/cookbook_compiler.rb:265:in `each_cookbook_dep'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.6.0/lib/chef/run_context/cookbook_compiler.rb:243:in `add_cookbook_with_deps'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.6.0/lib/chef/run_
@derekperkins
derekperkins / gist:6723362
Created September 27, 2013 02:17
knife node delete error
C:\Project\nozzle-chef>knife node delete derek-nozzle -y && knife client delete
derek-nozzle -y
C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:106:in `require':
cannot load such file -- yajl/2.0/yajl (LoadError)
from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:106:i
n `require'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/yajl-ruby-1.1.0-x86-mingw32/lib
/yajl/yajl.rb:2:in `<top (required)>'
from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in
`require'