tonycoco / heroku-buildpack-ember-cli

A Heroku Buildpack for Ember CLI Applications
MIT License
321 stars 121 forks source link

Failed to detect set buildpack #115

Closed igorrKurr closed 8 years ago

igorrKurr commented 8 years ago

Hi! I have problem with using this buildpack. It seems like heroku can't fetch ot for some reason. Here what i did:

>>heroku buildpacks:set https://github.com/tonycoco/heroku-buildpack-ember-cli                                   ⏎
Buildpack set. Next release on pacific-brook-4652 will use https://github.com/tonycoco/heroku-buildpack-ember-cli.
Run git push heroku master to create a new release using this buildpack.

>>git push heroku master
Counting objects: 3, done.
Writing objects: 100% (3/3), 233 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Fetching set buildpack https://github.com/tonycoco/heroku-buildpack-ember-cli... done
remote:
remote:  !     Push rejected, failed to detect set buildpack https://github.com/tonycoco/heroku-buildpack-ember-cli
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote:
remote: Verifying deploy...
remote:
remote: !   Push rejected to pacific-brook-4652.
remote:
To https://git.heroku.com/pacific-brook-4652.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/pacific-brook-4652.git'

My heroku toolbelt version command shows next:

heroku-toolbelt/3.42.20 (x86_64-darwin10.8.0) ruby/1.9.3
heroku-cli/4.27.2-eb1b3ca (amd64-darwin) go1.5.1
=== Installed Plugins
heroku-apps@0.5.4
heroku-cli-addons@0.1.0
heroku-fork@4.0.0
heroku-git@2.4.3
heroku-local@4.1.5
heroku-repo
heroku-run@2.9.1
heroku-status@1.2.2
lucascampbell commented 8 years ago

+1

superchris commented 8 years ago

+1

lucascampbell commented 8 years ago

usually running heroku repo:purge_cache -a APPNAME fixes this issue. doesn't seem to help today

lucascampbell commented 8 years ago

working now.

dahoo commented 8 years ago

I have the same error. heroku repo:purge_cache -a APPNAME fails with

...
~/tmp/repo_tmp $ cd unpack
~/tmp/repo_tmp/unpack $ tar -zxf ../repo-cache.tgz

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Any idea?

tonycoco commented 8 years ago

Could you paste the entire output log? Have you set heroku buildpacks:set https://github.com/tonycoco/heroku-buildpack-ember-cli? And have you then run heroku repo:purge_cache -a APPNAME

dahoo commented 8 years ago

Yes, here's what I did:

> heroku create APPNAME --buildpack https://github.com/tonycoco/heroku-buildpack-ember-cli
Creating APPNAME... done, stack is cedar-14
Buildpack set. Next release on APPNAME will use https://github.com/tonycoco/heroku-buildpack-ember-cli.
https://APPNAME.herokuapp.com/ | https://git.heroku.com/APPNAME.git
> heroku plugins:install https://github.com/heroku/heroku-repo.git
Installing https://github.com/heroku/heroku-repo.git... done
> heroku repo:purge_cache -a APPNAME
Running bash on APPNAME... up, run.6set -e
mkdir -p tmp/repo_tmp/unpack
cd tmp/repo_t938
mp
curl -o repo-cache.tgz 'https://s3-external-1.amazonaws.com/heroku_repos/heroku.com/cache/44149283.tgz?AWSAccessKeyId=AKIAJWLOWWHPBWQOPJZQ&Signature=cAd3jG9vEhs849ESs%2FIsrUpeWyI%3D&Expires=1448114656'
cd unpack
tar -zxf ../repo-cache.tgz
METADATA="vendor/heroku"
if [ -d "$METADATA" ]; then
  TMPDIR=`mktemp -d`
  cp -rf $METADATA $TMPDIR
fi
cd ..
rm -rf unpack
mkdir unpack
cd unpack
TMPDATA="$TMPDIR/heroku"
VENDOR="vendor"
if [ -d "$TMPDATA" ]; then
  mkdir $VENDOR
  cp -rf $TMPDATA $VENDOR
  rm -rf $TMPDIR
fi
tar -zcf ../cache-repack.tgz .
curl -o /dev/null --upload-file ../cache-repack.tgz 'https://s3-external-1.amazonaws.com/heroku_repos/heroku.com/cache/44149283.tgz?AWSAccessKeyId=AKIAJWLOWWHPBWQOPJZQ&Signature=vSbwLR1gVUcDg%2BiggOarWJE27wQ%3D&Expires=1448114656'
exit
~ $ set -e
~ $ mkdir -p tmp/repo_tmp/unpack
~ $ cd tmp/repo_tmp
ature=cAd3jG9vEhs849ESs%2FIsrUpeWyI%3D&Expires=1448114656'AJWLOWWHPBWQOPJZQ&Sign 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   300    0   300    0     0   7585      0 --:--:-- --:--:-- --:--:--  7692
~/tmp/repo_tmp $ cd unpack
~/tmp/repo_tmp/unpack $ tar -zxf ../repo-cache.tgz

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
tonycoco commented 8 years ago

I'll have to try to reproduce this

dahoo commented 8 years ago

It works now for some reason...

tdubb commented 8 years ago

I just ran into the same issue:

screen shot 2015-12-13 at 6 16 11 pm
uttamraj143 commented 8 years ago

@dahoo : I tried your commands I am still getting the same issue.