“git push”: slug compilation hangs

非 Y 不嫁゛ 提交于 2019-11-29 18:45:32

问题


This issue started today for no apparent reason. When I do git push dev master for my Django project, I sometimes get a hang after the program says "installing dependencies with pip":

Counting objects: 11, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 643 bytes, done.
Total 7 (delta 5), reused 0 (delta 0)

-----> Python app detected
-----> No runtime.txt provided; assuming python-2.7.4.
-----> Using Python runtime (python-2.7.4)
-----> Installing dependencies using Pip (1.3.1)

After 15 minutes of hanging, compilation times out.

Then I run the same command again (without having changed anything), and it works. I suspected it was a problem installing one of the modules in my requirements.txt file, but I made that file empty and the problem still occurs.

My logs just show this:

heroku[slug-compiler]: Slug compilation started

Any ideas how I can troubleshoot this?


回答1:


A bit of a far shot, but ... you could try

git fsck --full --strict

to make sure your repository is healthy.



来源:https://stackoverflow.com/questions/18550219/git-push-slug-compilation-hangs

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