Skip to content

report_exception stacktrace error if LANG env var is not set #1113

@fviard

Description

@fviard

Report from Kannan Goundan on s3tools-bugs mailinglist:

(OS: Ubuntu Linux)

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
An unexpected error has occurred.
Please try reproducing the error using
the latest s3cmd code from the git master
branch found at:
https://github.com/s3tools/s3cmd
and have a look at the known issues list:
https://github.com/s3tools/s3cmd/wiki/Common-known-issues-and-their-solutions
If the error persists, please report the
following lines (removing any private
info as necessary) to:
s3tools-bugs@lists.sourceforge.net

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Invoked as: /usr/local/bin/s3cmd --region=us-west-2 ls s3://redacted/redacted/redacted.tar.gz
Problem: error: [Errno 104] Connection reset by peer
S3cmd: 2.1.0
python: 2.7.17 (default, Apr 15 2020, 17:20:14)
[GCC 7.5.0]
Traceback (most recent call last):
File "/usr/local/bin/s3cmd", line 3171, in
report_exception(e)
File "/usr/local/bin/s3cmd", line 3076, in report_exception
sys.stderr.write(u"environment LANG=%s\n" % unicodise_s(os.getenv("LANG"), 'ascii'))
File "/usr/local/lib/python2.7/dist-packages/S3/Utils.py", line 321, in unicodise_s
return unicodise(string, encoding, errors, True)
File "/usr/local/lib/python2.7/dist-packages/S3/Utils.py", line 312, in unicodise
return unicode(string, encoding, errors)
TypeError: coercing to Unicode: need string or buffer, NoneType found

Traceback is a side

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions