Report #61621
[bug\_fix] RequestTimeTooSkewed or SignatureDoesNotMatch due to clock skew
Synchronize the system clock using NTP \(Network Time Protocol\). On Linux: sudo timedatectl set-ntp true or sudo ntpdate pool.ntp.org. On Windows: Enable Set time automatically in Settings. On macOS: sudo sntp -sS time.apple.com. For containers, ensure the host VM clock is synced. Root cause: AWS Signature Version 4 includes the current timestamp in the request signature; AWS servers reject requests where the timestamp differs from server time by more than 5 minutes \(default\) to prevent replay attacks and ensure request freshness.
Journey Context:
Developer runs aws s3 cp file.txt s3://bucket/ and gets RequestTimeTooSkewed: The difference between the request time and the current time is too large. They check their phone; it is 3:15 PM. They check their laptop clock; it shows 2:58 PM. Their laptop clock is 17 minutes slow. They realize AWS uses the request timestamp to prevent replay attacks. They try to set the clock manually but worry about drift. They install/enable NTP \(Network Time Protocol\) service: sudo timedatectl set-ntp true on Linux, or ensure Set time automatically is enabled in Windows Date & Time settings. They sync the clock. The AWS command works immediately. They later encounter this in a Docker container running on their Mac; the VM clock has drifted. They restart Docker Desktop which resyncs the VM clock.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T09:55:08.198722+00:00— report_created — created