简体   繁体   English

Elastic Beanstalk git aws.push问题

[英]Elastic Beanstalk git aws.push issues

I've started getting the following error on git aws.push when using AWS-ElasticBeanstalk-CLI-2.6.0 (version which required Ruby): 使用AWS-ElasticBeanstalk-CLI-2.6.0(需要Ruby的版本)时,我已经在git aws.push上收到以下错误:

MacBook-Pro:apps-prd katia$ git aws.push
Counting objects: 18, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (17/17), done.
Writing objects: 100% (18/18), 126.20 KiB | 0 bytes/s, done.
Total 18 (delta 10), reused 4 (delta 1)
error: RPC failed; result=22, HTTP code = 400
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

I came across this solution which suggested getting the recent version of EB Command Line tools and resetting all of the places it is referenced. 我遇到了这个解决方案该解决方案建议获取最新版本的EB命令行工具并重置所有被引用的位置。

After getting recent ASW CLI (2.6.4) and reconfiguring I am getting this message on git aws.push : 获得最新的ASW CLI(2.6.4)并重新配置后,我在git aws.push上收到此消息:

MacBook-Pro:apps-prd katia$ git aws.push
Updating the AWS Elastic Beanstalk environment eb-prescoapps-php-env...
Environment update initiated successfully.

However, it takes around 20-30 minutes (long pose between line 2 and 3) to deploy my application after every commit, whereas before it would take 1-3 minutes depending on a commit. 但是,在每次提交之后部署我的应用程序大约需要20-30分钟(第2行和第3行之间的长时间姿势),而在此之前,根据一次提交将花费1-3分钟。

Is this a standard behaviour? 这是标准行为吗? Does the whole applications gets deployed and not just the committed changes? 是否部署了整个应用程序,而不仅仅是已提交的更改? Is there a way of fixing it? 有没有解决的方法?

I just did an update to EB CLI 2.6.4 and now it's working. 我刚刚对EB CLI 2.6.4进行了更新,现在可以正常工作了。 It is a little bit slower than the previous version but no more than 2min. 它比以前的版本慢一点,但不超过2分钟。

People, If you don't want to do eb init after an upgrade to 2.6.4, you could only update the .git/config file with the following 亲爱的,如果您不想升级到2.6.4后执行eb init ,则只能使用以下命令更新.git/config文件

[alias "aws.elasticbeanstalk"]
    remote = !.git/AWSDevTools/aws.elasticbeanstalk.push --remote-url
    push = !.git/AWSDevTools/aws.elasticbeanstalk.push
    config = !.git/AWSDevTools/aws.elasticbeanstalk.config
    createapplicationversion = !.git/AWSDevTools/aws.elasticbeanstalk.createapplicationversion
[aws "endpoint"]
    us-east-1 = git.elasticbeanstalk.us-east-1.amazonaws.com
    ap-northeast-1 = git.elasticbeanstalk.ap-northeast-1.amazonaws.com
    eu-west-1 = git.elasticbeanstalk.eu-west-1.amazonaws.com
    us-west-1 = git.elasticbeanstalk.us-west-1.amazonaws.com
    us-west-2 = git.elasticbeanstalk.us-west-2.amazonaws.com
    ap-southeast-1 = git.elasticbeanstalk.ap-southeast-1.amazonaws.com
    ap-southeast-2 = git.elasticbeanstalk.ap-southeast-2.amazonaws.com
    sa-east-1 = git.elasticbeanstalk.sa-east-1.amazonaws.com
[alias "aws"]
    push = !git aws.elasticbeanstalk.push
    config = !git aws.elasticbeanstalk.config
    createapplicationversion = !git aws.elasticbeanstalk.createapplicationversion

Maybe AWS Support can confirm the above. 也许AWS Support可以确认以上内容。

Regards, 问候,

If you are still having issues, I highly recommend that you upgrade to the EB CLI 3.x . 如果仍然有问题,强烈建议您升级到EB CLI3.x。 It fixes a lot of issues that the previous version has and is a better experience. 它解决了旧版本中存在的许多问题,并且是更好的体验。

You can see what version you are running by the following: 您可以通过以下方式查看正在运行的版本:

eb --version

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM