Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't download petscy4py: "Connection reset by peer" #910

Open
ThomasPKelly opened this issue Jan 17, 2016 · 8 comments
Open

Can't download petscy4py: "Connection reset by peer" #910

ThomasPKelly opened this issue Jan 17, 2016 · 8 comments

Comments

@ThomasPKelly
Copy link

Hi,

I'm installing fenics using hashdist. When it comes to installing petscy, I get the following error message:

Downloading https://bitbucket.org/petsc/petsc4py/downloads/petsc4py-3.6.0.tar.gz...
[CRITICAL] [Errno 104] Connection reset by peer

When I try the website, I have no problem downloading the tar file manually.

Thomas

@jcftang
Copy link
Member

jcftang commented Jan 17, 2016

Can you try with a -v to get some more verbose output? It could have been a transient network problem.

@ThomasPKelly
Copy link
Author

Thanks for the reply,

I have switched on verbose. Here is the stdout and stderr output.
fen_out.txt
fen_err.txt

@jcftang
Copy link
Member

jcftang commented Jan 17, 2016

Can you try a 'hit fetch https://bitbucket.org/petsc/petsc4py/downloads/petsc4py-3.6.0.tar.gz' and see if you get the same error? it may be worth checking which version of python you are using, I think there were SSL issues recently, it maybe a case of just disabling the SSL checks just for that one package.

@jcftang
Copy link
Member

jcftang commented Jan 17, 2016

FYI -

⌂63% [jtang:~/develop/hashstack2] master(1)+* 1 ± hit fetch https://bitbucket.org/petsc/petsc4py/downloads/petsc4py-3.6.0.tar.gz
Downloading https://bitbucket.org/petsc/petsc4py/downloads/petsc4py-3.6.0.tar.gz...
[=========================] 100.0% (1.5MB of 1.5MB) 1.121MB/s ETA 0s

sources:
- key: tar.gz:oisw2tnx6vupm6eiqsnav3xrnzikgmkr
  url: https://bitbucket.org/petsc/petsc4py/downloads/petsc4py-3.6.0.tar.gz

I seem to be able to get that file without problems from where I am

@johannesring
Copy link
Contributor

I also have no problems downloading that file with HashDist.

One workaround you could use is to download the file manually and then use hit fetch on the local file to add it to the HashDist source cache:

wget https://bitbucket.org/petsc/petsc4py/downloads/petsc4py-3.6.0.tar.gz
hit fetch petsc4py-3.6.0.tar.gz

@ahmadia
Copy link
Contributor

ahmadia commented Jan 18, 2016

I'm guessing it's a proxy issue. +1 on @johannesring's suggestion.

@ThomasPKelly
Copy link
Author

@jcftang hit fetch gives the same error unfortunately.
@johannesring Grabbing the file manually and then fetching it from my directory worked!

A question: Is there a reason wget was able to obtain the file, while hit fetch wasn't?

@ThomasPKelly
Copy link
Author

P.S. This the the output when running wget

--2016-01-18 15:51:40--  https://bitbucket.org/petsc/petsc4py/downloads/petsc4py-3.6.0.tar.gz
Resolving bitbucket.org (bitbucket.org)... 104.192.143.1, 104.192.143.3, 104.192.143.2
Connecting to bitbucket.org (bitbucket.org)|104.192.143.1|:443... connected.
HTTP request sent, awaiting response... 302 FOUND
Location: https://bbuseruploads.s3.amazonaws.com/petsc/petsc4py/downloads/petsc4py-3.6.0.tar.gz?Signature=EpRaQ6rR7zP866R9NldVF2mr%2F2E%3D&Expires=1453134046&AWSAccessKeyId=AKIAIWY5XSVPZPDQYRQQ&response-content-disposition=attachment%3B%20filename%3D%22petsc4py-3.6.0.tar.gz%22 [following]
--2016-01-18 15:51:40--  https://bbuseruploads.s3.amazonaws.com/petsc/petsc4py/downloads/petsc4py-3.6.0.tar.gz?Signature=EpRaQ6rR7zP866R9NldVF2mr%2F2E%3D&Expires=1453134046&AWSAccessKeyId=AKIAIWY5XSVPZPDQYRQQ&response-content-disposition=attachment%3B%20filename%3D%22petsc4py-3.6.0.tar.gz%22
Resolving bbuseruploads.s3.amazonaws.com (bbuseruploads.s3.amazonaws.com)... 54.231.81.184
Connecting to bbuseruploads.s3.amazonaws.com (bbuseruploads.s3.amazonaws.com)|54.231.81.184|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1606313 (1.5M) [application/x-tar]
Saving to: ‘petsc4py-3.6.0.tar.gz.1’

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants