Skip to content

Instantly share code, notes, and snippets.

View aroop's full-sized avatar

Ajay Guthikonda aroop

View GitHub Profile
@aroop
aroop / EOFError
Created May 6, 2011 11:03
Excon::Errors::SocketError: EOFError
/usr/ruby1.9.2/lib/ruby/1.9.1/openssl/buffering.rb:190:in `readline'
.bundle/gems/ruby/1.9.1/gems/excon-0.6.3/lib/excon/response.rb:22:in `parse'
.bundle/gems/ruby/1.9.1/gems/excon-0.6.3/lib/excon/connection.rb:163:in `request'
.bundle/gems/ruby/1.9.1/gems/fog-0.7.2/lib/fog/core/connection.rb:20:in `request'
.bundle/gems/ruby/1.9.1/gems/fog-0.7.2/lib/fog/storage/aws.rb:323:in `request'
* executing "sudo -p 'sudo password: ' bash -l -c 'cd /mnt/mekosam-production/releases/20110613193437 && RUBBER_ENV=\"production\" FILE=\"role/postgresql_master|role/db/\" FORCE=\"true\" bundle exec rake rubber:config'"
servers: ["production.mekosam.com"]
[production.mekosam.com] executing command
** [out :: production.mekosam.com] (in /mnt/mekosam-production/releases/20110613193437)
** [out :: production.mekosam.com] rake aborted!
** [out :: production.mekosam.com] no such file to load -- will_paginate/collection
** [out :: production.mekosam.com] /mnt/mekosam-production/releases/20110613193437/Rakefile:4:in `require'
** [out :: production.mekosam.com] (See full trace by running task with --trace)
command finished in 8911ms
* executing `rubber:passenger:remove_config_ru'
* executing "sudo -p 'sudo password: ' bash -l -c 'rm -f /mnt/mekosam-production/releases/20110613212116/config.ru'"
servers: ["production.mekosam.com"]
[production.mekosam.com] executing command
command finished in 380ms
* executing "sudo -p 'sudo password: ' bash -l -c 'cd /mnt/mekosam-production/releases/20110613212116 && RUBBER_ENV=\"production\" FILE=\"role/postgresql_master|role/db/\" FORCE=\"true\" bundle exec rake rubber:config'"
servers: ["production.mekosam.com"]
[production.mekosam.com] executing command
** [out :: production.mekosam.com] (in /mnt/mekosam-production/releases/20110613212116)
** [out :: production.mekosam.com] rake aborted!
@aroop
aroop / application_controller.rb
Created June 16, 2011 18:37 — forked from dhh/gist:1014971
Use concerns to keep your models manageable
class WmsWebCma::ApplicationController < ActionController::Base
protect_from_forgery
before_filter :set_locale
helper_method :current_agent, :company_branding
def current_agent
@current_agent ||= (session[:current_agent] ? Agent.find(session[:current_agent]["uuid"]) : nil)
end
Factory.define :gallery do |f|
f.name "Gallery Name"
end
Factory.define :region do |f|
f.name "Telugu"
end
@aroop
aroop / gist:1132829
Created August 8, 2011 21:37
Stacktrace of the exception
[ pid=18421 thr=70134877964720 file=utils.rb:176 time=2011-06-08 01:21:06.693 ]: *** Exception PGError in application (server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
) (process 18421, thread #<Thread:0x7f9318f99360>):
from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.0.rc1/lib/active_record/connection_adapters/postgresql_adapter.rb:273:in `query'
from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.0.rc1/lib/active_record/connection_adapters/postgresql_adapter.rb:273:in `clear_cache!'
from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.0.rc1/lib/active_record/connection_adapters/postgresql_adapter.rb:272:in `each_value'
from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.0.rc1/lib/active_record/connection_adapters/postgresql_adapter.rb:272:in `clear_cache!'
from /usr/local/rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.1.0.rc
We couldn’t find that file to show.
[ pid=30190 thr=9726520 file=utils.rb:176 time=2011-08-08 17:47:57.433 ]: *** Exception PGError in application (server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
) (process 30190, thread #<Thread:0x0000000128d470>):
from /mnt/nrimovies-production/shared/bundle/ruby/1.9.1/gems/activerecord-3.1.0.rc5/lib/active_record/connection_adapters/postgresql_adapter.rb:272:in `exec'
from /mnt/nrimovies-production/shared/bundle/ruby/1.9.1/gems/activerecord-3.1.0.rc5/lib/active_record/connection_adapters/postgresql_adapter.rb:272:in `block in clear_cache!'
from /mnt/nrimovies-production/shared/bundle/ruby/1.9.1/gems/activerecord-3.1.0.rc5/lib/active_record/connection_adapters/postgresql_adapter.rb:271:in `each_value'
from /mnt/nrimovies-production/shared/bundle/ruby/1.9.1/gems/activerecord-3.1.0.rc5/lib/active_record/connection_adapters/postgresql_adapter.rb:271:in `clear_cache!'
from /mnt/nrimovies-production/shared/bundle/ruby/1.9
*** Exception Errno::ENOENT in Class (No such file or directory - config.ru) (process 5208, thread #<Thread:0x00000000d3f478>):
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/passenger-3.0.8/lib/phusion_passenger/rack/application_spawner.rb:221:in `read'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/passenger-3.0.8/lib/phusion_passenger/rack/application_spawner.rb:221:in `load_rack_app'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/passenger-3.0.8/lib/phusion_passenger/rack/application_spawner.rb:74:in `block (2 levels) in spawn_application'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/passenger-3.0.8/lib/phusion_passenger/utils.rb:572:in `report_app_init_status'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/passenger-3.0.8/lib/phusion_passenger/rack/application_spawner.rb:72:in `block in spawn_application'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/passenger-3.0.8/lib/phusion_passenger/utils.rb:479:in `safe_fork'
from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/passenger-3.0.8/lib/phusion_passenger/ra
Started POST "/galleries/create_from_email" for 10.86.34.175 at 2011-12-14 13:34:33 -0800
Processing by GalleriesController#create_from_email as HTML
Parameters: {"attachment17"=>#<ActionDispatch::Http::UploadedFile:0x0000000b37a8b0 @original_filename="Trisha (57).jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"attachment17\"; filename=\"Trisha %2857%29.jpg\"\r\nContent-Type: image/jpeg\r\n", @tempfile=#<File:/tmp/RackMultipart20111214-13252-18puoo9>>, "attachment2"=>#<ActionDispatch::Http::UploadedFile:0x0000000b37a810 @original_filename="Trisha (42).jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"attachment2\"; filename=\"Trisha %2842%29.jpg\"\r\nContent-Type: image/jpeg\r\n", @tempfile=#<File:/tmp/RackMultipart20111214-13252-3msil8>>, "dkim"=>"{@gmail.com : fail (body has been altered)}", "attachment29"=>#<ActionDispatch::Http::UploadedFile:0x0000000b37a748 @original_filename="Trisha (69).jpg", @content_type="image/jpeg", @headers="C