If anyone can point me in the right direction to help launch my rails app on Heroku, your help would be greatly appreciated.
My app works locally and uses the following:
rails 1.9.3
mongodb
mongoid
thin
bootstrap
The Heroku logs indicate that the app can't find action_mailer/railties.
2013-10-28T20:49:47.386564+00:00 heroku[web.1]: Starting process with command `bundle exec thin start -R config.ru -e $RAILS_ENV -p 43598`
2013-10-28T20:49:49.024650+00:00 app[web.1]: from config.ru:3:in `require'
2013-10-28T20:49:49.024650+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2013-10-28T20:49:49.024650+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.10/lib/rack/builder.rb:51:in `initialize'
2013-10-28T20:49:49.024650+00:00 app[web.1]: from config.ru:1:in `new'
2013-10-28T20:49:49.024650+00:00 app[web.1]: /app/config/application.rb:4:in `require': cannot load such file -- action_mailer/railtie (LoadError)
2013-10-28T20:49:49.024650+00:00 app[web.1]: from /app/config/application.rb:4:in `<top (required)>'
2013-10-28T20:49:49.024650+00:00 app[web.1]: from /app/config/environment.rb:4:in `require'
2013-10-28T20:49:49.024650+00:00 app[web.1]: from /app/config/environment.rb:4:in `<top (required)>'
2013-10-28T20:49:49.024857+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:33:in `load'
2013-10-28T20:49:49.024857+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:181:in `load_rackup_config'
2013-10-28T20:49:49.024857+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:71:in `start'
2013-10-28T20:49:49.024857+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:187:in `run_command'
2013-10-28T20:49:49.024857+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:152:in `run!'
2013-10-28T20:49:49.024857+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/bin/thin:6:in `<top (required)>'
2013-10-28T20:49:49.024857+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `<main>'
2013-10-28T20:49:49.024650+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.10/lib/rack/builder.rb:51:in `instance_eval'
2013-10-28T20:49:49.024650+00:00 app[web.1]: from config.ru:1:in `<main>'
2013-10-28T20:49:49.024857+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:33:in `eval'
2013-10-28T20:49:49.024857+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `load'
2013-10-28T20:49:50.422948+00:00 heroku[web.1]: Process exited with status 1
2013-10-28T20:49:50.435779+00:00 heroku[web.1]: State changed from starting to crashed
2013-10-28T20:50:56.997008+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes=
2013-10-28T20:50:30.641927+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes=
2013-10-28T20:50:56.451159+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes=
2013-10-28T20:50:51.845854+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes=
I commented out in application.rb all the required railties files (not just action_mailer; none of them worked), but now I get another error. I think there is another problem and not railties that I am missing.
2013-10-28T20:53:51.478459+00:00 heroku[web.1]: Starting process with command `bundle exec thin start -R config.ru -e $RAILS_ENV -p 49593`
2013-10-28T20:54:22.594177+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.12/lib/active_support/inflector/methods.rb:123:in `each'
2013-10-28T20:54:22.594177+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/engine.rb:414:in `each'
2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/application/railties.rb:8:in `all'
2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/application/railties.rb:8:in `each'
2013-10-28T20:54:22.594177+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.12/lib/active_support/core_ext/string/inflections.rb:43:in `constantize'
2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/initializable.rb:30:in `run'
2013-10-28T20:54:22.594177+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/engine.rb:417:in `block (2 levels) in eager_load!'
2013-10-28T20:54:22.594177+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.12/lib/active_support/inflector/methods.rb:123:in `constantize'
2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/initializable.rb:30:in `instance_exec'
2013-10-28T20:54:22.594177+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/engine.rb:416:in `each'
2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/engine.rb:412:in `eager_load!'
2013-10-28T20:54:22.594177+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.12/lib/active_support/inflector/methods.rb:124:in `block in constantize': uninitialized constant ActionMailer (NameError)
2013-10-28T20:54:22.594177+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/engine.rb:416:in `block in eager_load!'
2013-10-28T20:54:22.594177+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/engine.rb:414:in `eager_load!'
2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/initializable.rb:55:in `block in run_initializers'
2013-10-28T20:54:22.594177+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-2.2.7/app/mailers/devise/mailer.rb:1:in `<top (required)>'
2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/initializable.rb:54:in `run_initializers'
2013-10-28T20:54:22.594649+00:00 app[web.1]: from /app/config/environment.rb:7:in `<top (required)>'
2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/application/finisher.rb:51:in `block in <module:Finisher>'
2013-10-28T20:54:22.594649+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/initializable.rb:54:in `each'
2013-10-28T20:54:22.594649+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/railtie/configurable.rb:30:in `method_missing'
2013-10-28T20:54:22.594649+00:00 app[web.1]: from config.ru:3:in `require'
2013-10-28T20:54:22.594649+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.10/lib/rack/builder.rb:51:in `initialize'
2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/application.rb:96:in `initialize!'
2013-10-28T20:54:22.594649+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.10/lib/rack/builder.rb:51:in `instance_eval'
2013-10-28T20:54:22.594649+00:00 app[web.1]: from config.ru:1:in `new'
2013-10-28T20:54:22.594649+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:33:in `eval'
2013-10-28T20:54:22.595084+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/bin/thin:6:in `<top (required)>'
2013-10-28T20:54:22.594649+00:00 app[web.1]: from config.ru:1:in `<main>'
2013-10-28T20:54:22.594649+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:33:in `load'
2013-10-28T20:54:22.595084+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1
/lib/thin/controllers/controller.rb:71:in `start'
2013-10-28T20:54:22.595084+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:187:in `run_command'
2013-10-28T20:54:22.595084+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `<main>'
2013-10-28T20:54:22.595084+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:181:in `load_rackup_config'
2013-10-28T20:54:22.595084+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:152:in `run!'
2013-10-28T20:54:22.595084+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `load'
2013-10-28T20:54:24.444797+00:00 heroku[web.1]: Process exited with status 1
2013-10-28T20:54:24.462296+00:00 heroku[web.1]: State changed from starting to crashed
2013-10-28T20:54:26.402911+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes=
2013-10-28T20:54:29.217590+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes=
2013-10-28T20:54:29.959011+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes=
2013-10-28T20:55:04.161060+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes=
2013-10-28T20:55:05.013362+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes=
2013-10-28T20:55:05.338644+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes=
Other issues I ran into:
bootstrap
asset precompiling
I addressed these by turning off precompile.
Please see my answer here.
In short: are you absolutely sure it works locally? Are you running it in exactly the same way it would run remotely?
Related
Copy and paste heroku logs --tail here, it didn't paste well-formatted... This is my first real Rails app I'm trying to deploy, and Heroku isn't having it. Really not sure where to go from here, I would appreciate help understanding the logs to fix this. Thank you!
2022-06-24T13:50:17.311515+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/builder.rb:116:in `eval'
2022-06-24T13:50:17.311517+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/builder.rb:116:in `new_from_string'
2022-06-24T13:50:17.311524+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/builder.rb:105:in `load_file'
2022-06-24T13:50:17.311524+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/builder.rb:66:in `parse_file'
2022-06-24T13:50:17.311526+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/server.rb:349:in `build_app_and_options_from_config'
2022-06-24T13:50:17.311533+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/server.rb:249:in `app'
2022-06-24T13:50:17.311533+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/server.rb:422:in `wrapped_app'
2022-06-24T13:50:17.311540+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/server.rb:312:in `block in start'
2022-06-24T13:50:17.311540+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/server.rb:379:in `handle_profiling'
2022-06-24T13:50:17.311541+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/server.rb:311:in `start'
2022-06-24T13:50:17.311548+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/commands/server/server_command.rb:38:in `start'
2022-06-24T13:50:17.311548+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/commands/server/server_command.rb:143:in `block in perform'
2022-06-24T13:50:17.311551+00:00 app[web.1]: from <internal:kernel>:90:in `tap'
2022-06-24T13:50:17.311557+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/commands/server/server_command.rb:134:in `perform'
2022-06-24T13:50:17.311557+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-06-24T13:50:17.311564+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-06-24T13:50:17.311564+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-06-24T13:50:17.311566+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/command/base.rb:87:in `perform'
2022-06-24T13:50:17.311572+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/command.rb:48:in `invoke'
2022-06-24T13:50:17.311572+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/commands.rb:18:in `<main>'
2022-06-24T13:50:17.311579+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
2022-06-24T13:50:17.311580+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
2022-06-24T13:50:17.311581+00:00 app[web.1]: from bin/rails:4:in `<main>'
2022-06-24T13:50:17.431963+00:00 heroku[web.1]: Process exited with status 1
2022-06-24T13:50:17.477847+00:00 heroku[web.1]: State changed from starting to crashed
2022-06-24T13:50:17.499787+00:00 heroku[web.1]: State changed from crashed to starting
2022-06-24T13:50:20.445347+00:00 heroku[web.1]: Starting process with command `bin/rails server -p ${PORT:-5000} -e production`
2022-06-24T13:50:22.925680+00:00 app[web.1]: => Booting Puma
2022-06-24T13:50:22.925695+00:00 app[web.1]: => Rails 7.0.3 application starting in production
2022-06-24T13:50:22.925695+00:00 app[web.1]: => Run `bin/rails server --help` for more startup options
2022-06-24T13:50:23.229561+00:00 app[web.1]: Exiting
2022-06-24T13:50:23.229722+00:00 app[web.1]: /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require': /app/app/controllers/application_controller.rb:6: syntax error, unexpected `end', expecting end-of-input (SyntaxError)
2022-06-24T13:50:23.229724+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
2022-06-24T13:50:23.229734+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/kernel.rb:27:in `require'
2022-06-24T13:50:23.229736+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader/helpers.rb:127:in `const_get'
2022-06-24T13:50:23.229746+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader/helpers.rb:127:in `cget'
2022-06-24T13:50:23.229748+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader.rb:239:in `block (2 levels) in eager_load'
2022-06-24T13:50:23.229757+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader/helpers.rb:41:in `block in ls'
2022-06-24T13:50:23.229759+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader/helpers.rb:27:in `each'
2022-06-24T13:50:23.229768+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader/helpers.rb:27:in `ls'
2022-06-24T13:50:23.229771+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader.rb:234:in `block in eager_load'
2022-06-24T13:50:23.229779+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader.rb:219:in `synchronize'
2022-06-24T13:50:23.229781+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader.rb:219:in `eager_load'
2022-06-24T13:50:23.229790+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader.rb:318:in `each'
2022-06-24T13:50:23.229792+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader.rb:318:in `eager_load_all'
2022-06-24T13:50:23.229801+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/application/finisher.rb:74:in `block in <module:Finisher>'
2022-06-24T13:50:23.229803+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/initializable.rb:32:in `instance_exec'
2022-06-24T13:50:23.229812+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/initializable.rb:32:in `run'
2022-06-24T13:50:23.229814+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/initializable.rb:61:in `block in run_initializers'
2022-06-24T13:50:23.229824+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:228:in `block in tsort_each'
2022-06-24T13:50:23.229826+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
2022-06-24T13:50:23.229835+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:431:in `each_strongly_connected_component_from'
2022-06-24T13:50:23.229837+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:349:in `block in each_strongly_connected_component'
2022-06-24T13:50:23.229846+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:347:in `each'
2022-06-24T13:50:23.229849+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:347:in `call'
2022-06-24T13:50:23.229850+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:347:in `each_strongly_connected_component'
2022-06-24T13:50:23.229861+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:226:in `tsort_each'
2022-06-24T13:50:23.229863+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:205:in `tsort_each'
2022-06-24T13:50:23.229873+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/initializable.rb:60:in `run_initializers'
2022-06-24T13:50:23.229875+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/application.rb:372:in `initialize!'
2022-06-24T13:50:23.229893+00:00 app[web.1]: from /app/config/environment.rb:5:in `<main>'
2022-06-24T13:50:23.229895+00:00 app[web.1]: from config.ru:3:in `require_relative'
2022-06-24T13:50:23.229895+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2022-06-24T13:50:23.229895+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/builder.rb:116:in `eval'
2022-06-24T13:50:23.229897+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/builder.rb:116:in `new_from_string'
2022-06-24T13:50:23.229899+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/builder.rb:105:in `load_file'
2022-06-24T13:50:23.229909+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/builder.rb:66:in `parse_file'
2022-06-24T13:50:23.229911+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/server.rb:349:in `build_app_and_options_from_config'
2022-06-24T13:50:23.229920+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/server.rb:249:in `app'
2022-06-24T13:50:23.229922+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/server.rb:422:in `wrapped_app'
2022-06-24T13:50:23.229931+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/server.rb:312:in `block in start'
2022-06-24T13:50:23.229933+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/server.rb:379:in `handle_profiling'
2022-06-24T13:50:23.229941+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.3.1/lib/rack/server.rb:311:in `start'
2022-06-24T13:50:23.229944+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/commands/server/server_command.rb:38:in `start'
2022-06-24T13:50:23.229952+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/commands/server/server_command.rb:143:in `block in perform'
2022-06-24T13:50:23.229954+00:00 app[web.1]: from <internal:kernel>:90:in `tap'
2022-06-24T13:50:23.229963+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/commands/server/server_command.rb:134:in `perform'
2022-06-24T13:50:23.229965+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-06-24T13:50:23.229975+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-06-24T13:50:23.229977+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-06-24T13:50:23.229987+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/command/base.rb:87:in `perform'
2022-06-24T13:50:23.229989+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/command.rb:48:in `invoke'
2022-06-24T13:50:23.229998+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3/lib/rails/commands.rb:18:in `<main>'
2022-06-24T13:50:23.230000+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
2022-06-24T13:50:23.230009+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
2022-06-24T13:50:23.230018+00:00 app[web.1]: from bin/rails:4:in `<main>'
2022-06-24T13:50:23.380834+00:00 heroku[web.1]: Process exited with status 1
2022-06-24T13:50:23.422776+00:00 heroku[web.1]: State changed from starting to crashed
2022-06-24T13:50:24.512528+00:00 app[api]: Starting process with command `bundle exec rake db:migrate` by user jack282323#gmail.com
2022-06-24T13:50:28.030796+00:00 heroku[run.5346]: State changed from starting to up
2022-06-24T13:50:28.225466+00:00 heroku[run.5346]: Awaiting client
2022-06-24T13:50:28.246459+00:00 heroku[run.5346]: Starting process with command `bundle exec rake db:migrate`
2022-06-24T13:50:36.326947+00:00 heroku[run.5346]: Process exited with status 0
2022-06-24T13:50:36.457648+00:00 heroku[run.5346]: State changed from up to complete
2022-06-24T13:51:11.983953+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=whispering-waters-61972.herokuapp.com request_id=f6d16d71-e463-46ee-8354-8bb946d3092d fwd="179.49.42.237" dyno= connect= service= status=503 bytes= protocol=https
2022-06-24T13:51:12.799063+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=whispering-waters-61972.herokuapp.com request_id=c5a2d8fb-2d28-4c97-921f-23fa64cc9ee2 fwd="179.49.42.237" dyno= connect= service= status=503 bytes= protocol=https
2022-06-24T13:52:03.935764+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=whispering-waters-61972.herokuapp.com request_id=e949196d-1ff0-4cab-9d7f-d2a459c750aa fwd="179.49.42.237" dyno= connect= service= status=503 bytes= protocol=https
2022-06-24T13:52:04.279241+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=whispering-waters-61972.herokuapp.com request_id=c7d2fc96-312e-4c7e-aff6-506cab45ebc4 fwd="179.49.42.237" dyno= connect= service= status=503 bytes= protocol=https
2022-06-24T13:52:06.802759+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=whispering-waters-61972.herokuapp.com request_id=45f7f405-993a-496c-be01-d12c38c7a255 fwd="179.49.42.237" dyno= connect= service= status=503 bytes= protocol=https
2022-06-24T13:52:07.019043+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=whispering-waters-61972.herokuapp.com request_id=8d2ad5bc-0730-4421-8c36-78d949572b16 fwd="179.49.42.237" dyno= connect= service= status=503 bytes= protocol=https```
This line in your error log is most alarming to me:
[...] `require': /app/app/controllers/application_controller.rb:6: syntax error, unexpected `end', expecting end-of-input (SyntaxError)
What is the contents of app/controllers/application_controller.rb? It looks like there's a syntax error, which is causing the application to fail to load.
I suspect you put end twice, by mistake?
If you run the application locally (rails server, or rails console) then I expect you'd also see this same error.
Guys I followed the steps by uploading my website to Heroku but i can't open my website. Any idea? this is my logs.
I get this error
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.
2016-10-01T10:06:36.169967+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-01T10:06:36.169968+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 server'
2016-10-01T10:06:36.169968+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-01T10:06:36.169971+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-01T10:06:36.169971+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-01T10:06:36.169972+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-01T10:06:36.169974+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-01T10:06:36.169975+00:00 app[web.1]: from bin/rails:4:in `require'
2016-10-01T10:06:36.169975+00:00 app[web.1]: from bin/rails:4:in `<main>'
2016-10-01T10:06:36.275138+00:00 heroku[web.1]: State changed from starting to crashed
2016-10-01T10:06:36.266024+00:00 heroku[web.1]: Process exited with status 1
2016-10-01T10:07:43.959981+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=safe-basin-19893.herokuapp.com request_id=fb12e47e-dc0d-4729-90db-f89
24f36cf6c fwd="60.242.10.208" dyno= connect= service= status=503 bytes=
2016-10-01T10:07:46.067395+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=safe-basin-19893.herokuapp.com request_id=651ac812-85be-4b
da-8f59-6d8f3498ddc3 fwd="60.242.10.208" dyno= connect= service= status=503 bytes=
2016-10-01T10:07:51.057066+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=safe-basin-19893.herokuapp.com request_id=0f410cc8-9fdc-45f1-8b25-723
9ff81a061 fwd="60.242.10.208" dyno= connect= service= status=503 bytes=
2016-10-01T10:07:51.841094+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=safe-basin-19893.herokuapp.com request_id=e5b2aadd-7102-4b
93-b1e9-fed57ffeff6d fwd="60.242.10.208" dyno= connect= service= status=503 bytes=
2016-10-01T10:08:24.115723+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=safe-basin-19893.herokuapp.com request_id=0dde22ce-9c0d-4ca4-bcc5-7aa
0b968d952 fwd="60.242.10.208" dyno= connect= service= status=503 bytes=
2016-10-01T10:08:25.240382+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=safe-basin-19893.herokuapp.com request_id=1fc43b60-4eb6-41
2d-9aec-d889b5f0d8b8 fwd="60.242.10.208" dyno= connect= service= status=503 bytes=
2016-10-01T10:09:32.710032+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=safe-basin-19893.herokuapp.com request_id=29d89e0a-bc13-4670-99c9-fbe
c2f02c106 fwd="60.242.10.208" dyno= connect= service= status=503 bytes=
2016-10-01T10:09:33.810413+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=safe-basin-19893.herokuapp.com request_id=3127fe25-4f81-4e
56-96eb-4cbb4f5470a5 fwd="60.242.10.208" dyno= connect= service= status=503 bytes=
2016-10-01T10:14:53.103026+00:00 heroku[web.1]: State changed from crashed to starting
2016-10-01T10:14:56.111168+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 14306 -e production`
2016-10-01T10:14:59.498769+00:00 app[web.1]: => Booting Puma
2016-10-01T10:14:59.498833+00:00 app[web.1]: => Rails 5.0.0.1 application starting in production on http://0.0.0.0:14306
2016-10-01T10:14:59.498860+00:00 app[web.1]: => Run `rails server -h` for more startup options
2016-10-01T10:15:00.116483+00:00 app[web.1]: /app/app/controllers/visitor_permits_controller.rb:18: warning: else without rescue is useless
2016-10-01T10:15:00.800902+00:00 app[web.1]: Exiting
2016-10-01T10:15:00.801090+00:00 app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require': No such file to load -- t
est_helper (LoadError)
2016-10-01T10:15:00.801104+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 in require'
2016-10-01T10:15:00.801117+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_dependency'
2016-10-01T10:15:00.801128+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-01T10:15:00.801140+00:00 app[web.1]: from /app/app/models/user_test.rb:1:in `<top (required)>'
2016-10-01T10:15:00.801151+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-01T10:15:00.801163+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 in require'
2016-10-01T10:15:00.801174+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_dependency'
2016-10-01T10:15:00.801186+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-01T10:15:00.801204+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 in require_or_load'
2016-10-01T10:15:00.801216+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-01T10:15:00.801228+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-01T10:15:00.801240+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:in `exclusive'
2016-10-01T10:15:00.801256+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-01T10:15:00.801268+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_interlock'
2016-10-01T10:15:00.801280+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-01T10:15:00.801291+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-01T10:15:00.801306+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-01T10:15:00.801317+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_load!'
2016-10-01T10:15:00.801329+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-01T10:15:00.801340+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-01T10:15:00.801352+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-01T10:15:00.801363+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-01T10:15:00.801374+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-01T10:15:00.801385+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-01T10:15:00.801396+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 <module:Finisher>'
2016-10-01T10:15:00.801424+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-01T10:15:00.801411+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-01T10:15:00.801435+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_initializers'
2016-10-01T10:15:00.801446+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-01T10:15:00.801457+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-10-01T10:15:00.801468+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-01T10:15:00.801479+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-01T10:15:00.801490+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `each'
2016-10-01T10:15:00.801501+00:00 app[web.1]: from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `call'
2016-10-01T10:15:00.801512+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-01T10:15:00.801523+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-01T10:15:00.801534+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-01T10:15:00.801545+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-01T10:15:00.801557+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-01T10:15:00.801572+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2016-10-01T10:15:00.801589+00:00 app[web.1]: from /app/config.ru:3:in `require_relative'
2016-10-01T10:15:00.801605+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2016-10-01T10:15:00.801617+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-01T10:15:00.801628+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-01T10:15:00.801653+00:00 app[web.1]: from /app/config.ru:in `new'
2016-10-01T10:15:00.801752+00:00 app[web.1]: from /app/config.ru:in `<main>'
2016-10-01T10:15:00.801765+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-01T10:15:00.801776+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-01T10:15:00.801787+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-01T10:15:00.801798+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-01T10:15:00.801810+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-01T10:15:00.801821+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-01T10:15:00.801832+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-01T10:15:00.801855+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-01T10:15:00.801843+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-01T10:15:00.801866+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 server'
2016-10-01T10:15:00.801877+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-01T10:15:00.801889+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-01T10:15:00.801900+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-01T10:15:00.801922+00:00 app[web.1]: from bin/rails:4:in `require'
2016-10-01T10:15:00.801911+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-01T10:15:00.801934+00:00 app[web.1]: from bin/rails:4:in `<main>'
2016-10-01T10:15:00.963075+00:00 heroku[web.1]: Process exited with status 1
2016-10-01T10:15:00.981253+00:00 heroku[web.1]: State changed from starting to crashed
2016-10-01T10:15:01.641973+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=safe-basin-19893.herokuapp.com request_id=2e381d2e-dae6-48cd-a538-11b
e273e5e95 fwd="60.242.10.208" dyno= connect= service= status=503 bytes=
2016-10-01T10:15:02.715647+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=safe-basin-19893.herokuapp.com request_id=6f71493d-c680-4f
ce-8e86-ee343ce4d90a fwd="60.242.10.208" dyno= connect= service= status=503 bytes=
2016-10-01T10:15:40.496226+00:00 heroku[api]: Starting process with command `bundle exec rake db:migrate` by leechunvoo#gmail.com
2016-10-01T10:15:43.381875+00:00 heroku[run.2762]: Awaiting client
2016-10-01T10:15:43.428171+00:00 heroku[run.2762]: Starting process with command `bundle exec rake db:migrate`
2016-10-01T10:15:43.657102+00:00 heroku[run.2762]: State changed from starting to up
2016-10-01T10:15:48.751122+00:00 heroku[run.2762]: Process exited with status 0
2016-10-01T10:15:48.802610+00:00 heroku[run.2762]: State changed from up to complete
2016-10-01T10:15:55.874848+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=safe-basin-19893.herokuapp.com request_id=2b897bed-3553-416e-904d-d06
ae92bcc8e fwd="60.242.10.208" dyno= connect= service= status=503 bytes=
2016-10-01T10:15:58.077833+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=safe-basin-19893.herokuapp.com request_id=47c29d1f-d4c6-46
78-a4db-cbde4c3fd961 fwd="60.242.10.208" dyno= connect= service= status=503 bytes=
This is the logs i got from heroku run rails console
Running rails console on safe-basin-19893... up, run.2536 (Free)
/app/app/controllers/visitor_permits_controller.rb:18: warning: else without rescue is useless
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require': No such file to load -- test_helper (LoadError)
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `block in require'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require'
from /app/app/models/user_test.rb:1:in `<top (required)>'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `block in require'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:380:in `block in require_or_load'
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'
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'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/concurrency/share_lock.rb:117:in `exclusive'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies/interlock.rb:11:in `loading'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:37:in `load_interlock'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:358:in `require_or_load'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:336:in `depend_on'
from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:252:in `require_dependency'
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_load!'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/engine.rb:475:in `each'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/engine.rb:475:in `block in eager_load!'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/engine.rb:473:in `each'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/engine.rb:473:in `eager_load!'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/engine.rb:354:in `eager_load!'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/application/finisher.rb:59:in `each'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/application/finisher.rb:59:in `block in <module:Finisher>'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:30:in `instance_exec'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:30:in `run'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:55:in `block in run_initializers'
from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'
from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'
from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `each'
from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `call'
from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'
from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'
from /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:54:in `run_initializers'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/application.rb:352:in `initialize!'
from /app/config/environment.rb:5:in `<top (required)>'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/application.rb:328:in `require'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/application.rb:328:in `require_environment!'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:157:in `require_application_and_environment!'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:77:in `console'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
from /app/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/commands.rb:18:in `<top (required)>'
from /app/bin/rails:4:in `require'
from /app/bin/rails:4:in `<main>'
Visitor Permit controller
class VisitorPermitsController < ApplicationController
before_action :set_vpermit, only: [:show, :destroy]
def index
#vpermit = VisitorPermit.all
end
def new
#vpermit = VisitorPermit.new
end
def create
#vpermit = VisitorPermit.new(vpermit_params)
if #vpermit.save
redirect_to #vpermit
end
else
end
def destroy
VisitorPermit.destroy_all(user_id: current_user)
respond_to do |format|
format.html { redirect_to root_path, notice: 'Permit was successfully canceled.' }
format.json { head :no_content }
end
end
def show
#vpermit = VisitorPermit.find(params[:id])
end
def update
#vpermit = VisitorPermit.where(user_id: current_user).take
respond_to do |format|
if #vpermit.update(vpermit_params)
format.html { redirect_to root_path}
flash[:success] = "Permit successfully updated"
format.json { render :show, status: :ok, location: #vpermit }
else
format.html { render :edit }
format.json { render json: #vpermit.errors, status: :unprocessable_entity }
end
end
end
private
# Use callbacks to share common setup or constraints between actions.
def set_vpermit
#vpermit = VisitorPermit.find(params[:id])
end
# Never trust parameters from the scary internet, only allow the white list through.
def vpermit_params
params.require(:visitor_permit).permit(:vehicle_type, :name, :department, :carplate, :duration, :permitstart, :permitend)
end
end
The problem that you are having is a crashed web dyno or a boot timeout on the web dyno.
Generally there are a few methods to resolve this.
Try to run heroku restart in terminal, this stops all dynos and starts them again
You can also run $heroku run rails console in terminal, this will
give you a more detailed log of what is going wrong, from there you
can either fix the error or update your question.
You can scale down and scale back up the dynos by running: heroku ps:scale web=0 then wait a few seconds and run heroku ps:scale web=1.
You can also try heroku run rake db:migrate and then heroku restart.
If you receive more detailed logs, edit your question and add them in
EDIT:
The problem is in your controller
This method:
def create
#vpermit = VisitorPermit.new(vpermit_params)
if #vpermit.save
redirect_to #vpermit
end
else
end
Should be:
def create
#vpermit = VisitorPermit.new(vpermit_params)
if #vpermit.save
redirect_to #vpermit
else
# Should enter an action here for else
end
end
As you cannot end in the middle of an if/else statement
I'm following the rails tutorial at railstutorial.org. My next step was to deploy my app to Heroku. When I deploy the app to Heroku, it gives me an error message saying:
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 are my Heroku log files:
Your version of git is 1.9.4.. Which has serious security vulnerabilities.
More information here: https://blog.heroku.com/archives/2014/12/23/update_your_git_clients_on_windows_and_os_x
2015-10-15T23:33:50.886651+00:00 heroku[web.1]: State changed from starting to crashed
2015-10-15T23:36:42.674698+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=lit-coast-3953.herokuapp.com request_id=cbb2ea7f-a774-4ab2-960f-9c0e0717a8ea fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-15T23:36:43.560640+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=lit-coast-3953.herokuapp.com request_id=28defc83-3012-457b-985d-3b46acc61248 fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-15T23:39:07.288428+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=lit-coast-3953.herokuapp.com request_id=4ba7be07-c257-4b2a-b3f6-d67e38349eed fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-15T23:39:07.434790+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=lit-coast-3953.herokuapp.com request_id=94ba475b-1100-46ae-9a1c-400ba24da2f0 fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-15T23:39:24.953214+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=lit-coast-3953.herokuapp.com request_id=d76bc985-4a0c-4e38-91a9-0aee8a55951f fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-15T23:39:25.362551+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=lit-coast-3953.herokuapp.com request_id=a09efac9-dd70-4035-a402-d0960af92549 fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-15T23:57:26.983461+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 7986 -e production`
2015-10-15T23:57:24.121569+00:00 heroku[web.1]: State changed from crashed to starting
2015-10-15T23:57:30.953715+00:00 app[web.1]: => Booting Puma
2015-10-15T23:57:30.953742+00:00 app[web.1]: => Rails 4.2.4 application starting in production on http://0.0.0.0:7986
2015-10-15T23:57:30.953743+00:00 app[web.1]: => Run `rails server -h` for more startup options
2015-10-15T23:57:30.953744+00:00 app[web.1]: => Ctrl-C to shutdown server
2015-10-15T23:57:31.860563+00:00 app[web.1]: Exiting
2015-10-15T23:57:31.862117+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.4/lib/active_record/dynamic_matchers.rb:26:in `method_missing': undefined local variable or method `has_secured_password' for User (call 'User.connection' to establish a connection):Class (NameError)
2015-10-15T23:57:31.862138+00:00 app[web.1]: from /app/app/models/user.rb:8:in `<class:User>'
2015-10-15T23:57:31.862156+00:00 app[web.1]: from /app/app/models/user.rb:1:in `<top (required)>'
2015-10-15T23:57:31.862177+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require'
2015-10-15T23:57:31.862195+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `block in require'
2015-10-15T23:57:31.862208+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:240:in `load_dependency' 2015-10-15T23:57:31.862224+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require'
2015-10-15T23:57:31.862239+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:360:in `require_or_load' 2015-10-15T23:57:31.862266+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:317:in `depend_on'
2015-10-15T23:57:31.862293+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:233:in `require_dependency'
2015-10-15T23:57:31.862321+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/engine.rb:471:in `each'
2015-10-15T23:57:31.862306+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/engine.rb:472:in `block (2 levels) in eager_load!'
2015-10-15T23:57:31.862350+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/engine.rb:469:in `each'
2015-10-15T23:57:31.862336+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/engine.rb:471:in `block in eager_load!'
2015-10-15T23:57:31.862366+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/engine.rb:469:in `eager_load!'
2015-10-15T23:57:31.862386+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/engine.rb:346:in `eager_load!'
2015-10-15T23:57:31.862398+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/application/finisher.rb:56:in `each'
2015-10-15T23:57:31.862411+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/application/finisher.rb:56:in `block in <module:Finisher>'
2015-10-15T23:57:31.862436+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/initializable.rb:30:in `instance_exec'
2015-10-15T23:57:31.862464+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/initializable.rb:30:in `run'
2015-10-15T23:57:31.862479+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/initializable.rb:55:in `block in run_initializers'
2015-10-15T23:57:31.862493+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
2015-10-15T23:57:31.862504+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
2015-10-15T23:57:31.862518+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
2015-10-15T23:57:31.862533+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
2015-10-15T23:57:31.862548+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each'
2015-10-15T23:57:31.862563+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
2015-10-15T23:57:31.862603+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
2015-10-15T23:57:31.862617+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/initializable.rb:54:in `run_initializers'
2015-10-15T23:57:31.862633+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/application.rb:352:in `initialize!'
2015-10-15T23:57:31.862648+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2015-10-15T23:57:31.862679+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2015-10-15T23:57:31.862663+00:00 app[web.1]: from /app/config.ru:3:in `require'
2015-10-15T23:57:31.862693+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
2015-10-15T23:57:31.862718+00:00 app[web.1]: from /app/config.ru:in `new'
2015-10-15T23:57:31.862706+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
2015-10-15T23:57:31.862734+00:00 app[web.1]: from /app/config.ru:in `<main>'
2015-10-15T23:57:31.862776+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'
2015-10-15T23:57:31.862792+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'
2015-10-15T23:57:31.862807+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'
2015-10-15T23:57:31.862821+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:299:in `build_app_and_options_from_config'
2015-10-15T23:57:31.862834+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:208:in `app'
2015-10-15T23:57:31.862879+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:272:in `start'
2015-10-15T23:57:31.862864+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:336:in `wrapped_app'
2015-10-15T23:57:31.862894+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/commands/server.rb:80:in `start'
2015-10-15T23:57:31.862847+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/commands/server.rb:61:in `app'
2015-10-15T23:57:31.862921+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:80:in `block in server'
2015-10-15T23:57:31.862948+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:75:in `tap'
2015-10-15T23:57:31.862961+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:75:in `server'
2015-10-15T23:57:31.862973+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
2015-10-15T23:57:31.862988+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/commands.rb:17:in `<top (required)>'
2015-10-15T23:57:31.863004+00:00 app[web.1]: from bin/rails:4:in `require'
2015-10-15T23:57:31.863018+00:00 app[web.1]: from bin/rails:4:in `<main>'
2015-10-15T23:57:32.859780+00:00 heroku[web.1]: State changed from starting to crashed
2015-10-15T23:57:32.857005+00:00 heroku[web.1]: Process exited with status 1
2015-10-16T00:01:35.819809+00:00 heroku[slug-compiler]: Slug compilation started
2015-10-16T00:01:35.819819+00:00 heroku[slug-compiler]: Slug compilation finished
2015-10-16T00:01:35.747968+00:00 heroku[api]: Deploy e6ed5b4 by butlera10#gmail.com
2015-10-16T00:01:35.747968+00:00 heroku[api]: Release v11 created by butlera10#gmail.com
2015-10-16T00:01:35.972558+00:00 heroku[web.1]: State changed from crashed to starting
2015-10-16T00:01:39.613244+00:00 heroku[web.1]: Starting process with command `bundle exec puma -C config/puma.rb`
2015-10-16T00:01:42.310288+00:00 app[web.1]: Puma starting in single mode...
2015-10-16T00:01:42.310307+00:00 app[web.1]: * Version 2.11.1 (ruby 2.0.0-p645), codename: Intrepid Squirrel
2015-10-16T00:01:42.310309+00:00 app[web.1]: * Min threads: 0, max threads: 16
2015-10-16T00:01:42.310310+00:00 app[web.1]: * Environment: production
2015-10-16T00:01:45.975901+00:00 app[web.1]: * Listening on tcp://0.0.0.0:9292
2015-10-16T00:01:45.976271+00:00 app[web.1]: Use Ctrl-C to stop
2015-10-16T00:01:49.599802+00:00 heroku[api]: Starting process with command `bundle exec rake db:migrate` by butlera10#gmail.com
2015-10-16T00:01:52.459341+00:00 heroku[run.4849]: Awaiting client
2015-10-16T00:01:52.496893+00:00 heroku[run.4849]: Starting process with command `bundle exec rake db:migrate`
2015-10-16T00:01:52.850289+00:00 heroku[run.4849]: State changed from starting to up
2015-10-16T00:01:59.668556+00:00 heroku[run.4849]: Process exited with status 0
2015-10-16T00:01:59.674461+00:00 heroku[run.4849]: State changed from up to complete
2015-10-16T00:02:39.725945+00:00 heroku[web.1]: Stopping process with SIGKILL
2015-10-16T00:02:39.725945+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2015-10-16T00:02:41.099174+00:00 heroku[web.1]: State changed from starting to crashed
2015-10-16T00:02:41.065951+00:00 heroku[web.1]: Process exited with status 137
2015-10-16T00:03:10.642913+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=lit-coast-3953.herokuapp.com request_id=441707a4-6407-48fe-9e04-35f8a7a68dd5 fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-16T00:03:10.882972+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=lit-coast-3953.herokuapp.com request_id=7d301278-0040-48a8-ae80-992936681b30 fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-16T00:03:15.576603+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=lit-coast-3953.herokuapp.com request_id=7e558323-1f30-43df-84bb-db6b7d9b6e1c fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-16T00:03:15.731893+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=lit-coast-3953.herokuapp.com request_id=db7c42e0-1ea2-4d95-8a10-07336adec3fc fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-16T00:03:17.610215+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=lit-coast-3953.herokuapp.com request_id=9dac3a5f-ee0c-49b2-b1a9-b6133ac6e862 fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-16T00:03:17.821084+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=lit-coast-3953.herokuapp.com request_id=308f51a0-0bbf-46e4-a7ca-6ab6175d4c90 fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-16T00:04:54.511133+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=lit-coast-3953.herokuapp.com request_id=53371904-5090-4ef2-b612-c5844e06b994 fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-16T00:04:54.826183+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=lit-coast-3953.herokuapp.com request_id=f3e1a015-7a40-4d20-a407-d83a13617368 fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-16T00:04:59.367280+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=lit-coast-3953.herokuapp.com request_id=f3d9a09c-2aff-4a66-86eb-a1561b68132d fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
2015-10-16T00:04:59.593237+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=lit-coast-3953.herokuapp.com request_id=8456c0bc-0e0c-49ce-8d9f-9fd2de9173a4 fwd="172.79.90.237" dyno= connect= service= status=503 bytes=
I'm assuming (but not sure) the line below is the error thats in my app, but I'm not sure how to correct the error:
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.4/lib/active_record/dynamic_matchers.rb:26:in `method_missing': undefined local variable or method `has_secured_password' for User (call 'User.connection' to establish a connection):Class (NameError)
Here is my user.rb file:
class User < ActiveRecord::Base
before_save { self.email = email.downcase}
validates :name, presence: true, length: { maximum: 50 }
VALID_EMAIL_REGEX = /\A[\w+\-.]+#[a-z\d\-.]+\.[a-z]+\z/i
validates :email, presence: true, length: { maximum: 255 },
format: { with: VALID_EMAIL_REGEX },
uniqueness: {case_sensitive: false}
has_secure_password
validates :password, length: { minimum: 6 }
end
Can someone tell me what the problem is and how I can solve it? Thanks in advance!
As nayiaw pointed out, it looks like you are trying to call #has_secured_password, when you probably meant #has_secure_password. In other words it looks like there is a typo in your code. If you look at the stack trace line right below the one you copied, it points to line 8 in your user model. My guess is that the typo is there, you probably have "has_secured_password", when it should really be "has_secure_password"
You could also do something like
git grep has_secured_password
in your project directory to see where that line is coming from.
My app worked fine on my localhost and on Heroku until I tried changing the name of my project on Heroku through their website, not the CLI. Now, the app still works on my localhost but I get an Application Error and the message, 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.
Additionally, I was running Ruby Rails 3.2 and updated to 4.0 in the middle of my project to stay as up to date as possible but it's made the whole process much more complicated.
I just started coding and had this project almost finished - just needed to get it synced up with a host and my custom domain and it all went to crap :/ Any help would be very appreciated.
Here is what I get when I run Heroku logs --tail:
2013-10-19T04:45:55.858947+00:00 heroku[run.8369]: State changed from starting to up
2013-10-19T04:46:00.106324+00:00 heroku[run.8369]: Process exited with status 0
2013-10-19T04:46:00.144464+00:00 heroku[run.8369]: State changed from up to complete
2013-10-19T04:46:06.146445+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=lit-basin-5401.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T04:46:06.983600+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=lit-basin-5401.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T04:46:06.757189+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=lit-basin-5401.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T04:49:11.041661+00:00 heroku[web.1]: State changed from crashed to starting
2013-10-19T04:49:16.507236+00:00 heroku[web.1]: Starting process with command `bundle exec
rails server thin -p 51640 -e $RACK_ENV`
2013-10-19T04:49:19.896050+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
2013-10-19T04:49:19.896050+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `block in get'
2013-10-19T04:49:19.896050+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `inject'
2013-10-19T04:49:19.896050+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require': cannot load such file -- thin (LoadError)
2013-10-19T04:49:19.896050+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
2013-10-19T04:49:19.896050+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
2013-10-19T04:49:19.896050+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/thin.rb:1:in `<top (required)>'
2013-10-19T04:49:19.896050+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `const_get'
2013-10-19T04:49:19.896050+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `each'
2013-10-19T04:49:19.896050+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `get'
2013-10-19T04:49:19.896278+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands/server.rb:63:in `start'
2013-10-19T04:49:19.896278+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:78:in `block in <top (required)>'
2013-10-19T04:49:19.896278+00:00 app[web.1]: from bin/rails:4:in `<main>'
2013-10-19T04:49:19.896278+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:268:in `server'
2013-10-19T04:49:19.896278+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `<top (required)>'
2013-10-19T04:49:19.896278+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap'
2013-10-19T04:49:19.896278+00:00 app[web.1]: from bin/rails:4:in `require'
2013-10-19T04:49:19.911301+00:00 app[web.1]: Exiting
2013-10-19T04:49:21.448808+00:00 heroku[web.1]: Process exited with status 1
2013-10-19T04:49:21.452988+00:00 heroku[web.1]: State changed from starting to crashed
2013-10-19T05:05:09.305097+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=www.crt.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:05:09.911911+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=www.crt.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:05:10.312640+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=www.crt.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:05:17.288098+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=crt.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:05:18.112302+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=crt.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:05:18.535047+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=crt.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:07:35+00:00 heroku[slug-compiler]: Slug compilation started
2013-10-19T05:08:04.559035+00:00 heroku[api]: Deploy ce44379 by sunghoster#gmail.com
2013-10-19T05:08:04.583465+00:00 heroku[api]: Release v17 created by sunghoster#gmail.com
2013-10-19T05:08:04.830493+00:00 heroku[web.1]: State changed from crashed to starting
2013-10-19T05:08:08.815396+00:00 heroku[web.1]: Starting process with command `bundle exec rails server thin -p 58476 -e $RACK_ENV`
2013-10-19T05:08:04+00:00 heroku[slug-compiler]: Slug compilation finished
2013-10-19T05:08:11.044510+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require': cannot load such file -- thin (LoadError)
2013-10-19T05:08:11.044510+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
2013-10-19T05:08:11.044510+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/thin.rb:1:in `<top (required)>'
2013-10-19T05:08:11.044510+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
2013-10-19T05:08:11.044510+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `const_get'
2013-10-19T05:08:11.044510+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
2013-10-19T05:08:11.044708+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap'
2013-10-19T05:08:11.044510+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `block in get'
2013-10-19T05:08:11.044708+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `<top (required)>'
2013-10-19T05:08:11.044510+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `inject'
2013-10-19T05:08:11.044708+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:268:in `server'
2013-10-19T05:08:11.044708+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands/server.rb:63:in `start'
2013-10-19T05:08:11.044708+00:00 app[web.1]: from bin/rails:4:in `<main>'
2013-10-19T05:08:11.044708+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:78:in `block in <top (required)>'
2013-10-19T05:08:11.044510+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `each'
2013-10-19T05:08:11.044708+00:00 app[web.1]: from bin/rails:4:in `require'
2013-10-19T05:08:11.044510+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `get'
2013-10-19T05:08:11.057865+00:00 app[web.1]: Exiting
2013-10-19T05:08:12.143057+00:00 heroku[web.1]: Process exited with status 1
2013-10-19T05:08:12.152853+00:00 heroku[web.1]: State changed from starting to crashed
2013-10-19T05:08:12.154304+00:00 heroku[web.1]: State changed from crashed to starting
2013-10-19T05:08:16.644957+00:00 heroku[web.1]: Starting process with command `bundle exec rails server thin -p 44473 -e $RACK_ENV`
2013-10-19T05:08:20.604410+00:00 heroku[web.1]: State changed from starting to crashed
2013-10-19T05:08:22.393304+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=crt.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:08:22.599461+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=crt.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:08:19.316804+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `block in get'
2013-10-19T05:08:19.317076+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:268:in `server'
2013-10-19T05:08:19.316804+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `const_get'
2013-10-19T05:08:19.317076+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap'
2013-10-19T05:08:19.316804+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require': cannot load such file -- thin (LoadError)
2013-10-19T05:08:19.316804+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/thin.rb:1:in `<top (required)>'
2013-10-19T05:08:19.316804+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
2013-10-19T05:08:19.316804+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `each'
2013-10-19T05:08:19.317076+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:78:in `block in <top (required)>'
2013-10-19T05:08:19.317076+00:00 app[web.1]: from bin/rails:4:in `<main>'
2013-10-19T05:08:19.316804+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `inject'
2013-10-19T05:08:19.317076+00:00 app[web.1]: from bin/rails:4:in `require'
2013-10-19T05:08:19.317076+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `<top (required)>'
2013-10-19T05:08:19.329850+00:00 app[web.1]: Exiting
2013-10-19T05:08:19.316804+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
2013-10-19T05:08:19.316804+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
2013-10-19T05:08:19.316804+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler.rb:20:in `get'
2013-10-19T05:08:19.317076+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands/server.rb:63:in `start'
2013-10-19T05:08:20.589816+00:00 heroku[web.1]: Process exited with status 1
2013-10-19T05:08:21.758023+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=crt.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:09:28.445030+00:00 heroku[api]: Starting process with command `bundle exec
rake db:migrate` by sunghoster#gmail.com
2013-10-19T05:09:32.830791+00:00 heroku[run.1104]: Awaiting client
2013-10-19T05:09:32.878270+00:00 heroku[run.1104]: Starting process with command `bundle exec rake db:migrate`
2013-10-19T05:09:33.696273+00:00 heroku[run.1104]: State changed from starting to up
2013-10-19T05:09:35.512494+00:00 heroku[run.1104]: Client connection closed. Sending SIGHUP to all processes
2013-10-19T05:09:36.469621+00:00 heroku[run.1104]: Process exited with status 0
2013-10-19T05:09:36.484133+00:00 heroku[run.1104]: State changed from up to complete
2013-10-19T05:09:41.437949+00:00 heroku[api]: Starting process with command `bundle exec rake db:migrate` by sunghoster#gmail.com
2013-10-19T05:09:46.113833+00:00 heroku[run.8756]: Awaiting client
2013-10-19T05:09:46.146484+00:00 heroku[run.8756]: Starting process with command `bundle exec rake db:migrate`
2013-10-19T05:09:46.930509+00:00 heroku[run.8756]: State changed from starting to up
2013-10-19T05:09:50.254973+00:00 heroku[run.8756]: Process exited with status 0
2013-10-19T05:09:50.264019+00:00 heroku[run.8756]: State changed from up to complete
2013-10-19T05:09:56.581611+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=crt.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:09:57.396220+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=crt.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
2013-10-19T05:09:57.702612+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=crt.herokuapp.com fwd="98.197.58.199" dyno= connect= service= status=503 bytes=
Changing the name in Heroku does nothing -- but you'll have to change it in your local git repo with these lines:
git remote rm heroku
heroku git:remote -a newname
As for your errors, it seems you've got some big errors within your app. As #KepaniHaole said, you seem to have "thin" errors - do you have the gem in your GemFile?
I'm sorry I know that lots of people had asked similar questions but in all the different answers I've seen there were no working ones.
I'am curently following this tutorial : http://ruby.railstutorial.org/ruby-on-rails-tutorial-book.
Here is my app : https://github.com/melki/first_app
Here is my Gemfile :
# A sample Gemfile
source "https://rubygems.org"
# gem "rails"
ruby '1.9.3'
gem "heroku"
gem 'rails', '3.2.13'
group :development do
gem 'sqlite3'
end
group :production do
gem 'pg'
gem 'thin'
end
that's a simple one...
Here are my logs from Heroku :
2013-04-13T17:37:27.600820+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/bin/thin:6:in `<top (required)>'
2013-04-13T17:37:27.600820+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `load'
2013-04-13T17:37:27.600820+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `<main>'
2013-04-13T17:37:28.895845+00:00 heroku[web.1]: Process exited with status 1
2013-04-13T17:37:28.909457+00:00 heroku[web.1]: State changed from starting to crashed
2013-04-13T17:47:24.873811+00:00 heroku[web.1]: State changed from crashed to starting
2013-04-13T17:47:26.701802+00:00 heroku[web.1]: Starting process with command `bundle exec thin start -R config.ru -e $RAILS_ENV -p 37586`
2013-04-13T17:47:28.040408+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `<main>'
2013-04-13T17:47:28.039667+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:32:in `read': No such file or directory - config.ru (Errno::ENOENT)
2013-04-13T17:47:28.039914+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:181:in `load_rackup_config'
2013-04-13T17:47:28.040065+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:187:in `run_command'
2013-04-13T17:47:28.039990+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:71:in `start'
2013-04-13T17:47:28.040166+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:152:in `run!'
2013-04-13T17:47:28.039836+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:32:in `load'
2013-04-13T17:47:28.040332+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `load'
2013-04-13T17:47:28.040244+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/bin/thin:6:in `<top (required)>'
2013-04-13T17:47:29.402379+00:00 heroku[web.1]: Process exited with status 1
2013-04-13T17:47:29.416139+00:00 heroku[web.1]: State changed from starting to crashed
2013-04-13T17:48:34.162437+00:00 heroku[api]: Starting process with command `bundle exec rake db:migrate` by melchior.toldi#gmail.com
2013-04-13T17:48:36.892769+00:00 heroku[run.2268]: Awaiting client
2013-04-13T17:48:36.892769+00:00 heroku[run.2268]: Starting process with command `bundle exec rake db:migrate`
2013-04-13T17:48:37.791304+00:00 heroku[run.2268]: State changed from starting to up
2013-04-13T17:48:40.807677+00:00 heroku[run.2268]: Process exited with status 1
2013-04-13T17:48:40.842046+00:00 heroku[run.2268]: State changed from up to complete
2013-04-13T17:49:37.705672+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=radiant-river-7942.herokuapp.com fwd="82.247.99.235" dyno= connect= service= status=503 bytes=
2013-04-13T17:49:38.049712+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=radiant-river-7942.herokuapp.com fwd="82.247.99.235" dyno= connect= service= status=503 bytes=
2013-04-13T17:57:36.956393+00:00 heroku[web.1]: Starting process with command `bundle exec thin start -R config.ru -e $RAILS_ENV -p 8234`
2013-04-13T17:57:34.713361+00:00 heroku[web.1]: State changed from crashed to starting
2013-04-13T17:57:38.537721+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:152:in `run!'
2013-04-13T17:57:38.537721+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:71:in `start'
2013-04-13T17:57:38.537721+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `load'
2013-04-13T17:57:38.537721+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:32:in `load'
2013-04-13T17:57:38.537721+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:181:in `load_rackup_config'
2013-04-13T17:57:38.537721+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:32:in `read': No such file or directory - config.ru (Errno::ENOENT)
2013-04-13T17:57:38.537721+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/bin/thin:6:in `<top (required)>'
2013-04-13T17:57:38.537721+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `<main>'
2013-04-13T17:57:38.537721+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:187:in `run_command'
2013-04-13T17:57:39.927361+00:00 heroku[web.1]: State changed from starting to crashed
2013-04-13T17:57:43.593400+00:00 heroku[web.1]: Process exited with status 1
2013-04-13T18:07:55.320873+00:00 heroku[web.1]: State changed from crashed to starting
2013-04-13T18:07:58.034529+00:00 heroku[web.1]: Starting process with command `bundle exec thin start -R config.ru -e $RAILS_ENV -p 4633`
2013-04-13T18:07:59.616225+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:32:in `read': No such file or directory - config.ru (Errno::ENOENT)
2013-04-13T18:07:59.616225+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:32:in `load'
2013-04-13T18:07:59.616225+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:181:in `load_rackup_config'
2013-04-13T18:07:59.616225+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:187:in `run_command'
2013-04-13T18:07:59.616225+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:71:in `start'
2013-04-13T18:07:59.616225+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:152:in `run!'
2013-04-13T18:07:59.616225+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `load'
2013-04-13T18:07:59.616225+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `<main>'
2013-04-13T18:07:59.616225+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/bin/thin:6:in `<top (required)>'
2013-04-13T18:08:01.041217+00:00 heroku[web.1]: State changed from starting to crashed
2013-04-13T18:08:01.026363+00:00 heroku[web.1]: Process exited with status 1
2013-04-13T18:08:15.278264+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=radiant-river-7942.herokuapp.com fwd="188.167.200.167" dyno= connect= service= status=503 bytes=
2013-04-13T18:08:16.189360+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=radiant-river-7942.herokuapp.com fwd="188.167.200.167" dyno= connect= service= status=503 bytes=
2013-04-13T18:08:16.328385+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=radiant-river-7942.herokuapp.com fwd="188.167.200.167" dyno= connect= service= status=503 bytes=
2013-04-13T18:10:14.449584+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=radiant-river-7942.herokuapp.com fwd="64.237.39.250" dyno= connect= service= status=503 bytes=
2013-04-13T18:18:27.461322+00:00 heroku[web.1]: State changed from crashed to starting
2013-04-13T18:18:29.173061+00:00 heroku[web.1]: Starting process with command `bundle exec thin start -R config.ru -e $RAILS_ENV -p 33230`
2013-04-13T18:18:30.386288+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:32:in `load'
2013-04-13T18:18:30.386381+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:181:in `load_rackup_config'
2013-04-13T18:18:30.386562+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:187:in `run_command'
2013-04-13T18:18:30.386957+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `<main>'
2013-04-13T18:18:30.386476+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5
.1/lib/thin/controllers/controller.rb:71:in `start'
2013-04-13T18:18:30.386866+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `load'
2013-04-13T18:18:30.386765+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/bin/thin:6:in `<top (required)>'
2013-04-13T18:18:30.386129+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:32:in `read': No such file or directory - config.ru (Errno::ENOENT)
2013-04-13T18:18:30.386674+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:152:in `run!'
2013-04-13T18:18:31.676857+00:00 heroku[web.1]: Process exited with status 1
2013-04-13T18:18:31.684586+00:00 heroku[web.1]: State changed from starting to crashed
2013-04-13T18:29:07.524843+00:00 heroku[web.1]: State changed from crashed to starting
2013-04-13T18:29:09.507194+00:00 heroku[web.1]: Starting process with command `bundle exec thin start -R config.ru -e $RAILS_ENV -p 26133`
2013-04-13T18:29:11.221741+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:71:in `start'
2013-04-13T18:29:11.221817+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:187:in `run_command'
2013-04-13T18:29:11.221566+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:32:in `load'
2013-04-13T18:29:11.221968+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/bin/thin:6:in `<top (required)>'
2013-04-13T18:29:11.221373+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:32:in `read': No such file or directory - config.ru (Errno::ENOENT)
2013-04-13T18:29:11.221892+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:152:in `run!'
2013-04-13T18:29:11.221662+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:181:in `load_rackup_config'
2013-04-13T18:29:11.222059+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `load'
2013-04-13T18:29:11.222137+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `<main>'
2013-04-13T18:29:12.554083+00:00 heroku[web.1]: State changed from starting to crashed
2013-04-13T18:29:12.547227+00:00 heroku[web.1]: Process exited with status 1
2013-04-13T18:29:35.422394+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=radiant-river-7942.herokuapp.com fwd="82.247.99.235" dyno= connect= service= status=503 bytes=
2013-04-13T18:29:35.704799+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=radiant-river-7942.herokuapp.com fwd="82.247.99.235" dyno= connect= service= status=503 bytes=
2013-04-13T18:29:39.570979+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=radiant-river-7942.herokuapp.com fwd="82.247.99.235" dyno= connect= service= status=503 bytes=
2013-04-13T18:29:39.851899+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=radiant-river-7942.herokuapp.com fwd="82.247.99.235" dyno= connect= service= status=503 bytes=
2013-04-13T18:39:46.195056+00:00 heroku[web.1]: State changed from crashed to starting
2013-04-13T18:39:47.796625+00:00 heroku[web.1]: Starting process with command `bundle exec thin start -R config.ru -e $RAILS_ENV -p 34436`
2013-04-13T18:39:48.942222+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:71:in `start'
2013-04-13T18:39:48.942148+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:181:in `load_rackup_config'
2013-04-13T18:39:48.941907+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:32:in `read': No such file or directory - config.ru (Errno::ENOENT)
2013-04-13T18:39:48.942636+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `<main>'
2013-04-13T18:39:50.103490+00:00 heroku[web.1]: Process exited with status 1
2013-04-13T18:39:48.942560+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `load'
2013-04-13T18:39:50.115132+00:00 heroku[web.1]: State changed from starting to crashed
2013-04-13T18:39:48.942473+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/bin/thin:6:in `<top (required)>'
2013-04-13T18:39:48.942070+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:32:in `load'
2013-04-13T18:39:48.942380+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:152:in `run!'
2013-04-13T18:39:48.942306+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:187:in `run_command'
2013-04-13T18:40:30.990826+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=radiant-river-7942.herokuapp.com fwd="82.247.99.235" dyno= connect= service= status=503 bytes=
2013-04-13T18:40:31.347409+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=radiant-river-7942.herokuapp.com fwd="82.247.99.235" dyno= connect= service= status=503 bytes=
When I type : Heroku ps
melki#melkunix:~/rails_projects/first_app$ heroku ps
=== web: `bundle exec rails server -p $PORT`
web.1: crashed 2013/04/13 18:46:03 (~ 5m ago)
And when I do :
heroku run rake db:migrate
I get :
melki#melkunix:~/rails_projects/first_app$ heroku run rake db:migrate
Running `rake db:migrate` attached to terminal... up, run.9445
rake aborted!
can't activate rails (= 2.3.14), already activated rails-3.2.13. Make sure all dependencies are added to Gemfile.
/app/vendor/bundle/ruby/1.9.1/gems/bundler- 1.3.2/lib/bundler/rubygems_integration.rb:224:in `block in replace_gem'
/app/config/boot.rb:60:in `load_rails_gem'
/app/config/boot.rb:54:in `load_initializer'
/app/config/boot.rb:38:in `run'
/app/config/boot.rb:11:in `boot!'
/app/config/boot.rb:114:in `<top (required)>'
/app/Rakefile:4:in `require'
/app/Rakefile:4:in `<top (required)>'
/app/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_module.rb:25:in `load'
/app/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/rake_module.rb:25:in `load_rakefile'
/app/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:589:in `raw_load_rakefile'
/app/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:89:in `block in load_rakefile'
/app/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
/app/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:88:in `load_rakefile'
/app/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:72:in `block in run'
/app/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
/app/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:70:in `run'
(See full trace by running task with --trace)
And here is the app whith the error message : http://radiant-river-7942.herokuapp.com/
I stay at your disposition for any other file if that could help you.
Excuse my english.
Problem is with your Gem file. delete Gemfile.lock and run bundle install and push the code and run migrations.
You have already installed rails 2 and just added rails 3 to Gem file without
bundle update