我正在尝试使用sails.js转换并将1000多张图片上传到aws s3
我正在使用aws-cli通过url获取图像,并在使用graphicsmagick上传回桶后进行处理。
有些时候我得到下面提到的错误
{"level":"error",
"message":"Error uploading data: RequestTimeTooSkewed: The difference between the request time and the current time is too large.
at Request.extractError (/home/images/api/node_modules/aws-sdk/lib/services/s3.js:327:35)
at Request.callListeners (/home/images/api/node_modules/aws-sdk/lib/sequential_executor.js:105:20)
at Request.emit (/home/images/api/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
at Request.emit (/home/images/api/node_modules/aws-sdk/lib/request.js:595:14)
at Request.transition (/home/images/api/node_modules/aws-sdk/lib/request.js:21:10)
at AcceptorStateMachine.runTo (/home/images/api/node_modules/aws-sdk/lib/state_machine.js:14:12)
at /home/images/api/node_modules/aws-sdk/lib/state_machine.js:26:10
at Request.<anonymous> (/home/images/api/node_modules/aws-sdk/lib/request.js:37:9)
at Request.<anonymous> (/home/images/api/node_modules/aws-sdk/lib/request.js:597:12)
at Request.callListeners (/home/images/api/node_modules/aws-sdk/lib/sequential_executor.js:115:18)
at Request.emit (/home/images/api/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
at Request.emit (/home/images/api/node_modules/aws-sdk/lib/request.js:595:14)
at Request.transition (/home/images/api/node_modules/aws-sdk/lib/request.js:21:10)
at AcceptorStateMachine.runTo (/home/images/api/node_modules/aws-sdk/lib/state_machine.js:14:12)
at /home/images/api/node_modules/aws-sdk/lib/state_machine.js:26:10
at Request.<anonymous> (/home/images/api/node_modules/aws-sdk/lib/request.js:37:9) { [RequestTimeTooSkewed: The difference between the request time and the current time is too large.]
message: 'The difference between the request time and the current time is too large.',
code: 'RequestTimeTooSkewed',
region: null,
time: Thu Nov 12 2015 16:05:21 GMT+0000 (UTC),
statusCode: 403,
retryable: false,
retryDelay: 30 }",
"timestamp":"2015-11-12T16:05:21.626Z"}
我在aws ec2上运行此代码 主目录中有200GB磁盘空间
$ free -m
total used free shared buffers cached
Mem: 3951 444 3507 5 20 290
-/+ buffers/cache: 132 3819
Swap: 0 0 0
$ free mem
total used free shared buffers cached
Mem: 3951 444 3507 5 20 290
-/+ buffers/cache: 132 3819
Swap: 0 0 0
任何建议都值得赞赏。
由于