Gitlab 本地 Google OAuth2 错误 "Invalid grant: code was already redeemed"

Gitlab on premise with Google OAuth2 error "Invalid grant: code was already redeemed"

正在尝试通过 docker http://doc.gitlab.com/omnibus/docker/ 安装 gitlab。配置好,在本地启动,将条目添加到 /etc/hosts 指向域到 127.0.0.1 来尝试一下。一切正常,包括 google_oauth2(因此 app_id 和 app_secret 是正确的)。

当移动到具有相同域名的生产服务器时,从 gitlab 获得了 500:

Could not authenticate you from GoogleOauth2 because "Invalid grant: code was already redeemed.
{
  "error" : "invalid grant",
  "error description" : "code was already redeemed."
}".

另请注意,我 运行 gitlab 在本地和产品服务器上都落后于 https://hub.docker.com/r/jwilder/nginx-proxy/

有什么想法吗?提前致谢。

好的,明白了。 prod 服务器上的问题是日期时间错误,ntp 配置不正确。