“amplify init” 一直失败
2019-04-28
990
我最近买了一台新电脑(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个回答
如果您看到一些看起来像时间戳的数字周围出现类似“现在早于”的错误(
20190427T235724Z
->
2019-04-27 23:57:24 UTC
),这表明错误与时间有关。时间对于加密技术很重要,因为它可以验证证书(以便攻击者无法破解证书并在证书过期后使用它,以及其他原因)[1]。在这种情况下,您的时钟或远程服务器时钟设置错误。由于本例中的远程服务器是 AWS,因此它们不太可能出现任何显著的时钟漂移,从而使您成为可能的异常值。
鉴于您提到了一台新电脑,因此更有可能是由于系统时钟设置不正确造成的。
重置/同步您的系统时钟,错误就会消失。
Avery
2019-04-29