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

KeyError: 'etag' crash - latest #1406

Open
Jayd603 opened this issue Nov 24, 2024 · 2 comments
Open

KeyError: 'etag' crash - latest #1406

Jayd603 opened this issue Nov 24, 2024 · 2 comments

Comments

@Jayd603
Copy link

Jayd603 commented Nov 24, 2024

This error happens when using s3cmd with latest s3 java libs on the server so it impacts other apps. AWS cli works fine of course

root@da4:~# s3cmd get s3://da4/file.enc /anypath/file.enc

Invoked as: /usr/local/bin/s3cmd get s3://da4/file.enc /anypath/file.enc
Problem: <class 'KeyError: 'etag'
S3cmd: 2.4.0
python: 3.10.12 (main, Nov 6 2024, 20:22:13) [GCC 11.4.0]
environment LANG=en_US.UTF-8

Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/s3cmd-2.4.0-py3.10.egg/EGG-INFO/scripts/s3cmd", line 3627, in
File "/usr/local/lib/python3.10/dist-packages/s3cmd-2.4.0-py3.10.egg/EGG-INFO/scripts/s3cmd", line 3524, in main
File "/usr/local/lib/python3.10/dist-packages/s3cmd-2.4.0-py3.10.egg/EGG-INFO/scripts/s3cmd", line 548, in cmd_object_get
File "/usr/local/lib/python3.10/dist-packages/s3cmd-2.4.0-py3.10.egg/S3/FileLists.py", line 552, in fetch_remote_list
_get_remote_attribs(uri, remote_item)
File "/usr/local/lib/python3.10/dist-packages/s3cmd-2.4.0-py3.10.egg/S3/FileLists.py", line 411, in _get_remote_attribs
'md5': response['headers']['etag'].strip('"''),
KeyError: 'etag'

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
An unexpected error has occurred.

@fviard
Copy link
Contributor

fviard commented Nov 24, 2024

What is the server that you are using?
Would you mind running the command with the -d flag to see what is happening when it crashes?

@Jayd603
Copy link
Author

Jayd603 commented Nov 24, 2024

s3cmd_debug.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants