Help us understand the problem. What is going on with this article?

Herokuで"Run console" が実行できなくなってしまったときの対処法

More than 1 year has passed since last update.

この記事の目的

  1. Herokuで"Run console"を実行しようと試みた際に、下記エラーが出た場合の対処法を知る。
Cannot run more than 1 Free size dynos.

対処法

  1. 現在動いているプロセスを確認するため、下記コマンドをローカルにて実行します。
$ heroku ps 

2. コマンド実行後、下記のように稼働中の one-off processesが確認できた場合、
該当プロセスを止める必要があります。

$ heroku ps
Free dyno hours quota remaining this month: 978h 53m (97%)
Free dyno usage for this app: 20h 4m (2%)
For more information on dyno sleeping and how to upgrade, see:
https://devcenter.heroku.com/articles/dyno-sleeping

=== run: one-off processes (1)
run.2767 (Free): up 2018/11/23 21:06:53 +0900 (~ 9m ago): bash

=== web (Free): node server.js (1)
web.1: up 2018/11/23 21:12:24 +0900 (~ 4m ago)

  1. 下記コマンドで、プロセスIDを指定して該当プロセスを終了します。
$ heroku ps:stop run.2767(プロセスID)

参考

こちらのページを参考にしました。

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away