[JIRA] (JENKINS-53952) Linux slaves are not starting anymore

59 views
Skip to first unread message

gunter@grodotzki.co.za (JIRA)

unread,
Oct 8, 2018, 7:24:01 PM10/8/18
to jenkinsc...@googlegroups.com
Gunter Grodotzki created an issue
 
Jenkins / Bug JENKINS-53952
Linux slaves are not starting anymore
Issue Type: Bug Bug
Assignee: FABRIZIO MANFREDI
Components: ec2-plugin
Created: 2018-10-08 23:23
Environment: Jenkins ver. 2.138.1
Priority: Blocker Blocker
Reporter: Gunter Grodotzki

Similar to https://issues.jenkins-ci.org/browse/JENKINS-53876

Unfortunately with the latest 1.40.1 EC2 nodes are not launching anymore:

$ cat Jenkins\ Prebuilt\ Slave\ \(sir-p9ai6v8m\)/slave.log
Oct 08, 2018 10:43:49 PM hudson.plugins.ec2.EC2Cloud
INFO: Launching instance: null
Oct 08, 2018 10:43:49 PM hudson.plugins.ec2.EC2Cloud
INFO: bootstrap()
Oct 08, 2018 10:43:49 PM hudson.plugins.ec2.EC2Cloud
INFO: Getting keypair...
Oct 08, 2018 10:43:49 PM hudson.plugins.ec2.EC2Cloud
INFO: Using key: master
xxx
-----BEGIN RSA PRIVATE KEY-----
xxx
Oct 08, 2018 10:43:49 PM hudson.plugins.ec2.EC2Cloud
INFO: Authenticating as ubuntu
ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins
java.lang.NullPointerException
	at hudson.plugins.ec2.ssh.EC2UnixLauncher.getEC2HostAddress(EC2UnixLauncher.java:368)
	at hudson.plugins.ec2.ssh.EC2UnixLauncher.connectToSsh(EC2UnixLauncher.java:318)
	at hudson.plugins.ec2.ssh.EC2UnixLauncher.bootstrap(EC2UnixLauncher.java:282)
	at hudson.plugins.ec2.ssh.EC2UnixLauncher.launchScript(EC2UnixLauncher.java:130)
	at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:48)
	at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:294)
	at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
	at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

 

Reverting back to 1.39 solves the issue.

I see m5d instances being mentioned in the changelog - which we are using - perhaps related? 

 

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

rderewianko@gmail.com (JIRA)

unread,
Oct 13, 2018, 6:25:01 PM10/13/18
to jenkinsc...@googlegroups.com
Ross Derewianko commented on Bug JENKINS-53952
 
Re: Linux slaves are not starting anymore

I've found this hit or miss, sometimes it happens sometimes it doesn't.

 

Mostly it happens when we've changed pre-existing connections and it only happens for spot instances. Switching our instances to on demand does not have the same problem.

fabrizio.manfredi@gmail.com (JIRA)

unread,
Oct 16, 2018, 7:08:01 PM10/16/18
to jenkinsc...@googlegroups.com

Do you know if the spot instance after the restart is still alive ? 

Are you in VPC or in Default ? 

Are you using public IP ? 

perrin@opencloud.com (JIRA)

unread,
Oct 16, 2018, 9:47:02 PM10/16/18
to jenkinsc...@googlegroups.com

We just started hitting this. We've been running 1.40.1 for a couple of days (and the latest Jenkins version) without seeing it but then I added a new agent template, and trying to manually launch an agent from the template caused this error to occur. I haven't seen it in any of the instances that were started by the node provisioner, but I do see it when I manually launch an agent using one of the templates that has been working fine for the last few days. It doesn't happen every time though.

We use spot instances, in a VPC, with no public IP. The instance is left running afterwards. I haven't seen it happen with on-demand instances.

nlloyd@gmail.com (JIRA)

unread,
Oct 17, 2018, 4:21:02 PM10/17/18
to jenkinsc...@googlegroups.com

We consistently hit this error using spot instances with the latest LTS Jenkins version.

Using spot instances in a VPC with no public IP.

mhoy@volanttrading.com (JIRA)

unread,
Oct 18, 2018, 3:46:02 PM10/18/18
to jenkinsc...@googlegroups.com
Matt Hoy commented on Bug JENKINS-53952

Seeing identical issue using M5.Xlarge, latest Jenkins, and Spot Instances. If I hit "Launch Agent" before the timeout is hit, but after it's completed booting it is successfully able to add it. 

fabrizio.manfredi@gmail.com (JIRA)

unread,
Oct 22, 2018, 1:16:02 PM10/22/18
to jenkinsc...@googlegroups.com

https://github.com/jenkinsci/ec2-plugin/pull/252 :

It implements very simple algorithm:

  • if NodeProvisioner requested X executors, start to raise
    X/N nodes (N is number of executors on each node).
  • if there is any orphant nodes (~not known by Jenkins at all), take
    them in account (and start if it's neccessary)
  • if there is not enough orphant nodes - raise needed nodes in parallel
  • give them back to NodeProvisioner in RUNNING state

 

fabrizio.manfredi@gmail.com (JIRA)

unread,
Oct 22, 2018, 1:16:02 PM10/22/18
to jenkinsc...@googlegroups.com
FABRIZIO MANFREDI updated an issue
 


It implements very simple algorithm:
* if NodeProvisioner requested X executors, start to raise

X/N nodes (N is number of executors on each node).
* if there is any orphant nodes (~not known by Jenkins at all), take

them in account (and start if it's neccessary)
* if there is not enough orphant nodes - raise needed nodes in parallel
* give them back to NodeProvisioner in RUNNING state

 

gunter@grodotzki.co.za (JIRA)

unread,
Nov 15, 2018, 11:14:02 PM11/15/18
to jenkinsc...@googlegroups.com
Gunter Grodotzki commented on Bug JENKINS-53952
 
Re: Linux slaves are not starting anymore

Still having it with c5.xlarge + plugin version 1.41

anton.doar@gmail.com (JIRA)

unread,
Dec 19, 2018, 2:29:02 AM12/19/18
to jenkinsc...@googlegroups.com

We've got the same issue. Jenkins ver 2.150.1, plugin version 1.41.

anton.doar@gmail.com (JIRA)

unread,
Dec 19, 2018, 2:38:02 AM12/19/18
to jenkinsc...@googlegroups.com
Anton Yurchenko edited a comment on Bug JENKINS-53952
We've got the same issue. Jenkins ver 2.150.1, plugin version 1.41.

{code:java}
Dec 19, 2018 7:27:36 AM hudson.plugins.ec2.EC2Cloud
INFO: Launching instance: null
Dec 19, 2018 7:27:36 AM hudson.plugins.ec2.EC2Cloud
INFO: bootstrap()
Dec 19, 2018 7:27:36 AM hudson.plugins.ec2.EC2Cloud
INFO: Getting keypair...
Dec 19, 2018 7:27:37 AM hudson.plugins.ec2.EC2Cloud
INFO: Using key: ssh-key
[..............................]
Dec 19, 2018 7:27:37 AM hudson.plugins.ec2.EC2Cloud
INFO: Authenticating as ec2-user

ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins
java.lang.NullPointerException
at hudson.plugins.ec2.ssh.EC2UnixLauncher.getEC2HostAddress(EC2UnixLauncher.java:367)
at hudson.plugins.ec2.ssh.EC2UnixLauncher.connectToSsh(EC2UnixLauncher.java:319)
at hudson.plugins.ec2.ssh.EC2UnixLauncher.bootstrap(EC2UnixLauncher.java:283)

at hudson.plugins.ec2.ssh.EC2UnixLauncher.launchScript(EC2UnixLauncher.java:130)
at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:48)
at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:294)
at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
{code}
+That issue occurs only when requesting a spot instance.+

anton.doar@gmail.com (JIRA)

unread,
Dec 19, 2018, 2:40:02 AM12/19/18
to jenkinsc...@googlegroups.com
Anton Yurchenko edited a comment on Bug JENKINS-53952
We've got the same issue. Jenkins ver 2.150.1, plugin version 1.41.
+That issue occurs only when requesting a spot {code:java}
Dec 19, 2018 7:27:35 AM hudson.plugins.ec2.SlaveTemplate provisionSpot
INFO: Launching ami-04750af7488d87g5c for template builder
Dec 19, 2018 7:27:36 AM hudson.plugins.ec2.SlaveTemplate provisionSpot
INFO: Spot
instance id in provision: sir-8mki4f8k
Dec 19, 2018 7:27:36 AM hudson
. + plugins.ec2.EC2RetentionStrategy start
INFO: Start requested for builder (sir-8mki4f8k)
Dec 19, 2018 7:27:36 AM hudson.plugins.ec2.EC2Cloud log
INFO: Launching instance: null
Dec 19, 2018 7:27:36 AM hudson.plugins.ec2.EC2Cloud log
INFO: bootstrap()
Dec 19, 2018 7:27:36 AM hudson.plugins.ec2.EC2Cloud log
INFO: Getting keypair...
Dec 19, 2018 7:27:37 AM hudson.plugins.ec2.EC2Cloud log
INFO: Using key: ssh-key
[................................]
Dec 19, 2018 7:27:37 AM hudson.plugins.ec2.EC2Cloud log
INFO: Authenticating as ec2-user
{code}

anton.doar@gmail.com (JIRA)

unread,
Dec 19, 2018, 2:51:02 AM12/19/18
to jenkinsc...@googlegroups.com
{code:java}
Dec 19, 2018 7:27:35 AM hudson.plugins.ec2.SlaveTemplate provisionSpot
INFO: Launching ami-04750af7488d87g5c for template builder
Dec 19, 2018 7:27:36 AM hudson.plugins.ec2.SlaveTemplate provisionSpot
INFO: Spot instance id in provision: sir-8mki4f8k
Dec 19, 2018 7:27:36 AM hudson.plugins.ec2.EC2RetentionStrategy start

INFO: Start requested for builder (sir-8mki4f8k)
Dec 19, 2018 7:27:36 AM hudson.plugins.ec2.EC2Cloud log
INFO: Launching instance: null
Dec 19, 2018 7:27:36 AM hudson.plugins.ec2.EC2Cloud log
INFO: bootstrap()
Dec 19, 2018 7:27:36 AM hudson.plugins.ec2.EC2Cloud log
INFO: Getting keypair...
Dec 19, 2018 7:27:37 AM hudson.plugins.ec2.EC2Cloud log
INFO: Using key: ssh-key
[................................]
Dec 19, 2018 7:27:37 AM hudson.plugins.ec2.EC2Cloud log
INFO: Authenticating as ec2-user
{code}

Manually clicking *Launch Agent* works and instances comes online fine.

rajatumrao92@gmail.com (JIRA)

unread,
Apr 1, 2019, 9:25:04 AM4/1/19
to jenkinsc...@googlegroups.com

FABRIZIO MANFREDI The issue still persist in Plugin 1.42 as well

Issue occurs only using Spot instances, But work perfectly fine if use on-demand slaves.

// code placeholder

Apr 01, 2019 1:17:45 PM hudson.plugins.ec2.EC2Cloud INFO: Launching instance: null Apr 01, 2019 1:17:45 PM hudson.plugins.ec2.EC2Cloud INFO: bootstrap() Apr 01, 2019 1:17:45 PM hudson.plugins.ec2.EC2Cloud INFO: Getting keypair... Apr 01, 2019 1:17:45 PM hudson.plugins.ec2.EC2Cloud INFO: Using key: access-key aa:d0:04:24:13:b4:e5:d8:88:09:6a:55:cb:a7:43:fd ----BEGIN RSA PRIVATE KEY---- MIIEpQIBAAKCAQEAxKuhBhKMikwrGYB/gWH1pBqATDR0WYW60dD6PtsLO0k76+ ntd9Mi5IS4u+V0ANiRP3Kc6d+IjrH2KmL45Y9OHMZcPRj9AoMOxz0yTRYd3sDeW Apr 01, 2019 1:17:45 PM hudson.plugins.ec2.EC2Cloud INFO: Authenticating as root ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins java.lang.NullPointerException at hudson.plugins.ec2.ssh.EC2UnixLauncher.getEC2HostAddress(EC2UnixLauncher.java:369) at hudson.plugins.ec2.ssh.EC2UnixLauncher.connectToSsh(EC2UnixLauncher.java:319) at hudson.plugins.ec2.ssh.EC2UnixLauncher.bootstrap(EC2UnixLauncher.java:283) at hudson.plugins.ec2.ssh.EC2UnixLauncher.launchScript(EC2UnixLauncher.java:130) at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:48) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:294) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:748)

rajatumrao92@gmail.com (JIRA)

unread,
Apr 1, 2019, 9:25:05 AM4/1/19
to jenkinsc...@googlegroups.com
Rajat Umrao edited a comment on Bug JENKINS-53952
[~thoulen] The issue still persist in Plugin 1.42 as well


Issue occurs only using Spot instances, But work perfectly fine if use on-demand slaves.
{code:java}
// code
placeholder
{code}
Apr
placeholderApr 01, 2019 1:17:45 PM hudson.plugins.ec2.EC2Cloud INFO: Launching instance: null Apr 01, 2019 1:17:45 PM hudson.plugins.ec2.EC2Cloud INFO: bootstrap() Apr 01, 2019 1:17:45 PM hudson.plugins.ec2.EC2Cloud INFO: Getting keypair... Apr 01, 2019 1:17:45 PM hudson.plugins.ec2.EC2Cloud INFO: Using key: access-key aa:d0:04:24:13:b4:e5:d8:88:09:6a:55:cb:a7:43:fd ---- - BEGIN RSA PRIVATE KEY---- - MIIEpQIBAAKCAQEAxKuhBhKMikwrGYB/gWH1pBqATDR0WYW60dD6PtsLO0k76+ ntd9Mi5IS4u+V0ANiRP3Kc6d+IjrH2KmL45Y9OHMZcPRj9AoMOxz0yTRYd3sDeW Apr 01, 2019 1:17:45 PM hudson.plugins.ec2.EC2Cloud INFO: Authenticating as root ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins java.lang.NullPointerException at hudson.plugins.ec2.ssh.EC2UnixLauncher.getEC2HostAddress(EC2UnixLauncher.java:369) at hudson.plugins.ec2.ssh.EC2UnixLauncher.connectToSsh(EC2UnixLauncher.java:319) at hudson.plugins.ec2.ssh.EC2UnixLauncher.bootstrap(EC2UnixLauncher.java:283) at hudson.plugins.ec2.ssh.EC2UnixLauncher.launchScript(EC2UnixLauncher.java:130) at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:48) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:294) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:748)
{code}
 

rajatumrao92@gmail.com (JIRA)

unread,
Apr 1, 2019, 9:25:06 AM4/1/19
to jenkinsc...@googlegroups.com
Rajat Umrao edited a comment on Bug JENKINS-53952
[~thoulen] The issue still persist in Plugin 1.42 as well

Issue occurs only using Spot instances, But work perfectly fine if use on-demand slaves.
{code:java}
// code placeholderApr Apr 01, 2019 1:17:45 PM hudson.plugins.ec2.EC2Cloud INFO: Launching instance: null Apr 01, 2019 1:17:45 PM hudson.plugins.ec2.EC2Cloud INFO: bootstrap() Apr 01, 2019 1:17:45 PM hudson.plugins.ec2.EC2Cloud INFO: Getting keypair... Apr 01, 2019 1:17:45 PM hudson.plugins.ec2.EC2Cloud INFO: Using key: access-key aa:d0:04:24:13:b4:e5:d8:88:09:6a:55:cb:a7:43:fd ----BEGIN RSA PRIVATE KEY---- MIIEpQIBAAKCAQEAxKuhBhKMikwrGYB/gWH1pBqATDR0WYW60dD6PtsLO0k76+ ntd9Mi5IS4u+V0ANiRP3Kc6d+IjrH2KmL45Y9OHMZcPRj9AoMOxz0yTRYd3sDeW Apr 01, 2019 1:17:45 PM hudson.plugins.ec2.EC2Cloud INFO: Authenticating as root ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins java.lang.NullPointerException at hudson.plugins.ec2.ssh.EC2UnixLauncher.getEC2HostAddress(EC2UnixLauncher.java:369) at hudson.plugins.ec2.ssh.EC2UnixLauncher.connectToSsh(EC2UnixLauncher.java:319) at hudson.plugins.ec2.ssh.EC2UnixLauncher.bootstrap(EC2UnixLauncher.java:283) at hudson.plugins.ec2.ssh.EC2UnixLauncher.launchScript(EC2UnixLauncher.java:130) at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:48) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:294) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:748)
{code}
 

rajatumrao92@gmail.com (JIRA)

unread,
Apr 1, 2019, 9:26:04 AM4/1/19
to jenkinsc...@googlegroups.com
Rajat Umrao updated an issue
 
Change By: Rajat Umrao
Labels: ec2-plugin

rajatumrao92@gmail.com (JIRA)

unread,
Apr 4, 2019, 8:55:03 AM4/4/19
to jenkinsc...@googlegroups.com
Rajat Umrao updated an issue
Change By: Rajat Umrao
Labels: core ec2-plugin

jonathan@riv.al (JIRA)

unread,
Jun 12, 2019, 10:41:08 AM6/12/19
to jenkinsc...@googlegroups.com
Jonathan B commented on Bug JENKINS-53952
 
Re: Linux slaves are not starting anymore

Any updates on this? This failure to start spot instances makes it infeasible for us to upgrade past 1.39, but the occasional deadlocks when spawning instances (fixed in 1.42, apparently https://issues.jenkins-ci.org/browse/JENKINS-54187) are extremely disruptive.

michael@10etechnology.com (JIRA)

unread,
Jun 20, 2019, 3:20:02 PM6/20/19
to jenkinsc...@googlegroups.com

fabrizio.manfredi@gmail.com (JIRA)

unread,
Aug 10, 2019, 3:02:04 PM8/10/19
to jenkinsc...@googlegroups.com
FABRIZIO MANFREDI started work on Bug JENKINS-53952
 
Change By: FABRIZIO MANFREDI
Status: Open In Progress

fabrizio.manfredi@gmail.com (JIRA)

unread,
Aug 10, 2019, 3:02:05 PM8/10/19
to jenkinsc...@googlegroups.com

fabrizio.manfredi@gmail.com (JIRA)

unread,
Aug 10, 2019, 3:03:04 PM8/10/19
to jenkinsc...@googlegroups.com
FABRIZIO MANFREDI edited a comment on Bug JENKINS-53952
merged in the 1.45 , can you confirm that is fixed ? 

gil@tikalk.com (JIRA)

unread,
Aug 12, 2019, 2:39:03 AM8/12/19
to jenkinsc...@googlegroups.com

Installed 1.45 on my Jenkins. Upgraded from 1.43. Hopefully it'll solve the issue of slaves stuck in offline mode.

Till today's morning, the issue was that the instances were up and running and the slaves were offline. Today's morning the instances were down as well as the slaves.

gil@tikalk.com (JIRA)

unread,
Aug 12, 2019, 9:27:02 AM8/12/19
to jenkinsc...@googlegroups.com

OK. Seems like it got worse. Usually it happened during the weekend or after a night. Now slaves fails to start during the day

I'm out of ideas

gil@tikalk.com (JIRA)

unread,
Aug 14, 2019, 2:58:04 AM8/14/19
to jenkinsc...@googlegroups.com

Yesterday morning I came and it looked fine. This morning, again, all instances were up and all slaves were offline while there were a few jobs in the queue waiting for a long time.

It's not just not starting the slaves, it's even worse, the instances are running and wasting money which is the opposite of what this plugin is all about.

gil@tikalk.com (JIRA)

unread,
Aug 19, 2019, 4:52:02 AM8/19/19
to jenkinsc...@googlegroups.com

I have changed the configuration to use terminate/start instead of stop/start and for a week it works just fine. Maybe it might help solving this issue

ovidiuc@gmail.com (JIRA)

unread,
Feb 13, 2020, 8:28:05 AM2/13/20
to jenkinsc...@googlegroups.com

[Jenkins ver. 2.204.2
EC2 plugin: 1.48

https://jenkins.io/]
we see a similar problem, it crashes on getPrivateIpAddress, or getPublicIpAddress call depending on what I have chosen as connection strategy (public IP or private IP).
the interesting part is this: it fails for spot inst images c5.2xlarge, if I use t2.2xlarge it works well.

here's the error we are seeing

ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins
java.lang.NullPointerException
	at hudson.plugins.ec2.EC2HostAddressProvider.getPrivateIpAddress(EC2HostAddressProvider.java:49)
	at hudson.plugins.ec2.EC2HostAddressProvider.windows(EC2HostAddressProvider.java:28)
	at hudson.plugins.ec2.win.EC2WindowsLauncher.connectToWinRM(EC2WindowsLauncher.java:134)
	at hudson.plugins.ec2.win.EC2WindowsLauncher.launchScript(EC2WindowsLauncher.java:39)
	at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:48)
	at hudson.slaves.SlaveComputer.lambda$_connect$0(SlaveComputer.java:291)
	at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
	at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

ovidiuc@gmail.com (JIRA)

unread,
Feb 13, 2020, 8:29:04 AM2/13/20
to jenkinsc...@googlegroups.com
ovi craciun edited a comment on Bug JENKINS-53952
[Jenkins ver. 2.204.2
EC2 plugin: 1.48
|https://jenkins.io/]

we see a similar problem, it crashes on _getPrivateIpAddress_, or _getPublicIpAddress_ call depending on what I have chosen as connection strategy (public IP or private IP).

the interesting part is this: it fails for spot inst images c5.2xlarge, if I use t2.2xlarge it works well.

here's the error we are seeing
{code:java}

ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins
java.lang.NullPointerException
at hudson.plugins.ec2.EC2HostAddressProvider.getPrivateIpAddress(EC2HostAddressProvider.java:49)
at hudson.plugins.ec2.EC2HostAddressProvider.windows(EC2HostAddressProvider.java:28)
at hudson.plugins.ec2.win.EC2WindowsLauncher.connectToWinRM(EC2WindowsLauncher.java:134)
at hudson.plugins.ec2.win.EC2WindowsLauncher.launchScript(EC2WindowsLauncher.java:39)
at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:48)
at hudson.slaves.SlaveComputer.lambda$_connect$0(SlaveComputer.java:291)
at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
{code}

ovidiuc@gmail.com (JIRA)

unread,
Feb 13, 2020, 8:29:10 AM2/13/20
to jenkinsc...@googlegroups.com
ovi craciun edited a comment on Bug JENKINS-53952
[ Jenkins ver. 2.204.2
EC2 plugin: 1.48

we see a similar problem, it crashes on _getPrivateIpAddress_, or _getPublicIpAddress_ call depending on what I have chosen as connection strategy (public IP or private IP).
the interesting part is this: it fails for spot inst images c5.2xlarge, if I use t2.2xlarge it works well.

here's the error we are seeing
{code:java}
ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins
java.lang.NullPointerException
at hudson.plugins.ec2.EC2HostAddressProvider.getPrivateIpAddress(EC2HostAddressProvider.java:49)
at hudson.plugins.ec2.EC2HostAddressProvider.windows(EC2HostAddressProvider.java:28)
at hudson.plugins.ec2.win.EC2WindowsLauncher.connectToWinRM(EC2WindowsLauncher.java:134)
at hudson.plugins.ec2.win.EC2WindowsLauncher.launchScript(EC2WindowsLauncher.java:39)
at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:48)
at hudson.slaves.SlaveComputer.lambda$_connect$0(SlaveComputer.java:291)
at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
{code}

ovidiuc@gmail.com (JIRA)

unread,
Feb 14, 2020, 4:33:05 AM2/14/20
to jenkinsc...@googlegroups.com
ovi craciun edited a comment on Bug JENKINS-53952
Jenkins ver. 2.204.2
EC2 plugin: 1.48

we see a similar problem, it crashes on _getPrivateIpAddress_, or _getPublicIpAddress_ call depending on what I have chosen as connection strategy (public IP or private IP).
the interesting part is this: it fails for spot inst images c5.2xlarge (or any higher) , if I use t2.2xlarge it works well.


here's the error we are seeing
{code:java}
ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins
java.lang.NullPointerException
at hudson.plugins.ec2.EC2HostAddressProvider.getPrivateIpAddress(EC2HostAddressProvider.java:49)
at hudson.plugins.ec2.EC2HostAddressProvider.windows(EC2HostAddressProvider.java:28)
at hudson.plugins.ec2.win.EC2WindowsLauncher.connectToWinRM(EC2WindowsLauncher.java:134)
at hudson.plugins.ec2.win.EC2WindowsLauncher.launchScript(EC2WindowsLauncher.java:39)
at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:48)
at hudson.slaves.SlaveComputer.lambda$_connect$0(SlaveComputer.java:291)
at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
{code}

ovidiuc@gmail.com (JIRA)

unread,
Feb 14, 2020, 4:33:08 AM2/14/20
to jenkinsc...@googlegroups.com
ovi craciun edited a comment on Bug JENKINS-53952
Jenkins ver. 2.204.2
EC2 plugin: 1.48

we see a similar problem, it crashes on _getPrivateIpAddress_, or _getPublicIpAddress_ call depending on what I have chosen as connection strategy (public IP or private IP).
the interesting part is this: it fails for spot inst images c5.2xlarge (or any higher , I made sure we bid enough to get those instances ), if I use t2.2xlarge it works well.


here's the error we are seeing
{code:java}
ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins
java.lang.NullPointerException
at hudson.plugins.ec2.EC2HostAddressProvider.getPrivateIpAddress(EC2HostAddressProvider.java:49)
at hudson.plugins.ec2.EC2HostAddressProvider.windows(EC2HostAddressProvider.java:28)
at hudson.plugins.ec2.win.EC2WindowsLauncher.connectToWinRM(EC2WindowsLauncher.java:134)
at hudson.plugins.ec2.win.EC2WindowsLauncher.launchScript(EC2WindowsLauncher.java:39)
at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:48)
at hudson.slaves.SlaveComputer.lambda$_connect$0(SlaveComputer.java:291)
at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
{code}

ovidiuc@gmail.com (JIRA)

unread,
Feb 14, 2020, 5:44:05 PM2/14/20
to jenkinsc...@googlegroups.com
ovi craciun edited a comment on Bug JENKINS-53952
Jenkins ver. 2.204.2
EC2 plugin: 1.48

we see a similar problem, it crashes on _getPrivateIpAddress_, or _getPublicIpAddress_ call depending on what I have chosen as connection strategy (public IP or private IP).
the interesting part is this: it fails for spot inst images c5.2xlarge (or any higher, I made sure we bid enough to get those instances), if I use t2.2xlarge it works well.


here's the error we are seeing
{code:java}
ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins
java.lang.NullPointerException
at hudson.plugins.ec2.EC2HostAddressProvider.getPrivateIpAddress(EC2HostAddressProvider.java:49)
at hudson.plugins.ec2.EC2HostAddressProvider.windows(EC2HostAddressProvider.java:28)
at hudson.plugins.ec2.win.EC2WindowsLauncher.connectToWinRM(EC2WindowsLauncher.java:134)
at hudson.plugins.ec2.win.EC2WindowsLauncher.launchScript(EC2WindowsLauncher.java:39)
at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:48)
at hudson.slaves.SlaveComputer.lambda$_connect$0(SlaveComputer.java:291)
at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
{code}

Later edit: 
we updated the EC2 plugin to version [1.49.1|http://52.206.240.15:8080/pluginManager/plugin/ec2/thirdPartyLicenses] and it doesn't repro anymore.
Reply all
Reply to author
Forward
0 new messages