Skip to content

Instantly share code, notes, and snippets.

Avatar

William Herry williamherry

View GitHub Profile
View gist:9503003
payload | duration | started_at
-----------------------------------------------------------------------------------+----------------+------------------------
{"class":"PushService","jid":"2ff704a149d4c74d3f225492","notification_count":200} | 5770.233193 | 2014-03-12 10:00:16+08
{"class":"PushService","jid":"bb1369d665db8931fd63e716","notification_count":200} | 20513.497832 | 2014-03-12 10:02:15+08
{"class":"PushService","jid":"29f47a69907044060579206c","notification_count":200} | 4035.010939 | 2014-03-12 10:04:15+08
{"class":"PushService","jid":"1c3d7f4ae405903fe5839abd","notification_count":200} | 54542.827837 | 2014-03-12 10:06:15+08
{"class":"PushService","jid":"0fcb6888c08ed51b41b94eb6","notification_count":200} | 143353.947749 | 2014-03-12 10:08:15+08
{"class":"PushService","jid":"b3e6b84b95d0683b593fa2bf","notification_count":200} | 50347.900462 | 2014-03-12 10:12:15+08
{"class":"PushService","jid"
View gist:9801716
undefined method `[]=' for Sidekiq:Module
/home/deploy/rails_apps/smart_lion/releases/20140326083837/config/initializers/sidekiq.rb:13:in `block in <top (required)>'
/home/deploy/rails_apps/smart_lion/shared/bundle/ruby/2.0.0/gems/sidekiq-2.17.0/lib/sidekiq.rb:47:in `configure_server'
/home/deploy/rails_apps/smart_lion/releases/20140326083837/config/initializers/sidekiq.rb:3:in `<top (required)>'
/home/deploy/rails_apps/smart_lion/shared/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:223:in `load'
/home/deploy/rails_apps/smart_lion/shared/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:223:in `block in load'
/home/deploy/rails_apps/smart_lion/shared/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:214:in `load_dependency'
/home/deploy/rails_apps/smart_lion/shared/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:223:in `load'
/home/deploy/rails_apps/smart_lion/shared/bundle/ruby/2.0.0/gems/rai
View gist:de48684c30d91fe450ed
check process redis-server
with pidfile "/var/run/redis.pid"
start program = "/etc/init.d/redis-server start"
stop program = "/etc/init.d/redis-server stop"
if 2 restarts within 3 cycles then timeout
if totalmem > 100 Mb then alert
if children > 255 for 5 cycles then stop
if cpu usage > 95% for 3 cycles then restart
if failed host 127.0.0.1 port 6379 then restart
if 5 restarts within 5 cycles then timeout
View gist:335e514de5a9fedaeb82
{
"name": "qiniu-js-sdk",
"version": "0.0.1",
"description": "Qiniu JavaScript SDK Node Module",
"main": "qiniu.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
View hubot-script-example.coffee
# Description:
# Example scripts for you to examine and try out.
#
# Notes:
# They are commented out by default, because most of them are pretty silly and
# wouldn't be useful and amusing enough for day to day huboting.
# Uncomment the ones you want to try and experiment with.
#
# These are from the scripting documentation: https://github.com/github/hubot/blob/master/docs/scripting.md
@williamherry
williamherry / chef-solr.log
Created Sep 11, 2012
chef-solr can't start
View chef-solr.log
[Tue, 11 Sep 2012 01:02:04 -0700] INFO: Daemonizing..
[Tue, 11 Sep 2012 01:02:04 -0700] INFO: Forked, in 4828. Priveleges: 0 0
[Tue, 11 Sep 2012 01:02:04 -0700] INFO: Starting Solr with java -Xmx256M -Xms256M -Dsolr.data.dir=/var/chef/solr/data -Dsolr.solr.home=/var/chef/solr -jar /var/chef/solr-jetty/start.jar
Error occurred during initialization of VM
java/lang/ClassNotFoundException: error in opening JAR file /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/rt.jar
@williamherry
williamherry / chef-server-log-about-solr
Created Sep 11, 2012
chef server's log about solr
View chef-server-log-about-solr
merb : chef-server (api) : worker (port 4000) ~ Net::HTTPFatalError: 500 "Severe_errors_in_solr_configuration__Check_your_log_files_for_more_detailed_information_on_what_may_be_wrong__If_you_want_solr_to_continue_after_configuration_errors_change____abortOnConfigurationErrorfalseabortOnConfigurationError__in_null___javalangRuntimeException_javalangExceptionInInitializerError__at_orgapachesolrcoreSolrCoregetSearcherSolrCorejava1068__at_orgapachesolrcoreSolrCoreinitSolrCorejava579__at_orgapachesolrcoreCoreContainer$InitializerinitializeCoreContainerjava137__at_orgapachesolrservletSolrDispatchFilterinitSolrDispatchFilterjava83__at_orgmortbayjettyservletFilterHolderdoStartFilterHolderjava99__at_orgmortbaycomponentAbstractLifeCyclestartAbstractLifeCyclejava40__at_orgmortbayjettyservletServletHandlerinitializeServletHandlerjava594__at_orgmortbayjettyservletContextstartContextContextjava139__at_orgmortbayjettywebappWebAppContextstartContextWebAppContextjava1218__at_orgmortbayjettyhandlerContextHandlerdoStartContextH
View java-run-log
[root@localhost lib]# java
Error occurred during initialization of VM
java/lang/ClassNotFoundException: error in opening JAR file /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/rt.jar
@williamherry
williamherry / chef-solr.rb
Created Sep 12, 2012
chef-solr can't start
View chef-solr.rb
[Tue, 11 Sep 2012 18:49:31 -0700] INFO: Starting Solr with java -Xmx256M -Xms256M -Dsolr.data.dir=/var/chef/solr/data -Dsolr.solr.home=/var/chef/solr -jar /var/chef/solr-jetty/start.jar
2012-09-11 18:49:32.364::INFO: Logging to STDERR via org.mortbay.log.StdErrLog
2012-09-11 18:49:32.858::INFO: jetty-6.1.3
2012-09-11 18:49:33.363::WARN: Could not generate SecureRandom for session-id randomness
java.security.NoSuchAlgorithmException: SHA1PRNG SecureRandom not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.security.SecureRandom.getInstance(SecureRandom.java:271)
at org.mortbay.jetty.servlet.HashSessionIdManager.doStart(HashSessionIdManager.java:118)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at org.mortbay.jetty.servlet.AbstractSessionManager.doStart(AbstractSessionManager.java:170)
View chef-client.log
[2012-09-20T05:03:43-07:00] INFO: Processing monitoring_metric[glance-registry-proc] action measure (glance::registry line 85)
[2012-09-20T05:03:43-07:00] INFO: Processing execute[glance-manage db_sync] action nothing (glance::registry line 93)
[2012-09-20T05:03:43-07:00] INFO: Processing execute[glance-manage version_control] action nothing (glance::registry line 101)
[2012-09-20T05:03:48-07:00] INFO: Processing file[/var/lib/glance/glance.sqlite] action delete (glance::registry line 108)
[2012-09-20T05:03:48-07:00] INFO: Processing keystone_register[Register Service Tenant] action create_tenant (glance::registry line 113)
================================================================================
Error executing action `create_tenant` on resource 'keystone_register[Register Service Tenant]'
================================================================================
You can’t perform that action at this time.