Amazon EC2 instance dies on installing Java

22 views
Skip to first unread message

jbr...@snapapp.com

unread,
Dec 5, 2016, 5:11:37 PM12/5/16
to Jenkins Users
Hi all,

I'm using the Amazon EC2 plugin to create new agents. I've set it up to use the Ubuntu 16.04 AMI. Security groups, availability zones, and remote user (ubuntu) are all correct. The EC2 key pair is correct and successfully connects on testing. I specified that the root prefix should be `sudo`. However, when I attempt to provision a new node, I get the following:

INFO: Connecting to xxx.xxx.xxx.xxx on port 22, with timeout 10000.
Dec 05, 2016 9:36:57 PM null
INFO: Connected via SSH.
Dec 05, 2016 9:36:57 PM null
INFO: Creating tmp directory (/tmp) if it does not exist
Dec 05, 2016 9:36:57 PM null
INFO: Verifying that java exists
bash: java: command not found
Dec 05, 2016 9:36:57 PM null
INFO: Installing Java
failed: Connection timed out.
failed: Connection timed out.

What am I getting wrong here?

Thanks!
Jack

Victor Martinez

unread,
Dec 6, 2016, 10:02:00 AM12/6/16
to Jenkins Users
Hi Jack,

Although I'm not really familiar with this plugin, I'd recommend you to look at:

There is a section about some timeouts and extending the time with some 

And also see whether those timeout issues references are in any jira ticket:

Besides of that, if you still get the same issues, then it's time to add some verbose output with the log recorders:

In that case you need to use those loggers from the source code:

Hope it helps

Cheers
Reply all
Reply to author
Forward
0 new messages