Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We're using Subversion for source control, hosted on a machine behind a router, using port forwarding. On the local network everything seems OK. But when we connect to SVN from a remote computer using a SVN client (AnkhSVN or RedGate SQL Source Control in our case), the connection is extremely flaky. Sometimes (maybe 20% of the time) it works, but most of the time it fails, saying:

SharpSvn.SvnRepositoryIOException: Unable to connect to a repository at URL 'http://mysite.com:8085/svn/myproj/blahblah' ---> SharpSvn.SvnRepositoryIOException: OPTIONS of 'http://mysite.com:8085/svn/myproj/blahblah': could not connect to server (http://mysite.com:8085)

--- End of inner exception stack trace ---

at SharpSvn.SvnClientArgs.HandleResult(SvnClientContext client, SvnException error, Object targets)

at SharpSvn.SvnClientArgs.HandleResult(SvnClientContext client, svn_error_t* error, Object targets)

at SharpSvn.SvnClient.Update(ICollection`1 paths, SvnUpdateArgs args, SvnUpdateResult& result)

at SharpSvn.SvnClient.Update(String path, SvnUpdateArgs args, SvnUpdateResult& result)

at Ankh.Commands.SolutionUpdateCommand.PerformUpdate(CommandEventArgs e, ProgressWorkerArgs wa, SvnRevision rev, Boolean allowUnversionedObstructions, Boolean updateExternals, Boolean setDepthInfinity, IEnumerable`1 groups, SvnUpdateResult& updateResult)

at Ankh.Commands.SolutionUpdateCommand.<>c_DisplayClass9.b_6(Object sender, ProgressWorkerArgs a)

at Ankh.ProgressRunnerService.ProgressRunner.Run(Object arg)

The port is clearly open and not being blocked by any firewall, and port forwarding is working, otherwise it would fail 100% of the time. And opening that URL in a browser behaves similarly - sometimes it works, and sometimes it fails.

Any ideas what's wrong, or how to fix?

share|improve this question
    
I wouldn't dismiss the router setup early. After all the repo works just fine within the local lan. –  djf Aug 16 '12 at 10:33
    
Are there any other services running on the same server (e.g. SSH)? Are they more reliable? –  djf Aug 16 '12 at 10:42
    
@djf - yes, we are also running IIS on that server. Port forwarding on port 80 is 100% ok. –  Shaul Aug 16 '12 at 10:56
    
Alright. Could you post the entire error message? There are couple of reasons that could generate the Unable to connect to a repository error –  djf Aug 16 '12 at 11:04
    
@djf - edited question to include full error message –  Shaul Aug 16 '12 at 11:10
show 2 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.