简体   繁体   English

CodeCommit错误Elastic Beanstalk(AWS)

[英]CodeCommit error Elastic Beanstalk (AWS)

After running 跑完之后

pip install --upgrade awsebcli

I get the following error when trying to do 尝试时我收到以下错误

eb deploy

Could not push code to the CodeCommit repository: ERROR: CommandError - An error occurred while handling git command. 无法将代码推送到CodeCommit存储库:错误:CommandError - 处理git命令时发生错误。 Error code: 128 Error: fatal: 'codecommit-origin dev' does not appear to be a git repository fatal: Could not read from remote repository. 错误代码:128错误:致命:'codecommit-origin dev'似乎不是一个致命的git存储库:无法从远程存储库读取。

Please make sure you have the correct access rights and the repository exists. 请确保您具有正确的访问权限并且存储库存在。

I can't figure out why that happened. 我无法弄清楚为什么会这样。 It seems like the connection to the automatically generated repository codecommit-origin is not working anymore. 似乎与自动生成的存储库codecommit-origin的连接不再起作用。

In the meantime, I am forced to do the following in order to update the code on Elastic Beanstalk: 在此期间,我被迫执行以下操作以更新Elastic Beanstalk上的代码:

eb codesource local eb codesource local

But that's not a long-term solution as it deactivates the automatic CodeCommit (git push). 但这不是一个长期的解决方案,因为它会停用自动CodeCommit(git push)。

Do you have any idea how to solve that issue? 你知道如何解决这个问题吗?

It happened to me when I upgraded the last version of awsebcli 3.12.2, perhaps because it introduced the following ( changelog ): 当我升级awsebcli 3.12.2的最新版本时,它发生在我身上,可能是因为它引入了以下内容( changelog ):

Fixed local-remote inconsistency observed after deployments using CodeCommit 修复了使用CodeCommit部署后观察到的本地远程不一致问题

I don't fully understand what is happening but I would suggest that you revert to the previous version with 我不完全理解发生了什么,但我建议你恢复到以前的版本

pip install -Iv awsebcli==3.12.1

This has fixed my problem and I can deploy with CodeCommit again 这解决了我的问题,我可以再次使用CodeCommit进行部署

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

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