2014-02-05 29 views
1

我有一个Amazon EC2服务器,S3存储桶安装到/mnt/git。 我上传到使用Git Extensions with Putty SSh的桶中有一个纯粹的git repo。失败的git推送到AWS S3 Git扩展

推送到服务器没有任何警告或错误,但当我pull远程主分支位置重置为以前的提交,就像推失败。拉日志中有一条消息(forced update)

"C:\Program Files (x86)\Git\bin\git.exe" pull --progress "aws" 
From ec2.ip.address:/mnt/git/Project 
+ e158d62...be6f3f6 master 
-> aws/master (forced update) 
Already up-to-date. 
Done 

我不知道为什么我得到这个消息,因为推拉命令不是强制的。推日志低于

"C:\Program Files (x86)\Git\bin\git.exe" push --recurse-submodules=check --progress "aws"  master:master 
Counting objects: 10, done. 
Delta compression using up to 4 threads. 
Total 6 (delta 4), reused 0 (delta 0) 
To [email protected]:/mnt/git/Project 
    be6f3f6..e158d62 master -> master 
Done 

编辑: 我搬到回购的EC2本地驱动器和问题走了,这意味着该问题与S3安装。我使用保险丝和s3fs来安装驱动器。我的fstab安装看起来像这样: /usr/bin/s3fs#my-bucket /mnt/git fuse default_acl=public-read-write,allow_other,use_cache=/tmp 0 0

有其他人遇到过这个问题吗?

+0

我的推测是这是一个网络超时问题。 S3存储对于这种活动来说太慢了。解决方案是使用EBS卷并以这种方式安装它:http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-using-volumes.html。 S3可以用作回购的备份存储,但不应该用于活动中央回购。 – schwyzl

回答