Skip to content

Instantly share code, notes, and snippets.

View mghaught's full-sized avatar

Marty Haught mghaught

View GitHub Profile
@mghaught
mghaught / gist:767189
Created January 5, 2011 23:00
h13 errors
2011-01-05T14:56:51-08:00 app[web.2]: ruby 1.8.7 (2010-04-19 patchlevel 253) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2010.02
2011-01-05T14:56:51-08:00 heroku[router]: Error H13 (Connection closed without response) -> GET richarddawkins.net/ dyno=web.2 queue=0 wait=0ms service=0ms bytes=0
2011-01-05T14:56:51-08:00 heroku[router]: Error H13 (Connection closed without response) -> GET richarddawkins.net/javascripts/jquery.cycle.min.js dyno=web.2 queue=0 wait=0ms service=0ms bytes=0
2011-01-05T14:56:51-08:00 heroku[router]: Error H13 (Connection closed without response) -> GET richarddawkins.net/for_user.js dyno=web.2 queue=0 wait=0ms service=0ms bytes=0
2011-01-05T14:56:51-08:00 heroku[router]: Error H13 (Connection closed without response) -> GET richarddawkins.net/feed.php dyno=web.2 queue=0 wait=0ms service=0ms bytes=0
2011-01-05T14:56:51-08:00 heroku[router]: Error H13 (Connection closed without response) -> GET richarddawkins.net/comments/486078 dyno=web.2 queue=0 wait=0ms service=0ms bytes=0
@mghaught
mghaught / gist:744501
Created December 17, 2010 04:47
Heroku env json error
Error Message:
JSON::ParserError: A JSON text must at least contain two octets!
Where:
[GEM_ROOT]/gems/json-1.4.6/lib/json/common.rb, line 146
Backtrace Summary:
[Mon, 02 Aug 2010 11:04:21 -0600] INFO: Installing homebrew[kiwi] version 0.3.1
[Mon, 02 Aug 2010 11:04:59 -0600] INFO: Creating file[/Users/marty/Developer/bin/npm] at /Users/marty/Developer/bin/npm
[Mon, 02 Aug 2010 11:04:59 -0600] INFO: Setting owner to 501 for file[/Users/marty/Developer/bin/npm]
[Mon, 02 Aug 2010 11:04:59 -0600] INFO: Setting group to 20 for file[/Users/marty/Developer/bin/npm]
[Mon, 02 Aug 2010 11:04:59 -0600] ERROR: file[/Users/marty/Developer/bin/npm] (/Users/marty/.cider/cookbooks/node/recipes/default.rb:19:in `from_file') had an error:
Operation not permitted - /Users/marty/Developer/bin/npm
/Library/Ruby/Gems/1.8/gems/chef-0.9.6/bin/../lib/chef/provider/file.rb:116:in `chown'
/Library/Ruby/Gems/1.8/gems/chef-0.9.6/bin/../lib/chef/provider/file.rb:116:in `set_group'
/Library/Ruby/Gems/1.8/gems/chef-0.9.6/bin/../lib/chef/provider/file.rb:147:in `action_create'
/Library/Ruby/Gems/1.8/gems/chef-0.9.6/bin/../lib/chef/runner.rb:50:in `send'
INFO: Writing updated content for template[/Users/marty/.gitconfig] to /Users/marty/.gitconfig
INFO: Backing up template[/Users/marty/.gitconfig] to /var/folders/YG/YG6o4QpZGmuwo6-smrQQY++++TI/-Tmp-/smeagol/backup/Users/marty/.gitconfig.chef-20100802104711
ERROR: template[/Users/marty/.gitconfig] (/Users/marty/projects/smeagol/cookbooks/git/recipes/default.rb:9:in `from_file') had an error:
Operation not permitted - /var/folders/YG/YG6o4QpZGmuwo6-smrQQY++++TI/-Tmp-/chef-rendered-template20100802-5001-b978qe-0
/Users/marty/.rvm/gems/ruby-1.8.7-p174/gems/chef-0.9.6/bin/../lib/chef/file_access_control.rb:109:in `chown'
/Users/marty/.rvm/gems/ruby-1.8.7-p174/gems/chef-0.9.6/bin/../lib/chef/file_access_control.rb:109:in `set_group'
/Users/marty/.rvm/gems/ruby-1.8.7-p174/gems/chef-0.9.6/bin/../lib/chef/file_access_control.rb:55:in `set_all'
/Users/marty/.rvm/gems/ruby-1.8.7-p174/gems/chef-0.9.6/bin/../lib/chef/provider/template.rb:97:in `set_all_access_controls'
/Users/marty/.rvm/gems/ruby-1.8.7-p174/gems/chef-0.9.
INFO: Writing updated content for template[/Users/marty/.gitconfig] to /Users/marty/.gitconfig
INFO: Backing up template[/Users/marty/.gitconfig] to /var/chef/backup/Users/marty/.gitconfig.chef-20100802103334
ERROR: template[/Users/marty/.gitconfig] (/Users/marty/projects/smeagol/cookbooks/git/recipes/default.rb:9:in `from_file') had an error:
Operation not permitted - /var/folders/YG/YG6o4QpZGmuwo6-smrQQY++++TI/-Tmp-/chef-rendered-template20100802-3327-6i4756-0
/Users/marty/.rvm/gems/ruby-1.8.7-p174/gems/chef-0.9.6/bin/../lib/chef/file_access_control.rb:109:in `chown'
/Users/marty/.rvm/gems/ruby-1.8.7-p174/gems/chef-0.9.6/bin/../lib/chef/file_access_control.rb:109:in `set_group'
/Users/marty/.rvm/gems/ruby-1.8.7-p174/gems/chef-0.9.6/bin/../lib/chef/file_access_control.rb:55:in `set_all'
/Users/marty/.rvm/gems/ruby-1.8.7-p174/gems/chef-0.9.6/bin/../lib/chef/provider/template.rb:97:in `set_all_access_controls'
/Users/marty/.rvm/gems/ruby-1.8.7-p174/gems/chef-0.9.6/bin/../lib/chef/provider/template.rb:54:in `ac
MartyMPBS:smeagol marty$ rake smeagol:install
(in /Users/marty/projects/smeagol)
INFO: Setting the run_list to ["homebrew", "homebrew::dbs", "homebrew::misc", "git", "ruby", "ruby::irbrc", "python", "erlang", "node", "oh-my-zsh", "atmos.vim"] from JSON
INFO: Starting Chef Run
ERROR: Running exception handlers
ERROR: Exception handlers complete
ERROR: Re-raising exception: RuntimeError - No Full Name set for your ~/.gitconfig
/Users/marty/projects/smeagol/cookbooks/git/recipes/default.rb:21:in `from_file'
/Users/marty/.rvm/gems/ruby-1.8.7-p174/gems/chef-0.9.6/bin/../lib/chef/mixin/recipe_definition_dsl_core.rb:71:in `instance_eval'
/Users/marty/.rvm/gems/ruby-1.8.7-p174/gems/chef-0.9.6/bin/../lib/chef/mixin/recipe_definition_dsl_core.rb:71:in `method_missing'
MartyMPB2:~ marty$ cat /Users/marty/.rvm/environments/default
export PATH="/Users/marty/.rvm/gems/ruby-1.8.7-p249/bin:/Users/marty/.rvm/gems/ruby-1.8.7-p249@global/bin:/Users/marty/.rvm/rubies/ruby-1.8.7-p249/bin:/Users/marty/.rvm/bin:$PATH"
export RUBY_VERSION='ruby-1.8.7-p249'
export GEM_HOME='/Users/marty/.rvm/gems/ruby-1.8.7-p249'
export GEM_PATH='/Users/marty/.rvm/gems/ruby-1.8.7-p249:/Users/marty/.rvm/gems/ruby-1.8.7-p249@global'
export BUNDLE_PATH='/Users/marty/.rvm/gems/ruby-1.8.7-p249'
export MY_RUBY_HOME='/Users/marty/.rvm/rubies/ruby-1.8.7-p249'
export IRBRC='/Users/marty/.rvm/rubies/ruby-1.8.7-p249/.irbrc'
export rvm_ruby_string='ruby-1.8.7-p249'
unset rvm_gemset_name
MartyMPB2:other marty$ rvm --trace --default 1.8.7-p249
--trace --default 1.8.7-p249
rvm 0.1.39 by Wayne E. Seguin ([email protected]) [http://rvm.beginrescueend.com/]
+ [[ -z '' ]]
+ [[ ! -z ruby-1.8.7-p174 ]]
+ rvm_action=use
+ [[ ! -z '' ]]
+ [[ ! -z '' ]]
def process_for_social_media
if profile
profile.profile_social_networks.each do |network|
if network.activated?
if network.twitter?
process_for_twitter(network.twitter_login, network.id)
end
if network.facebook?
send_to_facebook(network)
... # building up the user, post and topic objects
assert_difference('Delayed::Job.count') do
user.send_forum_notification(:post => post, :topic => topic)
end
assert_emails 1 do
Delayed::Worker.new.work_off
end
notification_email = ActionMailer::Base.deliveries.first