Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amazon Elastic Container Service (ECS) / Fargate plugin Version1.48 is not working #323

Open
venkatesh588 opened this issue Jul 27, 2023 · 3 comments
Labels

Comments

@venkatesh588
Copy link

Jenkins and plugins versions report

Hi Team,

I have installed Amazon Elastic Container Service (ECS) / Fargate plugin Version1.48 in my Jenkins and executing the agents. But the agent is not coming up using the latest version of Amazon Elastic Container Service (ECS) / Fargate plugin. I'm running my master Jenkins with Jenkins 2.401.1 version. I have separate slave cluster for Master and slave and our Jenkins master and slave hosted on Amazon ECS. The agents are working with Amazon Elastic Container Service (ECS) / Fargate plugin Version1.37 in the Jenkins LTS version.

Please find the below logs.

Will provision ECS_SLAVE_CLOUD_1-Jenkins-JNLP-Debian-ppx79, for label: Jenkins-JNLP-Debian
Jul 27, 2023 1:03:41 PM SEVERE hudson.triggers.SafeTimerTask run
Timer task hudson.slaves.NodeProvisioner$NodeProvisionerInvoker@4c4392f4 failed
java.lang.IllegalArgumentException
at hudson.slaves.NodeProvisioner$PlannedNode.(NodeProvisioner.java:102)
at com.cloudbees.jenkins.plugins.amazonecs.ECSCloud.provision(ECSCloud.java:292)
at io.jenkins.plugins.aws.lambda.cloud.LambdaCloudProvisionerStrategy.apply(LambdaCloudProvisionerStrategy.java:80)
at hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:325)
at hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:823)
at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:92)
at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:67)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)

Jul 27, 2023 1:03:51 PM INFO com.cloudbees.jenkins.plugins.amazonecs.ECSCloud provision
Asked to provision 1 agent(s) for: Jenkins-JNLP-Debian
Jul 27, 2023 1:03:51 PM INFO com.cloudbees.jenkins.plugins.amazonecs.ECSCloud provision
Will provision ECS_SLAVE_CLOUD_1-Jenkins-JNLP-Debian-3cngt, for label: Jenkins-JNLP-Debian
Jul 27, 2023 1:03:51 PM SEVERE hudson.triggers.SafeTimerTask run
Timer task hudson.slaves.NodeProvisioner$NodeProvisionerInvoker@4c4392f4 failed
java.lang.IllegalArgumentException
at hudson.slaves.NodeProvisioner$PlannedNode.(NodeProvisioner.java:102)
at com.cloudbees.jenkins.plugins.amazonecs.ECSCloud.provision(ECSCloud.java:292)
at io.jenkins.plugins.aws.lambda.cloud.LambdaCloudProvisionerStrategy.apply(LambdaCloudProvisionerStrategy.java:80)
at hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:325)
at hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:823)
at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:92)
at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:67)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)

What Operating System are you using (both controller, and any agents involved in the problem)?

I'm running Master and slave on Linux.

Reproduction steps

Please install master on ECS cluster and slave on different ECS cluster.
Create the agent image and configure in the cloud section.
Run the pipeline on the slave nodes.

Expected Results

The task should come up in the salve node.

Actual Results

The task is not coming up in the slave nodes.

Anything else?

No response

@svanscho
Copy link

svanscho commented Oct 6, 2023

I have the same issue. 1.47 also no longer works.

@mauricioramirezh
Copy link

I have the same issue. have they found a solution?

@owengo
Copy link

owengo commented Aug 13, 2024

Same problem here when trying to ugprade from 1.41 => 1.49.

After some investigations ( thanks git blame !) it seems the change came at 1.45 with the "num executors", a solution is provided here:
#291

You have to manually edit your cloud configurations and add: Number of executors per agent = 1 ( default is 0 and causes the error )
( and then take care to the ecs:ListTagsForResource permission )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants