conan-io / conan

Conan - The open-source C and C++ package manager
https://conan.io
MIT License
8.26k stars 981 forks source link

Why remote package management show an error "104, 'Connection reset by peer'"? #5487

Closed rchatsiri closed 5 years ago

rchatsiri commented 5 years ago

To help us debug your issue please explain:

I'm add profile to ~/.conan/profiles/tt-dev-profile

[settings]
 os=Linux
 os_build=Linux
 arch=x86_64
 arch_build=x86_64
 build_type=Release
 compiler=g++
 compiler.libcxx=libstdc++11
 compiler.version=7.3.1

[options]
[build_requires]

[settings]
 compiler=gcc
 compiler.version=7.3
 compiler.libcxx=libstdc++11
 arch=x86_64
 os=Linux
 arch_build=x86_64
 os_build=Linux

[env]
 CXX=/opt/rh/devtoolset-7/root/usr/bin/g++
 CC=/opt/rh/devtoolset-7/root/usr/bin/gcc

2) Conan file build simple library at source directory.

[requires]
   bzip2/1.0.6@conan/stable
   boost_regex/1.69.0@bincrafters/stable
   folly/2018.11.12.00@bincrafters/stable
   glog/0.4.0@bincrafters/stable

[generators]
    cmake

3) Create build directory inside source directory. $mkdir build 4) run command line in build directory same below. conan install .. --profile tt-dev-profile --build boost --build bzip2 --build gflags --build glog --build double-conversion --build lz4 --build lzma --build zlib --build zstd --build OpenSSL

An error show in console after run conan install ..

boost/1.67.0@conan/stable: Package '96c467fc714621b8a99cf99038f3049526874db9' built
boost/1.67.0@conan/stable: Build folder /home/vagrant/.conan/data/boost/1.67.0/conan/stable/build/96c467fc714621b8a99cf99038f3049526874db9
boost/1.67.0@conan/stable: Generated conaninfo.txt
boost/1.67.0@conan/stable: Generated conanbuildinfo.txt
boost/1.67.0@conan/stable: Generating the package
boost/1.67.0@conan/stable: Package folder /home/vagrant/.conan/data/boost/1.67.0/conan/stable/package/96c467fc714621b8a99cf99038f3049526874db9
boost/1.67.0@conan/stable: Calling package()
boost/1.67.0@conan/stable package(): Packaged 141 '.h' files
boost/1.67.0@conan/stable package(): Packaged 3 '.pl' files: gen_signal_N.pl, gen_function_N.pl, gen_maybe_include.pl
boost/1.67.0@conan/stable package(): Packaged 3 '.m4' files: pool_construct_simple.m4, pool_construct.m4, for.m4
boost/1.67.0@conan/stable package(): Packaged 2 '.bat' files: pool_construct_simple.bat, pool_construct.bat
boost/1.67.0@conan/stable package(): Packaged 5 '.txt' files
boost/1.67.0@conan/stable package(): Packaged 17 files
boost/1.67.0@conan/stable package(): Packaged 38 '.a' files
boost/1.67.0@conan/stable package(): Packaged 2 '.re' files: strict_cpp.re, cpp.re
boost/1.67.0@conan/stable package(): Packaged 2 '.inc' files: strict_cpp_re.inc, cpp_re.inc
boost/1.67.0@conan/stable package(): Packaged 2 '.cpp' files: src.cpp, create_tables.cpp
boost/1.67.0@conan/stable package(): Packaged 12982 '.hpp' files
boost/1.67.0@conan/stable package(): Packaged 1 '.patch' file: ublas_matrix_expression.patch
boost/1.67.0@conan/stable package(): Packaged 1 '.dtd' file: parsetree.dtd
boost/1.67.0@conan/stable package(): Packaged 1 '.erb' file: struct_macros.hpp.erb
boost/1.67.0@conan/stable package(): Packaged 2 '.sh' files: pool_construct_simple.sh, pool_construct.sh
boost/1.67.0@conan/stable package(): Packaged 226 '.ipp' files
boost/1.67.0@conan/stable: Package '96c467fc714621b8a99cf99038f3049526874db9' created
boost/1.67.0@conan/stable: Created package revision 4dc95d34460bba386d3f7f1ebde91e1b
boost/1.67.0@conan/stable: LIBRARIES: ['boost_wave', 'boost_container', 'boost_contract', 'boost_exception', 'boost_graph', 'boost_iostreams', 'boost_locale', 'boost_log', 'boost_program_options', 'boost_random', 'boost_regex', 'boost_serialization', 'boost_wserialization', 'boost_signals', 'boost_coroutine', 'boost_fiber', 'boost_context', 'boost_timer', 'boost_thread', 'boost_chrono', 'boost_date_time', 'boost_atomic', 'boost_filesystem', 'boost_system', 'boost_type_erasure', 'boost_log_setup', 'boost_math_c99', 'boost_math_c99f', 'boost_math_c99l', 'boost_math_tr1', 'boost_math_tr1f', 'boost_math_tr1l', 'boost_stacktrace_addr2line', 'boost_stacktrace_basic', 'boost_stacktrace_noop', 'boost_unit_test_framework']
boost/1.67.0@conan/stable: Package folder: /home/vagrant/.conan/data/boost/1.67.0/conan/stable/package/96c467fc714621b8a99cf99038f3049526874db9
boost_assert/1.69.0@bincrafters/stable: Retrieving package 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 from remote 'bincrafters'
boost_assert/1.69.0@bincrafters/stable: ERROR: Exception while getting package: 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
boost_assert/1.69.0@bincrafters/stable: ERROR: Exception: <class 'conans.errors.ConanConnectionError'> ('Connection aborted.', error(104, 'Connection reset by peer'))

Unable to connect to bincrafters=https://api.bintray.com/conan/bincrafters/public-conan
boost_assert/1.69.0@bincrafters/stable: WARN: Trying to remove package folder: /home/vagrant/.conan/data/boost_assert/1.69.0/bincrafters/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
ERROR: ('Connection aborted.', error(104, 'Connection reset by peer'))

Unable to connect to bincrafters=https://api.bintray.com/conan/bincrafters/public-conan
lasote commented 5 years ago

Looks like an error with Bintray service. Does it happen always? Frequently?...

rchatsiri commented 5 years ago

It's many time show an error when i'm build boost library.

lasote commented 5 years ago

Try with Conan version 1.17.0. We solved and issue that might be related.

rchatsiri commented 5 years ago

It's already to build success after change version to 1.17.0. I'm was deleted cache package at path ~/.conan/data and run install command again. We should close this issue.