0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

google.auth.exceptions.RefreshError: ('invalid_grant: Invalid JWT: Token must be a short-lived token (60 minutes) and in a reasonable timeframe.

Posted at

状況

ローカルPC(WSL)からGCSのバケットを作成しようとしたときに、タイトルのエラーが発生。

原因

サーバー側(GCP)とクライアント側の時刻がずれているために起こる。

参考:https://developers.google.com/identity/protocols/oauth2/service-account#error-codes

対処法

NTPサーバーと時刻同期させる。
ntpdate time.google.com

time.google.comはGoogleが提供するNTPサーバーです。

参考
https://developers.google.com/time/?hl=ja
https://cloudplatform-jp.googleblog.com/2016/12/ntp.html

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?