appscale-run-instances failing to execute

17 views
Skip to first unread message

Adriano Marques

unread,
May 3, 2012, 11:50:26 AM5/3/12
to appscale_...@googlegroups.com
Hi there!

I'm trying to run a cloud with AppScale, and I'm using the run instances command to achieve that. Everything runs nice during security group creation and instance creation, but while it waits for bootup to finish, I get an exception and it breaks. Then I can't upload an app to the cloud, and need to remove the security group and the newly created instance in order to be able to try to create the cloud again. Here is the output (Removed parts pointing to our other instances):

appscale-run-instances --file . --table cassandra -v --instance_type m1.large --machine ami-d3f133ba --iaas --keyname courrier
About to start AppScale over a cloud environment with the euca tools with instance type m1.large.
Warning: Your application is large enough that it may take a while to upload.
Creating security group appscale
GROUP appscale appscale
Security group appscale in place
appscale None None udp 1 65535 0.0.0.0/0
GROUP appscale
PERMISSION appscale ALLOWS udp 1 65535 FROM CIDR 0.0.0.0/0
appscale None None tcp 1 65535 0.0.0.0/0
GROUP appscale
PERMISSION appscale ALLOWS tcp 1 65535 FROM CIDR 0.0.0.0/0
appscale None None icmp -1 -1 0.0.0.0/0
GROUP appscale
PERMISSION appscale ALLOWS icmp -1 -1 FROM CIDR 0.0.0.0/0
Ports set for security group appscale
RESERVATION r-d7895cb5 847473613530 appscale
INSTANCE i-a91cf3cf ami-d3f133ba terminated notification2 0 m1.large 2012-05-03T15:32:53.000Z us-east-1a aki-da37ddb3
Reported Public IPs: []
Reported Private IPs: []
euca-run-instances -k courrier -n 1 --instance-type m1.large ami-d3f133ba --group appscale
(OTHER INSTANCES STRIPPED OUT)
run_instances: [RESERVATION r-41b96c23 847473613530 appscale
INSTANCE i-cd6986ab ami-d3f133ba pending courrier 0 m1.large 2012-05-03T15:43:27.000Z us-east-1a aki-da37ddb3
]
Run instances message sent successfully. Waiting for the image to start up.
[Thu May 03 10:43:28 -0500 2012] 2699.999967 seconds left until timeout...
(OTHER INSTANCES STRIPPED OUT)
RESERVATION r-d7895cb5 847473613530 appscale
INSTANCE i-a91cf3cf ami-d3f133ba terminated notification2 0 m1.large 2012-05-03T15:32:53.000Z us-east-1a aki-da37ddb3
RESERVATION r-41b96c23 847473613530 appscale
INSTANCE i-cd6986ab ami-d3f133ba pending courrier 0 m1.large 2012-05-03T15:43:27.000Z us-east-1a aki-da37ddb3
Reported Public IPs: []
Reported Private IPs: []
[Thu May 03 10:43:48 -0500 2012] 2679.608587 seconds left until timeout...
(OTHER INSTANCES STRIPPED OUT)
INSTANCE i-a91cf3cf ami-d3f133ba terminated notification2 0 m1.large 2012-05-03T15:32:53.000Z us-east-1a aki-da37ddb3
RESERVATION r-41b96c23 847473613530 appscale
INSTANCE i-cd6986ab ami-d3f133ba ec2-50-19-5-234.compute-1.amazonaws.com ip-10-80-171-171.ec2.internal running courrier 0 m1.large 2012-05-03T15:43:27.000Z us-east-1a aki-da37ddb3
Reported Private IPs: [ip-10-80-171-171.ec2.internal]
Please wait for your instance to complete the bootup process.
/usr/lib/ruby/1.8/timeout.rb:60:in `sleep': time interval must be positive (ArgumentError)
from /usr/lib/ruby/1.8/timeout.rb:60:in `timeout'
from /usr/lib/ruby/1.8/timeout.rb:58:in `start'
from /usr/lib/ruby/1.8/timeout.rb:58:in `timeout'
from /usr/local/appscale-tools/bin/../lib/common_functions.rb:283:in `scp_file'
from /usr/local/appscale-tools/bin/../lib/vm_tools.rb:302:in `spawn_head_node_via_cloud'
from /usr/local/appscale-tools/bin/../lib/vm_tools.rb:277:in `spawn_head_node'
from /usr/local/appscale-tools/bin/appscale-run-instances:174



Any Ideas?

--
Adriano Monteiro Marques

http://www.openmonitor.org
http://www.umitproject.org
http://www.thoughtspad.com

"Don't stay in bed, unless you can make money in bed." - George Burns

Navraj S. Chohan

unread,
May 3, 2012, 12:10:07 PM5/3/12
to appscale_...@googlegroups.com
Hello Adriano,
The issue is that your ruby version is not compatible with the tools. You'll have to go into the tools and put large positive sleep intervals instead of 0. For some reason, even if you have ruby 1.8.7, if its not the exact patched version, it is not portable. =(


/usr/lib/ruby/1.8/timeout.rb:60:in `sleep': time interval must be positive (ArgumentError)
from /usr/lib/ruby/1.8/timeout.rb:60:in `timeout'
from /usr/lib/ruby/1.8/timeout.rb:58:in `start'
from /usr/lib/ruby/1.8/timeout.rb:58:in `timeout'
from /usr/local/appscale-tools/bin/../lib/common_functions.rb:283:in `scp_file'
from /usr/local/appscale-tools/bin/../lib/vm_tools.rb:302:in `spawn_head_node_via_cloud'
from /usr/local/appscale-tools/bin/../lib/vm_tools.rb:277:in `spawn_head_node'
from /usr/local/appscale-tools/bin/appscale-run-instances:174

-Raj

--
You received this message because you are subscribed to the Google Groups "AppScale Community" group.
To post to this group, send email to appscale_...@googlegroups.com.
To unsubscribe from this group, send email to appscale_commun...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/appscale_community?hl=en.



--
Navraj Chohan (Raj)
PhD Candidate @ UC Santa Barbara


Adriano Marques

unread,
May 3, 2012, 1:17:02 PM5/3/12
to appscale_...@googlegroups.com
Oh, got it! Fixed and it worked like a charm! Thanks Navraj!

BTW, I set it to 15... felt like a nice number as a timeout to wait for the instance to bootup.
Reply all
Reply to author
Forward
0 new messages