Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
fviard opened this issue Jun 21, 2020 · 0 comments
Closed

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

fviard opened this issue Jun 21, 2020 · 0 comments
Assignees
Milestone

Comments

@fviard
Copy link
Contributor

fviard commented Jun 21, 2020

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

@fviard fviard added this to the 2.2.0 milestone Jun 21, 2020
@fviard fviard self-assigned this Jun 21, 2020
@fviard fviard closed this as completed in 6b77476 Jun 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant