Skip to content

Instantly share code, notes, and snippets.

View phlegx's full-sized avatar
💪
never stop coding

Phlegx Systems phlegx

💪
never stop coding
View GitHub Profile
deployer@hostname:~$ bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
-sh: syntax error near unexpected token `
can't convert nil into String
Extracted source (around line #47):
44: </p>
45:
46: <p>
47: <%= image_tag(@customer_setting.image_url(:thumb)) if @customer_setting.image?%><br/>
48: <p/>
49: </fieldset>
# Error
can't convert nil into String
Extracted source (around line 47 </a>):
44: </p>
45:
46: <p>
47: <%= image_tag(@customer_setting.image_url(:thumb)) if @customer_setting.image?%><br/>
48: <p/>
/home/user/.rvm/gems/ruby-1.9.2-p136@freerelictest/bundler/gems/FreeRelic-c474d8287bac/app/controllers/free_relic/metrics_controller.rb:4:in `index'
actionpack (3.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.0.4) lib/abstract_controller/base.rb:150:in `process_action'
actionpack (3.0.4) lib/action_controller/metal/rendering.rb:11:in `process_action'
actionpack (3.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (3.0.4) lib/active_support/callbacks.rb:441:in `block in _run__624935462__process_action__607643079__callbacks'
activesupport (3.0.4) lib/active_support/callbacks.rb:220:in `block in _conditional_callback_around_27'
/home/user/.rvm/gems/ruby-1.9.2-p136@freerelictest/bundler/gems/FreeRelic-c474d8287bac/app/controllers/free_relic/base_controller.rb:24:in `block in mute_notifications'
/home/user/.rvm/gems/ruby-1.9.2-p136@freerelictest/bundler/gems/FreeRelic-c474d8287bac/lib/free_relic/mute_middleware.rb:7:in `mute!'
/home/user/
/usr/local/bin/rvm: line 59: /home/projects/.rvm/scripts/rvm: No such file or directory
/usr/local/bin/rvm: line 59: /home/projects/.rvm/scripts/rvm: No such file or directory
/usr/local/bin/rvm: line 59: /home/projects/.rvm/scripts/rvm: No such file or directory
/usr/local/bin/rvm: line 47: 29274 Broken pipe echo "$rvm_prefix"
29275 Killed | grep -vq '\(\/\|\.\)$'
/usr/local/bin/rvm: line 59: /home/projects/.rvm/scripts/rvm: No such file or directory
/usr/local/bin/rvm: line 5: 29277 Killed grep '^\s*rvm .*$' "$rvmrc" > /dev/null 2>&1
/usr/local/bin/rvm: fork: Cannot allocate memory
Resque.enqueue(CustomerMailer.customer_disabled(customer, nil, receiver).deliver)
## within the class:
class CustomerMailer < ActionMailer::Base
@queue = :mailer_queue
....
Worker
username:8714 on mailer at 2011/04/22 15:18:00just now
Retry or Remove
Class
CustomerMailer
Arguments
"customer_enabled"
{"customer"=>{"created_at"=>"2011-04-22T02:50:44+02:00", "disable"=>false, "id"=>10, "name"=>"M", "restored_at"=>nil, "token"=>"kommer", "updated_at"=>"2011-04-22T15:17:57+02:00"}}
nil
@phlegx
phlegx / gist:937973
Created April 22, 2011 23:55
resque mailer error
username:14741 on mailer at 2011/04/23 01:52:26just now
Retry or Remove
Class
CustomerMailer
Arguments
"customer_enabled"
{"customer"=>{"created_at"=>"2011-04-22T02:50:44+02:00", "disable"=>false, "id"=>10, "name"=>"M", "restored_at"=>nil, "token"=>"kommer", "updated_at"=>"2011-04-23T01:52:22+02:00"}}
nil
nil
@phlegx
phlegx / gist:1348316
Created November 8, 2011 16:44
sudo mulituser install fails with error
$rvm_path (/usr/local/rvm/scripts/rvm) does not exist.-bash: __rvm_teardown: command not found
#################################################################
ls -l /usr/local/rvm/scripts/rvm
-rwxrwxr-x 1 root rvm 3737 2011-11-08 17:20 /usr/local/rvm/scripts/rvm
#################################################################
ls -l /usr/local/rvm/ $HOME/.rvm
hudson@packaging:~$ bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
mkdir: cannot create directory `/usr/local/rvm': Permission denied