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

Created on 13 Jul 2019  路  4Comments  路  Source: conan-io/conan

To help us debug your issue please explain:

  • [x] I've read the CONTRIBUTING guide.
  • [x] I've specified the Conan version, operating system version and any tool that can be relevant.
    Conan version: Conan version 1.16.1
    OS: Linux, CentOS: 3.10.0-957.1.3.el7.x86_64
    Cmake version: 3.10.1
    G++: g++ (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)
    GCC: gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)

  • [x] I've explained the steps to reproduce the error or the motivation/use case of the question/suggestion.

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
bintray triaging bug

Most helpful comment

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.

All 4 comments

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

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

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

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.

Was this page helpful?
0 / 5 - 0 ratings