git aws.push 返回错误 403

Posted

技术标签:

【中文标题】git aws.push 返回错误 403【英文标题】:git aws.push returned error 403 【发布时间】:2013-01-02 12:02:23 【问题描述】:

我正在为我在 Elastic Beanstalk 上的应用程序设置 git。我一直按照亚马逊提供的说明进行操作。推送更改后,我收到此错误

git aws.push

error: The requested URL returned error: 403 while accessing https://<Access Key             Removed>:20130117T213945Z538f1c7baf8c89b4b547cb6717aabbaa7dfab3c52e0911d71e17b06765b922b2@git.elasticbeanstalk.us-east-1.amazonaws.com/v1/repos/54696d73546573744170706c69636174696f6e/commitid/62323130316462646264373436303536343265633861333035633133633265666466393633303133/environment/54696d7374657374656e7669726f6e6d656e74/info/refs?service=git-receive-pack
fatal: HTTP request failed

这是我的 .config 文件

git 配置 -l

credential.helper=osxkeychain
user.name=Tim xxxxxxxxxx
user.email=xxxxxxxxx@gmail.com
core.bare=false
core.repositoryformatversion=0
core.filemode=true
core.logallrefupdates=true
core.ignorecase=true
aws.endpoint.us-east-1=git.elasticbeanstalk.us-east-1.amazonaws.com
aws.endpoint.ap-northeast-1=git.elasticbeanstalk.ap-northeast-1.amazonaws.com
aws.endpoint.eu-west-1=git.elasticbeanstalk.eu-west-1.amazonaws.com
aws.endpoint.us-west-1=git.elasticbeanstalk.us-west-1.amazonaws.com
aws.endpoint.us-west-2=git.elasticbeanstalk.us-west-2.amazonaws.com
aws.endpoint.ap-southeast-1=git.elasticbeanstalk.ap-southeast-1.amazonaws.com
aws.endpoint.ap-southeast-2=git.elasticbeanstalk.ap-southeast-2.amazonaws.com
aws.endpoint.sa-east-1=git.elasticbeanstalk.sa-east-1.amazonaws.com
alias.aws.elasticbeanstalk.remote=!.git/AWSDevTools/aws.elasticbeanstalk.push --remote-url
alias.aws.elasticbeanstalk.push=!.git/AWSDevTools/aws.elasticbeanstalk.push
alias.aws.elasticbeanstalk.config=!.git/AWSDevTools/aws.elasticbeanstalk.config
alias.aws.push=!git aws.elasticbeanstalk.push
alias.aws.config=!git aws.elasticbeanstalk.config

如何查看亚马逊方面的权限?是安全组设置吗?

感谢您的帮助。如果我可以为您提供更多信息,请告诉我。再次感谢。

【问题讨论】:

【参考方案1】:

如果您的系统时钟关闭超过 900 秒,AWS git 插件将返回 403。

【讨论】:

您对我们如何解决系统时钟偏差有任何想法吗? 天哪,我绝对猜不到,非常感谢您的评论! 感谢您发布此内容,否则将永远不会得到它

以上是关于git aws.push 返回错误 403的主要内容,如果未能解决你的问题,请参考以下文章

如何解决请求的 URL 返回错误:git 存储库中的 403

git 修改地址,及提交返回403错误原因

在 Mac 上:git push 导致“请求的 URL 返回错误:403”[重复]

问题。未加载 AWS DevTools (git aws.push)

Elastic Beanstalk git aws.push 问题

git aws.push 上的损坏包文件