{"id":7665,"date":"2022-01-19T06:03:32","date_gmt":"2022-01-18T21:03:32","guid":{"rendered":"https:\/\/yumishin.com\/?p=7665"},"modified":"2022-01-19T06:03:32","modified_gmt":"2022-01-18T21:03:32","slug":"heorku","status":"publish","type":"post","link":"https:\/\/yumishin.com\/?p=7665","title":{"rendered":"\u300cheroku run\u300d\u3067ETIMEDOUT\u30a8\u30e9\u30fc"},"content":{"rendered":"<p>\u3069\u3046\u3082\u3002\u4eca\u56de\u306f<code>heroku run<\/code>\u3067<code>ETIMEDOUT<\/code>\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3057\u305f\u306e\u3067\u3001\u305d\u308c\u306b\u3064\u3044\u3066\u306e\u5bfe\u51e6\u6cd5\u3092\u66f8\u3044\u3066\u304a\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h2 id=\"i-0\">\u3010Heorku\u3011\u300cheroku run\u300d\u3067ETIMEDOUT\u30a8\u30e9\u30fc<\/h2>\n<h3 id=\"i-1\">\u7d50\u8ad6<\/h3>\n<p>\u7d50\u8ad6\u304b\u3089\u8a00\u3046\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3061\u8fbc\u3081\u3070OK\u3067\u3059\u3002<\/p>\n<p><code>heroku run:detached rails db:migrate<\/code><\/p>\n<p>\u53c2\u8003\uff1a<a href=\"https:\/\/qiita.com\/Moo_Moo_Farm\/items\/7b68ca43cb7370cfcfc8\">\u300cheroku run\u300d\u3067\u767a\u751f\u3059\u308bETIMEDOUT\u306e\u539f\u56e0\u3068\u89e3\u6c7a\u65b9\u6cd5\u306b\u3064\u3044\u3066<\/a><\/p>\n<hr>\n<p>\u4ee5\u4e0b\u306f\u30a8\u30e9\u30fc\u6642\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002<\/p>\n<div class=\"pre_tag\"><span><i class=\"fa fa-code\"><\/i> \u30b3\u30fc\u30c9<\/span><\/p>\n<pre><code>\n$ heroku container:login # \u3044\u3064\u3082\u901a\u308a\u30ed\u30b0\u30a4\u30f3\nLogin Succeeded\n\n$ heroku container:push web # \u3044\u3064\u3082\u901a\u308a\u30b3\u30f3\u30c6\u30ca\u30d7\u30c3\u30b7\u30e5\nYour image has been successfully pushed. You can now release it with the 'container:release' command.\n\n$ heroku container:release web # \u30ea\u30ea\u30fc\u30b9\nReleasing images web to shielded-plains-89486... done\n\n$ heroku open\n\n$ heroku run rails db:migrate # migrate\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u3001\u3001\u3001ETIMEDOUT\u30a8\u30e9\u30fc\nRunning rails db:migrate on \u2b22 shielded-plains-89486... done\nError: connect ETIMEDOUT 44.194.22.218:5000\n\n$ heroku run rails db:create # \u307e\u305f\u3057\u3066\u3082\u30a8\u30e9\u30fc\u3002\u30ed\u30b0\u306e\u78ba\u8a8d\u3078\u3002\nRunning rails db:create on \u2b22 shielded-plains-89486... done\nError: connect ETIMEDOUT 44.193.194.211:5000\n\n$ heroku logs -t # \u30ed\u30b0\u78ba\u8a8d\n2022-01-08T21:31:24.169881+00:00 app[web.1]: web-console (4.2.0) lib\/web_console\/middleware.rb:17:in `call'\n2022-01-08T21:31:24.169882+00:00 app[web.1]: actionpack (7.0.0) lib\/action_dispatch\/middleware\/show_exceptions.rb:26:in `call'\n2022-01-08T21:31:24.169882+00:00 app[web.1]: railties (7.0.0) lib\/rails\/rack\/logger.rb:36:in `call_app'\n2022-01-08T21:31:24.169882+00:00 app[web.1]: railties (7.0.0) lib\/rails\/rack\/logger.rb:25:in `block in call'\n2022-01-08T21:31:24.169883+00:00 app[web.1]: activesupport (7.0.0) lib\/active_support\/tagged_logging.rb:99:in `block in tagged'\n2022-01-08T21:31:24.169883+00:00 app[web.1]: activesupport (7.0.0) lib\/active_support\/tagged_logging.rb:37:in `tagged'\n2022-01-08T21:31:24.169883+00:00 app[web.1]: activesupport (7.0.0) lib\/active_support\/tagged_logging.rb:99:in `tagged'\n2022-01-08T21:31:24.169883+00:00 app[web.1]: railties (7.0.0) lib\/rails\/rack\/logger.rb:25:in `call'\n2022-01-08T21:31:24.169883+00:00 app[web.1]: sprockets-rails (3.4.2) lib\/sprockets\/rails\/quiet_assets.rb:13:in `call'\n2022-01-08T21:31:24.169884+00:00 app[web.1]: actionpack (7.0.0) lib\/action_dispatch\/middleware\/remote_ip.rb:93:in `call'\n2022-01-08T21:31:24.169884+00:00 app[web.1]: actionpack (7.0.0) lib\/action_dispatch\/middleware\/request_id.rb:26:in `call'\n2022-01-08T21:31:24.169885+00:00 app[web.1]: rack (2.2.3) lib\/rack\/method_override.rb:24:in `call'\n2022-01-08T21:31:24.169885+00:00 app[web.1]: rack (2.2.3) lib\/rack\/runtime.rb:22:in `call'\n2022-01-08T21:31:24.169885+00:00 app[web.1]: activesupport (7.0.0) lib\/active_support\/cache\/strategy\/local_cache_middleware.rb:29:in `call'\n2022-01-08T21:31:24.169885+00:00 app[web.1]: actionpack (7.0.0) lib\/action_dispatch\/middleware\/server_timing.rb:20:in `call'\n2022-01-08T21:31:24.169885+00:00 app[web.1]: actionpack (7.0.0) lib\/action_dispatch\/middleware\/executor.rb:14:in `call'\n2022-01-08T21:31:24.169886+00:00 app[web.1]: actionpack (7.0.0) lib\/action_dispatch\/middleware\/static.rb:23:in `call'\n2022-01-08T21:31:24.169886+00:00 app[web.1]: rack (2.2.3) lib\/rack\/sendfile.rb:110:in `call'\n2022-01-08T21:31:24.169886+00:00 app[web.1]: actionpack (7.0.0) lib\/action_dispatch\/middleware\/host_authorization.rb:137:in `call'\n2022-01-08T21:31:24.169887+00:00 app[web.1]: railties (7.0.0) lib\/rails\/engine.rb:530:in `call'\n2022-01-08T21:31:24.169887+00:00 app[web.1]: puma (5.5.2) lib\/puma\/configuration.rb:249:in `call'\n2022-01-08T21:31:24.169887+00:00 app[web.1]: puma (5.5.2) lib\/puma\/request.rb:77:in `block in handle_request'\n2022-01-08T21:31:24.169887+00:00 app[web.1]: puma (5.5.2) lib\/puma\/thread_pool.rb:340:in `with_force_shutdown'\n2022-01-08T21:31:24.169887+00:00 app[web.1]: puma (5.5.2) lib\/puma\/request.rb:76:in `handle_request'\n2022-01-08T21:31:24.169888+00:00 app[web.1]: puma (5.5.2) lib\/puma\/server.rb:447:in `process_client'\n2022-01-08T21:31:24.169888+00:00 app[web.1]: puma (5.5.2) lib\/puma\/thread_pool.rb:147:in `block in spawn_thread'\n2022-01-08T21:31:24.303912+00:00 heroku[router]: at=info method=GET path=\"\/\" host=shielded-plains-89486.herokuapp.com request_id=a1c351db-19a5-48b1-ad6e-6e167e4731c9 fwd=\"165.76.248.90\" dyno=web.1 connect=0ms service=1200ms status=500 bytes=64142 protocol=https\n2022-01-08T21:31:24.995033+00:00 heroku[router]: at=info method=GET path=\"\/favicon.ico\" host=shielded-plains-89486.herokuapp.com request_id=ac7bd07e-b182-42fa-8051-b101155dadc0 fwd=\"165.76.248.90\" dyno=web.1 connect=0ms service=4ms status=200 bytes=143 protocol=https\n2022-01-08T21:33:04.900308+00:00 app[api]: Starting process with command `rails db:migrate` by user shinjia305@gmail.com\n2022-01-08T21:33:21.788262+00:00 heroku[run.8248]: State changed from starting to up\n2022-01-08T21:33:21.857901+00:00 heroku[run.8248]: Awaiting client\n2022-01-08T21:33:51.887806+00:00 heroku[run.8248]: Error R13 (Attach error) -&gt; Failed to attach to process\n2022-01-08T21:33:51.889077+00:00 heroku[run.8248]: Process exited with status 128\n2022-01-08T21:33:51.955757+00:00 heroku[run.8248]: State changed from up to complete\n2022-01-08T21:34:42.673063+00:00 app[api]: Starting process with command `rails db:create` by user shinjia305@gmail.com\n2022-01-08T21:34:59.014953+00:00 heroku[run.4983]: Awaiting client\n2022-01-08T21:34:59.154956+00:00 heroku[run.4983]: State changed from starting to up\n2022-01-08T21:35:29.046147+00:00 heroku[run.4983]: Error R13 (Attach error) -&gt; Failed to attach to process\n2022-01-08T21:35:29.046954+00:00 heroku[run.4983]: Process exited with status 128\n2022-01-08T21:35:29.097120+00:00 heroku[run.4983]: State changed from up to complete\n2022-01-08T21:35:57.593158+00:00 app[web.1]: Started GET \"\/\" for 165.76.248.90 at 2022-01-08 21:35:57 +0000\n2022-01-08T21:35:57.593910+00:00 app[web.1]: Cannot render console from 165.76.248.90! Allowed networks: 127.0.0.0\/127.255.255.255, ::1\n2022-01-08T21:35:57.603323+00:00 app[web.1]: ActiveRecord::SchemaMigration Pluck (1.1ms)  SELECT \"schema_migrations\".\"version\" FROM \"schema_migrations\" ORDER BY \"schema_migrations\".\"version\" ASC\n2022-01-08T21:35:57.607490+00:00 app[web.1]: CACHE ActiveRecord::SchemaMigration Pluck (0.0ms)  SELECT \"schema_migrations\".\"version\" FROM \"schema_migrations\" ORDER BY \"schema_migrations\".\"version\" ASC\n2022-01-08T21:35:57.608501+00:00 app[web.1]: \n2022-01-08T21:35:57.608502+00:00 app[web.1]: ActiveRecord::PendingMigrationError (\n2022-01-08T21:35:57.608502+00:00 app[web.1]: \n2022-01-08T21:35:57.608504+00:00 app[web.1]: Migrations are pending. To resolve this issue, run:\n2022-01-08T21:35:57.608504+00:00 app[web.1]: \n2022-01-08T21:35:57.608505+00:00 app[web.1]: bin\/rails db:migrate RAILS_ENV=development\n2022-01-08T21:35:57.608505+00:00 app[web.1]: \n2022-01-08T21:35:57.608506+00:00 app[web.1]: You have 1 pending migration:\n2022-01-08T21:35:57.608507+00:00 app[web.1]: \n2022-01-08T21:35:57.608507+00:00 app[web.1]: 20220104113349_create_users.rb\n2022-01-08T21:35:57.608508+00:00 app[web.1]: \n2022-01-08T21:35:57.608508+00:00 app[web.1]: \n2022-01-08T21:35:57.608509+00:00 app[web.1]: ):\n2022-01-08T21:35:57.608509+00:00 app[web.1]: \n2022-01-08T21:35:57.608510+00:00 app[web.1]: activerecord (7.0.0) lib\/active_record\/migration.rb:627:in `check_pending!'\n2022-01-08T21:35:57.608511+00:00 app[web.1]: activerecord (7.0.0) lib\/active_record\/migration.rb:592:in `block (2 levels) in call'\n2022-01-08T21:35:57.608512+00:00 app[web.1]: activesupport (7.0.0) lib\/active_support\/file_update_checker.rb:83:in `execute'\n2022-01-08T21:35:57.608512+00:00 app[web.1]: activerecord (7.0.0) lib\/active_record\/migration.rb:597:in `block in call'\n2022-01-08T21:35:57.608513+00:00 app[web.1]: activerecord (7.0.0) lib\/active_record\/migration.rb:589:in `synchronize'\n2022-01-08T21:35:57.608513+00:00 app[web.1]: activerecord (7.0.0) lib\/active_record\/migration.rb:589:in `call'\n2022-01-08T21:35:57.608514+00:00 app[web.1]: actionpack (7.0.0) lib\/action_dispatch\/middleware\/callbacks.rb:27:in `block in call'\n2022-01-08T21:35:57.608514+00:00 app[web.1]: activesupport (7.0.0) lib\/active_support\/callbacks.rb:99:in `run_callbacks'\n2022-01-08T21:35:57.608515+00:00 app[web.1]: actionpack (7.0.0) lib\/action_dispatch\/middleware\/callbacks.rb:26:in `call'\n2022-01-08T21:35:57.608515+00:00 app[web.1]: actionpack (7.0.0) lib\/action_dispatch\/middleware\/executor.rb:14:in `call'\n2022-01-08T21:35:57.608516+00:00 app[web.1]: actionpack (7.0.0) lib\/action_dispatch\/middleware\/actionable_exceptions.rb:17:in `call'\n2022-01-08T21:35:57.608516+00:00 app[web.1]: actionpack (7.0.0) lib\/action_dispatch\/middleware\/debug_exceptions.rb:28:in `call'\n2022-01-08T21:35:57.608517+00:00 app[web.1]: web-console (4.2.0) lib\/web_console\/middleware.rb:132:in `call_app'\n2022-01-08T21:35:57.608517+00:00 app[web.1]: web-console (4.2.0) lib\/web_console\/middleware.rb:19:in `block in call'\n2022-01-08T21:35:57.608518+00:00 app[web.1]: web-console (4.2.0) lib\/web_console\/middleware.rb:17:in `catch'\n2022-01-08T21:35:57.608518+00:00 app[web.1]: web-console (4.2.0) lib\/web_console\/middleware.rb:17:in `call'\n2022-01-08T21:35:57.608519+00:00 app[web.1]: actionpack (7.0.0) lib\/action_dispatch\/middleware\/show_exceptions.rb:26:in `call'\n2022-01-08T21:35:57.608520+00:00 app[web.1]: railties (7.0.0) lib\/rails\/rack\/logger.rb:36:in `call_app'\n2022-01-08T21:35:57.608520+00:00 app[web.1]: railties (7.0.0) lib\/rails\/rack\/logger.rb:25:in `block in call'\n2022-01-08T21:35:57.608521+00:00 app[web.1]: activesupport (7.0.0) lib\/active_support\/tagged_logging.rb:99:in `block in tagged'\n2022-01-08T21:35:57.608521+00:00 app[web.1]: activesupport (7.0.0) lib\/active_support\/tagged_logging.rb:37:in `tagged'\n2022-01-08T21:35:57.608522+00:00 app[web.1]: activesupport (7.0.0) lib\/active_support\/tagged_logging.rb:99:in `tagged'\n2022-01-08T21:35:57.608522+00:00 app[web.1]: railties (7.0.0) lib\/rails\/rack\/logger.rb:25:in `call'\n2022-01-08T21:35:57.608523+00:00 app[web.1]: sprockets-rails (3.4.2) lib\/sprockets\/rails\/quiet_assets.rb:13:in `call'\n2022-01-08T21:35:57.608523+00:00 app[web.1]: actionpack (7.0.0) lib\/action_dispatch\/middleware\/remote_ip.rb:93:in `call'\n2022-01-08T21:35:57.608524+00:00 app[web.1]: actionpack (7.0.0) lib\/action_dispatch\/middleware\/request_id.rb:26:in `call'\n2022-01-08T21:35:57.608524+00:00 app[web.1]: rack (2.2.3) lib\/rack\/method_override.rb:24:in `call'\n2022-01-08T21:35:57.608525+00:00 app[web.1]: rack (2.2.3) lib\/rack\/runtime.rb:22:in `call'\n2022-01-08T21:35:57.608525+00:00 app[web.1]: activesupport (7.0.0) lib\/active_support\/cache\/strategy\/local_cache_middleware.rb:29:in `call'\n2022-01-08T21:35:57.608526+00:00 app[web.1]: actionpack (7.0.0) lib\/action_dispatch\/middleware\/server_timing.rb:20:in `call'\n2022-01-08T21:35:57.608526+00:00 app[web.1]: actionpack (7.0.0) lib\/action_dispatch\/middleware\/executor.rb:14:in `call'\n2022-01-08T21:35:57.608527+00:00 app[web.1]: actionpack (7.0.0) lib\/action_dispatch\/middleware\/static.rb:23:in `call'\n2022-01-08T21:35:57.608527+00:00 app[web.1]: rack (2.2.3) lib\/rack\/sendfile.rb:110:in `call'\n2022-01-08T21:35:57.608527+00:00 app[web.1]: actionpack (7.0.0) lib\/action_dispatch\/middleware\/host_authorization.rb:137:in `call'\n2022-01-08T21:35:57.608528+00:00 app[web.1]: railties (7.0.0) lib\/rails\/engine.rb:530:in `call'\n2022-01-08T21:35:57.608528+00:00 app[web.1]: puma (5.5.2) lib\/puma\/configuration.rb:249:in `call'\n2022-01-08T21:35:57.608528+00:00 app[web.1]: puma (5.5.2) lib\/puma\/request.rb:77:in `block in handle_request'\n2022-01-08T21:35:57.608528+00:00 app[web.1]: puma (5.5.2) lib\/puma\/thread_pool.rb:340:in `with_force_shutdown'\n2022-01-08T21:35:57.608529+00:00 app[web.1]: puma (5.5.2) lib\/puma\/request.rb:76:in `handle_request'\n2022-01-08T21:35:57.608529+00:00 app[web.1]: puma (5.5.2) lib\/puma\/server.rb:447:in `process_client'\n2022-01-08T21:35:57.608529+00:00 app[web.1]: puma (5.5.2) lib\/puma\/thread_pool.rb:147:in `block in spawn_thread'\n2022-01-08T21:35:57.668811+00:00 heroku[router]: at=info method=GET path=\"\/\" host=shielded-plains-89486.herokuapp.com request_id=03f881ab-4b15-4417-9061-810b5eba17e4 fwd=\"165.76.248.90\" dyno=web.1 connect=0ms service=82ms status=500 bytes=64178 protocol=https\n\n2022-01-08T21:40:14.131748+00:00 app[api]: Starting process with command `db:migrate RAILS_ENV=development` by user shinjia305@gmail.com\n2022-01-08T21:40:33.730281+00:00 heroku[run.4480]: State changed from starting to up\n2022-01-08T21:40:35.037211+00:00 heroku[run.4480]: Awaiting client\n2022-01-08T21:41:05.069707+00:00 heroku[run.4480]: Process exited with status 128\n2022-01-08T21:41:05.142722+00:00 heroku[run.4480]: State changed from up to complete\n2022-01-08T21:41:05.070419+00:00 heroku[run.4480]: Error R13 (Attach error) -&gt; Failed to attach to process\n\n<\/code><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u3069\u3046\u3082\u3002\u4eca\u56de\u306fheroku run\u3067ETIMEDOUT\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3057\u305f\u306e\u3067\u3001\u305d\u308c\u306b\u3064\u3044\u3066\u306e\u5bfe\u51e6\u6cd5\u3092\u66f8\u3044\u3066\u304a\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 \u3010Heorku\u3011\u300cheroku run\u300d\u3067ETIMEDOUT\u30a8\u30e9\u30fc \u7d50\u8ad6 \u7d50\u8ad6\u304b\u3089\u8a00\u3046\u3068\u3001\u4ee5 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":7720,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[256],"tags":[],"class_list":{"0":"post-7665","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-it","8":"entry"},"_links":{"self":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/7665","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7665"}],"version-history":[{"count":3,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/7665\/revisions"}],"predecessor-version":[{"id":7724,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/7665\/revisions\/7724"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/media\/7720"}],"wp:attachment":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7665"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7665"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7665"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}