Skip to content

Instantly share code, notes, and snippets.

@juvenn
Created October 27, 2009 02:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save juvenn/219251 to your computer and use it in GitHub Desktop.
Save juvenn/219251 to your computer and use it in GitHub Desktop.
heroku push error
$ git push heroku
Counting objects: 12, done.
Compressing objects: 100% (10/10), done.
Writing objects: 100% (10/10), 1.65 KiB, done.
Total 10 (delta 6), reused 0 (delta 0)
-----> Heroku receiving push
-----> Sinatra app detected
Compiled slug size is 272K
-----> Launching........................................................... failed (Heroku error)
! Previous app version is still running, try pushing again shortly
! We've been notified, see http://support.heroku.com if the problem persists
! Heroku push rejected, testfire failed
error: hooks/pre-receive exited with error code 1
To git@heroku.com:xxxxx.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:xxxxx.git'
@lexycole
Copy link

My error message:

To https://git.heroku.com/secure-coast-87433.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/secure-coast-87433.git'

@1995olayiwola
Copy link

I have the same issue
To https://git.heroku.com/evening-gorge-32513.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/evening-gorge-32513.git'

@jcmanolong21
Copy link

same here. still no fix on this

@jcmanolong21
Copy link

jcmanolong21 commented Aug 3, 2021

Hi, please try to run the command :
heroku config:set DISABLE_COLLECTSTATIC=1
before pushing to the master. hope this helps

@1995olayiwola
Copy link

1995olayiwola commented Aug 3, 2021 via email

@1995olayiwola
Copy link

1995olayiwola commented Aug 3, 2021 via email

@CarlElias
Copy link

I just resolved the issue, I discovered on bad file in the folder,that is the issue. On Tue, Aug 3, 2021 at 10:46 AM olayiwola Abdur Rahmon < @.> wrote:

Thank you, sir, but it does not solve the problem On Tue, Aug 3, 2021 at 3:00 AM jcmanolong21 @.
> wrote: > @.**** commented on this gist. > ------------------------------ > > Hi, please try to run the command : > heroku config:set DISABLE_COLLECTSTATIC=1 > before pushing to the master. hope this helps > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > https://gist.github.com/219251#gistcomment-3841870, or unsubscribe > https://github.com/notifications/unsubscribe-auth/AN3JEGV6GOQ4WH3DO5RXA4DT2642LANCNFSM5AONUWDA > . >

can i have the solution ?

@sarang997
Copy link

@mahadihassanriyadh
Copy link

I had the same issue. I had two different lock files in my folder, package-lock.json, and yarn.lock, then I deleted the yarn.lock file and it worked smoothly.

@1995olayiwola
Copy link

1995olayiwola commented Nov 24, 2021 via email

@topzera
Copy link

topzera commented Dec 4, 2021

! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/tombarbearia.git'

estou com esse erro tentando subir aplicação para o heroku

@aaaasif
Copy link

aaaasif commented Jan 13, 2022

I had the same issue. What is the solution to this error?

@sarang997
Copy link

@aaaasif I fixed it by creating a new app in heroku. Then deleting the node modules and package-lock.json. then running npm install. And then trying to push. Hope it helps

@mahadihassanriyadh
Copy link

mahadihassanriyadh commented Mar 10, 2022

I had the same issue. What is the solution to this error?

✅ I had two different lock files in my folder, package-lock.json, and yarn.lock, then I deleted the yarn.lock file and it worked smoothly.

@virenderid
Copy link

I am also facing the same issue but no luck in resolving the issue tried creating a new app but still the same issue.
Is there any solution for this error?

@kimartienda
Copy link

I had the same issue and resolved it! I just uninstall the installed packages in json that i did not use

@iamahmedshahh
Copy link

open the terminal and write

heroku buildpacks:add node/heroku

OR

heroku buildpacks:add name of the supported lanugage/heroku

If your language or framework has something similar to a requirements.txt file like in python make sure to add it

@yadavsejal19
Copy link

follow this it will help sure :
https://www.youtube.com/watch?v=KhVHsCJxe_A

@SamatovAzamat
Copy link

Shu kodni terminal (qora oynaga) kiriting heroku
config:set DISABLE_COLLECTSTATIC=1

@Ikonicity-Airban
Copy link

i have this similar issue now and heroku config:set DISABLE_COLLECTSTATIC=1 is not working any fix

@Dreptus
Copy link

Dreptus commented Aug 2, 2022

The same problem and also I can't resolve this. I've tried all of the mentioned methods but still the same Error. Please can someone put some solution?

@borenasaalbedeen
Copy link

I'm facing the same issues can someone please help me out here

@aamibhoot
Copy link

Did you updated you project version in package.json before committing?

@at-uzb
Copy link

at-uzb commented Nov 12, 2022

I am facing this while deploying my django app. I have been looking for solution for more than 5 hours

@cullkid
Copy link

cullkid commented Feb 21, 2023

Hey everyone please i am also having the same error and all the solution mentioned couldn't solve it, please someone should help me

@Siroj2978
Copy link

кто ни будь знает, откликнитесь!

@SokphornTeng
Copy link

I got the same error as above with java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment