You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Stefan Richter <ri...@bauwesen.tu-cottbus.de> on 2002/06/29 14:40:39 UTC

request: error string for proxy problems in svn client (was Re: svn project website: error in FAQ)

On 17 Jun, I wrote:
> It'd also be nice to assist people [...] who get
> totally obscure errors with their svn client and don't realize
> it's because of a proxy. Example:

I checked out the subversion repo without a proxy in the way.
Then I dialed into a cheap provider using a "transparent" http
proxy:
	$ svn up

	apr_error: #20014, src_err 0 : <Error string not specified yet>
	  REPORT request failed on /repos/svn/trunk

	apr_error: #20014, src_err 0 : <Error string not specified yet>
	  The REPORT status was 400, but expected 200.

Ordinary Joe can't identify the cause of the problem reading
this.

Karl Fogel asked me to check exactly where the error occurs.
Well, I'm to lazy to update/ install the tools required to build
a svn client so I'm only providing you with strace's output when
running the svn-1611 binary on linux-x86 with the command line
above.

I removed the first part of the log where svn examines local
files and I shortened the data read from the socket.

Maybe the svn client could derive a meaningful error message on
reception of "HTTP/1.0 400 Bad Request" and "Proxy-Connection:
close". Other proxies produce other replies though. Josef Wolf
posted on 26 Jun: "HTTP/1.0 500 Server Error" and "Proxy-agent:
Netscape-Proxy/3.52". E.g. if response status isn't 200 and if
string "Proxy" is present in the headers receipt, write a pointer
to http://subversion.tigris.org/project_faq.html#proxy to stderr.

BTW: How about adding "How do I avoid a proxy when accessing a
repository?" to the FAQ?

> (Note: Though I usually subscribe to MLs I post to I'm not
> subscribed to dev@subversion.)
-- 
Stefan Richter
-=====-=--=- -==- ===-=
http://arcgraph.de/sr/

RE: request: error string for proxy problems in svn client (was Re: svn project website: error in FAQ)

Posted by Sander Striker <st...@apache.org>.
> From: Karl Fogel [mailto:kfogel@newton.ch.collab.net]
> Sent: 01 July 2002 20:26

> mark benedetto king <bk...@inquira.com> writes:
> > Well, if The Powers That Be are willing to turn on https support, we
> > might not have to answer all these FAQs. :-)
> 
> I'm not really familiar with what's necessary (server and client side)
> to make this work smoothly.  Are you, and could you summarize if so?

It's quite simple:

 - compile mod_ssl
 - generate a self signed server cert
 - configure a vhost on port 443 with ssl enabled
 - restart httpd
 
> > If not, "desproxy" from sourceforge is a good way of circumventing
> > recalcitrant proxies.
> 
> Heh!  Two words: "arms race"... :-)

Sander


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: request: error string for proxy problems in svn client (was Re: svn project website: error in FAQ)

Posted by Karl Fogel <kf...@newton.ch.collab.net>.
mark benedetto king <bk...@inquira.com> writes:
> Well, if The Powers That Be are willing to turn on https support, we
> might not have to answer all these FAQs. :-)

I'm not really familiar with what's necessary (server and client side)
to make this work smoothly.  Are you, and could you summarize if so?

> If not, "desproxy" from sourceforge is a good way of circumventing
> recalcitrant proxies.

Heh!  Two words: "arms race"... :-)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: request: error string for proxy problems in svn client (was Re: svn project website: error in FAQ)

Posted by mark benedetto king <bk...@inquira.com>.
On Sun, Jun 30, 2002 at 07:30:35PM -0500, Karl Fogel wrote:
> Stefan Richter <ri...@bauwesen.tu-cottbus.de> writes:
> > Use a port number different from 80, or use ssl --- if the svn
> > server kindly provides it... I guess.
>
> By `ssl', do you mean "https://", or do you mean tunnelling http over
> ssh -L or something similar?  Or both?

Well, turning on https support on svn.collab.net *would* help quite
a bit.  There are performance implications, though.

>
> Obviously the latter method would circumvent a proxy that allows ssh
> traffic but prohibits http.  I'm not sure how proxies tend to react to
> the former, though.  Perhaps you have more experience...?
>

https-over-proxy generally gets implemented via the "CONNECT" method.
This almost always works perfectly.

> Meanwhile, I'll commit some changes to the FAQ, but feel free to
> advise further changes...
>

Well, if The Powers That Be are willing to turn on https support, we
might not have to answer all these FAQs. :-)

If not, "desproxy" from sourceforge is a good way of circumventing
recalcitrant proxies.

--ben


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: request: error string for proxy problems in svn client (was Re: svn project website: error in FAQ)

Posted by Karl Fogel <kf...@newton.ch.collab.net>.
Stefan Richter <ri...@bauwesen.tu-cottbus.de> writes:
> Use a port number different from 80, or use ssl --- if the svn
> server kindly provides it... I guess.

By `ssl', do you mean "https://", or do you mean tunnelling http over
ssh -L or something similar?  Or both?

Obviously the latter method would circumvent a proxy that allows ssh
traffic but prohibits http.  I'm not sure how proxies tend to react to
the former, though.  Perhaps you have more experience...?

Meanwhile, I'll commit some changes to the FAQ, but feel free to
advise further changes...

-K


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: request: error string for proxy problems in svn client (was Re: svn project website: error in FAQ)

Posted by Karl Fogel <kf...@newton.ch.collab.net>.
Stefan Richter <ri...@bauwesen.tu-cottbus.de> writes:
> Use a port number different from 80, or use ssl --- if the svn
> server kindly provides it... I guess.

Ding!  I somehow forgot about our port 81 instance, thanks.  (Though
this will only help people avoid simple proxies, nevertheless it's
worth mentioning.)

-K


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: request: error string for proxy problems in svn client (was Re: svn project website: error in FAQ)

Posted by Stefan Richter <ri...@bauwesen.tu-cottbus.de>.
On 30 Jun, Karl Fogel wrote:
> Stefan Richter <ri...@bauwesen.tu-cottbus.de> writes:
>> BTW: How about adding "How do I avoid a proxy when accessing a
>> repository?" to the FAQ?
> 
> And what would the answer to that question be? :-)

Use a port number different from 80, or use ssl --- if the svn
server kindly provides it... I guess.
-- 
Stefan Richter
-=====-=--=- -==- ====-
http://arcgraph.de/sr/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: request: error string for proxy problems in svn client (was Re: svn project website: error in FAQ)

Posted by Karl Fogel <kf...@newton.ch.collab.net>.
Stefan Richter <ri...@bauwesen.tu-cottbus.de> writes:
> Maybe the svn client could derive a meaningful error message on
> reception of "HTTP/1.0 400 Bad Request" and "Proxy-Connection:
> close". Other proxies produce other replies though. Josef Wolf
> posted on 26 Jun: "HTTP/1.0 500 Server Error" and "Proxy-agent:
> Netscape-Proxy/3.52". E.g. if response status isn't 200 and if
> string "Proxy" is present in the headers receipt, write a pointer
> to http://subversion.tigris.org/project_faq.html#proxy to stderr.

Thanks for the ideas and the strace.

> BTW: How about adding "How do I avoid a proxy when accessing a
> repository?" to the FAQ?

And what would the answer to that question be? :-)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org