Skip to content

Instantly share code, notes, and snippets.

View greenmoss's full-sized avatar

Kurt Yoder greenmoss

View GitHub Profile
template 'heartbeat' do
action :nothing
backup false
group "root"
mode "0644"
owner "root"
path "#{@node[:chef][:helper_path]}/heartbeat"
source "heartbeat.erb"
end
kurt@dubnium:~$ s chef-client
/usr/lib/ruby/1.8/net/http.rb:2101:in `error!': 500 "Internal Server Error" (Net::HTTPFatalError)
from /var/lib/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/rest.rb:229:in `api_request'
from /var/lib/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/rest.rb:280:in `retriable_rest_request'
from /var/lib/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/rest.rb:210:in `api_request'
from /var/lib/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/rest.rb:126:in `put_rest'
from /var/lib/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/node.rb:502:in `save'
from /var/lib/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/client.rb:175:in `build_node'
from /var/lib/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/client.rb:75:in `run'
from /var/lib/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/application/client.rb:212:in `run_application'
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.6
- RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [x86_64-linux]
- INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /usr/bin/ruby1.8
- EXECUTABLE DIRECTORY: /usr/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
2010-09-10_18:44:04.39335 [Fri, 10 Sep 2010 14:44:04 -0400] INFO: Indexing node 4796d69a-1/usr/lib/ruby/1.8/timeout.rb:60:in `rbuf_fill': execution expired (Timeout::Error)
2010-09-10_18:49:54.20415 from /usr/lib/ruby/1.8/net/protocol.rb:134:in `rbuf_fill'
2010-09-10_18:49:54.20416 from /usr/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'
2010-09-10_18:49:54.20417 from /usr/lib/ruby/1.8/net/protocol.rb:126:in `readline'
2010-09-10_18:49:54.20418 from /usr/lib/ruby/1.8/net/http.rb:2020:in `read_status_line'
2010-09-10_18:49:54.20419 from /usr/lib/ruby/1.8/net/http.rb:2009:in `read_new'
2010-09-10_18:49:54.20419 from /usr/lib/ruby/1.8/net/http.rb:1050:in `request'
2010-09-10_18:49:54.20420 from /usr/lib/ruby/1.8/net/http.rb:1037:in `request'
2010-09-10_18:49:54.20421 from /usr/lib/ruby/1.8/net/http.rb:543:in `start'
2010-09-10_18:49:54.20422 from /usr/lib/ruby/1.8/net/http.rb:1035:in `request'
2010-09-21_13:31:00.72913 java.lang.OutOfMemoryError: PermGen space
2010-09-21_13:31:41.30192 2010-09-21 03:29:32.116::WARN: Error for /solr/select
2010-09-21_13:31:41.30196 java.lang.OutOfMemoryError: PermGen space
@greenmoss
greenmoss / gist:634460
Created October 19, 2010 16:07
solr is b0rk
$ curl 'http://localhost:8983/solr/select?fq=%2BX_CHEF_database_CHEF_X%3Achef+%2BX_CHEF_type_CHEF_X%3Anode&rows=1000&start=0&q=utilization_network_mounts%3A140.147.222.229&indent=off&sort=X_CHEF_id_CHEF_X+asc&wt=ruby'
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 500 </title>
</head>
<body><h2>HTTP ERROR: 500</h2><pre>Severe errors in solr configuration.
Check your log files for more detailed information on what may be wrong.
@greenmoss
greenmoss / gist:634773
Created October 19, 2010 18:36
solr is mad
2010-10-19_18:34:17.89706 Oct 19, 2010 2:34:17 PM org.apache.solr.update.processor.LogUpdateProcessor finish
2010-10-19_18:34:17.89711 INFO: {} 0 1
2010-10-19_18:34:17.89712 Oct 19, 2010 2:34:17 PM org.apache.solr.common.SolrException log
2010-10-19_18:34:17.89713 SEVERE: java.io.IOException: Unexpected character '7' (code 55) expected '>'
2010-10-19_18:34:17.89714 at [row,col {unknown-source}]: [2,4000]
2010-10-19_18:34:17.89715 at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:73)
2010-10-19_18:34:17.89716 at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:54)
2010-10-19_18:34:17.89717 at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
2010-10-19_18:34:17.89717 at org.apache.solr.core.SolrCore.execute(SolrCore.java:1290)
2010-10-19_18:34:17.89718 at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:341)
#!/usr/bin/env ruby
require 'logger'
require 'rubygems'
require 'ncurses'
class Ncurses::WINDOW
def initialize( *args )
w = super
w.clear
w.move(0,0)
$ cat dwatch_stub.rb
#!/usr/bin/env ruby
require 'logger'
require 'rubygems'
require 'ncurses'
class Ncurses::WINDOW
def initialize( height, width, starty, startx )
raise 'Boo!'
w = super( height, width, starty, startx )
#!/usr/bin/env ruby
require 'logger'
require 'rubygems'
require 'ncurses'
class Ncurses::WINDOW
def initialize( height, width, starty, startx )
raise 'Boo!'
w = super( height, width, starty, startx )
w.clear