Hello, It seems you have no write permissions for that file. Is it by intention?
If you're using JavaHL API of SVNKit, the only way to make its auth cache read-only is to set [auth] store-auth-creds=false in ~/.subversion/config file. If you can choose, I would recommed you to have a look at classic SVNKit API based on SvnOperationFactory class. E.g. to update a working copy you can use this code final SvnOperationFactory svnOperationFactory = new SvnOperationFactory(); try { final SvnUpdate update = svnOperationFactory.createUpdate(); update.setSingleTarget(SvnTarget.fromFile(workingCopyDirectory)); update.run(); } finally { svnOperationFactory.dispose(); } but you can specify custom auth manager that won't store credentials: final ISVNAuthenticationManager authenticationManager = SVNWCUtil.createDefaultAuthenticationManager(null, null, (char[]) null, false /*store credentials*/); svnOperationFactory.setAuthenticationManager(authenticationManager); And in general this API is much much more flexible than JavaHL API. svnkit.http.keepCredentials=false relates to HTTP protocol support only and has nothing common with credentials storing in cache. -- Dmitry Pavlenko, TMate Software, http://subgit.com/ - git-svn bridge > Hi All, > > I'm using svnkit and intermittently i'm getting the following error. > > org.tigris.subversion.svnclientadapter.SVNClientException: > org.tigris.subversion.javahl.ClientException: svn: Cannot write to > '/home/thusitha/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d > 4': > /home/thusitha/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d > 4 (Permission denied) Caused by: > org.tigris.subversion.javahl.ClientException: svn: Cannot write to > '/home/thusitha/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d > 4': > /home/kurumba/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d4 > (Permission denied) at > org.tigris.subversion.javahl.JavaHLObjectFactory.throwException(JavaHLObjec > tFactory.java:777) at > org.tmatesoft.svn.core.javahl.SVNClientImpl.throwException(SVNClientImpl.ja > va:1850) at > org.tmatesoft.svn.core.javahl.SVNClientImpl.update(SVNClientImpl.java:633) > at > org.tmatesoft.svn.core.javahl.SVNClientImpl.update(SVNClientImpl.java:609) > at > org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.upda > te(AbstractJhlClientAdapter.java:1075) ... 12 more Caused by: > org.tmatesoft.svn.core.SVNException: svn: Cannot write to > '/home/kurumba/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d4 > ': > /home/kurumba/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d4 > (Permission denied) at > org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.ja > va:85) at > org.tmatesoft.svn.core.internal.wc.SVNFileUtil.openFileForWriting(SVNFileUt > il.java:1304) at > org.tmatesoft.svn.core.internal.wc.SVNFileUtil.openFileForWriting(SVNFileUt > il.java:1283) at > org.tmatesoft.svn.core.internal.wc.SVNWCProperties.setProperties(SVNWCPrope > rties.java:345) at > org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager$Persiste > ntAuthenticationProvider.saveAuthentication(DefaultSVNAuthenticationManager > .java:754) at > org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.acknowle > dgeAuthentication(DefaultSVNAuthenticationManager.java:264) at > org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConn > ection.java:605) at > org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConn > ection.java:274) at > org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConn > ection.java:262) at > org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(D > AVConnection.java:516) at > org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.jav > a:98) at > org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepo > sitory.java:999) at > org.tmatesoft.svn.core.internal.io.dav.DAVRepository.hasCapability(DAVRepos > itory.java:827) at > org.tmatesoft.svn.core.wc.SVNUpdateClient.update(SVNUpdateClient.java:536) > at > org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:401 > ) at > org.tmatesoft.svn.core.javahl.SVNClientImpl.update(SVNClientImpl.java:629) > ... 14 more Caused by: java.io.FileNotFoundException: > /home/thusitha/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d4 > (Permission denied) at java.io.FileOutputStream.open(Native Method) at > java.io.FileOutputStream.(FileOutputStream.java:221) at > org.tmatesoft.svn.core.internal.wc.SVNFileUtil.createFileOutputStream(SVNFi > leUtil.java:1314) at > org.tmatesoft.svn.core.internal.wc.SVNFileUtil.openFileForWriting(SVNFileUt > il.java:1300) ... 28 more > > I have also try to use the svnkit.http.keepCredentials=false system > parameter as well. But still intermittently I get this error. > > Can someone help on this? > Thanks > Thusitha > --