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ビュー
回答なし

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ