에러 : google.auth.exceptions.RefreshError: ('invalid_grant: Invalid JWT:

김형선·2023년 8월 2일
1

error_details, response_data, retryable=retryable_error
google.auth.exceptions.RefreshError: ('invalid_grant: Invalid JWT: Token must be a short-lived token (60 minutes) and in a reasonable timeframe. Check your iat and exp values in the JWT claim.', {'error': 'invalid_grant', 'error_description': 'Invalid JWT: Token must be a short-lived token (60 minutes) and in a reasonable timeframe. Check your iat and exp values in the JWT claim.'})

에어플로우 돌리는 중에 이런 에러가 발생했다. 혹시나 고생할 다른 이들을 위해 남겨둔다.

자꾸 에어플로우에서 빨간불 나와서
docker exec -it <컨테이너 이름> /bin/bash로 들어가서
cd logs 들어가서 문제점을 확인했더니 제일 위에 쓰인 에러가 발생했다.

결론적으로 solution은 외국형들이 알려준다

이거를 하라는데 그냥 NTP를 설정하고 서버 시간을 동기화하라는 소리다.

WSL 들어가서 다음과 같이 실시한다.

sudo hwclock --hctosys
sudo apt-get update
sudo apt-get install ntp
sudo service ntp start
sudo systemctl enable ntp

이거 하신 다음에

sudo vi /etc/ntp.conf

여기 들어가서 i 누르고 ntp.conf 맨 밑에

server pool.ntp.org

이거 추가해주고 wq하고 나와서

sudo service ntp restart

이거 한번 해주면 해결된다

오우예아 나이스

0개의 댓글