Skip to content

ConnectionResetError exception leads to another exception: TypeError: decoding to str: need a bytes-like object, NoneType found #1174

@cure

Description

@cure

2021-02-05T01:25:34.495514092Z
2021-02-05T01:25:34.495514092Z !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2021-02-05T01:25:34.495514092Z An unexpected error has occurred.
2021-02-05T01:25:34.495514092Z Please try reproducing the error using
2021-02-05T01:25:34.495514092Z the latest s3cmd code from the git master
2021-02-05T01:25:34.495514092Z branch found at:
2021-02-05T01:25:34.495514092Z https://github.com/s3tools/s3cmd
2021-02-05T01:25:34.495514092Z and have a look at the known issues list:
2021-02-05T01:25:34.495514092Z https://github.com/s3tools/s3cmd/wiki/Common-known-issues-and-their-solutions
2021-02-05T01:25:34.495514092Z If the error persists, please report the
2021-02-05T01:25:34.495514092Z following lines (removing any private
2021-02-05T01:25:34.495514092Z info as necessary) to:
2021-02-05T01:25:34.495514092Z s3tools-bugs@lists.sourceforge.net
2021-02-05T01:25:34.495514092Z
2021-02-05T01:25:34.495514092Z
2021-02-05T01:25:34.495514092Z !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2021-02-05T01:25:34.495514092Z
2021-02-05T01:25:34.495514092Z Invoked as: /usr/share/python3/dist/python3-arvados-cwl-runner/bin/s3cmd get --requester-pays --access_key=STRIPPED --secret_key=STRIPPED s3://STRIPPED -
2021-02-05T01:25:34.495514092Z Problem: <class 'ConnectionResetError: [Errno 104] Connection reset by peer
2021-02-05T01:25:34.495514092Z S3cmd: 2.1.0
2021-02-05T01:25:34.495514092Z python: 3.7.3 (default, Jul 25 2020, 13:03:44)
2021-02-05T01:25:34.495514092Z [GCC 8.3.0]
2021-02-05T01:25:34.505515818Z Traceback (most recent call last):
2021-02-05T01:25:34.505515818Z File "/usr/share/python3/dist/python3-arvados-cwl-runner/bin/s3cmd", line 3121, in
2021-02-05T01:25:34.505515818Z rc = main()
2021-02-05T01:25:34.505515818Z File "/usr/share/python3/dist/python3-arvados-cwl-runner/bin/s3cmd", line 3030, in main
2021-02-05T01:25:34.505515818Z rc = cmd_func(args)
2021-02-05T01:25:34.505515818Z File "/usr/share/python3/dist/python3-arvados-cwl-runner/bin/s3cmd", line 604, in cmd_object_get
2021-02-05T01:25:34.505515818Z response = s3.object_get(uri, dst_stream, destination, start_position = start_position, extra_label = seq_label)
2021-02-05T01:25:34.505515818Z File "/usr/share/python3/dist/python3-arvados-cwl-runner/lib/python3.7/site-packages/S3/S3.py", line 726, in object_get
2021-02-05T01:25:34.505515818Z response = self.recv_file(request, stream, labels, start_position)
2021-02-05T01:25:34.505515818Z File "/usr/share/python3/dist/python3-arvados-cwl-runner/lib/python3.7/site-packages/S3/S3.py", line 1690, in recv_file
2021-02-05T01:25:34.505515818Z request, stream, labels, start_position)
2021-02-05T01:25:34.505515818Z File "/usr/share/python3/dist/python3-arvados-cwl-runner/lib/python3.7/site-packages/S3/S3.py", line 1198, in _http_400_handler
2021-02-05T01:25:34.505515818Z return fn(*args, **kwargs)
2021-02-05T01:25:34.505515818Z File "/usr/share/python3/dist/python3-arvados-cwl-runner/lib/python3.7/site-packages/S3/S3.py", line 1733, in recv_file
2021-02-05T01:25:34.505515818Z data = http_response.read(this_chunk)
2021-02-05T01:25:34.505515818Z File "/usr/lib/python3.7/http/client.py", line 457, in read
2021-02-05T01:25:34.505515818Z n = self.readinto(b)
2021-02-05T01:25:34.505515818Z File "/usr/lib/python3.7/http/client.py", line 501, in readinto
2021-02-05T01:25:34.505515818Z n = self.fp.readinto(b)
2021-02-05T01:25:34.505515818Z File "/usr/lib/python3.7/socket.py", line 589, in readinto
2021-02-05T01:25:34.505515818Z return self._sock.recv_into(b)
2021-02-05T01:25:34.505515818Z File "/usr/lib/python3.7/ssl.py", line 1052, in recv_into
2021-02-05T01:25:34.505515818Z return self.read(nbytes, buffer)
2021-02-05T01:25:34.505515818Z File "/usr/lib/python3.7/ssl.py", line 911, in read
2021-02-05T01:25:34.505515818Z return self._sslobj.read(len, buffer)
2021-02-05T01:25:34.505515818Z ConnectionResetError: [Errno 104] Connection reset by peer
2021-02-05T01:25:34.505515818Z
2021-02-05T01:25:34.505515818Z During handling of the above exception, another exception occurred:
2021-02-05T01:25:34.505515818Z
2021-02-05T01:25:34.505515818Z Traceback (most recent call last):
2021-02-05T01:25:34.505515818Z File "/usr/share/python3/dist/python3-arvados-cwl-runner/bin/s3cmd", line 3171, in
2021-02-05T01:25:34.505515818Z report_exception(e)
2021-02-05T01:25:34.505515818Z File "/usr/share/python3/dist/python3-arvados-cwl-runner/bin/s3cmd", line 3076, in report_exception
2021-02-05T01:25:34.505515818Z sys.stderr.write(u"environment LANG=%s\n" % unicodise_s(os.getenv("LANG"), 'ascii'))
2021-02-05T01:25:34.505515818Z File "/usr/share/python3/dist/python3-arvados-cwl-runner/lib/python3.7/site-packages/S3/Utils.py", line 321, in unicodise_s
2021-02-05T01:25:34.505515818Z return unicodise(string, encoding, errors, True)
2021-02-05T01:25:34.505515818Z File "/usr/share/python3/dist/python3-arvados-cwl-runner/lib/python3.7/site-packages/S3/Utils.py", line 312, in unicodise
2021-02-05T01:25:34.505515818Z return unicode(string, encoding, errors)
2021-02-05T01:25:34.505515818Z TypeError: decoding to str: need a bytes-like object, NoneType found

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