Occasional svn: E170013: Unable to connect to a repository at URL 'https://svn…' svn: E730054: Error running context

孤街浪徒 提交于 2019-12-04 03:53:30

问题


I need help with svn errors E170013 and E730054:

When executing the command "svn checkout..." in command line, I get the error

svn: E170013: Unable to connect to a repository at URL 'https://svn.....'
svn: E730054: Error running context: An existing connection was forcibly closed
by the remote host.

However, if I run the same command right after (only in the next 3 minutes), the command is executed successfully without errors, and the source code is checked out successfully.

Otherwise after 3 minutes (approximately), if I want to checkout again I need to run the svn checkout command, get the errors E170013 and E730054, then run the same command again and the svn checkout works again.

It seems to me that after a certain period of time (3min in my case) the socket between the svn client and svn server is closed, and trying to checkout and/or getting these errors is what actually triggers the connection to be reopened again.

In other words, my issue is that in order to perform an svn checkout, the first will always fail, and only next trys will succeed. After a period of time I need to repeat the same steps again and always do two "svn checkout" so the second one works.

My interpretation may be wrong but this is the behavior I get. I hope you got my issue.

I would like please to understand why such svn behavior, what causes these errors and how can I solve the issue.

SVN server version: 1.8.13 (r1667537) compiled Mar 20 2015, 11:32:18 on x86_64-unknown-linux-gnu 

SVN client version: 1.9.3 (r1718519) compiled Dec 22 2015, 09:12:06 on x86_64-microsoft-windows6.2.9200

SVN Client running on Windows Server 2008 R2 and SVN server in linux machine. 

Please feel free to ask any question. I would be happy to provide you more information.

Thank you so much in advance.


回答1:


I finally found the solution.

Instead of writing down the link https://svn..... in the svncheckout command, I used the numeric IP address (e.g. 192.168.73.39) of the server instead of its hostname and it worked.

I hope this helps someone.




回答2:


First of all, you have to check the server log. There have to be clues on the root cause.

Secondly, the problem has nothing to do with Subversion in particular. You have to check the network configuration and make sure that your Linux machine properly accepts connections on the required ports and IP interfaces.




回答3:


For me, svn was trying to connect via ipv6 and the remote server did not have a properly configured or ipv6-capable firewall. Similar chatter on the mailing list suggests editing your hosts file such that you only ever connect via ipv4 which worked for me :/



来源:https://stackoverflow.com/questions/37860183/occasional-svn-e170013-unable-to-connect-to-a-repository-at-url-https-svn

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!