1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Ruby on Rails Tutorial:Herokuにデプロイ後 at=error code=H10 desc="App crashed" がでた(自己解決メモ)

Posted at

文字通り、herokuにデプロイしようとしたらエラー祭りで
本番環境でもエラーがでて開けない。

検索をしていると同じようなエラーでも皆さん内容が違うよう。

みなさんの事例をみているとエラーそのものの箇所ではなく
周りもしっかり見るのが大事そうな気がしてきた。

ec2-user:~/environment/sample_app (master) $ heroku logs
2020-05-06T05:26:41.724041+00:00 app[web.1]: config/puma.rb:1:in `_load_from'
2020-05-06T05:26:41.724042+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/dsl.rb:41:in `instance_eval'
2020-05-06T05:26:41.724042+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/dsl.rb:41:in `_load_from'
2020-05-06T05:26:41.724053+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/configuration.rb:204:in `block in load'
2020-05-06T05:26:41.724053+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/configuration.rb:203:in `each'
2020-05-06T05:26:41.724054+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/configuration.rb:203:in `load'
2020-05-06T05:26:41.724054+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/launcher.rb:59:in `initialize'
2020-05-06T05:26:41.724054+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/cli.rb:68:in `new'
2020-05-06T05:26:41.724055+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/cli.rb:68:in `initialize'
2020-05-06T05:26:41.724055+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/bin/puma:8:in `new'
2020-05-06T05:26:41.724055+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/bin/puma:8:in `<top (required)>'
2020-05-06T05:26:41.724056+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/bin/puma:23:in `load'
2020-05-06T05:26:41.724056+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/bin/puma:23:in `<top (required)>'
2020-05-06T06:02:56.000000+00:00 app[api]: Build started by user @gmail.com
2020-05-06T06:03:28.900585+00:00 heroku[web.1]: State changed from crashed to starting
2020-05-06T06:03:28.567124+00:00 app[api]: Deploy 607c2f59 by user @gmail.com
2020-05-06T06:03:28.567124+00:00 app[api]: Release v12 created by user @gmail.com
2020-05-06T06:03:31.000000+00:00 app[api]: Build succeeded
2020-05-06T06:03:44.102990+00:00 heroku[web.1]: State changed from starting to crashed
2020-05-06T06:03:44.106221+00:00 heroku[web.1]: State changed from crashed to starting
2020-05-06T06:03:44.023928+00:00 app[web.1]: bundler: failed to load command: puma (/app/vendor/bundle/ruby/2.6.0/bin/puma)
2020-05-06T06:03:44.025639+00:00 app[web.1]: NoMethodError: undefined method `orkers' for #<Puma::DSL:0x000055872d998158>
2020-05-06T06:03:44.025640+00:00 app[web.1]: Did you mean?  workers
2020-05-06T06:03:44.025641+00:00 app[web.1]: config/puma.rb:1:in `_load_from'
2020-05-06T06:03:44.025642+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/dsl.rb:41:in `instance_eval'
2020-05-06T06:03:44.025642+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/dsl.rb:41:in `_load_from'
2020-05-06T06:03:44.025660+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/configuration.rb:204:in `block in load'
2020-05-06T06:03:44.025661+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/configuration.rb:203:in `each'
2020-05-06T06:03:44.025662+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/configuration.rb:203:in `load'
2020-05-06T06:03:44.025662+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/launcher.rb:59:in `initialize'
2020-05-06T06:03:44.025662+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/cli.rb:68:in `new'
2020-05-06T06:03:44.025663+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/cli.rb:68:in `initialize'
2020-05-06T06:03:44.025663+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/bin/puma:8:in `new'
2020-05-06T06:03:44.025664+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/bin/puma:8:in `<top (required)>'
2020-05-06T06:03:44.025664+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/bin/puma:23:in `load'
2020-05-06T06:03:44.025665+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/bin/puma:23:in `<top (required)>'
2020-05-06T06:03:52.007822+00:00 heroku[web.1]: State changed from starting to crashed
2020-05-06T06:03:51.946318+00:00 app[web.1]: bundler: failed to load command: puma (/app/vendor/bundle/ruby/2.6.0/bin/puma)
2020-05-06T06:03:51.947942+00:00 app[web.1]: NoMethodError: undefined method `orkers' for #<Puma::DSL:0x0000555a51882920>
2020-05-06T06:03:51.947943+00:00 app[web.1]: Did you mean?  workers
2020-05-06T06:03:51.947944+00:00 app[web.1]: config/puma.rb:1:in `_load_from'
2020-05-06T06:03:51.947945+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/dsl.rb:41:in `instance_eval'
2020-05-06T06:03:51.947945+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/dsl.rb:41:in `_load_from'
2020-05-06T06:03:51.947945+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/configuration.rb:204:in `block in load'
2020-05-06T06:03:51.947946+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/configuration.rb:203:in `each'
2020-05-06T06:03:51.947946+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/configuration.rb:203:in `load'
2020-05-06T06:03:51.947946+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/launcher.rb:59:in `initialize'
2020-05-06T06:03:51.947947+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/cli.rb:68:in `new'
2020-05-06T06:03:51.947947+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/cli.rb:68:in `initialize'
2020-05-06T06:03:51.947947+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/bin/puma:8:in `new'
2020-05-06T06:03:51.947948+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/bin/puma:8:in `<top (required)>'
2020-05-06T06:03:51.947948+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/bin/puma:23:in `load'
2020-05-06T06:03:51.947949+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/bin/puma:23:in `<top (required)>'
2020-05-06T06:09:28.325028+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=stark-reaches-53742.herokuapp.com request_id=0756e79d-d0d3-439a-b114-586a9c31127c fwd="60.96.242.69" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T06:09:28.879667+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=stark-reaches-53742.herokuapp.com request_id=ea012ce0-8e6c-49c6-b343-d27d5775bfe3 fwd="60.96.242.69" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T06:09:29.527209+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=stark-reaches-53742.herokuapp.com request_id=272ed26e-e5ca-44c0-912c-c0ce4a37a88e fwd="60.96.242.69" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T06:09:39.618526+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/users" host=stark-reaches-53742.herokuapp.com request_id=606ad9ed-342b-4a1e-9a3b-7817362907ea fwd="60.96.242.69" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T06:09:39.886889+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=stark-reaches-53742.herokuapp.com request_id=e091099c-863f-4720-9a11-edf2c7b3bf4f fwd="60.96.242.69" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T06:16:40.779486+00:00 app[api]: Starting process with command `rails db:migrate` by user @gmail.com
2020-05-06T06:16:47.931791+00:00 heroku[run.6648]: State changed from starting to up
2020-05-06T06:16:54.234479+00:00 heroku[run.6648]: State changed from up to complete
2020-05-06T06:17:09.262141+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=stark-reaches-53742.herokuapp.com request_id=d5e225f8-a082-43f3-9fd7-1dd59987c1e1 fwd="60.96.242.69" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T06:17:09.561704+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=stark-reaches-53742.herokuapp.com request_id=27ca2abf-e772-4dc2-a3bc-653583fba1b3 fwd="60.96.242.69" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T06:17:27.350123+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=stark-reaches-53742.herokuapp.com request_id=5a655cb5-6dc7-4053-8ea2-0f7458c9a0a7 fwd="60.96.242.69" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T06:17:27.629734+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=stark-reaches-53742.herokuapp.com request_id=dad30e91-5659-4d98-af4b-df75775084e9 fwd="60.96.242.69" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T06:25:50.544534+00:00 heroku[web.1]: State changed from crashed to starting
2020-05-06T06:25:59.405820+00:00 heroku[web.1]: State changed from starting to crashed
2020-05-06T06:25:59.329852+00:00 app[web.1]: bundler: failed to load command: puma (/app/vendor/bundle/ruby/2.6.0/bin/puma)
2020-05-06T06:25:59.331940+00:00 app[web.1]: NoMethodError: undefined method `orkers' for #<Puma::DSL:0x000055d22ba0b6c8>
2020-05-06T06:25:59.331948+00:00 app[web.1]: Did you mean?  workers
2020-05-06T06:25:59.331951+00:00 app[web.1]: config/puma.rb:1:in `_load_from'
2020-05-06T06:25:59.331956+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/dsl.rb:41:in `instance_eval'
2020-05-06T06:25:59.331956+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/dsl.rb:41:in `_load_from'
2020-05-06T06:25:59.331959+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/configuration.rb:204:in `block in load'
2020-05-06T06:25:59.331960+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/configuration.rb:203:in `each'
2020-05-06T06:25:59.331960+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/configuration.rb:203:in `load'
2020-05-06T06:25:59.331960+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/launcher.rb:59:in `initialize'
2020-05-06T06:25:59.331960+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/cli.rb:68:in `new'
2020-05-06T06:25:59.331960+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/lib/puma/cli.rb:68:in `initialize'
2020-05-06T06:25:59.331960+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/bin/puma:8:in `new'
2020-05-06T06:25:59.331961+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.9.1/bin/puma:8:in `<top (required)>'
2020-05-06T06:25:59.331963+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/bin/puma:23:in `load'
2020-05-06T06:25:59.331964+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/bin/puma:23:in `<top (required)>'
2020-05-06T06:33:58.727818+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=stark-reaches-53742.herokuapp.com request_id=ef51c3b7-6369-4e45-8424-18b4be79ae63 fwd="60.96.242.69" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T06:33:58.977472+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=stark-reaches-53742.herokuapp.com request_id=7fe06b6f-aae8-4782-ba70-0ead167147b9 fwd="60.96.242.69" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T06:34:02.286335+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=stark-reaches-53742.herokuapp.com request_id=d1d9b3f6-5817-4438-bca6-861fa8a2ee10 fwd="60.96.242.69" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T06:34:02.681772+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=stark-reaches-53742.herokuapp.com request_id=f9352ae2-1a9b-4bce-9086-893068b15b92 fwd="60.96.242.69" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T06:35:10.535561+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=stark-reaches-53742.herokuapp.com request_id=3688f946-a8fe-47f6-b611-26330748fc95 fwd="60.96.242.69" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T06:35:10.720797+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=stark-reaches-53742.herokuapp.com request_id=466ff2d4-50fd-4b20-8664-7afd5278f9c8 fwd="60.96.242.69" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T06:35:11.515697+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=stark-reaches-53742.herokuapp.com request_id=b88480cb-cf15-4fd1-8f20-a61df5fda6e5 fwd="60.96.242.69" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T06:37:58.604161+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=stark-reaches-53742.herokuapp.com request_id=c6e92644-105c-4f62-9e16-8b0832d2500d fwd="60.96.242.69" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T06:37:59.160575+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=stark-reaches-53742.herokuapp.com request_id=128fb088-82ea-4e26-a42b-a443d6f8e0e7 fwd="60.96.242.69" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T06:38:36.112880+00:00 app[api]: Starting process with command `rails c` by user @gmail.com
2020-05-06T06:38:45.550801+00:00 heroku[run.5054]: State changed from starting to up
2020-05-06T06:41:59.343775+00:00 heroku[run.5054]: State changed from up to complete
2020-05-06T06:44:27.965338+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=stark-reaches-53742.herokuapp.com request_id=402db30f-c4d7-4c62-94b5-5d1a1c235594 fwd="60.96.242.69" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T06:44:28.843714+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=stark-reaches-53742.herokuapp.com request_id=c641bda2-3c59-4939-862b-9db240224632 fwd="60.96.242.69" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T06:45:01.681453+00:00 app[api]: Starting process with command `bin/rails console` by user @gmail.com
2020-05-06T06:45:09.409990+00:00 heroku[run.7033]: State changed from starting to up
2020-05-06T06:45:26.545053+00:00 heroku[run.7033]: State changed from up to complete

※なんかいやなのでメールアドレスだけ消してます

最初のころはエラーがでてる周り

020-05-06T06:33:58.727818+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=stark-reaches-53742.herokuapp.com request_id=ef51c3b7-6369-4e45-8424-18b4be79ae63 fwd="60.96.242.69" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T06:33:58.977472+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=stark-reaches-53742.herokuapp.com request_id=7fe06b6f-aae8-4782-ba70-0ead167147b9 fwd="60.96.242.69" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T06:34:02.286335+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=stark-reaches-53742.herokuapp.com request_id=d1d9b3f6-5817-4438-bca6-861fa8a2ee10 fwd="60.96.242.69" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T06:34:02.681772+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=stark-reaches-53742.herokuapp.com request_id=f9352ae2-1a9b-4bce-9086-893068b15b92 fwd="60.96.242.69" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T06:35:10.535561+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=stark-reaches-53742.herokuapp.com request_id=3688f946-a8fe-47f6-b611-26330748fc95 fwd="60.96.242.69" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T06:35:10.720797+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=stark-reaches-53742.herokuapp.com request_id=466ff2d4-50fd-4b20-8664-7afd5278f9c8 fwd="60.96.242.69" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T06:35:11.515697+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=stark-reaches-53742.herokuapp.com request_id=b88480cb-cf15-4fd1-8f20-a61df5fda6e5 fwd="60.96.242.69" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T06:37:58.604161+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=stark-reaches-53742.herokuapp.com request_id=c6e92644-105c-4f62-9e16-8b0832d2500d fwd="60.96.242.69" dyno= connect= service= status=503 bytes= protocol=https
2020-05-06T06:37:59.160575+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=stark-reaches-53742.herokuapp.com request_id=128fb088-82ea-4e26-a42b-a443d6f8e0e7 fwd="60.96.242.69" dyno= connect= service= status=503 bytes= protocol=https

この辺ばっかりみてたのですが、どうも解決しない。

ので全体をみようとしたら

2020-05-06T06:03:44.023928+00:00 app[web.1]: bundler: failed to load command: puma (/app/vendor/bundle/ruby/2.6.0/bin/puma)
2020-05-06T06:03:44.025639+00:00 app[web.1]: NoMethodError: undefined method `orkers' for #<Puma::DSL:0x000055872d998158>
2020-05-06T06:03:44.025640+00:00 app[web.1]: Did you mean?  workers

こんなのを発見。
※すべて、コンソールでheroku logs で検索してます

pumaの中がおかしいんじゃないか、と。

orkersじゃなくてworkersなんじゃないかと。

これを修正すると、開発環境(cloud9)はみれるようになりました。

この段階ですでにブランチはmasterに移ってたのでどうしたもんかと。

しかし無視してもう一度マージして、herokuにプッシュしたらいけました。

以上、自己解決メモです。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?