SVNKit Permission Denied in Intermittenly /home/<usename>/.subversion/auth/svn.simple/<hash>

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

SVNKit Permission Denied in Intermittenly /home/<usename>/.subversion/auth/svn.simple/<hash>

Thusitha Thilina Dayaratne
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/5e1c909083977976970085673b6f21d4': /home/thusitha/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d4 (Permission denied) Caused by: org.tigris.subversion.javahl.ClientException: svn: Cannot write to '/home/thusitha/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d4': /home/kurumba/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d4 (Permission denied) at org.tigris.subversion.javahl.JavaHLObjectFactory.throwException(JavaHLObjectFactory.java:777) at org.tmatesoft.svn.core.javahl.SVNClientImpl.throwException(SVNClientImpl.java: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.update(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.java:85) at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.openFileForWriting(SVNFileUtil.java:1304) at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.openFileForWriting(SVNFileUtil.java:1283) at org.tmatesoft.svn.core.internal.wc.SVNWCProperties.setProperties(SVNWCProperties.java:345) at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager$PersistentAuthenticationProvider.saveAuthentication(DefaultSVNAuthenticationManager.java:754) at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.acknowledgeAuthentication(DefaultSVNAuthenticationManager.java:264) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:605) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:274) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:262) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:516) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:999) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.hasCapability(DAVRepository.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(SVNFileUtil.java:1314) at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.openFileForWriting(SVNFileUtil.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
-- 
Reply | Threaded
Open this post in threaded view
|

Re: SVNKit Permission Denied in Intermittenly /home/<usename>/.subversion/auth/svn.simple/<hash>

Alexander Kitaev-4
Hello,

This error is most probably caused by permissions issue, it might be that another process creates file with the same name but on behalf of the different user.
You may check file ownership at /home/thusitha/.subversion/auth/svn.simple by running the following command:

$ ls -la /home/thusitha/.subversion/auth/svn.simple 

You may disable credentials caching when using SVNKit API (SVNClientManager or SvnOperationFactory), but not when using JavaHL API (SVNClient).

Alexander Kitaev,
TMate Software,
http://subgit.com/ - Svn to Git Migration!
http://svnkit.com/ - Java [Sub]Versioning Library!
http://hg4j.com/ - Java Mercurial Library!
http://sqljet.com/ - Java SQLite Library!

On Mon, Nov 9, 2015 at 1:02 PM, Thusitha Thilina Dayaratne <[hidden email]> wrote:
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/5e1c909083977976970085673b6f21d4': /home/thusitha/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d4 (Permission denied) Caused by: org.tigris.subversion.javahl.ClientException: svn: Cannot write to '/home/thusitha/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d4': /home/kurumba/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d4 (Permission denied) at org.tigris.subversion.javahl.JavaHLObjectFactory.throwException(JavaHLObjectFactory.java:777) at org.tmatesoft.svn.core.javahl.SVNClientImpl.throwException(SVNClientImpl.java: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.update(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.java:85) at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.openFileForWriting(SVNFileUtil.java:1304) at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.openFileForWriting(SVNFileUtil.java:1283) at org.tmatesoft.svn.core.internal.wc.SVNWCProperties.setProperties(SVNWCProperties.java:345) at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager$PersistentAuthenticationProvider.saveAuthentication(DefaultSVNAuthenticationManager.java:754) at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.acknowledgeAuthentication(DefaultSVNAuthenticationManager.java:264) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:605) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:274) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:262) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:516) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:999) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.hasCapability(DAVRepository.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(SVNFileUtil.java:1314) at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.openFileForWriting(SVNFileUtil.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
-- 

Reply | Threaded
Open this post in threaded view
|

Re: SVNKit Permission Denied in Intermittenly /home/<usename>/.subversion/auth/svn.simple/<hash>

Thusitha Thilina Dayaratne
Hi Alexander,

Thank you very much for the quick response. 
But unfortunately I don't have more than a single user :(
I didn't get the last party. Did you mean that JavHL related functionalities in svnkit will not work if I disable authentication caching? or I shouldn't disable ot at all with svnkit?

Thanks 
Thusitha  

2015-11-09 17:57 GMT+05:30 Alexander Kitaev <[hidden email]>:
Hello,

This error is most probably caused by permissions issue, it might be that another process creates file with the same name but on behalf of the different user.
You may check file ownership at /home/thusitha/.subversion/auth/svn.simple by running the following command:

$ ls -la /home/thusitha/.subversion/auth/svn.simple 

You may disable credentials caching when using SVNKit API (SVNClientManager or SvnOperationFactory), but not when using JavaHL API (SVNClient).

Alexander Kitaev,
TMate Software,
http://subgit.com/ - Svn to Git Migration!
http://svnkit.com/ - Java [Sub]Versioning Library!
http://hg4j.com/ - Java Mercurial Library!
http://sqljet.com/ - Java SQLite Library!

On Mon, Nov 9, 2015 at 1:02 PM, Thusitha Thilina Dayaratne <[hidden email]> wrote:
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/5e1c909083977976970085673b6f21d4': /home/thusitha/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d4 (Permission denied) Caused by: org.tigris.subversion.javahl.ClientException: svn: Cannot write to '/home/thusitha/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d4': /home/kurumba/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d4 (Permission denied) at org.tigris.subversion.javahl.JavaHLObjectFactory.throwException(JavaHLObjectFactory.java:777) at org.tmatesoft.svn.core.javahl.SVNClientImpl.throwException(SVNClientImpl.java: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.update(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.java:85) at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.openFileForWriting(SVNFileUtil.java:1304) at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.openFileForWriting(SVNFileUtil.java:1283) at org.tmatesoft.svn.core.internal.wc.SVNWCProperties.setProperties(SVNWCProperties.java:345) at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager$PersistentAuthenticationProvider.saveAuthentication(DefaultSVNAuthenticationManager.java:754) at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.acknowledgeAuthentication(DefaultSVNAuthenticationManager.java:264) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:605) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:274) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:262) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:516) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:999) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.hasCapability(DAVRepository.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(SVNFileUtil.java:1314) at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.openFileForWriting(SVNFileUtil.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
-- 



Reply | Threaded
Open this post in threaded view
|

Re: SVNKit Permission Denied in Intermittenly /home/<usename>/.subversion/auth/svn.simple/<hash>

Thusitha Thilina Dayaratne
Hi All

My file permission for the particular file is as follows

File permission: rrr- 1 thusitha thusitha 166 Nov 12 23:52 
/home/thusitha/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d4

I found the [1] which relates to this, But it seems in reopened state.

Any help on this would be really nice

Thanks

2015-11-09 18:16 GMT+05:30 Thusitha Thilina Dayaratne <[hidden email]>:
Hi Alexander,

Thank you very much for the quick response. 
But unfortunately I don't have more than a single user :(
I didn't get the last party. Did you mean that JavHL related functionalities in svnkit will not work if I disable authentication caching? or I shouldn't disable ot at all with svnkit?

Thanks 
Thusitha  

2015-11-09 17:57 GMT+05:30 Alexander Kitaev <[hidden email]>:
Hello,

This error is most probably caused by permissions issue, it might be that another process creates file with the same name but on behalf of the different user.
You may check file ownership at /home/thusitha/.subversion/auth/svn.simple by running the following command:

$ ls -la /home/thusitha/.subversion/auth/svn.simple 

You may disable credentials caching when using SVNKit API (SVNClientManager or SvnOperationFactory), but not when using JavaHL API (SVNClient).

Alexander Kitaev,
TMate Software,
http://subgit.com/ - Svn to Git Migration!
http://svnkit.com/ - Java [Sub]Versioning Library!
http://hg4j.com/ - Java Mercurial Library!
http://sqljet.com/ - Java SQLite Library!

On Mon, Nov 9, 2015 at 1:02 PM, Thusitha Thilina Dayaratne <[hidden email]> wrote:
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/5e1c909083977976970085673b6f21d4': /home/thusitha/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d4 (Permission denied) Caused by: org.tigris.subversion.javahl.ClientException: svn: Cannot write to '/home/thusitha/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d4': /home/kurumba/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d4 (Permission denied) at org.tigris.subversion.javahl.JavaHLObjectFactory.throwException(JavaHLObjectFactory.java:777) at org.tmatesoft.svn.core.javahl.SVNClientImpl.throwException(SVNClientImpl.java: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.update(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.java:85) at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.openFileForWriting(SVNFileUtil.java:1304) at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.openFileForWriting(SVNFileUtil.java:1283) at org.tmatesoft.svn.core.internal.wc.SVNWCProperties.setProperties(SVNWCProperties.java:345) at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager$PersistentAuthenticationProvider.saveAuthentication(DefaultSVNAuthenticationManager.java:754) at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.acknowledgeAuthentication(DefaultSVNAuthenticationManager.java:264) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:605) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:274) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:262) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:516) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:999) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.hasCapability(DAVRepository.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(SVNFileUtil.java:1314) at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.openFileForWriting(SVNFileUtil.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
-- 






--
 
Reply | Threaded
Open this post in threaded view
|

Re: SVNKit Permission Denied in Intermittenly /home/<usename>/.subversion/auth/svn.simple/<hash>

Johan Corveleyn-3
There is also this issue:

https://issues.tmatesoft.com/issue/SVNKIT-508 (SVNKit sets auth cache file (svn.simple) read-only, causing problems for native svn)

Not sure if it's related.

--
Johan

On Tue, Nov 17, 2015 at 6:05 AM, Thusitha Thilina Dayaratne <[hidden email]> wrote:
Hi All

My file permission for the particular file is as follows

File permission: rrr- 1 thusitha thusitha 166 Nov 12 23:52 
/home/thusitha/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d4

I found the [1] which relates to this, But it seems in reopened state.

Any help on this would be really nice

Thanks

2015-11-09 18:16 GMT+05:30 Thusitha Thilina Dayaratne <[hidden email]>:
Hi Alexander,

Thank you very much for the quick response. 
But unfortunately I don't have more than a single user :(
I didn't get the last party. Did you mean that JavHL related functionalities in svnkit will not work if I disable authentication caching? or I shouldn't disable ot at all with svnkit?

Thanks 
Thusitha  

2015-11-09 17:57 GMT+05:30 Alexander Kitaev <[hidden email]>:
Hello,

This error is most probably caused by permissions issue, it might be that another process creates file with the same name but on behalf of the different user.
You may check file ownership at /home/thusitha/.subversion/auth/svn.simple by running the following command:

$ ls -la /home/thusitha/.subversion/auth/svn.simple 

You may disable credentials caching when using SVNKit API (SVNClientManager or SvnOperationFactory), but not when using JavaHL API (SVNClient).

Alexander Kitaev,
TMate Software,
http://subgit.com/ - Svn to Git Migration!
http://svnkit.com/ - Java [Sub]Versioning Library!
http://hg4j.com/ - Java Mercurial Library!
http://sqljet.com/ - Java SQLite Library!

On Mon, Nov 9, 2015 at 1:02 PM, Thusitha Thilina Dayaratne <[hidden email]> wrote:
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/5e1c909083977976970085673b6f21d4': /home/thusitha/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d4 (Permission denied) Caused by: org.tigris.subversion.javahl.ClientException: svn: Cannot write to '/home/thusitha/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d4': /home/kurumba/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d4 (Permission denied) at org.tigris.subversion.javahl.JavaHLObjectFactory.throwException(JavaHLObjectFactory.java:777) at org.tmatesoft.svn.core.javahl.SVNClientImpl.throwException(SVNClientImpl.java: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.update(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.java:85) at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.openFileForWriting(SVNFileUtil.java:1304) at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.openFileForWriting(SVNFileUtil.java:1283) at org.tmatesoft.svn.core.internal.wc.SVNWCProperties.setProperties(SVNWCProperties.java:345) at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager$PersistentAuthenticationProvider.saveAuthentication(DefaultSVNAuthenticationManager.java:754) at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.acknowledgeAuthentication(DefaultSVNAuthenticationManager.java:264) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:605) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:274) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:262) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:516) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:999) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.hasCapability(DAVRepository.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(SVNFileUtil.java:1314) at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.openFileForWriting(SVNFileUtil.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
-- 






--
 


Reply | Threaded
Open this post in threaded view
|

Re: SVNKit Permission Denied in Intermittenly /home/<usename>/.subversion/auth/svn.simple/<hash>

Thusitha Thilina Dayaratne
Hi Johan,

Thanks for pointing this out. This seems in open state. Is there any workaround so I can get rid of this until it get permanently fix? :)
I can't reproduce the issue constantly. It happens intermittently :(

Thanks
Thusitha 

2015-11-17 14:22 GMT+05:30 Johan Corveleyn <[hidden email]>:
There is also this issue:

https://issues.tmatesoft.com/issue/SVNKIT-508 (SVNKit sets auth cache file (svn.simple) read-only, causing problems for native svn)

Not sure if it's related.

--
Johan

On Tue, Nov 17, 2015 at 6:05 AM, Thusitha Thilina Dayaratne <[hidden email]> wrote:
Hi All

My file permission for the particular file is as follows

File permission: rrr- 1 thusitha thusitha 166 Nov 12 23:52 
/home/thusitha/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d4

I found the [1] which relates to this, But it seems in reopened state.

Any help on this would be really nice

Thanks

2015-11-09 18:16 GMT+05:30 Thusitha Thilina Dayaratne <[hidden email]>:
Hi Alexander,

Thank you very much for the quick response. 
But unfortunately I don't have more than a single user :(
I didn't get the last party. Did you mean that JavHL related functionalities in svnkit will not work if I disable authentication caching? or I shouldn't disable ot at all with svnkit?

Thanks 
Thusitha  

2015-11-09 17:57 GMT+05:30 Alexander Kitaev <[hidden email]>:
Hello,

This error is most probably caused by permissions issue, it might be that another process creates file with the same name but on behalf of the different user.
You may check file ownership at /home/thusitha/.subversion/auth/svn.simple by running the following command:

$ ls -la /home/thusitha/.subversion/auth/svn.simple 

You may disable credentials caching when using SVNKit API (SVNClientManager or SvnOperationFactory), but not when using JavaHL API (SVNClient).

Alexander Kitaev,
TMate Software,
http://subgit.com/ - Svn to Git Migration!
http://svnkit.com/ - Java [Sub]Versioning Library!
http://hg4j.com/ - Java Mercurial Library!
http://sqljet.com/ - Java SQLite Library!

On Mon, Nov 9, 2015 at 1:02 PM, Thusitha Thilina Dayaratne <[hidden email]> wrote:
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/5e1c909083977976970085673b6f21d4': /home/thusitha/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d4 (Permission denied) Caused by: org.tigris.subversion.javahl.ClientException: svn: Cannot write to '/home/thusitha/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d4': /home/kurumba/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d4 (Permission denied) at org.tigris.subversion.javahl.JavaHLObjectFactory.throwException(JavaHLObjectFactory.java:777) at org.tmatesoft.svn.core.javahl.SVNClientImpl.throwException(SVNClientImpl.java: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.update(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.java:85) at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.openFileForWriting(SVNFileUtil.java:1304) at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.openFileForWriting(SVNFileUtil.java:1283) at org.tmatesoft.svn.core.internal.wc.SVNWCProperties.setProperties(SVNWCProperties.java:345) at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager$PersistentAuthenticationProvider.saveAuthentication(DefaultSVNAuthenticationManager.java:754) at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.acknowledgeAuthentication(DefaultSVNAuthenticationManager.java:264) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:605) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:274) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:262) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:516) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:999) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.hasCapability(DAVRepository.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(SVNFileUtil.java:1314) at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.openFileForWriting(SVNFileUtil.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
-- 






--
 





--
 
Reply | Threaded
Open this post in threaded view
|

Re: SVNKit Permission Denied in Intermittenly /home/<usename>/.subversion/auth/svn.simple/<hash>

Johan Corveleyn-3
I don't know of a workaround, all you can do is make the file writable again yourself I think.

I think SVNKit makes it read-only automatically when you change your password (svnkit prompts for your new password, then caches it in the svn.simple file, thereby making the file read-only).

I'm not using SVNKit myself anymore, but ran into this while using IntelliJ IDEA: https://youtrack.jetbrains.com/issue/IDEA-129175 (Subversion actions very slow after password change). The problem became apparent when IDEA offered the option to use a command line svn client for 1.7 and higher (so we switched to native svn, which had difficulty with the read-only status of the password cache).

--
Johan

On Tue, Nov 17, 2015 at 10:04 AM, Thusitha Thilina Dayaratne <[hidden email]> wrote:
Hi Johan,

Thanks for pointing this out. This seems in open state. Is there any workaround so I can get rid of this until it get permanently fix? :)
I can't reproduce the issue constantly. It happens intermittently :(

Thanks
Thusitha 

2015-11-17 14:22 GMT+05:30 Johan Corveleyn <[hidden email]>:
There is also this issue:

https://issues.tmatesoft.com/issue/SVNKIT-508 (SVNKit sets auth cache file (svn.simple) read-only, causing problems for native svn)

Not sure if it's related.

--
Johan

On Tue, Nov 17, 2015 at 6:05 AM, Thusitha Thilina Dayaratne <[hidden email]> wrote:
Hi All

My file permission for the particular file is as follows

File permission: rrr- 1 thusitha thusitha 166 Nov 12 23:52 
/home/thusitha/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d4

I found the [1] which relates to this, But it seems in reopened state.

Any help on this would be really nice

Thanks

2015-11-09 18:16 GMT+05:30 Thusitha Thilina Dayaratne <[hidden email]>:
Hi Alexander,

Thank you very much for the quick response. 
But unfortunately I don't have more than a single user :(
I didn't get the last party. Did you mean that JavHL related functionalities in svnkit will not work if I disable authentication caching? or I shouldn't disable ot at all with svnkit?

Thanks 
Thusitha  

2015-11-09 17:57 GMT+05:30 Alexander Kitaev <[hidden email]>:
Hello,

This error is most probably caused by permissions issue, it might be that another process creates file with the same name but on behalf of the different user.
You may check file ownership at /home/thusitha/.subversion/auth/svn.simple by running the following command:

$ ls -la /home/thusitha/.subversion/auth/svn.simple 

You may disable credentials caching when using SVNKit API (SVNClientManager or SvnOperationFactory), but not when using JavaHL API (SVNClient).

Alexander Kitaev,
TMate Software,
http://subgit.com/ - Svn to Git Migration!
http://svnkit.com/ - Java [Sub]Versioning Library!
http://hg4j.com/ - Java Mercurial Library!
http://sqljet.com/ - Java SQLite Library!

On Mon, Nov 9, 2015 at 1:02 PM, Thusitha Thilina Dayaratne <[hidden email]> wrote:
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/5e1c909083977976970085673b6f21d4': /home/thusitha/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d4 (Permission denied) Caused by: org.tigris.subversion.javahl.ClientException: svn: Cannot write to '/home/thusitha/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d4': /home/kurumba/.subversion/auth/svn.simple/5e1c909083977976970085673b6f21d4 (Permission denied) at org.tigris.subversion.javahl.JavaHLObjectFactory.throwException(JavaHLObjectFactory.java:777) at org.tmatesoft.svn.core.javahl.SVNClientImpl.throwException(SVNClientImpl.java: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.update(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.java:85) at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.openFileForWriting(SVNFileUtil.java:1304) at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.openFileForWriting(SVNFileUtil.java:1283) at org.tmatesoft.svn.core.internal.wc.SVNWCProperties.setProperties(SVNWCProperties.java:345) at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager$PersistentAuthenticationProvider.saveAuthentication(DefaultSVNAuthenticationManager.java:754) at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.acknowledgeAuthentication(DefaultSVNAuthenticationManager.java:264) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:605) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:274) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:262) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:516) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:999) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.hasCapability(DAVRepository.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(SVNFileUtil.java:1314) at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.openFileForWriting(SVNFileUtil.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
-- 






--
 





--
 



Reply | Threaded
Open this post in threaded view
|

Re: SVNKit Permission Denied in Intermittenly /home/<usename>/.subversion/auth/svn.simple/<hash>

Dmitry Pavlenko-2
In reply to this post by Thusitha Thilina Dayaratne
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
> --