heroku outputs “error fetching custom buildpack”, but only sometimes

跟風遠走 提交于 2019-12-07 06:28:57

问题


I have a Django project hosted on Heroku with a buildpack forked from cirlabs/heroku-buildpack-geodjango. Sometimes when I push to Heroku it responds with

Counting objects: 16, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (9/9), done.
Writing objects: 100% (9/9), 790 bytes, done.
Total 9 (delta 7), reused 0 (delta 0)

-----> Heroku receiving push
-----> Fetching custom buildpack... failed
 !     Heroku push rejected, error fetching custom buildpack

To git@heroku.com:taplister-staging.git
 ! [remote rejected] dev -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:heroku-app.git'

I'm wondering if this may be an error with the buildpack itself, or if it's something about how Heroku interacts with github?

Oh, also among my heroku config is the buildpack URL

BUILDPACK_URL:              https://github.com/taplister/heroku-buildpack-geodjango

Any insights are greatly appreciated.


回答1:


This occasionally happens. Since you're using a custom buildpack, each time you push Heroku will download the buildpack over Git, and then use it to process your build.

Sometimes, depending on issues (network latency, temporary downtime, whatever) Heroku just won't be able to finish the Git clone, and will fail with the above error.

This is a known issue, and the only way around it is to retry the push.



来源:https://stackoverflow.com/questions/11893836/heroku-outputs-error-fetching-custom-buildpack-but-only-sometimes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!