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

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

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

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

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

MySQL

MySQL(マイエスキューエル)は、TCX DataKonsultAB社などが開発するRDBMS(リレーショナルデータベースの管理システム)です。世界で最も人気の高いシステムで、オープンソースで開発されています。MySQLデータベースサーバは、高速性と信頼性があり、Linux、UNIX、Windowsなどの複数のプラットフォームで動作することができます。

Docker

Dockerは、Docker社が開発したオープンソースのコンテナー管理ソフトウェアの1つです

Q&A

解決済

2回答

1117閲覧

Herokuにデプロイする際にrake db:migrateができない

senseIY

総合スコア281

Ruby on Rails 6

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

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

MySQL

MySQL(マイエスキューエル)は、TCX DataKonsultAB社などが開発するRDBMS(リレーショナルデータベースの管理システム)です。世界で最も人気の高いシステムで、オープンソースで開発されています。MySQLデータベースサーバは、高速性と信頼性があり、Linux、UNIX、Windowsなどの複数のプラットフォームで動作することができます。

Docker

Dockerは、Docker社が開発したオープンソースのコンテナー管理ソフトウェアの1つです

0グッド

0クリップ

投稿2022/03/28 02:19

解決したいこと

Heroku上にDockerを使用してデプロイしたのですが、heroku run bundle exec rake db:migrateが失敗してしまいます。エラーが長いので詳細はコメントで書きます

発生している問題・エラー

senseiy@senseIY-wsl:~/Portfolio$ heroku run bundle exec rake db:migrate RAILS_ENV=production -a dictum-app --trace › Warning: heroku update available from 7.59.4 to 7.60.0. Running bundle exec rake db:migrate RAILS_ENV=production --trace on ⬢ dictum-app... up, run.4841 (Free) ** Invoke db:migrate (first_time) ** Invoke db:load_config (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:load_config ** Execute db:migrate rake aborted! ActiveRecord::ConnectionNotEstablished: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) /usr/local/bundle/gems/activerecord-6.1.5/lib/active_record/connection_adapters/mysql2_adapter.rb:45:in `rescue in new_client' /usr/local/bundle/gems/activerecord-6.1.5/lib/active_record/connection_adapters/mysql2_adapter.rb:39:in `new_client' /usr/local/bundle/gems/activerecord-6.1.5/lib/active_record/connection_adapters/mysql2_adapter.rb:23:in `mysql2_connection' /usr/local/bundle/gems/activerecord-6.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:882:in `public_send' /usr/local/bundle/gems/activerecord-6.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:882:in `new_connection' /usr/local/bundle/gems/activerecord-6.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:926:in `checkout_new_connection' /usr/local/bundle/gems/activerecord-6.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:905:in `try_to_checkout_new_connection' /usr/local/bundle/gems/activerecord-6.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:866:in `acquire_connection' /usr/local/bundle/gems/activerecord-6.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:588:in `checkout' /usr/local/bundle/gems/activerecord-6.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:428:in `connection' /usr/local/bundle/gems/activerecord-6.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:1128:in `retrieve_connection' /usr/local/bundle/gems/activerecord-6.1.5/lib/active_record/connection_handling.rb:327:in `retrieve_connection' /usr/local/bundle/gems/activerecord-6.1.5/lib/active_record/connection_handling.rb:283:in `connection' /usr/local/bundle/gems/activerecord-6.1.5/lib/active_record/tasks/database_tasks.rb:237:in `migrate' /usr/local/bundle/gems/activerecord-6.1.5/lib/active_record/railties/databases.rake:92:in `block (3 levels) in <main>' /usr/local/bundle/gems/activerecord-6.1.5/lib/active_record/railties/databases.rake:90:in `each' /usr/local/bundle/gems/activerecord-6.1.5/lib/active_record/railties/databases.rake:90:in `block (2 levels) in <main>' /usr/local/bundle/gems/rake-13.0.6/lib/rake/task.rb:281:in `block in execute' /usr/local/bundle/gems/rake-13.0.6/lib/rake/task.rb:281:in `each' /usr/local/bundle/gems/rake-13.0.6/lib/rake/task.rb:281:in `execute' /usr/local/bundle/gems/rake-13.0.6/lib/rake/task.rb:219:in `block in invoke_with_call_chain' /usr/local/bundle/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize' /usr/local/bundle/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain' /usr/local/bundle/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke' /usr/local/bundle/gems/rake-13.0.6/lib/rake/application.rb:160:in `invoke_task' /usr/local/bundle/gems/rake-13.0.6/lib/rake/application.rb:116:in `block (2 levels) in top_level' /usr/local/bundle/gems/rake-13.0.6/lib/rake/application.rb:116:in `each' /usr/local/bundle/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level' /usr/local/bundle/gems/rake-13.0.6/lib/rake/application.rb:125:in `run_with_threads' /usr/local/bundle/gems/rake-13.0.6/lib/rake/application.rb:110:in `top_level' /usr/local/bundle/gems/rake-13.0.6/lib/rake/application.rb:83:in `block in run' /usr/local/bundle/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling' /usr/local/bundle/gems/rake-13.0.6/lib/rake/application.rb:80:in `run' /usr/local/bundle/gems/rake-13.0.6/exe/rake:27:in `<top (required)>' /usr/local/bundle/bin/rake:25:in `load' /usr/local/bundle/bin/rake:25:in `<top (required)>' /usr/local/lib/ruby/3.0.0/bundler/cli/exec.rb:58:in `load' /usr/local/lib/ruby/3.0.0/bundler/cli/exec.rb:58:in `kernel_load' /usr/local/lib/ruby/3.0.0/bundler/cli/exec.rb:23:in `run' /usr/local/lib/ruby/3.0.0/bundler/cli.rb:478:in `exec' /usr/local/lib/ruby/3.0.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run' /usr/local/lib/ruby/3.0.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command' /usr/local/lib/ruby/3.0.0/bundler/vendor/thor/lib/thor.rb:392:in `dispatch' /usr/local/lib/ruby/3.0.0/bundler/cli.rb:31:in `dispatch' /usr/local/lib/ruby/3.0.0/bundler/vendor/thor/lib/thor/base.rb:485:in `start' /usr/local/lib/ruby/3.0.0/bundler/cli.rb:25:in `start' /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.2.32/libexec/bundle:49:in `block in <top (required)>' /usr/local/lib/ruby/3.0.0/bundler/friendly_errors.rb:103:in `with_friendly_errors' /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.2.32/libexec/bundle:37:in `<top (required)>' /usr/local/bin/bundle:23:in `load' /usr/local/bin/bundle:23:in `<main>' Caused by: Mysql2::Error::ConnectionError: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) /usr/local/bundle/gems/mysql2-0.5.3/lib/mysql2/client.rb:90:in `connect' /usr/local/bundle/gems/mysql2-0.5.3/lib/mysql2/client.rb:90:in `initialize' /usr/local/bundle/gems/activerecord-6.1.5/lib/active_record/connection_adapters/mysql2_adapter.rb:40:in `new' /usr/local/bundle/gems/activerecord-6.1.5/lib/active_record/connection_adapters/mysql2_adapter.rb:40:in `new_client' /usr/local/bundle/gems/activerecord-6.1.5/lib/active_record/connection_adapters/mysql2_adapter.rb:23:in `mysql2_connection' /usr/local/bundle/gems/activerecord-6.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:882:in `public_send' /usr/local/bundle/gems/activerecord-6.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:882:in `new_connection' /usr/local/bundle/gems/activerecord-6.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:926:in `checkout_new_connection' /usr/local/bundle/gems/activerecord-6.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:905:in `try_to_checkout_new_connection' … … /usr/local/bundle/gems/rake-13.0.6/lib/rake/application.rb:80:in `run' /usr/local/bundle/gems/rake-13.0.6/exe/rake:27:in `<top (required)>' /usr/local/bundle/bin/rake:25:in `load' /usr/local/bundle/bin/rake:25:in `<top (required)>' /usr/local/lib/ruby/3.0.0/bundler/cli/exec.rb:58:in `load' /usr/local/lib/ruby/3.0.0/bundler/cli/exec.rb:58:in `kernel_load' /usr/local/lib/ruby/3.0.0/bundler/cli/exec.rb:23:in `run' /usr/local/lib/ruby/3.0.0/bundler/cli.rb:478:in `exec' /usr/local/lib/ruby/3.0.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run' /usr/local/lib/ruby/3.0.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command' /usr/local/lib/ruby/3.0.0/bundler/vendor/thor/lib/thor.rb:392:in `dispatch' /usr/local/lib/ruby/3.0.0/bundler/cli.rb:31:in `dispatch' /usr/local/lib/ruby/3.0.0/bundler/vendor/thor/lib/thor/base.rb:485:in `start' /usr/local/lib/ruby/3.0.0/bundler/cli.rb:25:in `start' /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.2.32/libexec/bundle:49:in `block in <top (required)>' /usr/local/lib/ruby/3.0.0/bundler/friendly_errors.rb:103:in `with_friendly_errors' /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.2.32/libexec/bundle:37:in `<top (required)>' /usr/local/bin/bundle:23:in `load' /usr/local/bin/bundle:23:in `<main>' Tasks: TOP => db:migrate

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

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

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

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

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

senseIY

2022/03/28 02:20

### 環境 ・Rails6.15 Ruby3.0.3 開発環境はDocker wsl2  ・デプロイはHerokuにしました。 ### ソースコード ``` ### dockerfile FROM ruby:3.0.3-buster ENV RAILS_ENV=production RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \ echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \ apt-get update -qq && \ apt-get install -y --no-install-recommends \ build-essential \ nodejs \ yarn WORKDIR /app COPY ./src /app # Gemfile.lockを更新するため一度bundle install RUN bundle config --local set path 'vender/bundle' RUN bundle install ENV NODE_VERSION 15.0.1 RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \ && case "${dpkgArch##*-}" in \ amd64) ARCH='x64';; \ ppc64el) ARCH='ppc64le';; \ s390x) ARCH='s390x';; \ arm64) ARCH='arm64';; \ armhf) ARCH='armv7l';; \ i386) ARCH='x86';; \ *) echo "unsupported architecture"; exit 1 ;; \ esac \ && set -ex \ && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH.tar.xz" \ && tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \ && rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" \ && ln -s /usr/local/bin/node /usr/local/bin/nodejs \ && node --version \ && npm --version COPY start.sh /start.sh RUN chmod 744 /start.sh CMD ["sh", "/start.sh"] # docker-compose.yml version: '3' services: db: image: mysql:8.0.28 container_name: "dictum_mysql" command: --default-authentication-plugin=mysql_native_password volumes: - ./src/db/mysql_data:/var/lib/mysql environment: MYSQL_ROOT_PASSWORD: password web: build: . container_name: "dictum_rails" command: /bin/bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'" volumes: - ./src:/app ports: - "3000:3000" depends_on: - db - chrome stdin_open: true tty: true environment: SELENIUM_REMOTE_URL: http://chrome:4444/wd/hub chrome: # image: selenium/standalone-chrome:latest image: selenium/standalone-chrome-debug:latest ports: - 4444:4444 - 5900:5900 #start.sh #!/bin/sh if [ "${RAILS_ENV}" = "production" ] then bundle exec rails assets:precompile fi bundle exec rails s -p ${PORT:-3000} -b 0.0.0.0 ``` # database.yml default: &default adapter: mysql2 encoding: utf8mb4 pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> username: root password: password host: db socket: /var/run/mysqld/mysqld.sock development: <<: *default database: app_development # Warning: The database defined as "test" will be erased and # re-generated from your development database when you run "rake". # Do not set this db to the same as development or production. test: <<: *default database: app_test # As with config/credentials.yml, you never want to store sensitive information, # like your database password, in your source code. If your source code is # ever seen by anyone, they now have access to your database. # # Instead, provide the password or a full connection URL as an environment # variable when you boot the app. For example: # # DATABASE_URL="mysql2://myuser:mypass@localhost/somedatabase" # # If the connection URL is provided in the special DATABASE_URL environment # variable, Rails will automatically merge its configuration values on top of # the values provided in this file. Alternatively, you can specify a connection # URL environment variable explicitly: # # production: # url: <%= ENV['MY_APP_DATABASE_URL'] %> # # Read https://guides.rubyonrails.org/configuring.html#configuring-a-database # for a full overview on how database connection configuration can be specified. # production: <<: *default database: <%= ENV['APP_DATABASE'] %> username: <%= ENV['APP_DATABASE_USERNAME'] %> password: <%= ENV['APP_DATABASE_PASSWORD'] %> host: <%= ENV['APP_DATABASE_HOST'] %> ``` ### 自分で試したことや考察など ・ローカル環境ではdocker-compose exec web bundle exec rake db:migrateは成功します。なのでherokuの設定か環境変数辺りが怪しいです。 ・Dockerではmysqlのバージョンは8系を使っていますがherokuでは5系を使っていることが原因かもしれません。5系にグレードダウンすることも考えましたが、dbの整合性がおかしくなり、問題が複雑化する可能性があると考えたのでまだやっていません。また、herokuの8系は有料なうえ、たとえ8系にしても直る保証はないのでmysqlのバージョンを変更するのはどうしても解決しない時にしたいです。 ・heroku open -a dictum-app では接続はできており一応開くことはできますが、保存した画像がでないです。 何かしらアドバイスがあればよろしくお願いいたします。
guest

回答2

0

自己解決

https://zenn.dev/noraworld/articles/heroku-rails-mysql
こちらの方の記事を参考にさせていただいたところ解決致しました。この記事の通りに記述しました。
どうやらそもそものファイルの設定が間違っていたようです。

投稿2022/03/28 07:28

senseIY

総合スコア281

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

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

0

環境

・Rails6.15 Ruby3.0.3 開発環境はDocker wsl2 
・デプロイはHerokuにしました。

ソースコード

### dockerfile FROM ruby:3.0.3-buster ENV RAILS_ENV=production RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \ echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \ apt-get update -qq && \ apt-get install -y --no-install-recommends \ build-essential \ nodejs \ yarn WORKDIR /app COPY ./src /app # Gemfile.lockを更新するため一度bundle install RUN bundle config --local set path 'vender/bundle' RUN bundle install ENV NODE_VERSION 15.0.1 RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \ && case "${dpkgArch##*-}" in \ amd64) ARCH='x64';; \ ppc64el) ARCH='ppc64le';; \ s390x) ARCH='s390x';; \ arm64) ARCH='arm64';; \ armhf) ARCH='armv7l';; \ i386) ARCH='x86';; \ *) echo "unsupported architecture"; exit 1 ;; \ esac \ && set -ex \ && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH.tar.xz" \ && tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \ && rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" \ && ln -s /usr/local/bin/node /usr/local/bin/nodejs \ && node --version \ && npm --version COPY start.sh /start.sh RUN chmod 744 /start.sh CMD ["sh", "/start.sh"] # docker-compose.yml version: '3' services: db: image: mysql:8.0.28 container_name: "dictum_mysql" command: --default-authentication-plugin=mysql_native_password volumes: - ./src/db/mysql_data:/var/lib/mysql environment: MYSQL_ROOT_PASSWORD: password web: build: . container_name: "dictum_rails" command: /bin/bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'" volumes: - ./src:/app ports: - "3000:3000" depends_on: - db - chrome stdin_open: true tty: true environment: SELENIUM_REMOTE_URL: http://chrome:4444/wd/hub chrome: # image: selenium/standalone-chrome:latest image: selenium/standalone-chrome-debug:latest ports: - 4444:4444 - 5900:5900 #start.sh #!/bin/sh if [ "${RAILS_ENV}" = "production" ] then bundle exec rails assets:precompile fi bundle exec rails s -p ${PORT:-3000} -b 0.0.0.0 # database.yml default: &default adapter: mysql2 encoding: utf8mb4 pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> username: root password: password host: db socket: /var/run/mysqld/mysqld.sock development: <<: *default database: app_development # Warning: The database defined as "test" will be erased and # re-generated from your development database when you run "rake". # Do not set this db to the same as development or production. test: <<: *default database: app_test # As with config/credentials.yml, you never want to store sensitive information, # like your database password, in your source code. If your source code is # ever seen by anyone, they now have access to your database. # # Instead, provide the password or a full connection URL as an environment # variable when you boot the app. For example: # # DATABASE_URL="mysql2://myuser:mypass@localhost/somedatabase" # # If the connection URL is provided in the special DATABASE_URL environment # variable, Rails will automatically merge its configuration values on top of # the values provided in this file. Alternatively, you can specify a connection # URL environment variable explicitly: # # production: # url: <%= ENV['MY_APP_DATABASE_URL'] %> # # Read https://guides.rubyonrails.org/configuring.html#configuring-a-database # for a full overview on how database connection configuration can be specified. # production: <<: *default database: <%= ENV['APP_DATABASE'] %> username: <%= ENV['APP_DATABASE_USERNAME'] %> password: <%= ENV['APP_DATABASE_PASSWORD'] %> host: <%= ENV['APP_DATABASE_HOST'] %>

自分で試したことや考察など

・ローカル環境ではdocker-compose exec web bundle exec rake db:migrateは成功します。なのでherokuの設定か環境変数辺りが怪しいです。
・Dockerではmysqlのバージョンは8系を使っていますがherokuでは5系を使っていることが原因かもしれません。5系にグレードダウンすることも考えましたが、dbの整合性がおかしくなり、問題が複雑化する可能性があると考えたのでまだやっていません。また、herokuの8系は有料なうえ、たとえ8系にしても直る保証はないのでmysqlのバージョンを変更するのはどうしても解決しない時にしたいです。
・heroku open -a dictum-app では接続はできており一応開くことはできますが、保存した画像がでないです。

何かしらアドバイスがあればよろしくお願いいたします。

追記

https://ja.stackoverflow.com/questions/80924/docker-compose-exec-web-bundle-exec-rake-dbmigrate%E3%82%92%E3%81%99%E3%82%8B%E3%81%A8cant-connect-to-local-my
こちらの記事を参考にさせていただき、

environment: APP_DATABASE: db

を追記し、/var/run/mysqld/mysqld.sockを削除してからもう一度トライしましたがダメでした。heroku logs --tailでログを見ると

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB). WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance. WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance. 2022-03-28T03:12:01.046652+00:00 app[web.1]: For more info visit https://webpack.js.org/guides/code-splitting/ 2022-03-28T03:12:01.046652+00:00 app[web.1]: 2022-03-28T03:12:02.186731+00:00 app[web.1]: => Booting Puma 2022-03-28T03:12:02.186740+00:00 app[web.1]: => Rails 6.1.5 application starting in production 2022-03-28T03:12:02.186741+00:00 app[web.1]: => Run `bin/rails server --help` for more startup options 2022-03-28T03:12:03.502437+00:00 app[web.1]: Puma starting in single mode... 2022-03-28T03:12:03.502456+00:00 app[web.1]: * Puma version: 5.6.2 (ruby 3.0.3-p157) ("Birdie's Version") 2022-03-28T03:12:03.502456+00:00 app[web.1]: * Min threads: 5 2022-03-28T03:12:03.502457+00:00 app[web.1]: * Max threads: 5 2022-03-28T03:12:03.502457+00:00 app[web.1]: * Environment: production 2022-03-28T03:12:03.502457+00:00 app[web.1]: * PID: 124 2022-03-28T03:12:03.502668+00:00 app[web.1]: * Listening on http://0.0.0.0:12221 2022-03-28T03:12:03.504850+00:00 app[web.1]: Use Ctrl-C to stop 2022-03-28T03:12:03.975236+00:00 heroku[web.1]: State changed from starting to up 2022-03-28T03:42:46.008467+00:00 heroku[web.1]: Idling 2022-03-28T03:42:46.010474+00:00 heroku[web.1]: State changed from up to down 2022-03-28T03:42:47.751863+00:00 heroku[web.1]: Stopping all processes with SIGTERM 2022-03-28T03:42:47.804359+00:00 app[web.1]: - Gracefully stopping, waiting for requests to finish 2022-03-28T03:42:47.923652+00:00 heroku[web.1]: Process exited with status 143 2022-03-28T03:51:19.725911+00:00 app[api]: Starting process with command `bundle exec rake db:migrate RAILS_ENV=production` by user 2022-03-28T03:52:18.146114+00:00 heroku[run.9830]: State changed from starting to up 2022-03-28T03:52:18.170659+00:00 heroku[run.9830]: Awaiting client 2022-03-28T03:52:18.187650+00:00 heroku[run.9830]: Starting process with command `bundle exec rake db:migrate RAILS_ENV=production` 2022-03-28T03:52:28.444154+00:00 heroku[run.9830]: Process exited with status 1 2022-03-28T03:52:28.492356+00:00 heroku[run.9830]: State changed from up to complete 2022-03-28T03:54:11.443184+00:00 heroku[web.1]: Unidling 2022-03-28T03:54:11.471527+00:00 heroku[web.1]: State changed from down to starting 2022-03-28T03:55:03.933842+00:00 heroku[web.1]: Starting process with command `sh /start.sh` 2022-03-28T03:55:08.662763+00:00 app[web.1]: yarn install v1.22.18 2022-03-28T03:55:08.758004+00:00 app[web.1]: [1/4] Resolving packages... 2022-03-28T03:55:09.580955+00:00 app[web.1]: [2/4] Fetching packages... 2022-03-28T03:55:26.588267+00:00 heroku[router]: at=error code=H20 desc="App boot timeout" method=GET path="/" host=dictum-app.herokuapp.com request_id=3653205c-0684-4e95-b906-99fd0cd2b7ae fwd="14.193.36.5" dyno= connect= service= status=503 bytes= protocol=https

これらのエラーが気になりました。現在調査中です。

投稿2022/03/28 02:40

編集2022/03/28 04:22
senseIY

総合スコア281

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

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

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.50%

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

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

質問する

関連した質問