Git错误; RPC失败;结果= 22,HTTP代码= 401 [英] Git Error; RPC failed; result=22, HTTP code = 401

查看:207
本文介绍了Git错误; RPC失败;结果= 22,HTTP代码= 401的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



通过GIT进行游戏看起来像是一场快速的胜利,并遵循以下网址中的步骤:

/ p>

  http://www.incyclesoftware.com/2013/08/how-easy-its-to-migrate-svn-to -tfs-2013-git-repo / 

我取得了进展,并将我的测试svn存储库导入到'本地'git实例。但是,当我尝试将其推送到TFS时,出现错误。



TFS本身正在指导我如何'推送现有的资源库'。 $ c> git remote add origin
http:// servername:8080 / tfs / DefaultCollection / _git / TestDVCS3 git push -u origin --all

本地GIT存储库为〜3GB

这是我收到的消息

 'http:// servername:8080'的用户名:myusername 
'http:// myusername @ servername:8080'的密码:
计数对象:145003,完成。
使用多达2个线程的增量压缩。
压缩对象:100%(40421/40421),完成。
写作对象:100%(145003/145003),826.47 MiB | 919.00 KiB / s,完成。
总计145003(增量98198),重用135297(增量89983)
错误:RPC失败;结果= 22,HTTP代码= 401
致命:远程终端意外挂断
致命:远程终端意外挂断
所有最新的


$ b

这里需要注意的是:


  1. 大小826.47 MiB似乎有点低错误代码(401)意味着存在访问问题。

    然而,在这一点上,我已经验证并继续,所以似乎有点奇怪。

有没有人在这里有过任何经验?

解决方案

经过一番搜索,我发现这个 Git - 错误:RPC失败;结果= 22,HTTP代码= 401致命:远程端意外挂断,但您已经尝试过(根据您的评论)。根据atlassian文件( https://confluence.atlassian.com/display/STASHKB/Git+Push+Fails+-+fatal%3A+The+remote+end+hung+up+unexpectedly )你得到的原因错误是PostBuffer的大小,您需要增加它。



将Git缓冲区大小增加到您的repo的最大单个文件大小:

  git config --global http.postBuffer 157286400 


I am trying to get some subversion code - and history into TFS.

Going via GIT seemed like a quick win and following the steps in the below url:

http://www.incyclesoftware.com/2013/08/how-easy-its-to-migrate-svn-to-tfs-2013-git-repo/

I made progress, and imported my test svn repository into a 'local' git instance. However when I try and push it to TFS I get an error.

TFS itself is instructing me on how to 'push an existing repository'

git remote add origin
http://servername:8080/tfs/DefaultCollection/_git/TestDVCS3 git push -u origin --all

The local GIT repository is ~3GB

This is the message I get

Username for 'http://servername:8080': myusername
Password for 'http://myusername@servername:8080':
Counting objects: 145003, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (40421/40421), done.
Writing objects: 100% (145003/145003), 826.47 MiB | 919.00 KiB/s, done.
Total 145003 (delta 98198), reused 135297 (delta 89983)
error: RPC failed; result=22, HTTP code = 401
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

Things to note here:

  1. the size of 826.47 MiB seems a bit low
  2. the error code(401) implies there was an access issue.
    However at this point I have authenticated and continued so that seems a bit odd.

Does anyone have any experience here?

解决方案

After a bit searching I found this Git - error: RPC failed; result=22, HTTP code = 401 fatal: The remote end hung up unexpectedly, however you already tried(according your comment). According to atlassian document(https://confluence.atlassian.com/display/STASHKB/Git+Push+Fails+-+fatal%3A+The+remote+end+hung+up+unexpectedly) the reason error you got is size of postBuffer and you need to increase it.

Increase the Git buffer size to the largest individual file size of your repo:

git config --global http.postBuffer 157286400

这篇关于Git错误; RPC失败;结果= 22,HTTP代码= 401的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆