Gatling Jenkins Plugin not working

122 views
Skip to first unread message

Fouad Sadik

unread,
Sep 13, 2021, 9:34:43 AM9/13/21
to Gatling User Group
Hello,
I hope you can provide your help on below issue. 

1. I am running Gatling Frontline plugin from Jenkins (FrontLine Jenkins Plugin 1.11.0).  
2. Did the API token configuration, and setup the Jenkins admin settings. 

I am getting UnsupportedMediaTypeException when running the command "gatlingFrontLineLauncherStep" with a simulation id. 

Command called from Jenkinsfile:
gatlingFrontLineLauncherStep(simulationId: '5026e3c3-705c-40f2-860d-872c666fe704')

============================
Errors:
08:53:17 Running Gatling FrontLine Launcher step. 08:53:22 java.util.concurrent.ExecutionException: io.gatling.frontline.ci.http.FrontLineException: i.f.Decode$UnsupportedMediaTypeException 08:53:22 at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357) 08:53:22 at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1928) 08:53:22 at org.asynchttpclient.netty.NettyResponseFuture.get(NettyResponseFuture.java:206) 08:53:22 at io.gatling.frontline.ci.http.HttpClient.launchRun(HttpClient.java:95) 08:53:22 at io.gatling.frontline.jenkins.GatlingFrontlineBuilder.perform(GatlingFrontlineBuilder.java:90) 08:53:22 at io.gatling.frontline.jenkins.steps.GatlingFrontlineLauncherStepExecution.run(GatlingFrontlineLauncherStepExecution.java:42) 08:53:22 at io.gatling.frontline.jenkins.steps.GatlingFrontlineLauncherStepExecution.run(GatlingFrontlineLauncherStepExecution.java:18) 08:53:22 at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47) 08:53:22 at hudson.security.ACL.impersonate(ACL.java:359) 08:53:22 at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44) 08:53:22 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 08:53:22 at java.util.concurrent.FutureTask.run(FutureTask.java:266) 08:53:22 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 08:53:22 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 08:53:22 at java.lang.Thread.run(Thread.java:748) 08:53:22 Caused by: io.gatling.frontline.ci.http.FrontLineException: i.f.Decode$UnsupportedMediaTypeException 08:53:22 at io.gatling.frontline.ci.http.AsyncJsonHandler.onCompleted(AsyncJsonHandler.java:62) 08:53:22 at org.asynchttpclient.netty.NettyResponseFuture.loadContent(NettyResponseFuture.java:222) 08:53:22 at org.asynchttpclient.netty.NettyResponseFuture.done(NettyResponseFuture.java:257) 08:53:22 at org.asynchttpclient.netty.handler.AsyncHttpClientHandler.finishUpdate(AsyncHttpClientHandler.java:241) 08:53:22 at org.asynchttpclient.netty.handler.HttpHandler.handleChunk(HttpHandler.java:114) 08:53:22 at org.asynchttpclient.netty.handler.HttpHandler.handleRead(HttpHandler.java:143) 08:53:22 at org.asynchttpclient.netty.handler.AsyncHttpClientHandler.channelRead(AsyncHttpClientHandler.java:78) 08:53:22 at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374) 08:53:22 at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360) 08:53:22 at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:352) 08:53:22 at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102) 08:53:22 at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374) 08:53:22 at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360) 08:53:22 at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:352) 08:53:22 at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:438) 08:53:22 at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:328) 08:53:22 at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:302) 08:53:22 at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:253) 08:53:22 at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374) 08:53:22 at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360) 08:53:22 at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:352) 08:53:22 at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1422) 08:53:22 at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374) 08:53:22 at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360) 08:53:22 at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:931) 08:53:22 at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) 08:53:22 at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:700) 08:53:22 at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:635) 08:53:22 at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:552) 08:53:22 at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:514) 08:53:22 at io.netty.util.concurrent.SingleThreadEventExecutor$6.run(SingleThreadEventExecutor.java:1044) 08:53:22 at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) 08:53:22 at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) 08:53:22 ... 1 more 08:53:22 Exception in the launching the Gatling FrontLine task, please check your parameters.
============================

Kind regards,
Fouad.

Fouad Sadik

unread,
Sep 13, 2021, 11:12:09 AM9/13/21
to Gatling User Group
New Update:

Call in Jenkinsfile:
gatlingFrontLineLauncherStep credentialId: 'jenkins', simulationId: '2453d628-d47a-4342-a7a3-7f2d4c1bc0f7'

I updated the Gatling Frontline Plugin in Jenkins to version 1.15.3, and now I am getting instead below timeout error:

10:54:31 Running Gatling Enterprise Launcher step. 
10:54:36 java.io.InterruptedIOException: timeout 
10:54:36 at okhttp3.internal.connection.Transmitter.timeoutExit(Transmitter.java:109) 
10:54:36 at okhttp3.internal.connection.Transmitter.maybeReleaseConnection(Transmitter.java:302) 
10:54:36 at okhttp3.internal.connection.Transmitter.noMoreExchanges(Transmitter.java:267) 
10:54:36 at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:237) 
10:54:36 at okhttp3.RealCall.execute(RealCall.java:81) 
10:54:36 at io.gatling.frontline.ci.http.HttpClient.httpRequest(HttpClient.java:69) 
10:54:36 at io.gatling.frontline.ci.http.HttpClient.httpPost(HttpClient.java:61) 
10:54:36 at io.gatling.frontline.ci.http.HttpClient.launchRun(HttpClient.java:77) 
10:54:36 at io.gatling.frontline.jenkins.GatlingFrontlineBuilder.perform(GatlingFrontlineBuilder.java:90) 
10:54:36 at io.gatling.frontline.jenkins.steps.GatlingFrontlineLauncherStepExecution.run(GatlingFrontlineLauncherStepExecution.java:42) 
10:54:36 at io.gatling.frontline.jenkins.steps.GatlingFrontlineLauncherStepExecution.run(GatlingFrontlineLauncherStepExecution.java:18) 
10:54:36 at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47) 
10:54:36 at hudson.security.ACL.impersonate(ACL.java:359) 
10:54:36 at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44) 
10:54:36 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
10:54:36 at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
10:54:36 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
10:54:36 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
10:54:36 at java.lang.Thread.run(Thread.java:748) 
10:54:36 Caused by: java.io.IOException: Canceled 
10:54:36 at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:82) 
10:54:36 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142) 
10:54:36 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
10:54:36 at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:229) 
10:54:36 ... 15 more 
10:54:36 Exception in the launching the Gatling Enterprise task, please check your parameters.

Any help is highly appreciated.

Kind regards,
Fouad.

Stéphane LANDELLE

unread,
Sep 13, 2021, 11:13:45 AM9/13/21
to gat...@googlegroups.com
Hello,

Please do as instructed in the private email I sent you after your first email.

Regards,
--

Stéphane Landelle

Chief Technical Officer

   

slan...@gatling.io
gatling.io
   
facebook twitter linkedin 


--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gatling/f71beda3-4d50-413c-a2bc-d60593a3df53n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages