Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git推送返回”;RPC失败;curl 56 GnuTLS recv错误(-110):TLS连接未正确终止”;错误_Git_Jenkins - Fatal编程技术网

Git推送返回”;RPC失败;curl 56 GnuTLS recv错误(-110):TLS连接未正确终止”;错误

Git推送返回”;RPC失败;curl 56 GnuTLS recv错误(-110):TLS连接未正确终止”;错误,git,jenkins,Git,Jenkins,我有一个Jenkins管道,用于从一个远程服务器拉入git工作区,然后推送到另一个远程服务器: stage('Git Pull') { steps { step([$class: 'WsCleanup']) checkout([$class: 'GitSCM', branches: [[name: 'master']], doGenerateSubmoduleConfigurations: false, extensions: [], submod

我有一个Jenkins管道,用于从一个远程服务器拉入git工作区,然后推送到另一个远程服务器:

stage('Git Pull') {
    steps {
        step([$class: 'WsCleanup'])
            checkout([$class: 'GitSCM', branches: [[name: 'master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'xxxx-xxxx-xxxx', url: 'ssh://source-remote-server']]])
    }
}
stage('Git Push') {
    steps {
        sh 'git checkout -b master'
        withCredentials([usernamePassword(credentialsId: 'yyyy-yyyy-yyyy', passwordVariable: 'GIT_TOKEN')]) {
            sh 'git remote add target_origin https://${GIT_TOKEN}@target-remote-server'
            sh 'git push -u target_origin master'
        }
    }
}
但是,在运行管道时,我出现了以下异常:

错误:RPC失败;curl 56 GnuTLS recv error(-110):TLS 连接未正确终止。
致命:远端挂起 意外上升
致命:远程端意外挂起

我做了一些搜索,找到了一些解决方案,但它们在我的案例中不起作用。我所尝试的:

  • 设置postBuffer:git config--全局http.postBuffer 1048576000
  • 增加速度限制:git config--global http.lowSpeedLimit 1000&git config--global http.lowSpeedTime 600
这里让我感到困惑的是,当我尝试使用相同流程的另一个存储库(使用相同的管道拉和推)时,它成功了。这两个存储库位于同一源远程服务器和同一目标远程服务器中。我能找到的唯一区别是大小:不工作的一个大小为3.15GB,工作的一个大小为3.2GB,但我不认为这是原因

有人能帮我找出导致上述异常的其他原因以及如何修复它吗


多谢各位

您是否在目标服务器上设置了反向代理?我在nginx超时和在长时间请求时终止连接时看到了类似的行为。Hi@raspy,很遗憾,我无法访问目标服务器,我需要再次清除这个。但是如果是这样的话,这里的解决方案是什么呢?我的案例是nginx记录了一个408响应(之后它实际上不发送任何响应,只是终止了连接)。这被报告为,我的解决方案包括一个更大的缓冲区。尽管如此。