user2077937
user2077937

Reputation: 251

Jenkins error svn: E180001: Unable to open an ra_local session to URL

I am trying to configure the svn with jenkins but I get the below error. Is there any permission to be provided?

Unable to access file:///C:/TestProject/ : svn: E180001: Unable to open an ra_local session to URL
svn: E180001: Unable to open repository 'file:///C:/TestProject/'

Below is the stack trace shown in the Jenkins:

Caused by: svn: E180001: Unable to open an ra_local session to URL
    at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:208)
    at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:154)
    at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:97)
    at org.tmatesoft.svn.core.SVNErrorMessage.wrap(SVNErrorMessage.java:407)
    ... 69 more
Caused by: svn: E180001: Unable to open repository 'file:///C:/TestProject/'
    at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:171)
    at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:126)
    at org.tmatesoft.svn.core.internal.io.fs.FSRepository.openRepository(FSRepository.java:760)
    ... 68 more
Caused by: org.tmatesoft.svn.core.SVNException: svn: E180001: Unable to open repository 'file:///C:/TestProject/'
    at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64)
    at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51)
    at org.tmatesoft.svn.core.internal.io.fs.FSRepository.openRepositoryRoot(FSRepository.java:782)
    at org.tmatesoft.svn.core.internal.io.fs.FSRepository.openRepository(FSRepository.java:758)
    ... 68 more
Caused by: svn: E180001: Unable to open repository 'file:///C:/TestProject/'
    at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:171)
    at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:126)
    at org.tmatesoft.svn.core.internal.io.fs.FSRepository.openRepositoryRoot(FSRepository.java:781)

Upvotes: 9

Views: 6972

Answers (2)

Ken Y-N
Ken Y-N

Reputation: 15009

Having done some investigation on this specific error message (although it is difficult to say if this is an answer to the user's specific issue), I have determined that one cause is the default SVN plugin within a vanilla Jenkins install, especially if one is using the latest TortoiseSVN, which ships with SVN 1.8.

If one does an upgrade to the latest version of the SVN plugin, v2.5 at the time of writing, one can see that support for SVN 1.8 has been included. Also, don't forget to set the SVN version number within Jenkins. Note that it is best to also delete the project directory from the Jenkins workspace after upgrading, as there might be out-dated data stored within the workspace's .svn directory.

This has resolved my issue at least.

Upvotes: 3

llama
llama

Reputation: 1651

Give jenkins ownership of the repository directory. This may be overkill, but for demonstration purposes its ok.

Im a linux user so not too hot on windows admin, but this may help regarding changing ownership.

Upvotes: 1

Related Questions