Unable to Add Subversion Repository Due to Cannot create directory /home/jira/.subversion/auth/svn.simple Error

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

When adding a Subversion Repository using the JIRA Subversion Plugin, the process fails and the following error appears in the atlassian-jira.log file:

2011-12-20 14:47:17,555 TP-Processor122 ERROR gbbbz 887x354395x1 admin 10.60.1.11 /secure/AddSubversionRepository.jspa[plugin.ext.subversion.SubversionManagerImpl] Connection to Subversion repository https://example.com/svn/repository failed: org.tmatesoft.svn.core.SVNException: svn: Cannot create directory '/data/opt/atlassian-jira/.subversion/auth/svn.simple'
org.tmatesoft.svn.core.SVNException: svn: Cannot create directory '/data/opt/atlassian-jira/.subversion/auth/svn.simple'
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64)
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51)

[.....]

Cause

This problem could happen because the user home directory (based on the above exceptions, /data/opt/atlassian-jira) do not exists. Hence, users are unable to add any Subversion repository and the "Cannot create directory" error is thrown in the logs file. 

Resolution

Resolution 1

  • As an attempt to fix the problem, we can try to add the -Duser.home=/path/to/directory to the setenv.bat (for Windows) or setenv.sh (for UNIX)

Resolution 2

  • Manually create the /home/jira/.subversion/auth/svn.simple directory 

 

Last modified on May 24, 2016

Was this helpful?

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