'放大初始化'不断失败

时间:2019-04-28 17:55:28

标签: reactjs aws-amplify

最近我给自己买了一台新电脑(Predator Helios 300),我想在那里开始使用AWS,但是当我尝试执行amplify init时,即使我已经执行了所有其他步骤,例如,我仍然收到以下错误消息组态。

× Root stack creation failed
init failed
{ SignatureDoesNotMatch: Signature expired: 20190427T235724Z is now earlier than 20190428T094952Z (20190428T095452Z - 5 min.)
    at Request.extractError (C:\Users\sahve\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\aws-sdk\lib\protocol\query.js:50:29)
    at Request.callListeners (C:\Users\sahve\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\aws-sdk\lib\sequential_executor.js:106:20)
    at Request.emit (C:\Users\sahve\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\aws-sdk\lib\sequential_executor.js:78:10)
    at Request.emit (C:\Users\sahve\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\aws-sdk\lib\request.js:683:14)
    at Request.transition (C:\Users\sahve\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\aws-sdk\lib\request.js:22:10)
    at AcceptorStateMachine.runTo (C:\Users\sahve\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\aws-sdk\lib\state_machine.js:14:12)
    at C:\Users\sahve\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\aws-sdk\lib\state_machine.js:26:10
    at Request.<anonymous> (C:\Users\sahve\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\aws-sdk\lib\request.js:38:9)
    at Request.<anonymous> (C:\Users\sahve\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\aws-sdk\lib\request.js:685:12)
    at Request.callListeners (C:\Users\sahve\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\aws-sdk\lib\sequential_executor.js:116:18)
  message:
   'Signature expired: 20190427T235724Z is now earlier than 20190428T094952Z (20190428T095452Z - 5 min.)',
  code: 'SignatureDoesNotMatch',
  time: 2019-04-27T23:57:24.753Z,
  requestId: 'ab179ef3-699b-11e9-bfe3-4ddc7ceb66ee',
  statusCode: 403,
  retryable: true }

进行一些研究后,这似乎是一个验证问题。是否有人对此有经验或知道如何解决此问题。非常感谢!

1 个答案:

答案 0 :(得分:0)

每当您在一些看起来像时间戳记的数字(20190427T235724Z-> 2019-04-27 23:57:24 UTC)上看到类似“现在早于”的错误时,就表明该错误与时间有关。时间对于加密以验证证书很重要(除其他原因外,攻击者无法破坏证书并在证书到期后使用它)[1]。在这种情况下,您的时钟或远程服务器时钟设置有误。由于在这种情况下,远程服务器是AWS,因此它们不太可能出现明显的时钟漂移,从而可能会导致异常。

鉴于您提到了一台新计算机,这很可能是由于系统时钟设置不正确造成的。

重置/同步系统时钟,错误应该消失。


参考文献[1]:https://security.stackexchange.com/questions/72866/what-role-does-clock-synchronization-play-in-ssl-communcation