Jenkins之发布报错“error: RPC failed; curl 18 transfer closed with outstanding read data remaining”

报错信息:

error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

       at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2016)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1735)
       ... ...

  本来Jenkins都是正常的,但是突然构建一个job的时候出现了此报错,然后Jenkins上所有的job构建都不成功,同样报这种错误。在网上查找一些资料,最终确认是git的http.postBuffer配置默认值大小的问题,此配置是用来限制git推送大小的,由于代码里有大文件导致拉取代码时postBuffer溢出,所以需要增大http.postBuffer的值。

  解决时遇到的问题:由于git是Jenkins里安装的插件,所以修改git的配置比较麻烦。首先找不到Jenkins的git的配置文件(gitconfig),然后如果在服务器上使用git config命令修改的话,服务器上的git也有root权限安装的。

  解决方法:还是在服务器上使用命令修改,只是执行命令时使用Jenkins用户执行

su - jenkins -c "git config --global http.postBuffer 524288000"

  但是,执行后必须要重启Jenkins,不然不会生效的。随后就能在Jenkins的家目录下面看到配置文件 .gitconfig

原文地址:https://www.cnblogs.com/chy-op/p/10063315.html

时间: 2024-10-01 09:43:45

Jenkins之发布报错“error: RPC failed; curl 18 transfer closed with outstanding read data remaining”的相关文章

git clone报错error: RPC failed; curl 18 transfer closed with outstanding read data remaining

具体错误信息如下图: error: RPC failed; curl 18 transfer closed with outstanding read data remaining    fatal: The remote end hung up unexpectedly    fatal: early EOF    fatal: index-pack failed 这个错误产生的原因是时间太久,资源太大. 基于此,第一种考量即扩大缓存区.即在命令行输入:         git config 

解决git报错:error: RPC failed; curl 18 transfer closed with outstanding read data remaining 的方法

报错信息: error: RPC failed; curl 18 transfer closed with outstanding read data remainingfatal: the remote end hung up unexpectedlyfatal: early EOFfatal: index-pack failed 解决方法一:网上大部分解决措施:命令终端输入如下命令,但是一般并不好使, git config --global http.postBuffer 524288000

Git 报错:git - error: RPC failed; curl 18 transfer closed with outstanding read data remaining 解决方案

error: RPC failed; curl 18 transfer closed with outstanding read data remaining because have error when clone by HTTP protocol (curl command). And, you should increment buffer size: git config --global http.postBuffer 524288000 原因:由于Http协议错误,当Pull或者C

error: RPC failed; curl 18 transfer closed with outstanding read data remaining的解决

解决方案也是网上搜的,总结一下 一,加大缓存区git config --global http.postBuffer 524288000这个大约是500M二.少clone一些,–depth 1git clone https://github.com/flutter/flutter.git --depth 1–depth 1的含义是复制深度为1,就是每个文件只取最近一次提交,不是整个历史版本.三.换协议clone http方式换成SSH的方式,即 https:// 改为 git://例如git c

git error: RPC failed; curl transfer closed with outstanding read data remaining

网速原因. $ git clone http://github.com/xxxxx --depth 1 $ cd xxxxx $ git fetch --unshallow 原文地址:https://www.cnblogs.com/amitherblogs/p/12681861.html

发布报错:Error ITMS-90635 - Invalid Mach-O in bundle - submitting to App store

发布报错:Error ITMS-90635 - Invalid Mach-O in bundle - submitting to App store 昨晚上传项目到AppStore,报了这个错,纳尼!?我早上还能成功上传的,当时判断是晚上网速问题导致的,早上再次试了下,还是一样报错,因为CocoPods导入的框架bitCode不一致导致的,解决方案是在Podfile后面加上 post_install do |installer| installer.pods_project.targets.ea

安卓中运行报错Error:Execution failed for task ':app:transformClassesWithDexForDebug'解决

安卓中运行报错Error:Execution failed for task ':app:transformClassesWithDexForDebug'解决 安卓中运行报错Error:Execution failed for task ':app:transformClassesWithDexForDebug'解决

jenkins windows slave 报错ERROR: Error cloning remote repo 'origin'

在slave上是git clone ssh是可以成功的,但是jenkins调用slave节点就报如下错误: ERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException: Could not init C:\lebo\workspace\repo1 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:717)

cocoapods遇到error: RPC failed; curl 56 SSLRead() return error -36问题

在安装cocoapods遇到的问题 [!] /usr/bin/git clone https://github.com/CocoaPods/Specs.git master Cloning into 'master'... error: RPC failed; curl 56 SSLRead() return error -36 fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed