spotty-cloud / spotty

Training deep learning models on AWS and GCP instances
https://spotty.cloud
MIT License
492 stars 43 forks source link

Problem creating AMI, fails at SetLogRetentionFunctionRetention #76

Closed Tarang closed 3 years ago

Tarang commented 3 years ago

It's quite hard to debug this one.

spotty aws create-ami                                                                                                                                                                                         (py37)
Waiting for the AMI to be created...
  - creating IAM role for the instance...
Error:
------
Stack "spotty-ami-spottyami" was not created.
Please, see CloudFormation logs for the details.

Cloudformation logs

image

The Cloudwatch logs (an extract of the issue):

INFO    FAILED:
 ResourceNotFoundException: The specified log group does not exist.
    at Request.extractError (/var/runtime/node_modules/aws-sdk/lib/protocol/json.js:51:27)
    at Request.callListeners (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:106:20)
    at Request.emit (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
    at Request.emit (/var/runtime/node_modules/aws-sdk/lib/request.js:688:14)
    at Request.transition (/var/runtime/node_modules/aws-sdk/lib/request.js:22:10)
    at AcceptorStateMachine.runTo (/var/runtime/node_modules/aws-sdk/lib/state_machine.js:14:12)
    at /var/runtime/node_modules/aws-sdk/lib/state_machine.js:26:10
    at Request.<anonymous> (/var/runtime/node_modules/aws-sdk/lib/request.js:38:9)
    at Request.<anonymous> (/var/runtime/node_modules/aws-sdk/lib/request.js:690:12)
    at Request.callListeners (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:116:18) {
  code: 'ResourceNotFoundException'

Spotty Version: 1.2.4

apls777 commented 3 years ago

The functionality of creating an AMI won't be supported anymore. Is there a reason you're not using the default Amazon Deep Learning AMI?

Tarang commented 3 years ago

I didn't know that. So you don't need to do create-ami anymore?

apls777 commented 3 years ago

No, you don't. Spotty is using Amazon Deep Learning AMI by default.

Tarang commented 3 years ago

I missed the update note! Thanks