簡體   English   中英

scm-manager subversion checkout 導致 E175009:XML 響應包含導入存儲庫的無效 XML

[英]scm-manager subversion checkout results in E175009: The XML response contains invalid XML for imported repository

很抱歉再次打開這樣的話題,但我還沒有找到任何已解決的問題。

問題:我在 vServer 上的 docker 中運行最新的 SCM-Manager 2.20.0(沒有 smb 共享等)。 我得到了一個多 GB 大小的 svn dump 並創建了一個 subversion 存儲庫並按照文檔中的描述將其導入。 當我從 Windows 命令行(版本 1.14.1 (r1886195))簽出時,我在一段時間后收到以下錯誤:

svn: E175009: XML 響應包含無效的 XML

svn:E130003:格式錯誤的 XML:在第 14073566 行找不到元素

我嘗試過的事情:

  • 我使用 UI 在 SCM 中創建了一個帶有自述文件的 subversion 存儲庫並且結帳工作正常。
  • 我用轉儲創建了一個本地 svn repo 並且結帳工作(本地通過 svn://)。
  • 我繼續使用該本地存儲庫運行 svnadmin upgrade,創建一個新的轉儲並將其導入到 SCM,問題仍然存在。
  • 因為我將 nginx 作為反向代理運行,所以我嘗試不使用和使用 http 而不是 https,問題仍然存在
  • 我讀到有人試圖使用額外的 svnserver 提供 repo 以允許通過 svn:// 而不是 https:// 進行訪問,我相信這會起作用,但這不是我想要的。
  • 我收集了一些帶有 svnkit 日志級別“調試”的服務器日志,但至少對我來說它沒有響起。 (在這里找到日志)

因此,任何想法或幫助將不勝感激,我可以在沒有 scmmanager 的情況下運行服務器,但這目前不是我的首選解決方案。

問候,

馬可

原來如此!!! 非常感謝雷內。 增加 jetty.timeout 為我解決了這個問題。 這是 server-config.xml 供參考:

<?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>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM