Skip to content

Instantly share code, notes, and snippets.

View kisoku's full-sized avatar

Mathieu Sauve-Frankel kisoku

View GitHub Profile
merb : worker (port 4000) ~ Params: {"node"=>"gikei.jp.kisoku.net", "action"=>"recipe_files", "controller"=>"chef_server_slice/cookbooks"}
~ Sending HTTP Request via GET to /chef/node_gikei_jp_kisoku_net
~ Node requires rsync
merb : worker (port 4000) ~ undefined method `[]' for nil:NilClass - (NoMethodError)
/usr/share/chef-server-slice/app/controllers/application.rb:202:in `load_all_files'
/usr/share/chef-server-slice/app/controllers/application.rb:200:in `each'
/usr/share/chef-server-slice/app/controllers/application.rb:200:in `load_all_files'
/usr/lib/ruby/1.8/chef/cookbook_loader.rb:117:in `each'
/usr/lib/ruby/1.8/chef/cookbook_loader.rb:116:in `each_value'
/usr/lib/ruby/1.8/chef/cookbook_loader.rb:116:in `each'
#
# Author:: AJ Christensen (<aj@opscode.com>)
# Copyright:: Copyright (c) 2008 OpsCode, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
Index: rc
===================================================================
RCS file: /cvs/src/etc/rc,v
retrieving revision 1.332
diff -u -p -r1.332 rc
--- rc 12 Aug 2009 13:21:15 -0000 1.332
+++ rc 23 Sep 2009 12:13:56 -0000
@@ -779,6 +779,12 @@ if [ X"${krb5_slave_kdc}" = X"YES" ]; th
# Remember to enable hpropd in inetd.conf
fi
# please note that the openbsd ftp client does indeed support http and redirects.
$ ftp http://gemcutter.org/gems/amqp-0.6.2.gem
Trying 174.129.212.2...
Requesting http://gemcutter.org/gems/amqp-0.6.2.gem
Redirected to http://s3.amazonaws.com/gemcutter_production/gems/amqp-0.6.2.gem
Trying 207.171.185.197...
Requesting http://s3.amazonaws.com/gemcutter_production/gems/amqp-0.6.2.gem
ftp: Error retrieving file: 403 Forbidden
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package ohai
dpkg-buildpackage: source version 0.4.0-1
dpkg-buildpackage: source changed by Joshua Timberman <joshua@opscode.com>
dpkg-buildpackage: host architecture amd64
fakeroot debian/rules clean
knife index rebuild -y
/usr/lib/ruby/1.8/net/http.rb:2101:in `error!': 500 "Internal Server Error" (Net::HTTPFatalError)
from /usr/lib/ruby/1.8/chef/rest.rb:296:in `run_request'
from /usr/lib/ruby/1.8/chef/rest.rb:116:in `post_rest'
from /usr/lib/ruby/1.8/chef/knife/index_rebuild.rb:35:in `run'
from /usr/lib/ruby/1.8/chef/application/knife.rb:110:in `run'
from /usr/bin/knife:25
$ knife ssh
/usr/lib/ruby/1.8/net/http.rb:2101:in `error!': 500 "Internal Server Error" (Net::HTTPFatalError)
from /usr/lib/ruby/1.8/chef/rest.rb:296:in `run_request'
from /usr/lib/ruby/1.8/chef/rest.rb:106:in `get_rest'
from /usr/lib/ruby/1.8/chef/search/query.rb:37:in `search'
from /usr/lib/ruby/1.8/chef/knife/ssh.rb:63:in `configure_session'
from /usr/lib/ruby/1.8/chef/knife/ssh.rb:191:in `run'
from /usr/lib/ruby/1.8/chef/application/knife.rb:110:in `run'
from /usr/bin/knife:25
merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"show", "id"=>"node", "q"=>"
", "start"=>"0", "rows"=>"20", "controller"=>"chef_server_api/search", "sort"=>""}
merb : worker (port 4000) ~ 500 "null java.lang.NullPointerException \tat java.io.StringR
eader.<init>(StringReader.java:50) \tat org.apache.lucene.queryParser.QueryParser.parse(Qu
eryParser.java:197) \tat org.apache.solr.search.LuceneQParser.parse(LuceneQParserPlugin.ja
va:78) \tat org.apache.solr.search.QParser.getQuery(QParser.java:131) \tat org.apache.solr
.handler.component.QueryComponent.prepare(QueryComponent.java:89) \tat org.apache.solr.han
dler.component.SearchHandler.handleRequestBody(SearchHandler.java:174) \tat org.apache.sol
r.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131) \tat org.apache.so
lr.core.SolrCore.execute(SolrCore.java:1317) \tat org.apache.solr.servlet.SolrDispatchFilt
# ...
# append following lines
Dir[ File.join(File.dirname(__FILE__), 'tasks', '*.rake') ].sort.each do |f|
load f
end
chef_gem "chef-handler-mail"
gem "chef-handler-mail"
chef_handler "MailHandler" do
source 'chef/handler/mail'
arguments :to_address => "root"
action :nothing
end.run_action(:enable)