S3 sync command fails with "Connection broken" messages during reliable connection

0

When attempting to download from S3 to a Windows 11 system using the AWS CLI s3 sync command, some files fail with the following error message:

download failed: s3://bucketname/filename to D:\bucketname\filename ("Connection broken: ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)", ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))

There were no connectivity issues during the transfer and other files from the same bucket during the same sync session are written as expected.

aws-cli/2.7.13 Python/3.9.11 Windows/10 exe/AMD64 prompt/off
Windows Terminal, Version: 1.13.11432.0
Microsoft Windows 11 Enterprise, 10.0.22000 N/A Build 22000
  • For reference, similar behavior was reported by other users in Stack Overflow four years ago: https://stackoverflow.com/questions/51310901/aws-cli-s3-sync-error-an-existing-connection-was-forcibly-closed-by-the-remote

  • Using the same sync command syntax, hardware, bucket, files, destination, and host OS, I was able to work-around the defect by running the AWS CLI from Ubuntu on WSL. The AWS client on Ubuntu/WSL was:

    aws-cli/2.7.12 Python/3.9.11 Linux/5.10.16.3-microsoft-standard-WSL2 exe/x86_64.ubuntu.20 prompt/off
    

    Considering anti-virus as a possible cause per the Stack Overflow in the previous comment, the same anit-virus was running at the time both the Windows and WSL AWS CLIs were executing. The host OS was running the default Microsoft Defender Antivirus distributed with Microsoft Windows.

질문됨 2년 전119회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠