Skip to content

Instantly share code, notes, and snippets.

View qhartman's full-sized avatar

Quentin Hartman qhartman

View GitHub Profile
@qhartman
qhartman / gist:4668333
Created January 29, 2013 21:58
mysql is so sad.
21:42:06 UTC - mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.
key_buffer_size=16777216
read_buffer_size=262144
Cluster Configuration
---------------------
[ndbd(NDB)] 2 node(s)
id=2 @10.177.5.167 (mysql-5.5.29 ndb-7.2.10, Nodegroup: 0)
id=3 @10.168.159.194 (mysql-5.5.29 ndb-7.2.10, Nodegroup: 0, Master)
[ndb_mgmd(MGM)] 1 node(s)
id=1 @10.176.65.23 (mysql-5.5.29 ndb-7.2.10)
[mysqld(API)] 2 node(s)
/usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:45:in `gem_original_require': no such file to load -- rubygems/format (LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:45:in `require'
from /usr/lib64/ruby/gems/1.8/gems/chef-10.24.0/bin/../lib/chef/provider/package/rubygems.rb:34
from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:45:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:45:in `require'
from /usr/lib64/ruby/gems/1.8/gems/chef-10.24.0/bin/../lib/chef/providers.rb:60
from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:45:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:45:in `require'
from /usr/lib64/ruby/gems/1.8/gems/chef-10.24.0/bin/../lib/chef.rb:25
from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:45:in `gem_original_require'
[root@domU-12-31-39-0B-A8-88 chef]# gem install format
Successfully installed format-0.1.0
Parsing documentation for format-0.1.0
/usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:45:in `gem_original_require': no such file to load -- irb/slex (LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:45:in `require'
from /usr/lib64/ruby/gems/1.8/gems/rdoc-4.0.0/lib/rdoc/ruby_lex.rb:13
from /usr/lib64/ruby/gems/1.8/gems/rdoc-4.0.0/lib/rdoc/parser/ruby.rb:164:in `initialize'
from /usr/lib64/ruby/gems/1.8/gems/rdoc-4.0.0/lib/rdoc/parser.rb:221:in `new'
from /usr/lib64/ruby/gems/1.8/gems/rdoc-4.0.0/lib/rdoc/parser.rb:221:in `for'
from /usr/lib64/ruby/gems/1.8/gems/rdoc-4.0.0/lib/rdoc/rdoc.rb:360:in `parse_file'
case platform
when "centos","redhat","fedora","scientific","amazon"
default['java']['java_home'] = "/usr/lib/jvm/java"
when "freebsd"
default['java']['java_home'] = "/usr/local/openjdk#{java['jdk_version']}"
when "arch"
default['java']['java_home'] = "/usr/lib/jvm/java-#{java['jdk_version']}-openjdk"
else
default['java']['java_home'] = "/usr/lib/jvm/default-java"
end
root@vagrant-ubuntu-precise-64:/opt/chef# chef-client --version
Chef: 10.24.0
root@vagrant-ubuntu-precise-64:/opt/chef# cat ./embedded/lib/ruby/gems/1.9.1/gems/pg-0.14.1/ext/mkmf.log
find_executable: checking for pg_config... -------------------- yes
--------------------
find_header: checking for libpq-fe.h... -------------------- yes
"gcc -o conftest -I/opt/chef/embedded/include/ruby-1.9.1/x86_64-linux -I/opt/chef/embedded/include/ruby-1.9.1/ruby/backward -I/opt/chef/embedded/include/ruby-1.9.1 -I. -I/opt/chef/embedded/include -I/usr/include/postgresql -I/opt/chef/embedded/include -fPIC conftest.c -L. -L/opt/chef/embedded/lib -Wl,-R/opt/chef/embedded/lib -L/opt/chef/embedded/lib -Wl,-R/opt/chef/embedded/lib -L. -Wl,-rpath,/opt/chef/embedded/lib -L/opt/chef/embedded/lib -rdynamic -Wl,-export-dynamic -L/usr/lib -Wl,-R -Wl,/opt/chef/embedded/lib -L/opt/chef/embedded/lib -lruby -lpthread -lrt -ldl -lcrypt -lm -lc"
[2013-03-14T23:02:13+00:00] INFO: Processing link[/etc/nagios3/stylesheets] action create (DWDNagios::server_source line 117)
================================================================================
Error executing action `create` on resource 'link[/etc/nagios3/stylesheets]'
================================================================================
Errno::EISDIR
-------------
Is a directory - /etc/nagios3/stylesheets
@qhartman
qhartman / gist:5264842
Created March 28, 2013 16:48
postgres crash log
2013-03-28 12:49:30 GMT WARNING: page 1441792 of relation base/63229/63370 does not exist
2013-03-28 12:49:30 GMT CONTEXT: xlog redo delete: index 1663/63229/109956; iblk 303, heap 1663/63229/63370;
2013-03-28 12:49:30 GMT PANIC: WAL contains references to invalid pages
2013-03-28 12:49:30 GMT CONTEXT: xlog redo delete: index 1663/63229/109956; iblk 303, heap 1663/63229/63370;
2013-03-28 12:49:31 GMT LOG: startup process (PID 22941) was terminated by signal 6: Aborted
2013-03-28 12:49:31 GMT LOG: terminating any other active server processes
2013-03-28 12:49:31 GMT WARNING: terminating connection because of crash of another server process
2013-03-28 12:49:31 GMT DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
2013-03-28 12:49:31 GMT HINT: In a moment you should be able to reconnect to the database and repeat your command.
2013-03-28 12:57:44 GMT LOG: database
#The original template resource def:
template "#{node['mysql']['conf_dir']}/my.cnf" do
source "my.cnf.erb"
owner "root" unless platform_family? 'windows'
group node['mysql']['root_group'] unless platform_family? 'windows'
mode "0644"
case node['mysql']['reload_action']
when 'restart'
notifies :restart, resources(:service => "mysql"), :immediately
CHEF_CLIENT_INSTALL = <<-EOF
#!/bin/sh
test -d /opt/chef || {
echo "Installing chef-client via omnibus"
wget https://www.opscode.com/chef/install.sh
bash ./install.sh -v 10.24.0
}
EOF