conan: Package download retry. (conan.io ECONNRESET error)

Hello!

Server sometimes responds with: (‘Connection broken: error(“(104, 'ECONNRESET')”,)’, error(“(104, ‘ECONNRESET’)”,)). [Remote: conan.io].

It is reproduced in Travis jobs. E.g. https://travis-ci.org/theirix/conan-libssh2/jobs/222844602 :

zlib/1.2.11@lasote/stable: Looking for package 8767e89412729a395e7a478e291eeb99291fe27b in remote 'conan.io' 
Downloading conanmanifest.txt
[==================================================]                  
Downloading conaninfo.txt
[==================================================]                  
Downloading conan_package.tgz
ERROR: Download failed, check server, possibly try again
('Connection broken: error("(104, \'ECONNRESET\')",)', error("(104, 'ECONNRESET')",)). [Remote: conan.io]
Error while executing:
	 conan test_package . -s arch="x86" -s build_type="Release" -s compiler="gcc" -s compiler.version="5.4" -o libssh2:shared="True" -o OpenSSL:no_electric_fence="True" 

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 18 (16 by maintainers)

Most upvoted comments

Download retries would be good anyway. Sometimes I experience connection problems with a private Conan server (caused by bugs in a old linux kernel while using docker). So these retries could help to mitigate a lot of problems.

Download retries are now default (from conan 1.7) in Conan package transfers, so I think this issue can be closed. But please re-open or comment otherwise

@memsharded there is something fishy since it’s not Gb but Mb. Haha. I have tried running multiple times and it breaks fails on other small ones too from time to time. And for the qt it needs up to 20 retries (it’s pretty sporadic). I have checked the frontend/Artifactory settings and can’t find an issue on that end. I’ll look into implementing the thing then. Though would such things be better of as global Conan settings instead?