Skip to content

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

@paulohenriqgoes

Description

@paulohenriqgoes

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:
s3tools-bugs@lists.sourceforge.net

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

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:
s3tools-bugs@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Use --force to continue.

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