git aws.push上的损坏包文件

时间:2012-11-02 17:27:55

标签: git amazon-web-services virtualenv elastic-beanstalk

尝试将新版本的应用程序代码(Django应用程序)部署到AWS Elastic Beanstalk环境时,我遇到以下错误:

git aws.push
Counting objects: 1648, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (970/970), done.
Writing objects: 100% (1505/1505), 336.19 KiB, done.
Total 1505 (delta 989), reused 645 (delta 436)
remote: 
remote: error: Encountered corrupt pack file: Git command exited with status code 128: error: Trying to write ref refs/heads/master with nonexistent object 8fce6c2b73f03ac271173f85026b3566ef304313
remote: fatal: Cannot update the ref 'refs/heads/master'.
remote: 
remote: 
To https://xxx:xxx@git.elasticbeanstalk.us-west-2.amazonaws.com/repos/xxx/environment-master
! [remote rejected] HEAD -> master (hook declined)
error: failed to push some refs to 'https://xxx:xxx@git.elasticbeanstalk.us-west-2.amazonaws.com/repos/xxx/environment-master'

似乎没有任何改变在我身边。在AWS方面似乎没有任何改变。几天前部署工作很好,但现在不行。

任何想法都将非常感激。谢谢!

编辑:以下是部署快照日志,其中显示了无数可能与virtualenv相关的问题:http://pastebin.com/Ec0jHt0i

1 个答案:

答案 0 :(得分:0)

可能是因为您已超过允许的最大版本数(500)。

检查部署版本数量的命令:

elastic-beanstalk-describe-application-versions |grep '| git-'|wc -l

如果超出版本数量,您可以要求Amazon Web Services团队增加应用程序限制,或者只删除过时版本。

希望它有所帮助。