SVN server does not respond to write requests

I am trying to set up an SVN repository using apache web server. I was able to get a repo created and configured without any problems. I can contact the repo through a browser, so I think the Apache configuration is correct. The problem occurs when I try to make an initial commit. When I run the commit command in the terminal, it hangs for several minutes before returning svn: E175012: Connection timed out . The initial commit is a single file, less than 100 KB. Even stranger is that after the command fails, an HTTPd process is created on my system that uses 90% of the CPU.

I did some research to find out if I can solve the problem myself, but so far nothing has worked out. I was able to use Charles Proxy to monitor HTTP requests, and it looks like the svn client is sending POST but never receiving a response from the server. After the default timeout (10 minutes) has elapsed, the client refuses and displays a timeout error.

I also tried SvnServe up the repo using SvnServe instead of apache. I was able to read and write a repo using svn: //. However, the code I'm working on expects to communicate with the repo via HTTP, so I still need to find out what the problem is with apache.

Does anyone know what might cause this problem? Are there any other steps that I can take to fix the problem for myself?

[Update]

I checked the logs for my apache server. Here is what I see when I run commit:

_myip_ - - [28/Feb/2017:10:04:04 -0500] "OPTIONS /my/repo HTTP/1.1" 200 190 "-" "SVN/1.9.5 (x86_64-apple-darwin16.1.0) serf/1.3.9" _myip_ - - [28/Feb/2017:10:04:04 -0500] "OPTIONS /my/repo HTTP/1.1" 200 97 "-" "SVN/1.9.5 (x86_64-apple-darwin16.1.0) serf/1.3.9"

[Update 2] To narrow down the cause of this problem, I tried setting up another Apache server on a Linux virtual machine. This server worked fine, and I could even read / write to it from osx. So it looks like the problem is with the apache server on OSX.

+5
source share
1 answer

Please try this.

$ sudo chmod -R 775 / var / lib / svn

Link URL-: https://gotechnies.com/setup-svn-server-ubuntu/

0
source

Source: https://habr.com/ru/post/1264594/


All Articles