WSL2 시간 동기화
WSL2를 이용해 실습을 위해 리소스를 생성하는 중에 특정 리소스가 계속해서 막히는 것을 확인했다.
확인한 결과, Terraform 커맨드를 실행하는 위치의 시간대역이 꼬여있어서 리소스 생성시에 Signature 검증의 오류가 발생한 것이다.
Signature expired: is now earlier than error : InvalidSignatureException
I am trying a small example with AWS API Gateway and IAM authorization. The AWS API Gateway generated the below Endpoint : https://xyz1234.execute-api.us-east-2.amazonaws.com/Users/users with POST
stackoverflow.com
WSL2 date incorrect after waking from sleep · Issue #5324 · microsoft/WSL
Your Windows build number (run ver at a Windows Command Prompt), your distribution (f.e. on Debian/Ubuntu run lsb_release -r), and whether the issue manifests on WSL 2 and/or WSL 1 (cat /proc/versi...
github.com
현재로써는 WSL2의 시간 동기화 문제를 해결하기 위한 대안으로는 2가지정도가 거론된다.
대안 #1
sudo apt update
sudo apt install chrony
sudo systemctl restart chrony
대안 #2
위의 chrony를 설치했음에도 불구하고, chrony가 시작되지 않거나 시간이 동기화되지 않는 등이 발생하면
sudo hwclock -s
하드웨어 시간을 시스템에 적용시키는 커맨드이다.
자세한 내용은 이쪽으로
WSL 2 시간 동기화 문제 임시방편 조치하기 - WSL 시작하기
WSL 2 시간 동기화 문제 임시방편 조치하기 WSL 2의 경우, WSL 1과 달리 컴퓨터를 절전모드에 두었다가 깨우면 그 시간만큼 시간이 느려지는 문제가 있습니다. 그래서 이로 인해 패키지 저장소 업데
wslhub.com