No idea what Im doing wrong. App works fine locally, but I keep getting an application error page and a H10 error. Ill post the rails console output because I read that would be more useful then just the heroku logs, but I can put that here to if needed. I really hope this is not going to be ignored as I am at a total lose right now.
Rails console:
Running `rails console` attached to terminal... up, run.8093
/app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.1/lib/active_record/dynamic_
matchers.rb:26:in `method_missing': undefined local variable or method `request'
for Session (call 'Session.connection' to establish a connection):Class (NameEr
ror)
from /app/app/models/session.rb:3:in `<class:Session>'
from /app/app/models/session.rb:1:in `<top (required)>'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.1/lib/active_s
upport/dependencies.rb:274:in `require'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.1/lib/active_s
upport/dependencies.rb:274:in `block in require'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.1/lib/active_s
upport/dependencies.rb:240:in `load_dependency'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.1/lib/active_s
upport/dependencies.rb:274:in `require'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.1/lib/active_s
upport/dependencies.rb:360:in `require_or_load'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.1/lib/active_s
upport/dependencies.rb:317:in `depend_on'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.1/lib/active_s
upport/dependencies.rb:233:in `require_dependency'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/engine.
rb:472:in `block (2 levels) in eager_load!'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/engine.
rb:471:in `each'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/engine.
rb:471:in `block in eager_load!'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/engine.
rb:469:in `each'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/engine.
rb:469:in `eager_load!'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/engine.
rb:346:in `eager_load!'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/applica
tion/finisher.rb:56:in `each'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/applica
tion/finisher.rb:56:in `block in <module:Finisher>'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/initial
izable.rb:30:in `instance_exec'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/initial
izable.rb:30:in `run'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/initial
izable.rb:55:in `block in run_initializers'
from /app/vendor/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:226:in `block in tso
rt_each'
from /app/vendor/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:348:in `block (2 lev
els) in each_strongly_connected_component'
from /app/vendor/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:427:in `each_strongl
y_connected_component_from'
from /app/vendor/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:347:in `block in eac
h_strongly_connected_component'
from /app/vendor/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:345:in `each'
from /app/vendor/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:345:in `call'
from /app/vendor/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:345:in `each_strongl
y_connected_component'
from /app/vendor/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'
from /app/vendor/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/initial
izable.rb:54:in `run_initializers'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/applica
tion.rb:352:in `initialize!'
from /app/config/environment.rb:5:in `<top (required)>'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.1/lib/active_s
upport/dependencies.rb:274:in `require'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.1/lib/active_s
upport/dependencies.rb:274:in `block in require'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.1/lib/active_s
upport/dependencies.rb:240:in `load_dependency'
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.1/lib/active_s
upport/dependencies.rb:274:in `require'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/applica
tion.rb:328:in `require_environment!'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/command
s/commands_tasks.rb:142:in `require_application_and_environment!'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/command
s/commands_tasks.rb:67:in `console'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/command
s/commands_tasks.rb:39:in `run_command!'
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.2.1/lib/rails/command
s.rb:17:in `<top (required)>'
from /app/bin/rails:4:in `require'
from /app/bin/rails:4:in `<main>'
heroku logs:
2015-07-05T20:21:38.932369+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in `load_depe
ndency'
2015-07-05T20:21:38.932388+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require'
2015-07-05T20:21:38.932407+00:00 app[web.1]: from /app/config.ru:3:in `block
in <main>'
2015-07-05T20:21:38.932426+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
2015-07-05T20:21:38.932465+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
2015-07-05T20:21:38.932485+00:00 app[web.1]: from /app/config.ru:in `new'
2015-07-05T20:21:38.932542+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'
2015-07-05T20:21:38.932504+00:00 app[web.1]: from /app/config.ru:in `<main>'
2015-07-05T20:21:38.932523+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'
2015-07-05T20:21:38.932610+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/server.rb:299:in `build_app_and_options_from_config'
2015-07-05T20:21:38.932579+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'
2015-07-05T20:21:38.932629+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/server.rb:208:in `app'
2015-07-05T20:21:38.932648+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/commands/server.rb:61:in `app'
2015-07-05T20:21:38.932735+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/server.rb:272:in `start'
2015-07-05T20:21:38.932675+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/server.rb:336:in `wrapped_app'
2015-07-05T20:21:38.932755+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/commands/server.rb:80:in `start'
2015-07-05T20:21:38.932839+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:75:in `tap'
2015-07-05T20:21:38.932774+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:80:in `block in serv
er'
2015-07-05T20:21:38.932859+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:75:in `server'
2015-07-05T20:21:38.932878+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
2015-07-05T20:21:38.932897+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/commands.rb:17:in `<top (required)>'
2015-07-05T20:21:38.932931+00:00 app[web.1]: from bin/rails:4:in `require'
2015-07-05T20:21:38.932951+00:00 app[web.1]: from bin/rails:4:in `<main>'
2015-07-05T20:21:39.917826+00:00 heroku[web.1]: State changed from starting to c
rashed
2015-07-05T20:21:39.919080+00:00 heroku[web.1]: State changed from crashed to st
arting
2015-07-05T20:21:39.901026+00:00 heroku[web.1]: Process exited with status 1
2015-07-05T20:21:44.803632+00:00 heroku[web.1]: Starting process with command `b
in/rails server -p 4674 -e production`
2015-07-05T20:21:50.648458+00:00 app[web.1]: => Booting WEBrick
2015-07-05T20:21:50.648478+00:00 app[web.1]: => Rails 4.2.1 application starting
in production on http://0.0.0.0:4674
2015-07-05T20:21:50.648480+00:00 app[web.1]: => Run `rails server -h` for more s
tartup options
2015-07-05T20:21:50.648481+00:00 app[web.1]: => Ctrl-C to shutdown server
2015-07-05T20:21:50.648482+00:00 app[web.1]: Exiting
2015-07-05T20:21:50.648756+00:00 app[web.1]: /app/vendor/bundle/ruby/2.1.0/gems/
activerecord-4.2.1/lib/active_record/dynamic_matchers.rb:26:in `method_missing':
undefined local variable or method `request' for Session (call 'Session.connect
ion' to establish a connection):Class (NameError)
2015-07-05T20:21:50.648758+00:00 app[web.1]: from /app/app/models/session.rb:
3:in `<class:Session>'
2015-07-05T20:21:50.648762+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require'
2015-07-05T20:21:50.648763+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `block in
require'
2015-07-05T20:21:50.648760+00:00 app[web.1]: from /app/app/models/session.rb:
1:in `<top (required)>'
2015-07-05T20:21:50.648766+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require'
2015-07-05T20:21:50.648764+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in `load_depe
ndency'
2015-07-05T20:21:50.648771+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/engine.rb:472:in `block (2 levels) in eager_loa
d!'
2015-07-05T20:21:50.648767+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:360:in `require_o
r_load'
2015-07-05T20:21:50.648768+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:317:in `depend_on
'
2015-07-05T20:21:50.648770+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:233:in `require_d
ependency'
2015-07-05T20:21:50.648773+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/engine.rb:471:in `each'
2015-07-05T20:21:50.648775+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/engine.rb:471:in `block in eager_load!'
2015-07-05T20:21:50.648776+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/engine.rb:469:in `each'
2015-07-05T20:21:50.648779+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/engine.rb:346:in `eager_load!'
2015-07-05T20:21:50.648782+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/application/finisher.rb:56:in `block in <module
:Finisher>'
2015-07-05T20:21:50.648778+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/engine.rb:469:in `eager_load!'
2015-07-05T20:21:50.648784+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `run'
2015-07-05T20:21:50.648781+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/application/finisher.rb:56:in `each'
2015-07-05T20:21:50.648783+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `instance_exec'
2015-07-05T20:21:50.648788+00:00 app[web.1]: from /app/vendor/ruby-2.1.5/lib/
ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_componen
t'
2015-07-05T20:21:50.648786+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/initializable.rb:55:in `block in run_initialize
rs'
2015-07-05T20:21:50.648787+00:00 app[web.1]: from /app/vendor/ruby-2.1.5/lib/
ruby/2.1.0/tsort.rb:226:in `block in tsort_each'
2015-07-05T20:21:50.648789+00:00 app[web.1]: from /app/vendor/ruby-2.1.5/lib/
ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'
2015-07-05T20:21:50.648793+00:00 app[web.1]: from /app/vendor/ruby-2.1.5/lib/
ruby/2.1.0/tsort.rb:345:in `call'
2015-07-05T20:21:50.648799+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/initializable.rb:54:in `run_initializers'
2015-07-05T20:21:50.648790+00:00 app[web.1]: from /app/vendor/ruby-2.1.5/lib/
ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component'
2015-07-05T20:21:50.648795+00:00 app[web.1]: from /app/vendor/ruby-2.1.5/lib/
ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component'
2015-07-05T20:21:50.648792+00:00 app[web.1]: from /app/vendor/ruby-2.1.5/lib/
ruby/2.1.0/tsort.rb:345:in `each'
2015-07-05T20:21:50.648796+00:00 app[web.1]: from /app/vendor/ruby-2.1.5/lib/
ruby/2.1.0/tsort.rb:224:in `tsort_each'
2015-07-05T20:21:50.648798+00:00 app[web.1]: from /app/vendor/ruby-2.1.5/lib/
ruby/2.1.0/tsort.rb:205:in `tsort_each'
2015-07-05T20:21:50.648803+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require'
2015-07-05T20:21:50.648805+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in `load_depe
ndency'
2015-07-05T20:21:50.648804+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `block in
require'
2015-07-05T20:21:50.648806+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require'
2015-07-05T20:21:50.648815+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
2015-07-05T20:21:50.648800+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/application.rb:352:in `initialize!'
2015-07-05T20:21:50.648813+00:00 app[web.1]: from /app/config.ru:3:in `block
in <main>'
2015-07-05T20:21:50.648801+00:00 app[web.1]: from /app/config/environment.rb:
5:in `<top (required)>'
2015-07-05T20:21:50.648817+00:00 app[web.1]: from /app/config.ru:in `new'
2015-07-05T20:21:50.648820+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'
2015-07-05T20:21:50.648825+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/server.rb:208:in `app'
2015-07-05T20:21:50.648821+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'
2015-07-05T20:21:50.648826+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/commands/server.rb:61:in `app'
2015-07-05T20:21:50.648829+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/server.rb:272:in `start'
2015-07-05T20:21:50.648832+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:75:in `tap'
2015-07-05T20:21:50.648816+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
2015-07-05T20:21:50.648839+00:00 app[web.1]: from bin/rails:4:in `<main>'
2015-07-05T20:21:50.648819+00:00 app[web.1]: from /app/config.ru:in `<main>'
2015-07-05T20:21:50.648823+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'
2015-07-05T20:21:50.648824+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/server.rb:299:in `build_app_and_options_from_config'
2015-07-05T20:21:50.648828+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/rack-1.6.4/lib/rack/server.rb:336:in `wrapped_app'
2015-07-05T20:21:50.648830+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/commands/server.rb:80:in `start'
2015-07-05T20:21:50.648835+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
2015-07-05T20:21:50.648831+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:80:in `block in serv
er'
2015-07-05T20:21:50.648838+00:00 app[web.1]: from bin/rails:4:in `require'
2015-07-05T20:21:50.648834+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:75:in `server'
2015-07-05T20:21:50.648837+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1
.0/gems/railties-4.2.1/lib/rails/commands.rb:17:in `<top (required)>'
2015-07-05T20:21:51.832370+00:00 heroku[web.1]: Process exited with status 1
2015-07-05T20:21:51.845270+00:00 heroku[web.1]: State changed from starting to c
rashed
2015-07-05T20:23:44.683352+00:00 heroku[api]: Starting process with command `bun
dle exec rake db:migrate` by dvid1994#gmail.com
2015-07-05T20:23:49.876519+00:00 heroku[run.7443]: Awaiting client
2015-07-05T20:23:49.931116+00:00 heroku[run.7443]: Starting process with command
`bundle exec rake db:migrate`
2015-07-05T20:23:55.352150+00:00 heroku[run.7443]: Process exited with status 0
2015-07-05T20:23:55.365935+00:00 heroku[run.7443]: State changed from up to comp
lete
2015-07-05T20:23:50.311272+00:00 heroku[run.7443]: State changed from starting t
o up
2015-07-05T20:25:16.824478+00:00 heroku[api]: Scale to web=1 by dvid1994#gmail.c
om
2015-07-05T20:27:09.578310+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=glacial-falls-7476.herokuapp.com request_id=6a99e
c01-98d6-45cf-bc2c-8ec05a0f7ab9 fwd="50.163.200.7" dyno= connect= service= statu
s=503 bytes=
2015-07-05T22:28:51.659970+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=glacial-falls-7476.herokuapp.com request_id=13681
1f6-73cf-4708-96a9-d48e26d61dd1 fwd="50.163.200.7" dyno= connect= service= statu
s=503 bytes=
production rake:
I, [2015-07-05T16:16:54.146798 #21460] INFO -- : Writing C:/row/dev/project/public/assets/tapedek3-4343c22664d06b029040ca2311b3fc956f7fb61b1dc8aa0beb8b1e
bbe23c9e31.png
I, [2015-07-05T16:16:59.754119 #21460] INFO -- : Writing C:/row/dev/project/public/assets/application-ddbb9538bbe5eff3b50ef226fc0aa9af7da7fa937082f4ef22b
7e8c339a0bcde.js
I, [2015-07-05T16:17:07.206545 #21460] INFO -- : Writing C:/row/dev/project/public/assets/application-f0703cab74ba3b243988bfab9161553021c1568ea0daae042a2
b215f37284023.css
I, [2015-07-05T16:17:07.219546 #21460] INFO -- : Writing C:/row/dev/project/public/assets/bootstrap/glyphicons-halflings-regular-13634da87d9e23f8c3ed9108
ce1724d183a39ad072e73e1b3d8cbf646d2d0407.eot
I, [2015-07-05T16:17:07.232546 #21460] INFO -- : Writing C:/row/dev/project/public/assets/bootstrap/glyphicons-halflings-regular-42f60659d265c1a3c30f9fa4
2abcbb56bd4a53af4d83d316d6dd7a36903c43e5.svg
I, [2015-07-05T16:17:07.240547 #21460] INFO -- : Writing C:/row/dev/project/public/assets/bootstrap/glyphicons-halflings-regular-e395044093757d82afcb1389
57d06a1ea9361bdcf0b442d06a18a8051af57456.ttf
I, [2015-07-05T16:17:07.245547 #21460] INFO -- : Writing C:/row/dev/project/public/assets/bootstrap/glyphicons-halflings-regular-a26394f7ede100ca118eff2e
da08596275a9839b959c226e15439557a5a80742.woff
I, [2015-07-05T16:17:07.250547 #21460] INFO -- : Writing C:/row/dev/project/public/assets/bootstrap/glyphicons-halflings-regular-fe185d11a49676890d47bb78
3312a0cda5a44c4039214094e7957b4c040ef11c.woff2
Rails assets pipeline
This may take a few iterations to step through. The first error that Heroku flags is a failed GET on /favicon.ico
2015-07-05T17:56:19.804219+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/favicon.ico" host=glacial-falls-7476.herokuapp.com reque
st_id=091b3b97-bbab-4d13-b6a1-da24aa2b018b fwd="50.163.200.7" dyno= connect= ser
vice= status=503 bytes=
What this tell us is that there is an asset pipeline problem, because the app should be looking for something like the filename below, not the original filename:
href="/assets/favicon-17897c732521afcc30d49410042fc687.ico"
The favicon filename should be the compiled asset name. There are a number of steps to debug this:
Did you execute a production rake prior to deployment?
$bundle exec rake assets:precompile RAILS_ENV=production
Excellent, next step is to push the app to Heroku to deploy the app blob with assets properly compiled for the Rails asset pipeline.
$heroku push
If your app crashes, please post the updated Heroku log. If it runs, woohoo. That was the only problem.
So the easy solution didn't work. And it didn't even compile the .ico assets. That means there's some problem in the config, so it's not building the app blob correctly.
Aside from that there are a number of serious errors in the new log.
WEBrick should not be the server running on Heroku--that's a red flag. Do you know why WEBrick is launching?
The IP also Looks incorrect.
Rails 4.2.1 application starting in production on http://0.0.0.0:4674
Everything in this block needs to be fixed and I don't think it's going to be easy. Pushing a working app from development to Heroku is typically easy, I don't know what setting you have where that is throwing it into the weeds. I'd look at the Gemfile, production,rb, application.rb for all the differences there are for "development" versus "production"
2015-07-05T20:21:50.648458+00:00 app[web.1]: => Booting WEBrick
2015-07-05T20:21:50.648478+00:00 app[web.1]: => Rails 4.2.1 application starting
in production on http://0.0.0.0:4674
2015-07-05T20:21:50.648480+00:00 app[web.1]: => Run `rails server -h` for more s
tartup options
2015-07-05T20:21:50.648481+00:00 app[web.1]: => Ctrl-C to shutdown server
2015-07-05T20:21:50.648482+00:00 app[web.1]: Exiting
2015-07-05T20:21:50.648756+00:00 app[web.1]: /app/vendor/bundle/ruby/2.1.0/gems/
activerecord-4.2.1/lib/active_record/dynamic_matchers.rb:26:in `method_missing':
undefined local variable or method `request' for Session (call 'Session.connect
ion' to establish a connection):Class (NameError)
2015-07-05T20:21:50.648758+00:00 app[web.1]: from /app/app/models/session.rb:
3:in `<class:Session>'
I wish I had a one-line answer, but I don't. I think there are several deploy issues that will need to be worked, one at a time.
My advice is that you scale down your app, or start with a dummy test app and deploy in stages.
Or maybe someone will come along with the complete answer...
Do you have require 'pry' anywhere in your file? If so remove it and redeploy, leaving this on causes an H10 issue with heroku.
Related
on Ruby on Rails - Heroku deployment, I got a error of heroku[route]: at=error code=H10 desc="App crashed" method After some debugging the log texts, main part of the log file I got:
2022-01-08T11:12:12.754916+00:00 heroku[web.1]: Starting process with command `bin/rails server -p ${PORT:-5000} -e production`
2022-01-08T11:12:16.534794+00:00 app[web.1]: => Booting Puma
2022-01-08T11:12:16.534809+00:00 app[web.1]: => Rails 6.1.4.4 application starting in production
2022-01-08T11:12:16.534810+00:00 app[web.1]: => Run `bin/rails server --help` for more startup options
2022-01-08T11:12:17.742438+00:00 app[web.1]: Exiting
2022-01-08T11:12:17.745593+00:00 app[web.1]: /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:34:in `require': cannot load such file -- net/pop (LoadError)
2022-01-08T11:12:17.745616+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.5.3/lib/zeitwerk/kernel.rb:35:in `require'
2022-01-08T11:12:17.745630+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/mail-2.7.1/lib/mail/network/retriever_methods/pop3.rb:36:in `<class:POP3>'
2022-01-08T11:12:17.745642+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/mail-2.7.1/lib/mail/network/retriever_methods/pop3.rb:35:in `<module:Mail>'
2022-01-08T11:12:17.745655+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/mail-2.7.1/lib/mail/network/retriever_methods/pop3.rb:4:in `<main>'
2022-01-08T11:12:17.745668+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
2022-01-08T11:12:17.745681+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
2022-01-08T11:12:17.745694+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:100:in `register'
2022-01-08T11:12:17.745708+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
2022-01-08T11:12:17.745720+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
2022-01-08T11:12:17.745733+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.5.3/lib/zeitwerk/kernel.rb:35:in `require'
2022-01-08T11:12:17.745745+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/mail-2.7.1/lib/mail.rb:54:in `block in eager_autoload!'
2022-01-08T11:12:17.745761+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/mail-2.7.1/lib/mail.rb:54:in `each'
2022-01-08T11:12:17.745774+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/mail-2.7.1/lib/mail.rb:54:in `eager_autoload!'
2022-01-08T11:12:17.745786+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/actionmailer-6.1.4.4/lib/action_mailer.rb:61:in `eager_load!'
2022-01-08T11:12:17.745799+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.4.4/lib/rails/application/finisher.rb:134:in `each'
2022-01-08T11:12:17.745811+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.4.4/lib/rails/application/finisher.rb:134:in `block in <module:Finisher>'
2022-01-08T11:12:17.745824+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.4.4/lib/rails/initializable.rb:32:in `instance_exec'
2022-01-08T11:12:17.745838+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.4.4/lib/rails/initializable.rb:32:in `run'
2022-01-08T11:12:17.745850+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.4.4/lib/rails/initializable.rb:61:in `block in run_initializers'
2022-01-08T11:12:17.745863+00:00 app[web.1]: from /app/vendor/ruby-3.1.0/lib/ruby/3.1.0/tsort.rb:228:in `block in tsort_each'
2022-01-08T11:12:17.745875+00:00 app[web.1]: from /app/vendor/ruby-3.1.0/lib/ruby/3.1.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
2022-01-08T11:12:17.745888+00:00 app[web.1]: from /app/vendor/ruby-3.1.0/lib/ruby/3.1.0/tsort.rb:431:in `each_strongly_connected_component_from'
2022-01-08T11:12:17.745900+00:00 app[web.1]: from /app/vendor/ruby-3.1.0/lib/ruby/3.1.0/tsort.rb:349:in `block in each_strongly_connected_component'
2022-01-08T11:12:17.745913+00:00 app[web.1]: from /app/vendor/ruby-3.1.0/lib/ruby/3.1.0/tsort.rb:347:in `each'
2022-01-08T11:12:17.745926+00:00 app[web.1]: from /app/vendor/ruby-3.1.0/lib/ruby/3.1.0/tsort.rb:347:in `call'
2022-01-08T11:12:17.745938+00:00 app[web.1]: from /app/vendor/ruby-3.1.0/lib/ruby/3.1.0/tsort.rb:347:in `each_strongly_connected_component'
2022-01-08T11:12:17.745950+00:00 app[web.1]: from /app/vendor/ruby-3.1.0/lib/ruby/3.1.0/tsort.rb:226:in `tsort_each'
2022-01-08T11:12:17.745963+00:00 app[web.1]: from /app/vendor/ruby-3.1.0/lib/ruby/3.1.0/tsort.rb:205:in `tsort_each'
2022-01-08T11:12:17.745975+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.4.4/lib/rails/initializable.rb:60:in `run_initializers'
2022-01-08T11:12:17.745988+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.4.4/lib/rails/application.rb:391:in `initialize!'
2022-01-08T11:12:17.746002+00:00 app[web.1]: from /app/config/environment.rb:5:in `<main>'
2022-01-08T11:12:17.746015+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
2022-01-08T11:12:17.746027+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
2022-01-08T11:12:17.746040+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:100:in `register'
2022-01-08T11:12:17.746053+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
2022-01-08T11:12:17.746066+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
2022-01-08T11:12:17.746079+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.5.3/lib/zeitwerk/kernel.rb:35:in `require'
2022-01-08T11:12:17.746092+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:332:in `block in require'
2022-01-08T11:12:17.746104+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:299:in `load_dependency'
2022-01-08T11:12:17.746117+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb:332:in `require'
2022-01-08T11:12:17.746130+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `require_relative'
2022-01-08T11:12:17.746143+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2022-01-08T11:12:17.746156+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/builder.rb:116:in `eval'
2022-01-08T11:12:17.746169+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/builder.rb:116:in `new_from_string'
2022-01-08T11:12:17.746181+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/builder.rb:105:in `load_file'
2022-01-08T11:12:17.746194+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/builder.rb:66:in `parse_file'
2022-01-08T11:12:17.746206+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/server.rb:349:in `build_app_and_options_from_config'
2022-01-08T11:12:17.746219+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/server.rb:249:in `app'
2022-01-08T11:12:17.746232+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/server.rb:422:in `wrapped_app'
2022-01-08T11:12:17.746245+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/server.rb:312:in `block in start'
2022-01-08T11:12:17.746258+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/server.rb:379:in `handle_profiling'
2022-01-08T11:12:17.746270+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3/lib/rack/server.rb:311:in `start'
2022-01-08T11:12:17.746283+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.4.4/lib/rails/commands/server/server_command.rb:39:in `start'
2022-01-08T11:12:17.746297+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.4.4/lib/rails/commands/server/server_command.rb:144:in `block in perform'
2022-01-08T11:12:17.746309+00:00 app[web.1]: from <internal:kernel>:90:in `tap'
2022-01-08T11:12:17.746322+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.4.4/lib/rails/commands/server/server_command.rb:135:in `perform'
2022-01-08T11:12:17.746335+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
2022-01-08T11:12:17.746348+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
2022-01-08T11:12:17.746361+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
2022-01-08T11:12:17.746373+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.4.4/lib/rails/command/base.rb:69:in `perform'
2022-01-08T11:12:17.746386+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.4.4/lib/rails/command.rb:48:in `invoke'
2022-01-08T11:12:17.746399+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-6.1.4.4/lib/rails/commands.rb:18:in `<main>'
2022-01-08T11:12:17.746412+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
2022-01-08T11:12:17.746424+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
2022-01-08T11:12:17.746437+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:100:in `register'
2022-01-08T11:12:17.746451+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
2022-01-08T11:12:17.746463+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
2022-01-08T11:12:17.746476+00:00 app[web.1]: from bin/rails:5:in `<main>'
2022-01-08T11:12:17.961296+00:00 heroku[web.1]: Process exited with status 1
2022-01-08T11:12:18.044550+00:00 heroku[web.1]: State changed from starting to crashed
Though this was the main topic of the full log text on production environment, but in local development environment, there was no issues found while starting the Rails server! Everything was working fine on development environment.
Besides, the URL was showing the following texts:
Application error An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command heroku logs --tail
And the console is showing this: Failed to load resource: the server responded with a status of 503 (Service Unavailable)
Solution
Ok, after a few deployments of fixing the errors found from the log file, I got that, in our Gemfile, we need to add some gem (around 3 gems) which are needed for some dependencies. Those gems are:
# Gemfile
gem 'net-smtp', require: false
gem 'net-pop', require: false
gem 'net-imap', require: false
after adding those to our gem file, run
bundle install
Then deploy the code on heroku and this will make a proper deployment.
When i try to deploy my test_blog to heroku. It shows "Appliction Error" in chrome.
So, i viewed heroku logs and it shows following result. Dont now what's making up the error!!
C:\Users\Nir\Desktop\my projects\blog>heroku logs
2016-10-27T22:08:15.739278+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/
ruby/2.2.0/tsort.rb:224:in `tsort_each'
2016-10-27T22:08:15.739309+00:00 app[web.1]: from /app/config.ru:in `new'
2016-10-27T22:08:15.739278+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/
ruby/2.2.0/tsort.rb:203:in `tsort_each'
2016-10-27T22:08:15.739286+00:00 app[web.1]: from /app/config.ru:3:in `requir
e_relative'
2016-10-27T22:08:15.739310+00:00 app[web.1]: from /app/config.ru:in `<main>'
2016-10-27T22:08:15.739315+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/rack-2.0.1/lib/rack/builder.rb:40:in `parse_file'
2016-10-27T22:08:15.739317+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/rack-2.0.1/lib/rack/server.rb:318:in `build_app_and_options_from_config'
2016-10-27T22:08:15.739319+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/rack-2.0.1/lib/rack/server.rb:218:in `app'
2016-10-27T22:08:15.739336+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/rack-2.0.1/lib/rack/server.rb:353:in `wrapped_app'
2016-10-27T22:08:15.739335+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/commands/server.rb:59:in `app'
2016-10-27T22:08:15.739339+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/rack-2.0.1/lib/rack/server.rb:282:in `start'
2016-10-27T22:08:15.739339+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/commands/server.rb:79:in `start'
2016-10-27T22:08:15.739340+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:90:in `block in se
rver'
2016-10-27T22:08:15.739343+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:85:in `tap'
2016-10-27T22:08:15.739345+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:85:in `server'
2016-10-27T22:08:15.739346+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:49:in `run_command
!'
2016-10-27T22:08:15.739351+00:00 app[web.1]: from bin/rails:4:in `require'
2016-10-27T22:08:15.739352+00:00 app[web.1]: from bin/rails:4:in `<main>'
2016-10-27T22:08:15.739349+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/commands.rb:18:in `<top (required)>'
2016-10-27T22:08:15.921092+00:00 heroku[web.1]: Process exited with status 1
2016-10-27T22:08:15.928895+00:00 heroku[web.1]: State changed from starting to c
rashed
2016-10-28T03:43:51.947800+00:00 heroku[web.1]: State changed from crashed to st
arting
2016-10-28T03:43:54.754771+00:00 heroku[web.1]: Starting process with command `b
in/rails server -p 33787 -e production`
2016-10-28T03:43:58.198367+00:00 app[web.1]: => Booting Puma
2016-10-28T03:43:58.198384+00:00 app[web.1]: => Rails 5.0.0.1 application starti
ng in production on http://0.0.0.0:33787
2016-10-28T03:43:58.198385+00:00 app[web.1]: => Run `rails server -h` for more s
tartup options
2016-10-28T03:43:59.147728+00:00 app[web.1]: Exiting
2016-10-28T03:43:59.147813+00:00 app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/
activerecord-5.0.0.1/lib/active_record/connection_adapters/connection_specificat
ion.rb:176:in `rescue in spec': Specified 'postgresql' for database adapter, but
the gem is not loaded. Add `gem 'pg'` to your Gemfile (and ensure its version i
s at the minimum required by ActiveRecord). (Gem::LoadError)
2016-10-28T03:43:59.147845+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activerecord-5.0.0.1/lib/active_record/connection_adapters/connection_sp
ecification.rb:173:in `spec'
2016-10-28T03:43:59.147846+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activerecord-5.0.0.1/lib/active_record/connection_handling.rb:53:in `est
ablish_connection'
2016-10-28T03:43:59.147880+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activerecord-5.0.0.1/lib/active_record/railtie.rb:125:in `block (2 level
s) in <class:Railtie>'
2016-10-28T03:43:59.147882+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:38:in `insta
nce_eval'
2016-10-28T03:43:59.147885+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:38:in `execu
te_hook'
2016-10-28T03:43:59.147886+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:45:in `block
in run_load_hooks'
2016-10-28T03:43:59.147886+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:44:in `each'
2016-10-28T03:43:59.147888+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/lazy_load_hooks.rb:44:in `run_l
oad_hooks'
2016-10-28T03:43:59.147890+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activerecord-5.0.0.1/lib/active_record/base.rb:324:in `<module:ActiveRec
ord>'
2016-10-28T03:43:59.147916+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activerecord-5.0.0.1/lib/active_record/base.rb:24:in `<top (required)>'
2016-10-28T03:43:59.147917+00:00 app[web.1]: from /app/app/models/application
_record.rb:1:in `<top (required)>'
2016-10-28T03:43:59.147918+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require
'
2016-10-28T03:43:59.147921+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `block i
n require'
2016-10-28T03:43:59.147922+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:259:in `load_de
pendency'
2016-10-28T03:43:59.147924+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require
'
2016-10-28T03:43:59.147926+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:380:in `block i
n require_or_load'
2016-10-28T03:43:59.147951+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:37:in `block in
load_interlock'
2016-10-28T03:43:59.147952+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies/interlock.rb:12:in
`block in loading'
2016-10-28T03:43:59.147955+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/concurrency/share_lock.rb:117:i
n `exclusive'
2016-10-28T03:43:59.147957+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies/interlock.rb:11:in
`loading'
2016-10-28T03:43:59.147959+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:37:in `load_int
erlock'
2016-10-28T03:43:59.147982+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:358:in `require
_or_load'
2016-10-28T03:43:59.147984+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:336:in `depend_
on'
2016-10-28T03:43:59.147986+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:252:in `require
_dependency'
2016-10-28T03:43:59.147987+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/engine.rb:476:in `block (2 levels) in eager_l
oad!'
2016-10-28T03:43:59.147991+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/engine.rb:475:in `block in eager_load!'
2016-10-28T03:43:59.147989+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/engine.rb:475:in `each'
2016-10-28T03:43:59.147993+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/engine.rb:473:in `each'
2016-10-28T03:43:59.148009+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/engine.rb:473:in `eager_load!'
2016-10-28T03:43:59.148011+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/engine.rb:354:in `eager_load!'
2016-10-28T03:43:59.148013+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/application/finisher.rb:59:in `each'
2016-10-28T03:43:59.148014+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/application/finisher.rb:59:in `block in <modu
le:Finisher>'
2016-10-28T03:43:59.148015+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:30:in `instance_exec'
2016-10-28T03:43:59.148017+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:30:in `run'
2016-10-28T03:43:59.148019+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:55:in `block in run_initiali
zers'
2016-10-28T03:43:59.148035+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-10-28T03:43:59.148036+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_componen
t'
2016-10-28T03:43:59.148037+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-10-28T03:43:59.148039+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-10-28T03:43:59.148040+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/
ruby/2.2.0/tsort.rb:345:in `each'
2016-10-28T03:43:59.148042+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/
ruby/2.2.0/tsort.rb:345:in `call'
2016-10-28T03:43:59.148044+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-10-28T03:43:59.148062+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/
ruby/2.2.0/tsort.rb:224:in `tsort_each'
2016-10-28T03:43:59.148064+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:54:in `run_initializers'
2016-10-28T03:43:59.148066+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/application.rb:352:in `initialize!'
2016-10-28T03:43:59.148063+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/
ruby/2.2.0/tsort.rb:203:in `tsort_each'
2016-10-28T03:43:59.148068+00:00 app[web.1]: from /app/config/environment.rb:
5:in `<top (required)>'
2016-10-28T03:43:59.148070+00:00 app[web.1]: from /app/config.ru:3:in `requir
e_relative'
2016-10-28T03:43:59.148074+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/rack-2.0.1/lib/rack/builder.rb:55:in `instance_eval'
2016-10-28T03:43:59.148091+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/rack-2.0.1/lib/rack/builder.rb:55:in `initialize'
2016-10-28T03:43:59.148072+00:00 app[web.1]: from /app/config.ru:3:in `block
in <main>'
2016-10-28T03:43:59.148093+00:00 app[web.1]: from /app/config.ru:in `<main>'
2016-10-28T03:43:59.148092+00:00 app[web.1]: from /app/config.ru:in `new'
2016-10-28T03:43:59.148095+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/rack-2.0.1/lib/rack/builder.rb:49:in `eval'
2016-10-28T03:43:59.148096+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/rack-2.0.1/lib/rack/builder.rb:49:in `new_from_string'
2016-10-28T03:43:59.148100+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/rack-2.0.1/lib/rack/server.rb:318:in `build_app_and_options_from_config'
2016-10-28T03:43:59.148098+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/rack-2.0.1/lib/rack/builder.rb:40:in `parse_file'
2016-10-28T03:43:59.148102+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/rack-2.0.1/lib/rack/server.rb:218:in `app'
2016-10-28T03:43:59.148119+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/commands/server.rb:59:in `app'
2016-10-28T03:43:59.148121+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/rack-2.0.1/lib/rack/server.rb:353:in `wrapped_app'
2016-10-28T03:43:59.148123+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/rack-2.0.1/lib/rack/server.rb:282:in `start'
2016-10-28T03:43:59.148124+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/commands/server.rb:79:in `start'
2016-10-28T03:43:59.148125+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:90:in `block in se
rver'
2016-10-28T03:43:59.148127+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:85:in `tap'
2016-10-28T03:43:59.148129+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:85:in `server'
2016-10-28T03:43:59.148131+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:49:in `run_command
!'
2016-10-28T03:43:59.148148+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2
.0/gems/railties-5.0.0.1/lib/rails/commands.rb:18:in `<top (required)>'
2016-10-28T03:43:59.148149+00:00 app[web.1]: from bin/rails:4:in `require'
2016-10-28T03:43:59.148150+00:00 app[web.1]: from bin/rails:4:in `<main>'
2016-10-28T03:43:59.246397+00:00 heroku[web.1]: Process exited with status 1
2016-10-28T03:43:59.281910+00:00 heroku[web.1]: State changed from starting to c
rashed
2016-10-28T05:36:16.867365+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/" host=murmuring-falls-27437.herokuapp.com request_id=62
ddb576-529b-4742-9768-47aea9e3c7e2 fwd="120.89.103.211" dyno= connect= service=
status=503 bytes=
2016-10-28T05:36:18.306748+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=GET path="/favicon.ico" host=murmuring-falls-27437.herokuapp.com re
quest_id=1d1711b1-b7a3-4885-9500-dfaac53806bd fwd="120.89.103.211" dyno= connect
= service= status=503 bytes=
This is the error shown in Chrome when i run my url:
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.
I am new to ruby and rails, i am creating an application, i have implemented some code and try to upload it to Heroku. Code has been deployed but when i try to visit the page it shows the Application Error page.
I see the following in my logs:
2014-09-04T14:42:50.478707+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/commands.rb:55:in `block in <top (required)>'
2014-09-04T14:42:50.478419+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2014-09-04T14:42:50.478452+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `block in require'
2014-09-04T14:42:50.478575+00:00 app[web.1]: from /app/config.ru:in `<main>'
2014-09-04T14:42:50.478540+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
2014-09-04T14:42:50.478691+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/commands/server.rb:70:in `start'
2014-09-04T14:42:50.478154+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:359:in `require_or_load'
2014-09-04T14:42:50.478505+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2014-09-04T14:42:50.478625+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
2014-09-04T14:42:50.478402+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/railtie/configurable.rb:30:in `method_missing'
2014-09-04T14:42:50.478469+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:236:in `load_dependency'
2014-09-04T14:42:50.478522+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
2014-09-04T14:42:50.478674+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
2014-09-04T14:42:50.478723+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/commands.rb:50:in `tap'
2014-09-04T14:42:50.473154+00:00 app[web.1]: => Call with -d to detach
2014-09-04T14:42:50.473153+00:00 app[web.1]: => Rails 3.2.19 application starting in production on
2014-09-04T14:42:50.476663+00:00 app[web.1]: Exiting
2014-09-04T14:42:50.478740+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/commands.rb:50:in `<top (required)>'
2014-09-04T14:42:50.478756+00:00 app[web.1]: from script/rails:6:in `require'
2014-09-04T14:42:50.478772+00:00 app[web.1]: from script/rails:6:in `<main>'
2014-09-04T14:42:51.726468+00:00 heroku[web.1]: State changed from starting to crashed
2014-09-04T14:42:51.719828+00:00 heroku[web.1]: Process exited with status 1
2014-09-05T04:56:06.809647+00:00 heroku[web.1]: State changed from crashed to starting
2014-09-05T04:56:14.406322+00:00 heroku[web.1]: Starting process with command `bundle exec rails server thin -p 50156 -e production`
2014-09-05T04:56:15.594411+00:00 app[web.1]: Your Gemfile lists the gem pg (>= 0) more than once.
2014-09-05T04:56:15.594425+00:00 app[web.1]: You should probably keep only one of them.
2014-09-05T04:56:15.594427+00:00 app[web.1]: While it's not a problem now, it could cause errors if you change the version of just one of them later.
2014-09-05T04:56:18.552965+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2014-09-05T04:56:18.553754+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2014-09-05T04:56:19.550825+00:00 app[web.1]: [deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
2014-09-05T04:56:21.017207+00:00 app[web.1]: => Booting Thin
2014-09-05T04:56:21.017215+00:00 app[web.1]: => Ctrl-C to shutdown server
2014-09-05T04:56:21.017212+00:00 app[web.1]: => Rails 3.2.19 application starting in production on "http://:50156"
2014-09-05T04:56:21.017217+00:00 app[web.1]: Exiting
2014-09-05T04:56:21.018178+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `require': /app/app/models/contact.rb:4: syntax error, unexpected keyword_end (SyntaxError)
2014-09-05T04:56:21.018191+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:359:in `require_or_load'
2014-09-05T04:56:21.017214+00:00 app[web.1]: => Call with -d to detach
2014-09-05T04:56:21.018195+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:502:in `load_missing_constant'
2014-09-05T04:56:21.018197+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:192:in `block in const_missing'
2014-09-05T04:56:21.018183+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `block in require'
2014-09-05T04:56:21.018226+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.19/lib/action_controller/metal/params_wrapper.rb:169:in `_set_wrapper_defaults'
2014-09-05T04:56:21.018200+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:190:in `each'
2014-09-05T04:56:21.018205+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/inflector/methods.rb:230:in `block in constantize'
2014-09-05T04:56:21.018209+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/inflector/methods.rb:229:in `each'
2014-09-05T04:56:21.018212+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/inflector/methods.rb:229:in `constantize'
2014-09-05T04:56:21.018239+00:00 app[web.1]: from /app/app/controllers/contacts_controller.rb:1:in `<top (required)>'
2014-09-05T04:56:21.018185+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:236:in `load_dependency'
2014-09-05T04:56:21.018251+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `require'
2014-09-05T04:56:21.018219+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/core_ext/string/inflections.rb:66:in `safe_constantize'
2014-09-05T04:56:21.018234+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.19/lib/abstract_controller/railties/routes_helpers.rb:7:in `block (2 levels) in with'
2014-09-05T04:56:21.018230+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.19/lib/action_controller/metal/params_wrapper.rb:133:in `inherited'
2014-09-05T04:56:21.018223+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.19/lib/action_controller/metal/params_wrapper.rb:152:in `_default_wrap_model'
2014-09-05T04:56:21.018237+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.19/lib/action_controller/railties/paths.rb:7:in `block (2 levels) in with'
2014-09-05T04:56:21.018242+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `require'
2014-09-05T04:56:21.018287+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/initializable.rb:30:in `instance_exec'
2014-09-05T04:56:21.018260+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:225:in `require_dependency'
2014-09-05T04:56:21.018289+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/initializable.rb:30:in `run'
2014-09-05T04:56:21.018216+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/inflector/methods.rb:260:in `safe_constantize'
2014-09-05T04:56:21.018265+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/engine.rb:443:in `each'
2014-09-05T04:56:21.018254+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:359:in `require_or_load'
2014-09-05T04:56:21.018290+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/initializable.rb:55:in `block in run_initializers'
2014-09-05T04:56:21.018306+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `block in require'
2014-09-05T04:56:21.018189+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `require'
2014-09-05T04:56:21.018201+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:190:in `const_missing'
2014-09-05T04:56:21.018263+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/engine.rb:444:in `block (2 levels) in eager_load!'
2014-09-05T04:56:21.018298+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/application.rb:136:in `initialize!'
2014-09-05T04:56:21.018319+00:00 app[web.1]: from /app/config.ru:in `new'
2014-09-05T04:56:21.018344+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/commands.rb:50:in `tap'
2014-09-05T04:56:21.018269+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/engine.rb:443:in `block in eager_load!'
2014-09-05T04:56:21.018286+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>'
2014-09-05T04:56:21.018314+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
2014-09-05T04:56:21.018246+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `block in require'
2014-09-05T04:56:21.018280+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/engine.rb:441:in `each'
2014-09-05T04:56:21.018299+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/railtie/configurable.rb:30:in `method_missing'
2014-09-05T04:56:21.018322+00:00 app[web.1]: from /app/config.ru:in `<main>'
2014-09-05T04:56:21.018247+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:236:in `load_dependency'
2014-09-05T04:56:21.018285+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/engine.rb:441:in `eager_load!'
2014-09-05T04:56:21.018312+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2014-09-05T04:56:21.018304+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `require'
2014-09-05T04:56:21.018327+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
2014-09-05T04:56:21.018301+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2014-09-05T04:56:21.018324+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
2014-09-05T04:56:21.018346+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/commands.rb:50:in `<top (required)>'
2014-09-05T04:56:21.018311+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `require'
2014-09-05T04:56:21.018333+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
2014-09-05T04:56:21.018352+00:00 app[web.1]: from script/rails:6:in `<main>'
2014-09-05T04:56:21.018328+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
2014-09-05T04:56:21.018256+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:313:in `depend_on'
2014-09-05T04:56:21.018296+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/initializable.rb:54:in `run_initializers'
2014-09-05T04:56:21.018317+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
2014-09-05T04:56:21.018341+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/commands.rb:55:in `block in <top (required)>'
2014-09-05T04:56:21.018292+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/initializable.rb:54:in `each'
2014-09-05T04:56:21.018307+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:236:in `load_dependency'
2014-09-05T04:56:21.018331+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/commands/server.rb:46:in `app'
2014-09-05T04:56:21.018337+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/commands/server.rb:70:in `start'
2014-09-05T04:56:21.018336+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
2014-09-05T04:56:21.018349+00:00 app[web.1]: from script/rails:6:in `require'
2014-09-05T04:56:21.807475+00:00 heroku[web.1]: Process exited with status 1
2014-09-05T04:56:21.819265+00:00 heroku[web.1]: State changed from starting to crashed
2014-09-05T12:38:06.227862+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=blooming-mountain-5811.herokuapp.com request_id=a661a3b1-2ce0-4aaa-b5d4-339ba724f759 fwd="94.201.235.75" dyno= connect= service= status=503 bytes=
2014-09-05T12:38:07.175574+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=blooming-mountain-5811.herokuapp.com request_id=c9faaccc-2ea4-4977-affe-7ad78b293e30 fwd="94.201.235.75" dyno= connect= service= status=503 bytes=
A couple of things:
2014-09-05T04:56:15.594411+00:00 app[web.1]: Your Gemfile lists the gem pg (>= 0) more than once.
2014-09-05T04:56:15.594425+00:00 app[web.1]: You should probably keep only one of them.
You need to remove the duplicate mention of the pg gem from your Gemfile. I don't know precisely how to do this for your Gemfile because I can't see it. You're the boss here.
Next, as the comments have mentioned, your Contact model has a syntax error. You need to fix this.
So I've been trying to deploy a rails app to heroku and have been having some issues. I did a good amount of poking around through the logs and on SO but couldn't find anything to point me in the proper direction. Then again I just might be missing something obvious. Anyway any help would be greatly appreciated.
Command
git push -f heroku master
LOGS
2012-08-28T05:56:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
2012-08-28T05:56:30+00:00 app[web.1]: from /app/config.ru:1:in `new'
2012-08-28T05:56:30+00:00 app[web.1]: from /app/config.ru:1:in `<main>'
2012-08-28T05:56:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval'
2012-08-28T05:56:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
2012-08-28T05:56:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
2012-08-28T05:56:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands/server.rb:46:in `app'
2012-08-28T05:56:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
2012-08-28T05:56:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
2012-08-28T05:56:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands/server.rb:70:in `start'
2012-08-28T05:56:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:55:in `block in <top (required)>'
2012-08-28T05:56:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:50:in `tap'
2012-08-28T05:56:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:50:in `<top (required)>'
2012-08-28T05:56:30+00:00 app[web.1]: from script/rails:6:in `require'
2012-08-28T05:56:30+00:00 app[web.1]: from script/rails:6:in `<main>'
2012-08-28T05:56:31+00:00 heroku[web.1]: Process exited with status 1
2012-08-28T05:56:31+00:00 heroku[web.1]: State changed from starting to crashed
2012-08-28T05:56:36+00:00 heroku[slugc]: Slug compilation started
2012-08-28T05:57:19+00:00 heroku[api]: Release v6 created by raphael.shejnberg#gmail.com
2012-08-28T05:57:19+00:00 heroku[api]: Deploy 8bc52ce by raphael.shejnberg#gmail.com
2012-08-28T05:57:19+00:00 heroku[web.1]: State changed from crashed to starting
2012-08-28T05:57:20+00:00 heroku[slugc]: Slug compilation finished
2012-08-28T05:57:21+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 6287`
2012-08-28T05:57:27+00:00 app[web.1]: => Rails 3.2.3 application starting in production on http://0.0.0.0:6287
2012-08-28T05:57:27+00:00 app[web.1]: => Ctrl-C to shutdown server
2012-08-28T05:57:27+00:00 app[web.1]: Exiting
2012-08-28T05:57:27+00:00 app[web.1]: => Booting WEBrick
2012-08-28T05:57:27+00:00 app[web.1]: from /app/app/models/project.rb:1:in `<top (required)>'
2012-08-28T05:57:27+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.3/lib/active_record/dynamic_matchers.rb:50:in `method_missing': undefined method `has_attached_file' for #<Class:0x00000003d3b3e8> (NoMethodError)
2012-08-28T05:57:27+00:00 app[web.1]: => Call with -d to detach
2012-08-28T05:57:27+00:00 app[web.1]: from /app/app/models/project.rb:4:in `<class:Project>'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in `load_dependency'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `block in require'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:359:in `require_or_load'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:502:in `load_missing_constant'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:190:in `each'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:192:in `block in const_missing'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:190:in `const_missing'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/inflector/methods.rb:229:in `block in constantize'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/inflector/methods.rb:228:in `each'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/inflector/methods.rb:228:in `constantize'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/inflector/methods.rb:259:in `safe_constantize'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/core_ext/string/inflections.rb:66:in `safe_constantize'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal/params_wrapper.rb:152:in `_default_wrap_model'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal/params_wrapper.rb:169:in `_set_wrapper_defaults'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal/params_wrapper.rb:133:in `inherited'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/abstract_controller/railties/routes_helpers.rb:7:in `block (2 levels) in with'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/railties/paths.rb:7:in `block (2 levels) in with'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in `load_dependency'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `block in require'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:359:in `require_or_load'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/app/controllers/projects_controller.rb:1:in `<top (required)>'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:313:in `depend_on'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/engine.rb:438:in `each'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/engine.rb:436:in `eager_load!'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/engine.rb:439:in `block (2 levels) in eager_load!'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/engine.rb:438:in `block in eager_load!'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/engine.rb:436:in `each'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:225:in `require_dependency'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:55:in `block in run_initializers'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:54:in `each'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:30:in `instance_exec'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:30:in `run'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:54:in `run_initializers'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/application.rb:136:in `initialize!'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/railtie/configurable.rb:30:in `method_missing'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/config.ru:4:in `block in <main>'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/config.ru:4:in `require'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/config.ru:1:in `new'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/config.ru:1:in `<main>'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands/server.rb:46:in `app'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands/server.rb:70:in `start'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:55:in `block in <top (required)>'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:50:in `tap'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:50:in `<top (required)>'
2012-08-28T05:57:27+00:00 app[web.1]: from script/rails:6:in `<main>'
2012-08-28T05:57:27+00:00 app[web.1]: from script/rails:6:in `require'
2012-08-28T05:57:28+00:00 heroku[web.1]: Process exited with status 1
2012-08-28T05:57:28+00:00 heroku[web.1]: State changed from starting to crashed
2012-08-28T05:57:38+00:00 heroku[router]: Error H10 (App crashed) -> GET floating-sierra-9248.herokuapp.com/ dyno= queue= wait= service= status=503 bytes=
2012-08-28T05:57:38+00:00 heroku[router]: Error H10 (App crashed) -> GET floating-sierra- 9248.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes=
I had to remove part of the logs for it to format right and be readable, its a deprecation warning
2012-08-28T05:57:24+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
(called from at /app/config/environment.rb:5)
Environment.rb
# Load the rails application
require File.expand_path('../application', __FILE__)
# Initialize the rails application
Blog::Application.initialize!
I believe the problem is in this line of the log:
2012-08-28T05:57:27+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.3/lib/active_record/dynamic_matchers.rb:50:in `method_missing': undefined method `has_attached_file' for #<Class:0x00000003d3b3e8> (NoMethodError)
Maybe the gem that you use to manipulate uploads and files is not installed. And remember that you can't use this gem without uploading your files to another server.
Anybody can help? I'm pasting the log from heroku logs
Under development everything works fine as usual, when I upload it to heroku it crashes. I don't know why, I can't fix it despite all the solutions found in web.
MacBook-Pro-Maciej-Simm:SGHub maciejsimm$ heroku logs
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:302:in
`depend_on'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in
`require'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/railtie/configurable.rb:30:in `method
_missing'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `instance_exec
'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:55:in `block in run_
initializers'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `run'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `run_initializ
ers'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `each'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/application.rb:96:in `initialize!'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/config.ru:4:in `require'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/config.ru:4:in `block in <main>'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:51:in `instance_eval'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:40:in `parse_file'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/server.rb:200:in `app'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/commands/server.rb:46:in `app'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/server.rb:301:in `wrapped_app'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/commands/server.rb:70:in `start'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/commands.rb:54:in `block in <top (req
uired)>'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/config.ru:1:in `<main>'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:51:in `initialize'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/commands.rb:49:in `tap'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/commands.rb:49:in `<top (required)>'
2012-01-06T03:20:30+00:00 app[web.1]: from script/rails:6:in `require'
2012-01-06T03:20:30+00:00 app[web.1]: from script/rails:6:in `<main>'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:40:in `eval'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/server.rb:252:in `start'
2012-01-06T03:20:30+00:00 app[web.1]: from /app/config.ru:1:in `new'
2012-01-06T03:20:31+00:00 heroku[web.1]: State changed from starting to crashed
2012-01-06T03:20:31+00:00 heroku[web.1]: State changed from crashed to created
2012-01-06T03:20:31+00:00 heroku[web.1]: State changed from created to starting
2012-01-06T03:20:32+00:00 heroku[web.1]: Process exited
2012-01-06T03:20:36+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 33719`
2012-01-06T03:20:41+00:00 app[web.1]: => Booting WEBrick
2012-01-06T03:20:41+00:00 app[web.1]: => Rails 3.1.3 application starting in production on http://0.0.0.0:33719
2012-01-06T03:20:41+00:00 app[web.1]: Exiting
2012-01-06T03:20:41+00:00 app[web.1]: /app/app/helpers/sessions_helper.rb:34: invalid multibyte char (US-ASCII)
2012-01-06T03:20:41+00:00 app[web.1]: /app/app/helpers/sessions_helper.rb:34: syntax error, unexpected $end, expecting keyword_end
2012-01-06T03:20:41+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `requir
e': /app/app/helpers/sessions_helper.rb:34: invalid multibyte char (US-ASCII) (SyntaxError)
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in
`block in require'
2012-01-06T03:20:41+00:00 app[web.1]: => Ctrl-C to shutdown server
2012-01-06T03:20:41+00:00 app[web.1]: ..._path, :notice => "Zaloguj się aby zobaczyć tą stronę"
2012-01-06T03:20:41+00:00 app[web.1]: ... ^
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:225:in
`load_dependency'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in
`require'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:302:in
`depend_on'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.3/lib/abstract_controller/helpers.rb:135:in `bl
ock in modules_for_helpers'
2012-01-06T03:20:41+00:00 app[web.1]: => Call with -d to detach
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:214:in
`require_dependency'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.3/lib/abstract_controller/helpers.rb:131:in `mo
dules_for_helpers'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.3/lib/abstract_controller/helpers.rb:95:in `hel
per'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/railties/paths.rb:17:in
`block (2 levels) in with'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/app/controllers/application_controller.rb:1:in `<top (required)>'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_controller/metal/helpers.rb:89:in
`modules_for_helpers'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.3/lib/abstract_controller/helpers.rb:131:in `ma
p!'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:348:in
`require_or_load'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:214:in
`require_dependency'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:348:in
`require_or_load'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:225:in
`load_dependency'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in
`block in require'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in
`require'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:302:in
`depend_on'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in
`require'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/application/finisher.rb:51:in `block
in <module:Finisher>'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/engine.rb:414:in `each'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/engine.rb:417:in `block (2 levels) in
eager_load!'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/engine.rb:416:in `each'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/engine.rb:416:in `block in eager_load
!'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `run'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:55:in `block in run_
initializers'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/application.rb:96:in `initialize!'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `each'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `instance_exec
'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/railtie/configurable.rb:30:in `method
_missing'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/engine.rb:414:in `eager_load!'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/config.ru:4:in `require'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:51:in `instance_eval'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/config.ru:1:in `new'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/config.ru:4:in `block in <main>'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:40:in `eval'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/config.ru:1:in `<main>'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/server.rb:200:in `app'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/server.rb:252:in `start'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/commands/server.rb:70:in `start'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/commands/server.rb:46:in `app'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `run_initializ
ers'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:40:in `parse_file'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/commands.rb:54:in `block in <top (req
uired)>'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:51:in `initialize'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/commands.rb:49:in `<top (required)>'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/server.rb:301:in `wrapped_app'
2012-01-06T03:20:41+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.3/lib/rails/commands.rb:49:in `tap'
2012-01-06T03:20:41+00:00 app[web.1]: from script/rails:6:in `require'
2012-01-06T03:20:41+00:00 app[web.1]: from script/rails:6:in `<main>'
2012-01-06T03:20:43+00:00 heroku[web.1]: State changed from starting to crashed
2012-01-06T03:20:43+00:00 heroku[web.1]: Process exited
2012-01-06T03:20:45+00:00 heroku[router]: Error H10 (App crashed) -> GET afternoon-earth-4144.herokuapp.com/ dyno= queue= wait= service= statu
s=503 bytes=
2012-01-06T03:20:46+00:00 heroku[router]: Error H10 (App crashed) -> GET afternoon-earth-4144.herokuapp.com/favicon.ico dyno= queue= wait= ser
vice= status=503 bytes=
2012-01-06T03:20:51+00:00 heroku[router]: Error H10 (App crashed) -> GET afternoon-earth-4144.herokuapp.com/ dyno= queue= wait= service= statu
s=503 bytes=
MacBook-Pro-Maciej-Simm:SGHub maciejsimm$
The problem seems to be right here:
/app/app/helpers/sessions_helper.rb:34: invalid multibyte char (US-ASCII)
...
..._path, :notice => "Zaloguj się aby zobaczyć tą stronę"
^
Note the "US-ASCII" in the error. I'm guessing that your source is actually UTF-8 so try adding this comment:
# encoding: UTF-8
at the top of app/helpers/sessions_helper.rb. That will tell Ruby that that source file is UTF-8. You'll probably need that in other source files as well.
An alternative would be to set your language at Heroku to something UTF:
$ heroku config:add LANG=pl_PL.UTF-8
I'm not sure if Heroku will be happy with Polish so you might need to use en_US.UTF-8 instead.