Any idea about this error?

26 views
Skip to first unread message

Jingqi

unread,
Feb 14, 2018, 2:29:22 PM2/14/18
to Cryo-EM in the cloud
Hi everyone, 

I just switched from starcluster to CloudSoftwareTools, and encountered this error when I tried to launch an instance. I have no idea where's problem from. 

I installed the package and awscli on a mac desktop with OS X 10.10 by following the online instruction. I won't be able to run the default awsls, which aliased to cryoem-cloud-tools/aws_build_osx/list_instances.py. But I can run the one in aws/. So i copied every python binaries from aws to aws_build_osx/. And the error attached is where I am standing now. 

Welcome any suggestion. 

Jingqi
Screen Shot 2018-02-14 at 10.44.32 AM.png

Michael Cianfrocco

unread,
Feb 14, 2018, 10:18:33 PM2/14/18
to Cryo-EM in the cloud
Hi Jianqi,

Did you install awscli ? What do you get if you type: 

$ aws 

Mike

Jingqi

unread,
Feb 14, 2018, 11:21:43 PM2/14/18
to Cryo-EM in the cloud
Thanks Mike. I did install awscli. 

COPELAND:~ dreyfusslab$ aws

usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]

To see help text, you can run:


  aws help

  aws <command> help

  aws <command> <subcommand> help

aws: error: too few arguments


Does it look as would expected? 


Jingqi

Michael Cianfrocco

unread,
Feb 15, 2018, 10:25:07 PM2/15/18
to Cryo-EM in the cloud
Could you add a debug tag '-d' and then send me the output ? Also, might as well use a cheaper instance for the test, so the command for you would be: 

$ awslaunch --instance=t2.micro --availZone=us-east-1c --noEBS -d

Thanks,
Mike

Jingqi

unread,
Feb 16, 2018, 12:13:16 AM2/16/18
to Cryo-EM in the cloud
I got this:

COPELAND:~ dreyfusslab$ awslaunch --instance=t2.micro --availZone=us-east-1c --noEBS -d

Launching AWS instance t2.micro for user mykey

version 100
Current IP address=130.91.205.132/32

Unknown output type: None
sg_1518757815
False

Configuring security group sg_1518757821 to use IP address 130.91.205.132/32 ...

Configuring security settings ...


Unknown output type: None
Traceback (most recent call last):
  File "/Users/dreyfusslab/CloudSoftwareTools/cryoem-cloud-tools/aws_build_osx//launch_AWS_instance.py", line 592, in <module>
    instanceID,PublicIP=launchInstance(params,keyName,keyPath,AMI,AWS_ACCOUNT_ID)
  File "/Users/dreyfusslab/CloudSoftwareTools/cryoem-cloud-tools/aws_build_osx//launch_AWS_instance.py", line 235, in launchInstance
    VPC=subprocess.Popen('aws ec2 describe-account-attributes --attribute-names default-vpc | grep vpc-', shell=True, stdout=subprocess.PIPE).stdout.read().strip().split()[-1].strip('"').split("'")[0]
IndexError: list index out of range

Jingqi

unread,
Feb 18, 2018, 5:26:30 PM2/18/18
to Cryo-EM in the cloud
Hi all,

Problem solved by changing the output type from none to json in aws config file. Thanks.

Jingqi
Reply all
Reply to author
Forward
0 new messages