Skip to content

Instantly share code, notes, and snippets.

diff --git a/lib/redis/client.rb b/lib/redis/client.rb
index 9f7ab94..9d8fcea 100644
--- a/lib/redis/client.rb
+++ b/lib/redis/client.rb
@@ -237,6 +237,8 @@ class Redis
end
def timeout=(timeout)
+ return if @sock.nil?
+
/usr/lib/ruby/gems/1.8/gems/moneta-0.6.0/lib/moneta/basic_file.rb:53:in `load': marshal data too short (ArgumentError)
from /usr/lib/ruby/gems/1.8/gems/moneta-0.6.0/lib/moneta/basic_file.rb:53:in `raw_get'
from /usr/lib/ruby/gems/1.8/gems/moneta-0.6.0/lib/moneta/basic_file.rb:41:in `[]'
from /usr/lib/ruby/gems/1.8/gems/moneta-0.6.0/lib/moneta/../moneta.rb:69:in `fetch'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/cache/checksum.rb:38:in `lookup_checksum'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/cache/checksum.rb:34:in `checksum_for_file'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/cache/checksum.rb:28:in `checksum_for_file'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/mixin/checksum.rb:27:in `checksum'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/client.rb:220:in `update_file_cache'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/client.rb:21
PROGRESS REPORT <0.42.0> 2010-05-20 21:08:38
===============================================================================
supervisor {local,sasl_safe_sup}
started
[{pid,<0.43.0>},
{name,alarm_handler},
{mfa,{alarm_handler,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
#
# Chef Client Config File
#
# Dynamically generated by Chef - local modifications will be replaced
#
log_level :info
log_location STDOUT
ssl_verify_mode :verify_none
chef_server_url "https://chef8.xxxxx.com:4443"
{"PACKAGE_VERSION"=>"",
"INSTALL_SCRIPT"=>"/usr/bin/install -c",
"DEFS"=>"",
"GREP"=>"/bin/grep",
"sharedstatedir"=>"/usr/com",
"COMMON_LIBS"=>"",
"EXPORT_PREFIX"=>"",
"AR"=>"ar",
"target_alias"=>"",
"PACKAGE_STRING"=>"",
{"PACKAGE_VERSION"=>"",
"INSTALL_SCRIPT"=>"/usr/bin/install -c",
"DEFS"=>"-D_FILE_OFFSET_BITS=64",
"GREP"=>"/bin/grep",
"sharedstatedir"=>"/usr/com",
"COMMON_LIBS"=>"",
"EXPORT_PREFIX"=>"",
"AR"=>"ar",
"target_alias"=>"",
"PACKAGE_STRING"=>"",
*** Exception Errno::EPIPE in Passenger RequestHandler (Broken pipe) (process 14588, thread #<Thread:0x94c2ef4>):
from /usr/lib/ruby/gems/1.8/gems/passenger-enterprise-server-2.9.2/lib/phusion_passenger/utils/unseekable_socket.rb:83:in `write'
from /usr/lib/ruby/gems/1.8/gems/passenger-enterprise-server-2.9.2/lib/phusion_passenger/utils/unseekable_socket.rb:83:in `write'
from /usr/lib/ruby/gems/1.8/gems/passenger-enterprise-server-2.9.2/lib/phusion_passenger/rack/request_handler.rb:113:in `process_request'
from /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/string_coercion.rb:10:in `each'
from /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/response.rb:156:in `each'
from /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/string_coercion.rb:9:in `each'
from /usr/lib/ruby/gems/1.8/gems/passenger-enterprise-server-2.9.2/lib/phusion_passenger/rack/request_handler.rb:112:in `process_request'
from
INFO At redis slave:
redis_version:1.2.6
arch_bits:64
multiplexing_api:epoll
uptime_in_seconds:3793
uptime_in_days:0
connected_clients:2
connected_slaves:0
used_memory:418233780
/usr/lib/ruby/gems/1.9.1/gems/chef-0.8.10/lib/chef/provider/package/dpkg.rb:26:in `<class:Package>': uninitialized constant Chef::Provider::Package::Apt (NameError)
from /usr/lib/ruby/gems/1.9.1/gems/chef-0.8.10/lib/chef/provider/package/dpkg.rb:25:in `<class:Provider>'
from /usr/lib/ruby/gems/1.9.1/gems/chef-0.8.10/lib/chef/provider/package/dpkg.rb:24:in `<class:Chef>'
from /usr/lib/ruby/gems/1.9.1/gems/chef-0.8.10/lib/chef/provider/package/dpkg.rb:23:in `<top (required)>'
from /usr/lib/ruby/gems/1.9.1/gems/chef-0.8.10/lib/chef/platform.rb:24:in `require'
from /usr/lib/ruby/gems/1.9.1/gems/chef-0.8.10/lib/chef/platform.rb:24:in `block in <top (required)>'
from /usr/lib/ruby/gems/1.9.1/gems/chef-0.8.10/lib/chef/platform.rb:24:in `each'
from /usr/lib/ruby/gems/1.9.1/gems/chef-0.8.10/lib/chef/platform.rb:24:in `<top (required)>'
from /usr/lib/ruby/gems/1.9.1/gems/chef-0.8.10/lib/chef/provider/package.rb:23:in `require'
from /usr/lib/ruby/gems/1.9.1/gems/chef-0.8.10/lib/chef/provider/package.rb:23:in `<
2010-03-12_18:52:45.44507 Installing RubyGems...
2010-03-12_18:52:45.44507 /usr/bin/ruby setup.rb --no-ri --no-rdoc
2010-03-12_18:52:45.44507 *** Cannot install RubyGems
2010-03-12_18:52:45.44907 STDERR: src/tcmalloc.cc: In function 'void PrintStats(int)':
2010-03-12_18:52:45.44907 src/tcmalloc.cc:473: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result
2010-03-12_18:52:45.44907 src/tcmalloc.cc: In function 'void ReportLargeAlloc(Length, void*)':
2010-03-12_18:52:45.44907 src/tcmalloc.cc:761: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result
2010-03-12_18:52:45.44907 src/internal_logging.cc: In function 'void TCMalloc_MESSAGE(const char*, int, const char*, ...)':
2010-03-12_18:52:45.44907 src/internal_logging.cc:56: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result
2010-03-12_18:52:45.44907 src/internal_l