Application Error!!!!!!!!!!!!!!!!!!!!!!!

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

What is on line 9 of your environment.rb file? Also, what does your
Gemfile look like?

B.

thaks for write back,

What is on line 9 of your environment.rb file???
Rails::Initializer.run do |config|

what does your Gemfile look like?
i have no gemsfile.
U mean boot.rb???

I am new on ror,

which sounds like you're using a gem/plugin that wants to access
a file system -- which is *not* provided by Heroku. If your app needs
to save files (photos, whatever) you need to use an alternative, e.g.
Amazon S3.

HTH,

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.

what’s in your gems manifest file?

thanks for giving time,

what's in your gems manifest file?
Again i have no gems manifest file.

I am using vendor/lplugins
where => action_mailer_tls, easy-fckeditor, paperclip
,paperclippolymorph,will_paginate PLUGIND USING.

thanks for write,

I m not aware about Amazon S3. I m googling. Can You give some link,
which helpful .

If you're going to try to use Heroku, you might find it less painful if you
read the Heroku documentation :slight_smile:

e.g. http://devcenter.heroku.com/articles/read-only-filesystem

HTH,

thanks for giving time,

what’s in your gems manifest file?

Again i have no gems manifest file.

I am using vendor/lplugins

where => action_mailer_tls, easy-fckeditor, paperclip

,paperclippolymorph,will_paginate PLUGIND USING.

are you using submodules? the error says that it can’t find the method has_attached_file

which could only mean that rails can’t find the plugin.

This is has been pointed out above but to be sure -

You are probably using paperclip to upload files and Heroku doesn't
allow that. You need to store that on S3 or some place other than
Heroku. Local file upload works which is why you are not seeing an
issue there.

This is has been pointed out above but to be sure -

You are probably using paperclip to upload files and Heroku doesn’t

allow that. You need to store that on S3 or some place other than

Heroku. Local file upload works which is why you are not seeing an

issue there.

I think there’s another issue. If you go to the site, you’ll immediately get

the error. I think the error saying the Heroku’s file system is readonly will

only raise after you try uploading something.