Skip to content

NotADirectory unexpected error #1430

@mattwkcc

Description

@mattwkcc

Hello,

Trying to download files from our S3 bucket, runs for a while then crashes.

S3 bucket Total size: 227.1 GB, Objects: 827,920

s3cmd version 2.4.0-2
OS: Ubuntu 24.04.3

Error:

INFO: Creating directory: /opt/s3backup/site.company.com/ML/03122025-staging-test/

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    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: /usr/bin/s3cmd get --recursive s3://site.company.com/ /opt/s3backup/site.company.com/ --verbose --skip-existing
Problem: <class 'NotADirectoryError: [Errno 20] Not a directory
S3cmd:   2.4.0
python:   3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0]
environment LANG=en_US.UTF-8

Traceback (most recent call last):
  File "/usr/bin/s3cmd", line 3627, in <module>
    rc = main()
         ^^^^^^
  File "/usr/bin/s3cmd", line 3524, in main
    rc = cmd_func(args)
         ^^^^^^^^^^^^^^
  File "/usr/bin/s3cmd", line 742, in cmd_object_get
    os.utime(destination_bytes, (last_modified_ts, last_modified_ts))
NotADirectoryError: [Errno 20] Not a directory

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    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]
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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