Hi everybody,
Please any one help me, Previous two day's I am googling, Still not
find solution. this really frustrating.
I had deploy my app on heroku http://radiationn.heroku.com/. it is
working fine on localhost but i got APPLICATION ERROR.
IN log wht i find that in photo.rb model not able to find
"has_attached_file", I am not able to shout out this proble. It
working fine at localhost.
log file is below
heroku logs
[36m2011-06-02T09:20:20+00:00 app[web.1]:←[0m from
/app/.gems/gems/rails-2.3.8/lib/initializer.rb:413:in
`load_application_classes'
[36m2011-06-02T09:20:20+00:00 app[web.1]:←[0m from
/app/.gems/gems/rails-2.3.8/lib/initializer.rb:411:in `each'
[36m2011-06-02T09:20:20+00:00 app[web.1]:←[0m from
/app/.gems/gems/rails-2.3.8/lib/initializer.rb:411:in
`load_application_classes'
[36m2011-06-02T09:20:20+00:00 app[web.1]:←[0m from
/app/.gems/gems/rails-2.3.8/lib/initializer.rb:197:in `process'
[36m2011-06-02T09:20:20+00:00 app[web.1]:←[0m from
/app/.gems/gems/rails-2.3.8/lib/initializer.rb:113:in `send'
[36m2011-06-02T09:20:20+00:00 app[web.1]:←[0m from
/app/.gems/gems/rails-2.3.8/lib/initializer.rb:113:in `run'
[36m2011-06-02T09:20:20+00:00 app[web.1]:←[0m from /app/config/environment.rb:9
[36m2011-06-02T09:20:20+00:00 app[web.1]:←[0m from
/usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
[36m2011-06-02T09:20:20+00:00 app[web.1]:←[0m from
/usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
[36m2011-06-02T09:20:20+00:00 app[web.1]:←[0m from
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/rack/adapter/rails.rb:42:in
`load_application'
[36m2011-06-02T09:20:20+00:00 app[web.1]:←[0m from
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/rack/adapter/rails.rb:23:in
`initialize'
[36m2011-06-02T09:20:20+00:00 app[web.1]:←[0m from
/home/heroku_rack/heroku.ru:29:in `new'
[36m2011-06-02T09:20:20+00:00 app[web.1]:←[0m from
/home/heroku_rack/heroku.ru:29
[36m2011-06-02T09:20:20+00:00 app[web.1]:←[0m from
/app/.gems/gems/rack-1.1.2/lib/rack/builder.rb:46:in `instance_eval'
[36m2011-06-02T09:20:20+00:00 app[web.1]:←[0m from
/app/.gems/gems/rack-1.1.2/lib/rack/builder.rb:46:in `initialize'
[36m2011-06-02T09:20:20+00:00 app[web.1]:←[0m from
/app/.gems/gems/rack-1.1.2/lib/rack/builder.rb:63:in `new'
[36m2011-06-02T09:20:20+00:00 app[web.1]:←[0m from
/app/.gems/gems/rack-1.1.2/lib/rack/builder.rb:63:in `map'
[36m2011-06-02T09:20:20+00:00 app[web.1]:←[0m from
/home/heroku_rack/heroku.ru:18
[36m2011-06-02T09:20:20+00:00 app[web.1]:←[0m from
/app/.gems/gems/rack-1.1.2/lib/rack/builder.rb:46:in `instance_eval'
[36m2011-06-02T09:20:20+00:00 app[web.1]:←[0m from
/app/.gems/gems/rack-1.1.2/lib/rack/builder.rb:46:in `initialize'
[36m2011-06-02T09:20:20+00:00 heroku[web.1]:←[0m Process exited
[36m2011-06-02T09:20:20+00:00 heroku[web.1]:←[0m State changed from
starting to crashed
[36m2011-06-02T09:39:15+00:00 heroku[web.1]:←[0m State changed from
crashed to created
[36m2011-06-02T09:39:15+00:00 heroku[web.1]:←[0m State changed from
created to starting
[36m2011-06-02T09:39:20+00:00 heroku[web.1]:←[0m Starting process with
command: `thin -p 40040 -e production -R /home/heroku_rack/heroku.ru
start`
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m
/app/.gems/gems/activerecord-2.3.8/lib/active_record/base.rb:1994:in
`method_missing': undefined method `has_atta
hed_file' for #<Class:0x7fc4f68d2be8> (NoMethodError)
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from /app/app/models/photo.rb:4
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/app/.gems/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:158:in
`require'
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/app/.gems/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:265:in
`require_or_load'
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/app/.gems/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:224:in
`depend_on'
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/app/.gems/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:136:in
`require_dependency'
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/app/.gems/gems/rails-2.3.8/lib/initializer.rb:414:in
`load_application_classes'
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/app/.gems/gems/rails-2.3.8/lib/initializer.rb:413:in `each'
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/app/.gems/gems/rails-2.3.8/lib/initializer.rb:413:in
`load_application_classes'
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/app/.gems/gems/rails-2.3.8/lib/initializer.rb:411:in
`load_application_classes'
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/app/.gems/gems/rails-2.3.8/lib/initializer.rb:411:in `each'
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/app/.gems/gems/rails-2.3.8/lib/initializer.rb:197:in `process'
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/app/.gems/gems/rails-2.3.8/lib/initializer.rb:113:in `send'
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/app/.gems/gems/rails-2.3.8/lib/initializer.rb:113:in `run'
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from /app/config/environment.rb:9
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/rack/adapter/rails.rb:42:in
`load_application'
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/rack/adapter/rails.rb:23:in
`initialize'
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/home/heroku_rack/heroku.ru:29:in `new'
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/home/heroku_rack/heroku.ru:29
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/app/.gems/gems/rack-1.1.2/lib/rack/builder.rb:46:in `initialize'
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/app/.gems/gems/rack-1.1.2/lib/rack/builder.rb:46:in `instance_eval'
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/app/.gems/gems/rack-1.1.2/lib/rack/builder.rb:63:in `new'
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/app/.gems/gems/rack-1.1.2/lib/rack/builder.rb:63:in `map'
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/home/heroku_rack/heroku.ru:18
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/app/.gems/gems/rack-1.1.2/lib/rack/builder.rb:46:in `instance_eval'
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/app/.gems/gems/rack-1.1.2/lib/rack/builder.rb:46:in `initialize'
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/home/heroku_rack/heroku.ru:11:in `new'
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/home/heroku_rack/heroku.ru:11
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/app/.gems/gems/rack-1.1.2/lib/rack/builder.rb:46:in `instance_eval'
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/app/.gems/gems/rack-1.1.2/lib/rack/builder.rb:46:in `initialize'
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/home/heroku_rack/heroku.ru:1:in `new'
[36m2011-06-02T09:39:22+00:00 app[web.1]:←[0m from
/home/heroku_rack/heroku.ru:1
[36m2011-06-02T09:39:22+00:00 heroku[web.1]:←[0m Process exited
[36m2011-06-02T09:39:22+00:00 heroku[web.1]:←[0m State changed from
starting to crashed
[33m2011-06-02T09:57:15+00:00 heroku[router]:←[0m Error H10 (App
crashed) -> GET radiationn.heroku.com/ dyno=none queue=0 wait=0ms
service=0ms bytes=0
[33m2011-06-02T09:57:17+00:00 heroku[router]:←[0m Error H10 (App
crashed) -> GET radiationn.heroku.com/favicon.ico dyno=none queue=0
wait=0ms service=0ms bytes
0
[33m2011-06-02T09:57:25+00:00 heroku[router]:←[0m Error H10 (App
crashed) -> GET radiationn.heroku.com/ dyno=none queue=0 wait=0ms
service=0ms bytes=0
[32m2011-06-02T02:57:26-07:00 heroku[nginx]:←[0m GET / HTTP/1.1 |
223.176.230.245 | 795 | http | 503
[33m2011-06-02T09:57:27+00:00 heroku[router]:←[0m Error H10 (App
crashed) -> GET radiationn.heroku.com/favicon.ico dyno=none queue=0
wait=0ms service=0ms bytes
0
[36m2011-06-02T10:15:20+00:00 heroku[web.1]:←[0m State changed from
crashed to created
[36m2011-06-02T10:15:20+00:00 heroku[web.1]:←[0m State changed from
created to starting
[36m2011-06-02T10:15:36+00:00 heroku[web.1]:←[0m Starting process with
command: `thin -p 38245 -e production -R /home/heroku_rack/heroku.ru
start`
[36m2011-06-02T10:15:38+00:00 app[web.1]:←[0m
/app/.gems/gems/activerecord-2.3.8/lib/active_record/base.rb:1994:in
`method_missing': undefined method `has_atta
hed_file' for #<Class:0x7f519ec59be8> (NoMethodError)
[36m2011-06-02T10:15:38+00:00 app[web.1]:←[0m from /app/app/models/photo.rb:4
[36m2011-06-02T10:15:38+00:00 app[web.1]:←[0m from
/usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
[36m2011-06-02T10:15:38+00:00 app[web.1]:←[0m from
/usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
[36m2011-06-02T10:15:38+00:00 app[web.1]:←[0m from
/app/.gems/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:158:in
`require'
[36m2011-06-02T10:15:38+00:00 app[web.1]:←[0m from
/app/.gems/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:265:in
`require_or_load'
[36m2011-06-02T10:15:38+00:00 app[web.1]:←[0m from
/app/.gems/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:224:in
`depend_on'
[36m2011-06-02T10:15:38+00:00 app[web.1]:←[0m from
/app/.gems/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:136:in
`require_dependency'
[36m2011-06-02T10:15:38+00:00 app[web.1]:←[0m from
/app/.gems/gems/rails-2.3.8/lib/initializer.rb:414:in
`load_application_classes'
[36m2011-06-02T10:15:38+00:00 app[web.1]:←[0m from
/app/.gems/gems/rails-2.3.8/lib/initializer.rb:413:in `each'
[36m2011-06-02T10:15:38+00:00 app[web.1]:←[0m from
/app/.gems/gems/rails-2.3.8/lib/initializer.rb:413:in
`load_application_classes'
[36m2011-06-02T10:15:38+00:00 app[web.1]:←[0m from
/app/.gems/gems/rails-2.3.8/lib/initializer.rb:411:in `each'
[36m2011-06-02T10:15:38+00:00 app[web.1]:←[0m from
/app/.gems/gems/rails-2.3.8/lib/initializer.rb:411:in
`load_application_classes'
[36m2011-06-02T10:15:38+00:00 app[web.1]:←[0m from
/app/.gems/gems/rails-2.3.8/lib/initializer.rb:197:in `process'
[36m2011-06-02T10:15:38+00:00 app[web.1]:←[0m from
/app/.gems/gems/rails-2.3.8/lib/initializer.rb:113:in `send'
[36m2011-06-02T10:15:38+00:00 app[web.1]:←[0m from
/app/.gems/gems/rails-2.3.8/lib/initializer.rb:113:in `run'
[36m2011-06-02T10:15:38+00:00 app[web.1]:←[0m from /app/config/environment.rb:9
[36m2011-06-02T10:15:38+00:00 app[web.1]:←[0m from
/usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
[36m2011-06-02T10:15:38+00:00 app[web.1]:←[0m from
/usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
[36m2011-06-02T10:15:38+00:00 app[web.1]:←[0m from
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/rack/adapter/rails.rb:42:in
`load_application'
[36m2011-06-02T10:15:38+00:00 app[web.1]:←[0m from
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/rack/adapter/rails.rb:23:in
`initialize'
[36m2011-06-02T10:15:38+00:00 app[web.1]:←[0m from
/home/heroku_rack/heroku.ru:29:in `new'
[36m2011-06-02T10:15:38+00:00 app[web.1]:←[0m from
/home/heroku_rack/heroku.ru:29
[36m2011-06-02T10:15:38+00:00 app[web.1]:←[0m from
/app/.gems/gems/rack-1.1.2/lib/rack/builder.rb:46:in `instance_eval'
[36m2011-06-02T10:15:38+00:00 app[web.1]:←[0m from
/app/.gems/gems/rack-1.1.2/lib/rack/builder.rb:46:in `initialize'
[36m2011-06-02T10:15:38+00:00 app[web.1]:←[0m from
/app/.gems/gems/rack-1.1.2/lib/rack/builder.rb:63:in `new'
[36m2011-06-02T10:15:38+00:00 app[web.1]:←[0m from
/home/heroku_rack/heroku.ru:1
[36m2011-06-02T10:15:38+00:00 heroku[web.1]:←[0m Process exited
[36m2011-06-02T10:15:39+00:00 heroku[web.1]:←[0m State changed from
starting to crashed
thanks
Pravin