ingenieux / awseb-deployment-plugin

Jenkins Plugin for AWS Elastic Beanstalk
Apache License 2.0
29 stars 53 forks source link

Deployment Failure: swapEnvironmentCNAMEs NoSuchMethodError #47

Closed avatsaev closed 7 years ago

avatsaev commented 7 years ago

Here is the trace:

FATAL: Deployment Failure
java.io.IOException: Deployment Failure
    at br.com.ingenieux.jenkins.plugins.awsebdeployment.AWSEBDeploymentBuilder.perform(AWSEBDeploymentBuilder.java:171)
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
    at hudson.model.Build$BuildExecution.build(Build.java:205)
    at hudson.model.Build$BuildExecution.doRun(Build.java:162)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
    at hudson.model.Run.execute(Run.java:1720)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:404)
Caused by: java.util.concurrent.ExecutionException: java.lang.NoSuchMethodError: com.amazonaws.services.elasticbeanstalk.AWSElasticBeanstalk.swapEnvironmentCNAMEs(Lcom/amazonaws/services/elasticbeanstalk/model/SwapEnvironmentCNAMEsRequest;)V
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at hudson.remoting.LocalChannel$2.get(LocalChannel.java:77)
    at br.com.ingenieux.jenkins.plugins.awsebdeployment.DeployerRunner.perform(DeployerRunner.java:66)
    at br.com.ingenieux.jenkins.plugins.awsebdeployment.AWSEBDeploymentBuilder.perform(AWSEBDeploymentBuilder.java:167)
    ... 9 more
Caused by: java.lang.NoSuchMethodError: com.amazonaws.services.elasticbeanstalk.AWSElasticBeanstalk.swapEnvironmentCNAMEs(Lcom/amazonaws/services/elasticbeanstalk/model/SwapEnvironmentCNAMEsRequest;)V
    at br.com.ingenieux.jenkins.plugins.awsebdeployment.cmd.ZeroDowntime.swapEnvironmentCnames(ZeroDowntime.java:142)
    at br.com.ingenieux.jenkins.plugins.awsebdeployment.cmd.ZeroDowntime.release(ZeroDowntime.java:181)
    at br.com.ingenieux.jenkins.plugins.awsebdeployment.cmd.DeployerChain.perform(DeployerChain.java:70)
    at br.com.ingenieux.jenkins.plugins.awsebdeployment.SlaveDeployerCallable.call(SlaveDeployerCallable.java:42)
    at br.com.ingenieux.jenkins.plugins.awsebdeployment.SlaveDeployerCallable.call(SlaveDeployerCallable.java:27)
    at hudson.remoting.LocalChannel$1.call(LocalChannel.java:52)
    at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
    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:745)
Finished: FAILURE
AlexeyDeyneko commented 7 years ago

a similar error

Jenkins v.2.3.0 AWS Elastic Beanstalk Deployment Plugin v.0.3.10 Amazon Web Services SDK v.1.11.37 Token Macro Plugin v.2.0

Arun129 commented 7 years ago

Am also stucked here :(

Koosmann commented 7 years ago

+1

avatsaev commented 7 years ago

for everyone having this issue, (and ingenieux completely ignoring us) the workaround is to disable rolling updates by unchecking it in the config

aldrinleal commented 7 years ago

Vatsaev,

Im not ignoring. Just the usual answer: patches welcome

Now be nice and i wont tell santa about this ok?

On Dec 14, 2016 16:45, "Vatsaev Aslan" notifications@github.com wrote:

for everyone having this issue, (and ingenieux completely ignoring us) the workaround is to disable rolling updates by unchecking it in the config

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ingenieux/awseb-deployment-plugin/issues/47#issuecomment-267166342, or mute the thread https://github.com/notifications/unsubscribe-auth/AAPctYzZE_5drcUUYR9qAWPFmXrMfqMNks5rIGNhgaJpZM4KMDu9 .

avatsaev commented 7 years ago

joke's on you, santa isn't real.

aldrinleal commented 7 years ago
No repo for you! On Dec 14, 2016 22:00, "Vatsaev Aslan" wrote: joke's on you, santa isn't real. — You are receiving this because you commented. Reply to this email directly, view it on GitHub , or mute the thread .
avatsaev commented 7 years ago

I'm really trying to understand why this is happening, but I suck at java, pinpointed the issue to file ZeroDowntime.java at line 142, seems like whatever getAwseb() is returning, it doesn't have the swapEnvironmentCNAMEs() method, where is getAwseb() coming from? and what is it returning?

aldrinleal commented 7 years ago

It might be a breaking change in the aws sdk for java. It used to work on older versions

On Dec 15, 2016 01:26, "Vatsaev Aslan" notifications@github.com wrote:

I'm really trying to understand why this is happening, but I suck at java, pinpointed the issue to file ZeroDowntime.java at line 142, seems like whatever getAwseb() is returning, it doesn't have the swapEnvironmentCNAMEs() method, where is getAwseb() coming from? and what is it returning?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ingenieux/awseb-deployment-plugin/issues/47#issuecomment-267229025, or mute the thread https://github.com/notifications/unsubscribe-auth/AAPctUuzxn_TeCPxcMsGlqLJ6iL0jsn0ks5rILN9gaJpZM4KMDu9 .

avatsaev commented 7 years ago

You can't lock on to an older version of the SDK? Like Gemfile.lock that locks major versions of Gems on Ruby projects to prevent this sort of issues. Not sure how package management works on Java.

aldrinleal commented 7 years ago

Anyway, bumped to a newer version of aws-sdk and deployed. Give it a try.