Skip to content

Throwing a connection exception during the building process of the planning customization module  #3

@alhezmi72

Description

@alhezmi72

Connection error during the download of the project dependencies of both the example or the planning module.

  1. Example: $>buildtool build --packages example_components
  2. Planning module: $> buildtool build --packages planning_customization

In both cases the following output is given:
[buildtool] INFO apollo build tool exit.
layth@in-dev-docker:/apollo_workspace/application-demo$ buildtool build --packages example_components
[buildtool] INFO try to search plugin in local...
[buildtool] INFO plugin search complete:
/opt/apollo/neo/packages/buildtool-dev/1.0.0.12/pkg_maker/action
[buildtool] INFO Gpu is not available, using cpu instead
[buildtool] INFO Reconfigure apollo enviroment setup
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/urllib3/connectionpool.py", line 710, in urlopen
chunked=chunked,
File "/usr/local/lib/python3.6/dist-packages/urllib3/connectionpool.py", line 386, in _make_request
self.validate_conn(conn)
File "/usr/local/lib/python3.6/dist-packages/urllib3/connectionpool.py", line 1042, in validate_conn
conn.connect()
File "/usr/local/lib/python3.6/dist-packages/urllib3/connection.py", line 424, in connect
tls_in_tls=tls_in_tls,
File "/usr/local/lib/python3.6/dist-packages/urllib3/util/ssl
.py", line 450, in ssl_wrap_socket
sock, context, tls_in_tls, server_hostname=server_hostname
File "/usr/local/lib/python3.6/dist-packages/urllib3/util/ssl
.py", line 493, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/lib/python3.6/ssl.py", line 407, in wrap_socket
_context=self, _session=session)
File "/usr/lib/python3.6/ssl.py", line 817, in init
self.do_handshake()
File "/usr/lib/python3.6/ssl.py", line 1077, in do_handshake
self._sslobj.do_handshake()
File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
self._sslobj.do_handshake()
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 450, in send
timeout=timeout
File "/usr/local/lib/python3.6/dist-packages/urllib3/connectionpool.py", line 788, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/local/lib/python3.6/dist-packages/urllib3/util/retry.py", line 550, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/local/lib/python3.6/dist-packages/urllib3/packages/six.py", line 769, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.6/dist-packages/urllib3/connectionpool.py", line 710, in urlopen
chunked=chunked,
File "/usr/local/lib/python3.6/dist-packages/urllib3/connectionpool.py", line 386, in _make_request
self.validate_conn(conn)
File "/usr/local/lib/python3.6/dist-packages/urllib3/connectionpool.py", line 1042, in validate_conn
conn.connect()
File "/usr/local/lib/python3.6/dist-packages/urllib3/connection.py", line 424, in connect
tls_in_tls=tls_in_tls,
File "/usr/local/lib/python3.6/dist-packages/urllib3/util/ssl
.py", line 450, in ssl_wrap_socket
sock, context, tls_in_tls, server_hostname=server_hostname
File "/usr/local/lib/python3.6/dist-packages/urllib3/util/ssl
.py", line 493, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/lib/python3.6/ssl.py", line 407, in wrap_socket
_context=self, _session=session)
File "/usr/lib/python3.6/ssl.py", line 817, in init
self.do_handshake()
File "/usr/lib/python3.6/ssl.py", line 1077, in do_handshake
self._sslobj.do_handshake()
File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
self._sslobj.do_handshake()
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/bin/buildtool", line 226, in
sys.exit(main() or 0)
File "/usr/bin/buildtool", line 218, in main
ret = obj.main()
File "/usr/bin/buildtool", line 211, in main
gpu=self.use_gpu, esd=self.use_esd)
File "/opt/apollo/neo/packages/buildtool-dev/1.0.0.12/core/entry_point.py", line 182, in execute
return self.actions[verb].execute(args, **kwargs)
File "/opt/apollo/neo/packages/buildtool-dev/1.0.0.12/core/action/build.py", line 240, in execute
targets = self.decider(targets)
File "/opt/apollo/neo/packages/buildtool-dev/1.0.0.12/core/version_decide/decider.py", line 300, in call
self._stored_package_info_recu(target, targets)
File "/opt/apollo/neo/packages/buildtool-dev/1.0.0.12/core/version_decide/decider.py", line 359, in _stored_package_info_recu
version_format = self.metadata_cli.get_available_version_format(desc_dep.name)
File "/opt/apollo/neo/packages/buildtool-dev/1.0.0.12/core/version_decide/cyberfile/init.py", line 255, in get_available_version_format
cyber_content = self.acquire_cyberfile(name)
File "/opt/apollo/neo/packages/buildtool-dev/1.0.0.12/core/version_decide/cyberfile/init.py", line 206, in acquire_cyberfile
cyberfile_resp = requests.get(cyberfile_url)
File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 529, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 501, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

What could be the reason?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions