Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku push: gzip stdin not in gzip format

When I try to push an update to Heroku in one of my PHP apps I get the following problem:

Counting objects: 25, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (12/12), done.
Writing objects: 100% (13/13), 1.20 KiB, done.
Total 13 (delta 10), reused 0 (delta 0)

-----> Heroku receiving push
-----> Fetching custom buildpack... done
-----> PHP app detected
-----> Run Sitebase buildpack
-----> Bundling Apache version 2.2.22

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Exiting with failure status due to previous errors
! Heroku push rejected, failed to compile Php app

To [email protected]:x
! [remote rejected] feature-removeapi -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:x'

Never had this problem before so I totally don't have a clue what the problem can be. Is it possible that this is a bug on Heroku's side?

If I look in the Heroku logs I also see the following line:

Slug compilation failed: failed to compile Php app

All help is welcome.

like image 472
Wim Mostmans Avatar asked Jul 18 '12 14:07

Wim Mostmans


2 Answers

I my cases that I had this problem it seemed to be a Heroku problem. Just waiting 10 minutes or so did the trick for me.

like image 115
Wim Mostmans Avatar answered Nov 20 '22 21:11

Wim Mostmans


After so many years and still, this issue occurs. Btw: My fix was to pin to a specific version as mentioned here:

heroku buildpacks:set https://github.com/heroku/heroku-buildpack-nodejs#v75 -a my-app

like image 34
Saravanan V Avatar answered Nov 20 '22 22:11

Saravanan V