AppScale on Amazon EC2: AttributeError: 'NoneType' object has no attribute 'get_all_instances'

266 views
Skip to first unread message

Aidan Lane

unread,
Feb 11, 2015, 10:11:50 PM2/11/15
to appscale_...@googlegroups.com
Hi,


All goes well up until 'appscale up'

I get this:
'NoneType' object has no attribute 'get_all_instances'
A log with more information is available at

Log file:
  File "/usr/local/appscale-tools/bin/appscale", line 61, in <module>
    appscale.up()
  File "/usr/local/appscale-tools/bin/../lib/appscale.py", line 251, in up
    options = ParseArgs(command, "appscale-run-instances").args
  File "/usr/local/appscale-tools/bin/../lib/parse_args.py", line 139, in __init__
    self.validate_allowed_flags(function)
  File "/usr/local/appscale-tools/bin/../lib/parse_args.py", line 392, in validate_allowed_flags
    self.validate_credentials()
  File "/usr/local/appscale-tools/bin/../lib/parse_args.py", line 611, in validate_credentials
    params = cloud_agent.get_params_from_args(self.args)
  File "/usr/local/appscale-tools/bin/../lib/agents/ec2_agent.py", line 281, in get_params_from_args
    self.assert_credentials_are_valid(params)
  File "/usr/local/appscale-tools/bin/../lib/agents/ec2_agent.py", line 116, in assert_credentials_are_valid
    conn.get_all_instances()
AttributeError: 'NoneType' object has no attribute 'get_all_instances'

exception : AttributeError

locale : en_AU

tools_version : 2.2.0

platform : Darwin-14.1.0-x86_64-i386-64bit

message : 'NoneType' object has no attribute 'get_all_instances'

runtime : CPython


This occurs with tools 2.0.0 and 2.2.0.

Btw, brew still installs version 2.0.0, not even 2.1.0- any ideas why?

Please help!

Best, A

Aidan Lane

unread,
Feb 11, 2015, 10:12:45 PM2/11/15
to appscale_...@googlegroups.com
Btw, ec2-version is 

1.7.3.0 2014-10-01

Meni Vaitsi

unread,
Feb 12, 2015, 12:35:13 AM2/12/15
to appscale_community
Hi,

We're currently in the process of releasing AppScale and AppScale Tools 2.2 and since the 2.2 AMI is not out yet the tools fail to start the 2.1 AMI.
We can have a public AMI with the latest and greatest by tomorrow.

Until then you can download AppScale Tools 2.1 from here, build them as per the README instructions and use the AMI from the instructions to start AppScale 2.1 over EC2.

If you need further instructions please let us know.

-Meni


--
Meni Vaitsi
Software Engineer
AppScale Systems Inc.

--
You received this message because you are subscribed to the Google Groups "AppScale Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appscale_commun...@googlegroups.com.
To post to this group, send email to appscale_...@googlegroups.com.
Visit this group at http://groups.google.com/group/appscale_community.
For more options, visit https://groups.google.com/d/optout.

Aidan Lane

unread,
Feb 12, 2015, 12:39:16 AM2/12/15
to appscale_...@googlegroups.com
Hi Meni,

Great, can't wait to check it out.
Thanks for the prompt reply!

Thanks,
Aidan
To unsubscribe from this group and stop receiving emails from it, send an email to appscale_community+unsub...@googlegroups.com.

joy....@apps.ngis.com.au

unread,
Oct 11, 2015, 5:51:48 PM10/11/15
to AppScale Community
Hi Meni

I am attempting to create an AppScale instance with a static ip in the ap-southeast-2 region and am having the same issue using the public images.
Are you aware of this problem?

Cheers Joy

Meni Vaitsi

unread,
Oct 11, 2015, 6:15:52 PM10/11/15
to appscale_community
Hi Joy,

We are currently offering public AppScale images on us-east-1. That's why the default region in the AppScalefile is set to us-east-1b. If you don't have any strong preference for ap-southeast-2, you can change that region and you should be good to go.

I'll make sure we change that error message into something more meaningful in the meantime.

Let me know if that helps.
-Meni

--
Meni Vaitsi
Software Engineer
AppScale Systems, Inc.

--

Joy

unread,
Oct 12, 2015, 3:26:21 AM10/12/15
to AppScale Community

Hi Meni
Thanks for responding so quickly. I changed the region. I only wanted southeast because that is where our database is.
Cheers
Joy

Meni Vaitsi

unread,
Oct 12, 2015, 11:15:05 AM10/12/15
to appscale_community
Hi Joy,

If you see any particular performance issues or it doesn't work for you, let us know and we will figure something else out.

Best
-Meni

--
Meni Vaitsi
Software Engineer
AppScale Systems, Inc.

--
Reply all
Reply to author
Forward
0 new messages