Skip to content

Instantly share code, notes, and snippets.

@derekperkins
derekperkins / gist:6913322
Created October 10, 2013 05:07
Stacktrace
Generated at 2013-10-10 04:49:33 +0000
Errno::ECONNREFUSED: Connection refused - Connection refused connecting to localhost:443 for /nodes/local.nozzle.io, giving up
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.6.2/lib/chef/rest.rb:300:in `rescue in retriable_rest_request'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.6.2/lib/chef/rest.rb:286:in `retriable_rest_request'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.6.2/lib/chef/rest.rb:167:in `raw_http_request'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.6.2/lib/chef/rest.rb:161:in `api_request'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.6.2/lib/chef/rest.rb:102:in `get'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.6.2/lib/chef/node.rb:473:in `load'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.6.2/lib/chef/node.rb:457:in `find_or_create'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.6.2/lib/chef/client.rb:345:in `load_node'
@derekperkins
derekperkins / gist:6913080
Created October 10, 2013 04:32
ElasticSearch vagrant provision error
[2013-10-10T04:21:04+00:00] WARN: Cloning resource attributes for execute[grant-permissions] from prior resource (CHEF-3694)
[2013-10-10T04:21:04+00:00] WARN: Previous execute[grant-permissions]: /var/chef/cache/cookbooks/nozzle/recipes/database.rb:13:in `from_file'
[2013-10-10T04:21:04+00:00] WARN: Current execute[grant-permissions]: /var/chef/cache/cookbooks/nozzle/recipes/database.rb:17:in `from_file'
[2013-10-10T04:21:04+00:00] INFO: Found chef-client in /usr/bin/chef-client
================================================================================
Error executing action `install` on resource 'dpkg_package[/var/chef/cache/elasticsearch-0.90.3.deb]'
================================================================================
@derekperkins
derekperkins / gist:6758647
Created September 30, 2013 02:19
tail -n 50 /var/log/syslog
root@local:/etc/samba# tail -n 50 /var/log/syslog
Sep 30 02:08:36 local dhclient: No working leases in persistent database - sleeping.
Sep 30 02:08:46 local smbd[27311]: [2013/09/30 02:08:46.972822, 0] printing/print_cups.c:110(cups_connect)
Sep 30 02:08:46 local smbd[27311]: Unable to connect to CUPS server localhost:631 - Connection refused
Sep 30 02:08:46 local smbd[26204]: [2013/09/30 02:08:46.978610, 0] printing/print_cups.c:487(cups_async_callback)
Sep 30 02:08:46 local smbd[26204]: failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
Sep 30 02:09:01 local CRON[27313]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Sep 30 02:12:58 local dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 3
Sep 30 02:13:01 local dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 5
Sep 30 02:13:06 local dhclient: DHCPDISCOVER on eth1 to 255.255.255.2
@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'
@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: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: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: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: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: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