Jenkins Subversion Checkout失败-"E175002:在块末尾预期CRLF:-1/-1" [英] Jenkins Subversion Checkout Failing - "E175002: CRLF expected at end of chunk: -1/-1"

查看:282
本文介绍了Jenkins Subversion Checkout失败-"E175002:在块末尾预期CRLF:-1/-1"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Jenkins v2.107.2实例(作为Windows服务运行),该实例正在从Visual SVN服务器(在单独的Windows PC上)通过Subversion签出多个项目.

I have a Jenkins v2.107.2 instance (running as a Windows service) which is checking out several projects via Subversion from a Visual SVN Server (on a seperate Windows PC).

其中一个项目(最大-〜2.7GB)偶尔会出现,但是在尝试结帐时始终失败并显示以下错误:

One of the projects (the largest - ~2.7GB) is occasionally, but then consistently failing with the following error when attempting to checkout:

ERROR: Failed to check out https://example.com/myrepo
org.tmatesoft.svn.core.SVNException: svn: E175002: CRLF expected at end of chunk: -1/-1
svn: E175002: REPORT request failed on '/svn/REPO/!svn/vcc/default'
    at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:112)

此外,在检查Visual SVN服务器的日志时,我可以看到以下内容:

In addition, when checking the logs of the Visual SVN Server, I can see the following:

Error writing base64 data: The timeout specified has expired  [500, #70007]
A failure occurred while driving the update report editor  [500, #70007]
Provider encountered an error while streaming a REPORT response.  [500, #0]

以前,降级Jenkins&Subversion插件的一个版本解决了该错误,但尽管此后未进行任何更改,但该版本不再起作用.

Previously, some combination of downgrading Jenkins & the Subversion plugin by one version resolved this error, but despite having not changed versions since, this no longer works.

从网上看,Subversion似乎内置了某种超时功能,如果超时,请求将被终止.但是,所有说明都涉及应该位于%APPDATA%\ Roaming中的Subversion配置,我似乎没有.

From looking online, there seems to be some sort of timeout built into Subversion where requests will be killed if going over a certain time. However, the instructions all refer to the Subversion config that should be in %APPDATA%\Roaming, which I do not seem to have.

Jenkins Subversion文档建议使用 C:\ Windows \SysWOW64 \ config \ systemprofile \ AppData \ Roaming ,但同样我什么也没有.我已经安装了TortoiseSVN,它确实创建了Subversion配置文件夹.我已经修改了 http-timeout ,然后将此配置放置在文档建议的所有位置,但这并没有什么区别(但是是否是因为它不能解决问题,或没有被捡起-我不确定).

The Jenkins Subversion documentation suggests C:\Windows\SysWOW64\config\systemprofile\AppData\Roaming, but again I have nothing there. I've installed TortoiseSVN, which did create the Subversion configuration folder. I've modified the http-timeout, and then put this configuration in all the locations suggested by the documentation, but this has not made any difference (but whether it's because it doesn't fix the issue, or it's not being picked up - I'm not sure).

推荐答案

您需要启用后台处理.

请参见此Jenkins支持问题,尽管

See this Jenkins support issue, although this dupe issue describes the solution better:

设置 -Dhudson.spool-svn = true 系统属性或增加服务器上的超时.

Set the -Dhudson.spool-svn=true system property or increase timeout on the server.

这篇关于Jenkins Subversion Checkout失败-"E175002:在块末尾预期CRLF:-1/-1"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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