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

S3cmd Failed when run --cf-invalidate --cf-no-invalidate-default-index-root #1388

Open
paulohenriqgoes opened this issue Jul 9, 2024 · 0 comments

Comments

@paulohenriqgoes
Copy link

Warning: Command failed: s3cmd sync --no-mime-magic --guess-mime-type --delete-removed --delete-after --cf-invalidate --cf-no-invalidate-default-index-root ./dist/ s3://ccstg-site-cortecloud/br/ && s3cmd modify --add-header=Cache-Control:max-age=0,no-cache s3://ccstg-site-cortecloud/br/*.html

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
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-(FAQ)
If the error persists, please report the
following lines (removing any private
info as necessary) to:
[email protected]

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

Invoked as: /opt/homebrew/bin/s3cmd sync --no-mime-magic --guess-mime-type --delete-removed --delete-after --cf-invalidate --cf-no-invalidate-default-index-root ./dist/ s3://ccstg-site-cortecloud/br/
Problem: <class 'NotImplementedError: List is truncated. Ask s3cmd author to add support.
S3cmd: 2.4.0
python: 3.12.2 (main, Feb 6 2024, 20:19:44) [Clang 15.0.0 (clang-1500.1.0.2.5)]
environment LANG=en_US.UTF-8

Traceback (most recent call last):
File "/opt/homebrew/bin/s3cmd", line 3627, in
rc = main()
^^^^^^
File "/opt/homebrew/bin/s3cmd", line 3524, in main
rc = cmd_func(args)
^^^^^^^^^^^^^^
File "/opt/homebrew/bin/s3cmd", line 2161, in cmd_sync
return cmd_sync_local2remote(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/bin/s3cmd", line 2134, in cmd_sync_local2remote
_invalidate_on_cf(destination_base_uri)
File "/opt/homebrew/bin/s3cmd", line 2104, in _invalidate_on_cf
results = cf.InvalidateObjects(destination_base_uri, uploaded_objects_list, default_index_file, cfg.invalidate_default_index_on_cf, cfg.invalidate_default_index_root_on_cf)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/s3cmd/2.4.0_1/libexec/lib/python3.12/site-packages/S3/CloudFront.py", line 481, in InvalidateObjects
cfuris = self.get_dist_name_for_bucket(uri)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/s3cmd/2.4.0_1/libexec/lib/python3.12/site-packages/S3/CloudFront.py", line 617, in get_dist_name_for_bucket
response = self.GetList()
^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/s3cmd/2.4.0_1/libexec/lib/python3.12/site-packages/S3/CloudFront.py", line 355, in GetList
raise NotImplementedError("List is truncated. Ask s3cmd author to add support.")
NotImplementedError: List is truncated. Ask s3cmd author to add support.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
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-(FAQ)
If the error persists, please report the
above lines (removing any private
info as necessary) to:
[email protected]
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Use --force to continue.

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

1 participant