Unable to Add Subversion Repository Due to Cannot create directory /home/jira/.subversion/auth/svn.simple Error
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
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:
1
2
3
4
5
6
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 thesetenv.bat
(for Windows) orsetenv.sh
(for UNIX)
Resolution 2
Manually create the
/home/jira/.subversion/auth/svn.simple
directory
Was this helpful?