HerokuでのApplication Errorについて
cloud9を使用してherokuにgitからpushでデプロイしたところ以下のエラーが出ました。
cloud9上では正常に作動するのですが、Heroku上ではApplication Errorが発生します。
Herokuのrestartなども試したのですが、原因がわからないです。
heroku logで出たエラーコードは下のとおりです。
at=error code=H10 desc="App crashed" method=GET path="/" dyno= connect= service= status=503 bytes= protocol=https
一応、logを貼っておきます。
app[web.1]: /app/config.ru:4:in `block in <main>' app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.5/lib/rack/builder.rb:55:in `instance_eval' app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.5/lib/rack/builder.rb:55:in `initialize' app[web.1]: /app/config.ru:in `new' app[web.1]: /app/config.ru:in `<main>' app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.5/lib/rack/builder.rb:49:in `eval' app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.5/lib/rack/builder.rb:49:in `new_from_string' app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.5/lib/rack/builder.rb:40:in `parse_file' app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.5/lib/rack/server.rb:319:in `build_app_and_options_from_config' app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.5/lib/rack/server.rb:219:in `app' app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.5/lib/rack/server.rb:354:in `wrapped_app' app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.5/lib/rack/server.rb:283:in `start' app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.5/lib/rack/server.rb:148:in `start' app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.5/bin/rackup:4:in `<top (required)>' app[web.1]: /app/vendor/bundle/ruby/2.4.0/bin/rackup:23:in `load' app[web.1]: /app/vendor/bundle/ruby/2.4.0/bin/rackup:23:in `<top (required)>' heroku[web.1]: Starting process with command `bundle exec rackup config.ru -p 21185` heroku[web.1]: State changed from starting to crashed heroku[web.1]: Process exited with status 1 app[web.1]: bundler: failed to load command: rackup (/app/vendor/bundle/ruby/2.4.0/bin/rackup) app[web.1]: LoadError: cannot load such file -- sqlite3 app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require' app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require' app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency' app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require' app[web.1]: /app/app.rb:5:in `<top (required)>' app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require' app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require' app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency' app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require' app[web.1]: /app/config.ru:4:in `block in <main>' app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.5/lib/rack/builder.rb:55:in `instance_eval' app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.5/lib/rack/builder.rb:55:in `initialize' app[web.1]: /app/config.ru:in `new' app[web.1]: /app/config.ru:in `<main>' app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.5/lib/rack/builder.rb:49:in `eval' app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.5/lib/rack/builder.rb:49:in `new_from_string' app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.5/lib/rack/builder.rb:40:in `parse_file' app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.5/lib/rack/server.rb:319:in `build_app_and_options_from_config' app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.5/lib/rack/server.rb:219:in `app' app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.5/lib/rack/server.rb:354:in `wrapped_app' app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.5/lib/rack/server.rb:283:in `start' app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.5/lib/rack/server.rb:148:in `start' app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/rack-2.0.5/bin/rackup:4:in `<top (required)>' app[web.1]: /app/vendor/bundle/ruby/2.4.0/bin/rackup:23:in `load' app[web.1]: /app/vendor/bundle/ruby/2.4.0/bin/rackup:23:in `<top (required)>' app[api]: Starting process with command `bundle exec rake db:migrate` by user win2do8se1@outlook.jp 2018-12-25T10:42:34.793125+00:00 heroku[run.3200]: Awaiting client 2018-12-25T10:42:34.814935+00:00 heroku[run.3200]: Starting process with command `bundle exec rake db:migrate` heroku[run.3200]: State changed from starting to up heroku[run.3200]: State changed from up to complete heroku[run.3200]: Process exited with status 0 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=cryptic-caverns-64134.herokuapp.com request_id=7af92fc9-48ec-4d33-b457-82a3a3272e62 fwd="121.86.132.138" dyno= connect= service= status=503 bytes= protocol=https
よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/12/26 04:52