質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Ruby on Rails 5

Ruby on Rails 5は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Q&A

解決済

1回答

688閲覧

heroku Verifying deploy... done. の後、表示されないエラー

tori315

総合スコア21

Ruby on Rails 5

Ruby on Rails 5は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

0グッド

0クリップ

投稿2020/02/06 05:09

heroku へdeployした後、アクセスしても表示さず、logをみると、
bundler: failed to load command: puma (/app/vendor/bundle/ruby/2.6.0/bin/puma)

2020-02-06T04:30:08.289271+00:00 app[web.1]: Errno::ENOENT: No such file or directory @ rb_sysopen - tmp/pids/server.pid
この辺りが原因?で見られないのかと思い、
調べてtmp/tmpの下に、pidsとsocketssocketsのフォルダを作ってみたのですが変わらずで、行き詰っています。
どなたかお知恵を貸してください。
(個人情報のところは消してあります、文字数の関係で一部省略してます)

logs

12020-02-06T04:29:55.864536+00:00 app[api]: Release v12 created by user t08049818634@icloud.com 22020-02-06T04:29:55.864536+00:00 app[api]: Deploy a12ca4c3 by user34@icloud.com 32020-02-06T04:30:02.566429+00:00 heroku[web.1]: Starting process with command `bundle exec puma -C config/puma.rb` 42020-02-06T04:30:03.000000+00:00 app[api]: Build succeeded 52020-02-06T04:30:04.473178+00:00 app[web.1]: Puma starting in single mode... 62020-02-06T04:30:04.473209+00:00 app[web.1]: * Version 3.12.2 (ruby 2.6.5-p114), codename: Llamas in Pajamas 72020-02-06T04:30:04.473211+00:00 app[web.1]: * Min threads: 5, max threads: 5 82020-02-06T04:30:04.473213+00:00 app[web.1]: * Environment: production 92020-02-06T04:30:08.288643+00:00 app[web.1]: * Listening on tcp://0.0.0.0:54833 102020-02-06T04:30:08.289249+00:00 app[web.1]: bundler: failed to load command: puma (/app/vendor/bundle/ruby/2.6.0/bin/puma) 112020-02-06T04:30:08.289271+00:00 app[web.1]: Errno::ENOENT: No such file or directory @ rb_sysopen - tmp/pids/server.pid 122020-02-06T04:30:08.289274+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.12.2/lib/puma/launcher.rb:133:in `initialize' 132020-02-06T04:30:08.289275+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.12.2/lib/puma/launcher.rb:133:in `open' 142020-02-06T04:30:08.289277+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.12.2/lib/puma/launcher.rb:133:in `write_pid' 1520-02-06T04:30:08.289287+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/bin/puma:23:in `load' 162020-02-06T04:30:08.289288+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/bin/puma:23:in `<top (required)>' 172020-02-06T04:30:08.407022+00:00 heroku[web.1]: State changed from starting to crashed 182020-02-06T04:30:08.411860+00:00 heroku[web.1]: State changed from crashed to starting 192020-02-06T04:30:08.386488+00:00 heroku[web.1]: Process exited with status 1 202020-02-06T04:30:14.695167+00:00 heroku[web.1]: Starting process with command `bundle exec puma -C config/puma.rb` 212020-02-06T04:30:16.668206+00:00 app[web.1]: Puma starting in single mode... 222020-02-06T04:30:16.668224+00:00 app[web.1]: * Version 3.12.2 (ruby 2.6.5-p114), codename: Llamas in Pajamas 232020-02-06T04:30:16.668225+00:00 app[web.1]: * Min threads: 5, max threads: 5 242020-02-06T04:30:16.668227+00:00 app[web.1]: * Environment: production 252020-02-06T04:30:20.484405+00:00 heroku[web.1]: State changed from starting to up 262020-02-06T04:30:20.454195+00:00 app[web.1]: * Listening on tcp://0.0.0.0:25542 272020-02-06T04:30:20.454548+00:00 app[web.1]: bundler: failed to load command: puma (/app/vendor/bundle/ruby/2.6.0/bin/puma) 282020-02-06T04:30:20.454614+00:00 app[web.1]: Errno::ENOENT: No such file or directory @ rb_sysopen - tmp/pids/server.pid 292020-02-06T04:30:20.454617+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.12.2/lib/puma/launcher.rb:133:in `initialize' 302020-02-06T04:30:20.454619+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.12.2/lib/puma/launcher.rb:133:in `open' 312020-02-06T04:30:20.454624+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.12.2/lib/puma/launcher.rb:106:in `write_state' 322020-02-06T04:30:20.454626+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.12.2/lib/puma/single.rb:103:in `run' 332020-02-06T04:30:20.454628+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.12.2/lib/puma/launcher.rb:186:in `run' 342020-02-06T04:30:20.454630+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.12.2/lib/puma/cli.rb:80:in `run' 352020-02-06T04:30:20.454632+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.12.2/bin/puma:10:in `<top (required)>' 362020-02-06T04:30:20.454636+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/bin/puma:23:in `load' 372020-02-06T04:30:20.454638+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/bin/puma:23:in `<top (required)>' 382020-02-06T04:30:20.561319+00:00 heroku[web.1]: State changed from up to crashed 392020-02-06T04:30:20.546307+00:00 heroku[web.1]: Process exited with status 1 402020-02-06T04:30:21.688721+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=.com request_id= fwd="" dyno= connect= service= status=503 bytes= protocol=https 412020-02-06T04:30:22.321772+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=.com request_id= fwd="" dyno= connect= service= status=503 bytes= protocol=https 422020-02-06T04:48:19.136986+00:00 heroku[web.1]: State changed from crashed to starting 432020-02-06T04:48:25.763949+00:00 heroku[web.1]: Starting process with command `bundle exec puma -C config/puma.rb` 442020-02-06T04:48:28.005423+00:00 app[web.1]: Puma starting in single mode... 452020-02-06T04:48:28.005445+00:00 app[web.1]: * Version 3.12.2 (ruby 2.6.5-p114), codename: Llamas in Pajamas 462020-02-06T04:48:28.005447+00:00 app[web.1]: * Min threads: 5, max threads: 5 472020-02-06T04:48:28.005449+00:00 app[web.1]: * Environment: production 482020-02-06T04:48:32.091965+00:00 app[web.1]: * Listening on tcp://0.0.0.0:35204 492020-02-06T04:48:32.092282+00:00 app[web.1]: bundler: failed to load command: puma (/app/vendor/bundle/ruby/2.6.0/bin/puma) 502020-02-06T04:48:32.092307+00:00 app[web.1]: Errno::ENOENT: No such file or directory @ rb_sysopen - tmp/pids/server.pid 512020-02-06T04:48:32.092312+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.12.2/lib/puma/launcher.rb:133:in `initialize' 522020-02-06T04:48:32.092314+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-20-02-06T04:48:32.092324+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.12.2/lib/puma/cli.rb:80:in `run' 532020-02-06T04:48:32.092327+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.12.2/bin/puma:10:in `<top (required)>' 542020-02-06T04:48:32.092330+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/bin/puma:23:in `load' 552020-02-06T04:48:32.092332+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/bin/puma:23:in `<top (required)>' 562020-02-06T04:48:32.201689+00:00 heroku[web.1]: State changed from starting to crashed 572020-02-06T04:48:32.185038+00:00 heroku[web.1]: Process exited with status 1 582020-02-06T04:51:00.000000+00:00 app[api]: Build started by user @icloud.com 592020-02-06T04:51:37.075987+00:00 heroku[web.1]: State changed from crashed to starting 602020-02-06T04:51:36.733602+00:00 app[api]: Release v13 created by user @icloud.com 612020-02-06T04:51:36.733602+00:00 app[api]: Deploy f21e0e9b by user @icloud.com 622020-02-06T04:51:44.062881+00:00 heroku[web.1]: Starting process with command `bundle exec puma -C config/puma.rb` 632020-02-06T04:51:43.000000+00:00 app[api]: Build succeeded 642020-02-06T04:51:46.690681+00:00 app[web.1]: [4] Puma starting in cluster mode... 652020-02-06T04:51:46.690716+00:00 app[web.1]: [4] * Version 3.12.2 (ruby 2.6.5-p114), codename: Llamas in Pajamas 662020-02-06T04:51:46.690719+00:00 app[web.1]: [4] * Min threads: 5, max threads: 5 672020-02-06T04:51:46.690721+00:00 app[web.1]: [4] * Environment: production 682020-02-06T04:51:46.690723+00:00 app[web.1]: [4] * Process workers: 2 692020-02-06T04:51:46.690725+00:00 app[web.1]: [4] * Preloading application 702020-02-06T04:51:51.125588+00:00 app[web.1]: [4] * Listening on tcp://0.0.0.0:10302 712020-02-06T04:51:51.125604+00:00 app[web.1]: [4] ! WARNING: Detected 1 Thread(s) started in app boot: 722020-02-06T04:51:51.126094+00:00 app[web.1]: [4] ! #<Thread:0x000055aa8af1a588@/app/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:299 sleep> - /app/vendor/bundle/ruby/2.6.0/gems/activerecord-5.2.4.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:301:in `sleep' 732020-02-06T04:51:51.126192+00:00 app[web.1]: [4] Use Ctrl-C to stop 742020-02-06T04:51:51.126630+00:00 app[web.1]: bundler: failed to load command: puma (/app/vendor/bundle/ruby/2.6.0/bin/puma) 752020-02-06T04:51:51.126637+00:00 app[web.1]: Errno::ENOENT: No such file or directory @ rb_sysopen - tmp/pids/server.pid 762020-02-06T04:51:51.126640+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-020-02-06T04:51:51.126651+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.12.2/lib/puma/launcher.rb:186:in `run' 772020-02-06T04:51:51.126653+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.12.2/lib/puma/cli.rb:80:in `run' 782020-02-06T04:51:51.126655+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/puma-3.12.2/bin/puma:10:in `<top (required)>' 792020-02-06T04:51:51.126657+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/bin/puma:23:in `load' 802020-02-06T04:51:51.126660+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/bin/puma:23:in `<top (required)>' 812020-02-06T04:51:51.275915+00:00 heroku[web.1]: State changed from starting to crashed 822020-02-06T04:51:51.252941+00:00 heroku[web.1]: Process exited with status 1 832020-02-06T04:51:54.114906+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=.com request_id= " dyno= connect= service= status=503 bytes= protocol=https 842020-02-06T04:51:54.773062+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=.com request_id=a7544bbc-eeee-4b43-983b-5d3d89e103d2 fwd="106.154.130.117" dyno= connect= service= status=503 bytes= protocol=https 85 ! Log stream timed out. Please try again.

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

自己解決

#environment ENV.fetch("RAILS_ENV") { "development" }
コメントアウトにすることで解決。

投稿2020/02/06 10:17

tori315

総合スコア21

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問