Heroku: cannot run more than 1 free size speakers

I tried to run

heroku run rake db:migrate 

And got an error

Cannot start more than 1 free-size speakers. The following describes how to fix ...

+54
ruby-on-rails heroku heroku-toolbelt
Jan 11 '16 at 17:30
source share
4 answers

The answer is to search for any open heroic sessions (you can use "heroku ps", as John points out below), in my case I already started the console console 30 minutes earlier and just forgot about it. Therefore, if you see that the error "Cannot start more than 1 different size" simply closes any existing hero console or other sessions that you opened.

Hope this saves someone the ten minutes it took me to recover.

+100
Jan 11 '16 at 17:30
source share

Most effective

when starting the console:

 heroku ps 

The result looks something like this:

 run.4859 (Free): up 2016/01/12 21:28:41 (~ 7m ago): rails c 

Thus, the numbers 4859 represent a session that is open and must be closed. To fix the error, you need to run (Obviusly, replace the number 4859 with the received number):

 heroku ps:stop run.4859 

This is a very simple solution.

+67
Nov 15 '16 at 19:40
source share

Had the same problem and came to this page. Once you understand what is happening, but want to add the following.

just run

 heroku kill DYNO --app your_app_name 

After that, close all open consoles.

Then run the db migrate command, it will work.

+4
Jul 26 '16 at 3:14
source share

In my case, I ran heroku ps:restart to restart all dynos, and the heroku run * heroku run * again heroku run * .

Examples

If you have only one Git remote for Heroku, use this:

heroku ps:restart && heroku run *

If you have several Git remotes for Heroku, use this:

heroku ps:restart --remote your-remote-name && heroku run * --remote your-remote-name

OR

heroku ps:restart --app your-heroku-app-name && heroku run * --app your-heroku-app-name

Replace * your command, for example, console for the Rails console.




What I meant by your-heroku-app-name is a subdomain for your Heroku application. For example, if the URL of your application is https://cute-cat.herokuapp.com , this means that your-heroku-app-name is cute-cat .

If you are not sure / forgot how your name is Git remote for Heroku, git remote -v can help you with this.

Example:

 $ git remote -v this-is-the-remote-name https://git.heroku.com/xxx.git (fetch) this-is-the-remote-name https://git.heroku.com/xxx.git (push) this-is-another-remote-name https://git.heroku.com/yyy.git (fetch) this-is-another-remote-name https://git.heroku.com/yyy.git (push) 
0
Dec 11 '18 at 20:19
source share



All Articles