svn: Processing REPORT request response failed: XML document structures must start and end within the same entity

Still need help?

The Atlassian Community is here for you.

Ask the community

Problem

Indexing an SVN repository fails with the following error:

ERROR [InitPing1 < repository_name>] fisheye BaseRepositoryScanner-handleSlurpException - Problem processing revisions from repo < repository_name> due to class com.cenqua.fisheye.rep.RepositoryClientException - org.tigris.subversion.javahl.ClientException: svn: Processing REPORT request response failed: XML document structures must start and end within the same entity. (<PATH_TO_FILE>) 
svn: REPORT request failed on '<PATH_TO_FILE>'
com.cenqua.fisheye.rep.RepositoryClientException: org.tigris.subversion.javahl.ClientException: svn: Processing REPORT request response failed: XML document structures must start and end within the same entity. (<PATH_TO_FILE>) 
svn: REPORT request failed on '<PATH_TO_FILE>'
...
    Caused by: org.tigris.subversion.javahl.ClientException: svn: Processing REPORT request response failed: XML document structures must start and end within the same entity. (<PATH_TO_FILE>) 
svn: REPORT request failed on '<PATH_TO_FILE>'
...
    Caused by: org.tmatesoft.svn.core.SVNException: svn: Processing REPORT request response failed: XML document structures must start and end within the same entity. (<PATH_TO_FILE>) 
svn: REPORT request failed on '<PATH_TO_FILE>'  

Cause

SVNKit is failing to retrieve the entire response from the SVN server.

This may be caused by the following options.

Cause #1 - Authentication

SVNKit is using negotiated authentication rather than Basic Authentication.

Cause #2 - Connection truncated

The connection from SVNKit to the svn server is truncated.

This is usually the case when the changeset to be indexed is significantly big.

Resolution

Resolution for Cause #1 - Authentication

  • Force SVNKit to use Basic Authentication by setting the system property -Dsvnkit.http.methods=Basic (in addition to any system properties that are already provided via that environment variable) in FISHEYE_OPTS (see Environment variables for reference).
  • Restart Fisheye/Crucible

Resolution for Cause #2 - Connection truncated

  • Add the -Dsvnkit.http.spoolDirectory=<path_to_a_temporary_folder> in the FISHEYE_OPTS (see Environment variables for reference). For example: 
-Dsvnkit.http.spoolDirectory=/tmp/fisheye/spooldirectory
  • Restart Fisheye/Crucible

Alternative resolution

Alternatively, the Native Subversion Client can be used instead.

 

Last modified on Jul 31, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.