Unable to get info for the repository root
Problem
When trying to integrate SVN with Fisheye/Crucible the following error is shown:
Unable to get info for the repository root
403 Forbidden
Unable to get Repository Root URL
Alternatively the following can be found in the fisheye-atlassian-YYYY-MM-DD.log
file:
WARN [InitPing3 <repository_name> ] fisheye SvnRepositoryTester-getServerRootURL - Unable to get Repository Root URL for <repository_name>:file:///repository_root/folder/
ERROR [InitPing3 <repository_name> ] fisheye SvnRepositoryTester-pingAndValidateAccess - Exception getting FishEye access control
com.cenqua.fisheye.rep.RepositoryClientException: org.apache.subversion.javahl.ClientException: svn: Unable to open an ra_local session to URL
...
Caused by: org.apache.subversion.javahl.ClientException: svn: Unable to open an ra_local session to URL
at org.apache.subversion.javahl.ClientException.fromException(ClientException.java:68) [svnkit-javahl16-1.8.11.jar:?]
...
Caused by: org.tmatesoft.svn.core.SVNException: svn: Unable to open an ra_local session to URL
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64) [svnkit.jar:?]
Cause
Cause #1 - unexpected trailing slash
A trailing slash has been added incorrectly to the SVN URL during the configuration of the repository. For example: https://svn.your.server/svn/project/
Cause #2 - missing execute permissions on jsvn command
Unless the native client is used, Fisheye uses the jsvn
command to perform SVN command which can be found in the <FishEye installation directory>/lib/svn
folder.
If the user running Fisheye does not have execute permissions on the jsvn
command, Fisheye will not be able to connect to the repository.
Resolution
Resolution #1 - unexpected trailing slash
https://svn.your.server/svn/project
Resolution #2 - missing execute permissions on jsvn command
Add the execute permissions on the jsvn
command.