首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >scm-manager subversion E175009中的校验结果: XML响应包含导入存储库的无效XML。

scm-manager subversion E175009中的校验结果: XML响应包含导入存储库的无效XML。
EN

Stack Overflow用户
提问于 2021-06-17 07:44:39
回答 1查看 543关注 0票数 1

我很抱歉再次提出这样的话题,但我还没有发现任何解决办法。

问题:我正在vServer上的码头上运行最新的SCM-Manager 2.20.0 (没有smb共享等等)。我得到了一个千兆字节大小的svn转储,并创建了一个subversion存储库,并按照文档中的描述导入了它。当我从windows命令行(Version1.14.1 (r1886195))签出时,会在一段时间后得到以下错误:

svn: E175009: XML响应包含无效的XML

svn: E130003:格式错误的XML:在第14073566行没有找到任何元素

我尝试过的事情:

  • 我使用UI在SCM中创建了一个带有自述文件的subversion存储库,并且签出工作正常。
  • 我创建了一个带有转储的本地svn,并且签出工作正常(本地的svn://)。
  • 我继续运行svnadmin升级和本地回购,创建了一个新的转储和导入到SCM,问题仍然存在。
  • 由于我将nginx作为反向代理运行,所以我尝试了不使用http和usinh http,而不是https,所以问题仍然存在。
  • 我读到有人试图使用额外的svnserver来提供回购,以允许通过svn://访问svn://,而不是https://,,我相信这是可行的,但这不是我想要的。
  • 我收集了一些带有svnkit日志级别"Debug“的服务器日志,但至少对我来说,这不算什么。(查找日志这里)

因此,任何想法或帮助都将不胜感激,我可以在没有scmmanager的情况下运行服务器,但目前这不是我喜欢的解决方案。

致以敬意,

马可

EN

回答 1

Stack Overflow用户

发布于 2021-06-20 14:57:17

真的是这样!非常感谢雷内。增加jetty.timeout为我解决了这个问题。以下是供参考的server-config.xml:

代码语言:javascript
复制
<?xml version="1.0" encoding="UTF-8"?>
<!--

    MIT License

    Copyright (c) 2020-present Cloudogu GmbH and Contributors

    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in all
    copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    SOFTWARE.

-->
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">
<Configure id="ScmServer" class="org.eclipse.jetty.server.Server">

  <!--
    This default configuration should match 90% of the use cases,
    if you have to change something ensure you know what you are doing.

    For further information on configuration scm-server have a look at:
    https://www.scm-manager.org/docs/2.20.x/en/administration/scm-server/
  -->

  <New id="httpConfig" class="org.eclipse.jetty.server.HttpConfiguration">
    <!-- increase header size for mercurial -->
    <Set name="requestHeaderSize">16384</Set>
    <Set name="responseHeaderSize">16384</Set>

    <Call name="addCustomizer">
      <Arg><New class="org.eclipse.jetty.server.ForwardedRequestCustomizer"/></Arg>
    </Call>
  </New>

  <!--
  Connectors
  -->
  <Call name="addConnector">
    <Arg>
      <New class="org.eclipse.jetty.server.ServerConnector">
        <Arg name="server">
          <Ref refid="ScmServer" />
        </Arg>
        <Arg name="factories">
          <Array type="org.eclipse.jetty.server.ConnectionFactory">
            <Item>
              <New class="org.eclipse.jetty.server.HttpConnectionFactory">
                <Arg name="config">
                  <Ref refid="httpConfig" />
                </Arg>
              </New>
            </Item>
          </Array>
        </Arg>
        <Set name="host">
          <SystemProperty name="jetty.host" default="0.0.0.0" />
        </Set>
        <Set name="port">
          <SystemProperty name="jetty.port" default="8080" />
        </Set>
        <Set name="idleTimeout">
          <SystemProperty name="jetty.timeout" default="300000" />
        </Set>
      </New>
    </Arg>
  </Call>

  <New id="scm-webapp" class="org.eclipse.jetty.webapp.WebAppContext">
    <Set name="contextPath">/scm</Set>
    <Set name="war">
      <SystemProperty name="basedir" default="."/>/var/webapp/scm-webapp.war
    </Set>
    <!-- disable directory listings -->
    <Call name="setInitParameter">
      <Arg>org.eclipse.jetty.servlet.Default.dirAllowed</Arg>
      <Arg>false</Arg>
    </Call>
    <Set name="tempDirectory">/var/cache/scm/work/webapp</Set>
  </New>

  <New id="docroot" class="org.eclipse.jetty.webapp.WebAppContext">
    <Set name="contextPath">/</Set>
    <Set name="baseResource">
      <New class="org.eclipse.jetty.util.resource.ResourceCollection">
        <Arg>
          <Array type="java.lang.String">
            <Item>
              <SystemProperty name="basedir" default="."/>/var/webapp/docroot</Item>
          </Array>
        </Arg>
      </New>
    </Set>
    <Set name="tempDirectory">/var/cache/scm/work/work/docroot</Set>
  </New>

  <Set name="handler">
    <New class="org.eclipse.jetty.server.handler.HandlerCollection">
      <Set name="handlers">
        <Array type="org.eclipse.jetty.server.Handler">
          <Item>
            <Ref id="scm-webapp" />
          </Item>
          <Item>
            <Ref id="docroot" />
          </Item>
        </Array>
      </Set>
    </New>
  </Set>

</Configure>
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68015005

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档