使用SourceTree管理Unity工程推送报错 “ RPC failed; curl 55 Send failure: Connection was aborted“
使用SourceTree推送报错 "error: RPC failed; curl 55 Recv failure: Connection was reset"
一,遇到问题
提交项目时停了到这个界面很长时间…
等来的却是报错,告诉我提交失败…
报错原文
git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks commit -q -F C:\Users\25924\AppData\Local\Temp\jh2zoq3f.4ns
git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags --set-upstream origin master:master
POST git-receive-pack (88465735 bytes)
error: RPC failed; curl 55 Recv failure: Connection was reset
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Pushing to http://172.28.60…
Everything up-to-date
完成时带有错误,见上文。
之前一直好用的,突然不好用了,很困惑, , ,
二,尝试解决
上网查了下有几种解决方法,虽然没有解决我的问题,万一能解决你遇到的问题呢
1. 使用SSH密钥
打开方式:[工具 -> 选项 -> 一般 -> SSH客户端]
修改为OpenSSH的形式,然后上面选择你自己的SHH密钥。
PS:反正我这尝试了, 没有用. 我之前用的就是默认的, 现在两种方式选择哪一个都没有解决我遇到的这个问题。
2. 取消勾选代理服务器
打开方式:[工具 -> 选项 -> 网络]
PS:我原来就没有勾选啊,呜呜┭┮﹏┭┮…
3. 修改git配置加大httpBuffer
请看完此项再决定是否尝试此操作
在SourceTree打开命令行模式:
输入下面命令,查看自己的git配置:
git config -l
加大http.Buffer,执行下面命令后在使用 ‘git config -l’ 命令看下, buff大小是否执行成功 ,然后再次尝试推送。
git config --global http.postBuffer 524288000
后来我发现: 这个加大buff的报错是这样的 :
RPC failed; curl 56 Recv failure: Connection was reset.
而我遇到的问题报错使这样的,
RPC failed; curl 55 Send failure: Connection was aborted
一个是链接被终止, 一个是连接被重置…
三,解决问题
使用命令行模式推送结果也是这样的, 这说明并不是SourceTree的问题
因为之前好用,这次提交推送莫名的不好用了, 那么我猜测有有可能是这次提交的内容有问题;
根据此推测我重新克隆了一个新的工程到本地,然后随便修改了一个文本, 然后暂存,推送一气呵成, 完全没有问题;
这次可以确定了, 就是我此次推送的内容有问题,我这次推送的出了正常的Unity工程逻辑修改, 还将Unity导出的Android工程进行了提交, 我怀疑就是这个工程内容提交时出现了问题。
上述使用SourceTree的寄存地址的GitLab, 而后我再码云上传同样的工程, 也是没有问题的。
初步结论:GitLab上传较大文件时,耗时较长,容易出现网络中断的情况,导致出现此情况。
解决方案一:上传较大文件时分批次上传。
解决方案二:使用国内代码托管码云。
若有不同见解,欢迎您留言解惑;如果你也遇到了类似问题,不妨也在评论区留言吧,以便帮助更多的同学。
相关文章
- Always Encryption: Failed to decrypt a column encryption key using key store provider: 'MSSQL_CERTIFICATE_STORE'
- gitee下载报错-fatal: Authentication failed for ‘https://git.weixin.qq.com
- 报错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1
- 解决swagger提示Failed to load API definition Fetch errorundefined
- [转]深入理解Docker ulimit(docker容器启动报错library initialization failed - unable to allocate file descriptor table - out of memory问题解决)
- systemctl start docker启动报错:Job for docker.service failed because the
- rabbitmq报错Failed to start RabbitMQ broker
- 【node-sass】 Module build failed: Error: ENOENT: no such file or directory, scandir 'C:UserslizhaohongDesktoptestwebpacknode_modules.4.7.2@node-sassvendor'
- Android ADB server didn't ACK * failed to start daemon * 简单有效的解决方案
- 【报错】failed to run custom build command for `openssl-sys v0.9.75` 解决方案
- 使用Genymotion调试出现错误INSTALL_FAILED_CPU_ABI_INCOMPATIBLE解决办法
- 转 FAL[server, ARC3]: FAL archive failed Error 16401 creating standby archive log file at host
- PySe-016-Requests 访问 HTTPS 网站报错解决方法:SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)
- Maven-008-Nexus 私服部署发布报错 Failed to deploy artifacts: Failed to transfer file: ... Return code is: 4XX, ReasonPhrase: ... 解决方案
- docker容器下安装nccl失败,报错:Failed to init nccl communicator for group,init nccl communicator for group nccl_world_group
- 【FAQ】OpenHarmony开发板运行HAP应用,报错ERR_APPEXECFWK_INSTALL_FAILED_PARSE_DEVICETYPE_ERROR
- Failed to create pod sandbox
- Ubuntu下 Git 克隆gnutls_handshake() failed的问题
- xhprof查看性能测试图一直报错:failed to execute cmd: " dot -Tpng"多种因素解决方案
- MySQL数据库断电修复(Database page corruption on disk or a failed)
- 解决浏览器console控制台报错 : Failed to load resource: net::ERR_SSL_PROTOCOL_ERROR(SSL协议错误)