On 2018/08/14 17:41, s_g...@telus.net wrote:
> The current setup failed on the last three builds I have done.
> 
> Wget seems to understand redirection. Note one line from wget output seems
> to imply that the site has moved permanently.
> 
> Connecting to pypi.org (pypi.org)|151.101.0.223|:443... connected.
> HTTP request sent, awaiting response... 301 Moved Permanently
> Location:
> https://files.pythonhosted.org/packages/source/s/six/six-1.11.0.tar.gz
> [following]
> --2018-08-14 15:57:26--
> https://files.pythonhosted.org/packages/source/s/six/six-1.11.0.tar.gz
> 
> ftp -d failed after a long time.
> 
> op1bsdtest2# ftp -d https://pypi.io/packages/source/s/six/six-1.11.0.tar.gz
> host pypi.io, port https, path packages/source/s/six/six-1.11.0.tar.gz, save
> as six-1.11.0.tar.gz, auth none.
> Trying 151.101.0.223...
> Requesting https://pypi.io/packages/source/s/six/six-1.11.0.tar.gz
> ftp: SSL write error: handshake failed: Operation timed out

The redirection thing is a red herring. ftp and wget both understand it and
it should happen quickly. As you aren't able to successfully connect to
https://pypi.io/ with ftp it doesn't even see the redirection, just eventually
times out and falls back to ftp.openbsd.org.

I'm not sure why wget can connect but ftp can't - I don't think either
are doing anything particularly unusual with the TLS connection and both use
libressl for this..

Can you try curl -v -o /dev/null 
https://pypi.io/packages/source/s/six/six-1.11.0.tar.gz ?
Does that succeed or fail, and can you paste the output? (it has better TLS
debug than ftp or wget).

Is this on armv7 again? If so are you able to test on a machine of another
arch on the same network?

Do you have problems connecting to anything else hosted on fastly?

Does the problem go away if you reduce MTU on the network interface?
("ifconfig em0 mtu 1200" or something?)



> -----Original Message-----
> From: Stuart Henderson <s...@spacehopper.org> 
> Sent: August 14, 2018 4:23 PM
> To: s_g...@telus.net
> Cc: ports@openbsd.org
> Subject: Re: python files moved
> 
> On 2018/08/14 16:03, s_g...@telus.net wrote:
> > When building php I get the following error which causes a multi 
> > minute timeout.  From a wget request it looks like the web site has 
> > moved.  This happens on many files and causes quite a slowdown in building
> a port.
> 
> If we point too far into the redirection chain for pypi we're more likely to
> have failures next time they change things, the pypi.io ones seems a more
> stable endpoint.
> 
> > ===>  Checking files for py-six-1.11.0
> > 
> > >> Fetch https://pypi.io/packages/source/s/six/six-1.11.0.tar.gz
> > 
> > ftp: SSL write error: handshake failed: Operation timed out
> > 
> > >> Fetch 
> > >> https://ftp.openbsd.org/pub/OpenBSD/distfiles/six-1.11.0.tar.gz
> > 
> > six-1.11.0.tar.gz 100%
> > |********************************************************| 29860
> 00:00
> > 
> >  
> > 
> > With wget:
> > 
> >  
> > 
> > op1bsdtest2# wget 
> > https://pypi.io/packages/source/s/six/six-1.11.0.tar.gz
> > 
> > --2018-08-14 15:57:26--
> > https://pypi.io/packages/source/s/six/six-1.11.0.tar.gz
> > 
> > Resolving pypi.io (pypi.io)... 151.101.0.223, 151.101.64.223, 
> > 151.101.128.223, ...
> > 
> > Connecting to pypi.io (pypi.io)|151.101.0.223|:443... connected.
> 
> It's rather odd that ftp(1) times out and wget succeeds. Does ftp -d throw
> any light on it?
> 
> 

Reply via email to