72

I'm trying to deploy my app to heroku, currently using the free tier. Over the past 5 days I've been redeploying the app as I made changes. I went overzealous with the deploys and now my app is up to version 35 on heroku under the "activity" tab.

Now the error message in the title prevents me from deploying my app. Google search didn't return a thing. If I have reached the deployment limit how do I delete/free up my concurrent build space?

kshatriiya
  • 1,129
  • 2
  • 10
  • 19
  • As of the last few days, I've had a few students who were getting this error message, and I got on their Heroku CLIs and verified there were no builds running on any of their apps. I'm 99% sure that in that case, it's just a Heroku system bug. – JCollier Aug 31 '22 at 20:34

13 Answers13

109

For my case, heroku restart worked.

Yigit Alparslan
  • 1,377
  • 1
  • 8
  • 13
72

We can cancel the current build. Or any ongoing build using below

heroku builds:cancel

You can check the list of builds using

heroku builds

Or you can cancel any build using build hash from the above result list.

In case builds command not working, you need to install it using

heroku plugins:install heroku-builds

Mukesh Singh Rathaur
  • 12,577
  • 2
  • 23
  • 24
  • 3
    I get `Warning: builds is not a heroku command.` with `heroku builds`. Wait, did not read until the end, now I installed the build plugin and it works.. – Timo Feb 06 '22 at 14:00
  • 1
    heroku builds:cancel worked for me. – Luccin Sep 02 '22 at 22:01
70

I had to try two of these answers back-to-back. Individually, they didn't work for me.

I needed to install heroku-builds with

heroku plugins:install heroku-builds

Then cancel the ongoing build with

heroku builds:cancel

And finally did a heroku restart.

lizziepika
  • 3,231
  • 1
  • 14
  • 23
  • 2
    This worked for me. Thanks. When you run `heroku builds:cancel` you may get the outout: `Can only cancel pending builds. Build c20a59ad-d093-4c04-bc70-85ec62f1da00 has status 'failed'`, don't panic, just run the `heroku restart` command next, and the build will start. – Promise Preston Feb 12 '21 at 15:57
38

Finally, I managed to resolve an issue with the help of the following 3 commands and it works:-

$ heroku plugins:install heroku-builds
$ heroku builds:cancel
$ heroku restart
Vikas Dwivedi
  • 5,233
  • 1
  • 21
  • 16
13

Try this command from your project directory

heroku restart
Sarath Chandran
  • 189
  • 1
  • 7
5

Now you have to verify your account, putting your credit card in Heroku Account.

"Unverified accounts can now run only one build at a time across all their apps. Verifying the account will automatically lift this limit."

see: https://devcenter.heroku.com/changelog-items/1344

Bruno Souza
  • 61
  • 1
  • 2
5

I managed by mistake to cancele the build in the terminal by ctrl+c, but the build at heroku account was still running.

The correct way is:

If didn't installed earlier:

heroku plugins:install heroku-builds

And then:

heroku builds:cancel -a YOUR_HEROKU_APP_NAME

Saar Seri
  • 61
  • 1
  • 4
4

The Heroku said "Engineers are investigating API availability. This may affect Dashboard, CLI commands, builds and other aspects of the platform." I think this is the reason.

4

This helped me "Restart all dynos"

enter image description here

enter image description here

atazmin
  • 4,757
  • 1
  • 32
  • 23
1

Try to:

  • Try to check https://devcenter.heroku.com/changelog-items/1344 for important logs

  • Try to reinstall your app(%65 works)

  • Try to create a new account(%100 works)

Community
  • 1
  • 1
0

Pushing too many time a day to GitHub with auto redeploy will result to this error. The simplest solution is to delete your app on Heroku, create a new one and redeploy. Make sure your commit to GitHub has "Node" and "NPM" or "YARN" versions specified within the engines parameter in your package.json file.

Deleting and redeploying is the easiest bypass.

I don't think you need to verify your account using your credit/debit card. Especially on a personal account. Scope include minimum viable products (MVPs), personal projects or proof of concepts.

`

"name": "app name",

"version": "1.1.0",

"private": true or false,

 "engines": {

  "node": "16.14.0",

  "npm": "8.3.1"

},

`

Jobajuba
  • 836
  • 7
  • 16
-1

This also happens if you have your repo connected and set to auto-deploy.

I had this issue since I had just updated my repo, heroku had started a build already. So when you tell it to build there's already a build going on.

The solution is just to wait until the build finishes, or at least that solved it for me.

Avi Granite
  • 27
  • 1
  • 5
-2

If you are a little noob like me who just ran out of all deploys available. Just create a new app and the problem is then solved! Simple!