jeudi 17 mars 2016

Rails : Application Error An error occurred in the application

I build my app on local with postgres database,then it can normally run,but get this error message after publish in to Heroku....

Application Error
An error occurred in the application and your page could not be served. Please try again in a few moments.

If you are the application owner, check your logs for details.

Here is outputs from "heroku logs", please help, this is my first time on heroku...

2016-03-17T19:41:32.331650+00:00 app[web.1]:    from /app/config.ru:3:in `block in <main>'
2016-03-17T19:41:32.331657+00:00 app[web.1]:    from /app/config.ru:in `new'
2016-03-17T19:41:32.331658+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/builder.rb:40:in `parse_file'
2016-03-17T19:41:32.331643+00:00 app[web.1]:    from /app/config/environment.rb:5:in `<top (required)>'
2016-03-17T19:41:32.331650+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/builder.rb:55:in `instance_eval'
2016-03-17T19:41:32.331660+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/server.rb:314:in `wrapped_app'
2016-03-17T19:41:32.331657+00:00 app[web.1]:    from /app/config.ru:in `<main>'
2016-03-17T19:41:32.331662+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:76:in `server'
2016-03-17T19:41:32.362958+00:00 app[web.1]: => Run `rails server -h` for more startup options
2016-03-17T19:41:32.362959+00:00 app[web.1]: => Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
2016-03-17T19:41:32.331658+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/builder.rb:49:in `new_from_string'
2016-03-17T19:41:32.331660+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/server.rb:250:in `start'
2016-03-17T19:41:32.331659+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.8/lib/rails/commands/server.rb:50:in `app'
2016-03-17T19:41:32.362960+00:00 app[web.1]: => Ctrl-C to shutdown server
2016-03-17T19:41:32.331659+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/server.rb:277:in `build_app_and_options_from_config'
2016-03-17T19:41:32.331663+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.8/lib/rails/commands.rb:17:in `<top (required)>'
2016-03-17T19:41:32.331665+00:00 app[web.1]:    from bin/rails:4:in `<main>'
2016-03-17T19:41:32.331651+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/builder.rb:55:in `initialize'
2016-03-17T19:41:32.331660+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.8/lib/rails/commands/server.rb:69:in `start'
2016-03-17T19:41:32.331662+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:76:in `tap'
2016-03-17T19:41:32.331664+00:00 app[web.1]:    from bin/rails:4:in `require'
2016-03-17T19:41:32.362942+00:00 app[web.1]: => Booting WEBrick
2016-03-17T19:41:32.331658+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/builder.rb:49:in `eval'
2016-03-17T19:41:32.331662+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:81:in `block in server'
2016-03-17T19:41:32.331663+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
2016-03-17T19:41:32.362957+00:00 app[web.1]: => Rails 4.1.8 application starting in production on http://0.0.0.0:29941
2016-03-17T19:41:32.362985+00:00 app[web.1]: Exiting
2016-03-17T19:41:33.216453+00:00 heroku[web.1]: State changed from starting to crashed
2016-03-17T19:41:33.217046+00:00 heroku[web.1]: State changed from crashed to starting
2016-03-17T19:41:33.205653+00:00 heroku[web.1]: Process exited with status 1
2016-03-17T19:41:36.884650+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 21998 -e production`
2016-03-17T19:41:42.845374+00:00 app[web.1]: /app/app/models/CarrierwaveImage.rb:2:in `<class:CarrierwaveImage>': uninitialized constant CarrierwaveImage::AssetUploader (NameError)
2016-03-17T19:41:42.845396+00:00 app[web.1]:    from /app/app/models/CarrierwaveImage.rb:1:in `<top (required)>'
2016-03-17T19:41:42.845402+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.8/lib/rails/engine.rb:468:in `block (2 levels) in eager_load!'
2016-03-17T19:41:42.845408+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.8/lib/rails/engine.rb:467:in `each'
2016-03-17T19:41:42.845415+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.8/lib/rails/engine.rb:467:in `block in eager_load!'
2016-03-17T19:41:42.845416+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.8/lib/rails/engine.rb:465:in `each'
2016-03-17T19:41:42.845416+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.8/lib/rails/engine.rb:465:in `eager_load!'
2016-03-17T19:41:42.845417+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.8/lib/rails/engine.rb:346:in `eager_load!'
2016-03-17T19:41:42.845417+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.8/lib/rails/application/finisher.rb:58:in `each'
2016-03-17T19:41:42.845418+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.8/lib/rails/initializable.rb:30:in `instance_exec'
2016-03-17T19:41:42.845418+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.8/lib/rails/application/finisher.rb:58:in `block in <module:Finisher>'
2016-03-17T19:41:42.845419+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.8/lib/rails/initializable.rb:30:in `run'
2016-03-17T19:41:42.845419+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.8/lib/rails/initializable.rb:55:in `block in run_initializers'
2016-03-17T19:41:42.845420+00:00 app[web.1]:    from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
2016-03-17T19:41:42.845420+00:00 app[web.1]:    from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'
2016-03-17T19:41:42.845421+00:00 app[web.1]:    from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'
2016-03-17T19:41:42.845421+00:00 app[web.1]:    from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
2016-03-17T19:41:42.845422+00:00 app[web.1]:    from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `each'
2016-03-17T19:41:42.845422+00:00 app[web.1]:    from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `call'
2016-03-17T19:41:42.845423+00:00 app[web.1]:    from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'
2016-03-17T19:41:42.845423+00:00 app[web.1]:    from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'
2016-03-17T19:41:42.845424+00:00 app[web.1]:    from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'
2016-03-17T19:41:42.845427+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.8/lib/rails/initializable.rb:54:in `run_initializers'
2016-03-17T19:41:42.845428+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.8/lib/rails/application.rb:300:in `initialize!'
2016-03-17T19:41:42.845444+00:00 app[web.1]:    from /app/config.ru:3:in `block in <main>'
2016-03-17T19:41:42.845435+00:00 app[web.1]:    from /app/config/environment.rb:5:in `<top (required)>'
2016-03-17T19:41:42.845444+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/builder.rb:55:in `instance_eval'
2016-03-17T19:41:42.845445+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/builder.rb:55:in `initialize'
2016-03-17T19:41:42.845454+00:00 app[web.1]:    from /app/config.ru:in `new'
2016-03-17T19:41:42.845455+00:00 app[web.1]:    from /app/config.ru:in `<main>'
2016-03-17T19:41:42.845456+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/builder.rb:49:in `eval'
2016-03-17T19:41:42.845456+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/builder.rb:49:in `new_from_string'
2016-03-17T19:41:42.845456+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/builder.rb:40:in `parse_file'
2016-03-17T19:41:42.845457+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/server.rb:277:in `build_app_and_options_from_config'
2016-03-17T19:41:42.845458+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/server.rb:199:in `app'
2016-03-17T19:41:42.845458+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.8/lib/rails/commands/server.rb:50:in `app'
2016-03-17T19:41:42.845459+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/server.rb:314:in `wrapped_app'
2016-03-17T19:41:42.845459+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/server.rb:250:in `start'
2016-03-17T19:41:42.845460+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.8/lib/rails/commands/server.rb:69:in `start'
2016-03-17T19:41:42.845460+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:81:in `block in server'
2016-03-17T19:41:42.845461+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:76:in `server'
2016-03-17T19:41:42.845461+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:76:in `tap'
2016-03-17T19:41:42.845462+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
2016-03-17T19:41:42.845463+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.8/lib/rails/commands.rb:17:in `<top (required)>'
2016-03-17T19:41:42.845463+00:00 app[web.1]:    from bin/rails:4:in `require'
2016-03-17T19:41:42.845464+00:00 app[web.1]:    from bin/rails:4:in `<main>'
2016-03-17T19:41:42.882058+00:00 app[web.1]: => Booting WEBrick
2016-03-17T19:41:42.882072+00:00 app[web.1]: => Rails 4.1.8 application starting in production on http://0.0.0.0:21998
2016-03-17T19:41:42.882073+00:00 app[web.1]: => Run `rails server -h` for more startup options
2016-03-17T19:41:42.882074+00:00 app[web.1]: => Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
2016-03-17T19:41:42.882075+00:00 app[web.1]: => Ctrl-C to shutdown server
2016-03-17T19:41:42.882076+00:00 app[web.1]: Exiting
2016-03-17T19:41:43.950847+00:00 heroku[web.1]: State changed from starting to crashed
2016-03-17T19:41:43.921917+00:00 heroku[web.1]: Process exited with status 1
2016-03-17T19:42:43.486656+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=seastalk.herokuapp.com request_id=525b321b-e0b2-4b3b-845b-e816884cfaf9 fwd="58.11.231.116,58.11.231.116" dyno= connect= service= status=503 bytes=
2016-03-17T19:42:44.932789+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=seastalk.herokuapp.com request_id=7feaed6b-95d7-4bac-859f-57981a5d6b21 fwd="58.11.231.116" dyno= connect= service= status=503 bytes=
2016-03-17T19:43:01.807436+00:00 heroku[api]: Starting process with command `bundle exec rake db:create` by tanapon.aree@gmail.com
2016-03-17T19:43:06.234302+00:00 heroku[run.7837]: Starting process with command `bundle exec rake db:create`
2016-03-17T19:43:06.199601+00:00 heroku[run.7837]: Awaiting client
2016-03-17T19:43:06.528081+00:00 heroku[run.7837]: State changed from starting to up
2016-03-17T19:43:10.186725+00:00 heroku[run.7837]: State changed from up to complete
2016-03-17T19:43:10.171105+00:00 heroku[run.7837]: Process exited with status 0
2016-03-17T19:44:07.685116+00:00 heroku[api]: Starting process with command `bundle exec rake db:migrate` by tanapon.aree@gmail.com
2016-03-17T19:44:12.203361+00:00 heroku[run.1435]: Starting process with command `bundle exec rake db:migrate`
2016-03-17T19:44:12.171575+00:00 heroku[run.1435]: Awaiting client
2016-03-17T19:44:12.589482+00:00 heroku[run.1435]: State changed from starting to up
2016-03-17T19:44:15.993241+00:00 heroku[run.1435]: Process exited with status 0
2016-03-17T19:44:16.005134+00:00 heroku[run.1435]: State changed from up to complete
2016-03-17T19:45:24.867558+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=seastalk.herokuapp.com request_id=537623dd-038d-46ee-865a-05e0aabd4974 fwd="58.11.231.116,58.11.231.116" dyno= connect= service= status=503 bytes=
2016-03-17T19:45:26.326734+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=seastalk.herokuapp.com request_id=aaaf0876-a326-44f3-9c8f-698e7b7d8768 fwd="58.11.231.116" dyno= connect= service= status=503 bytes=

Aucun commentaire:

Enregistrer un commentaire