-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: CI/CD
-
Team:PLATFORM
-
Sprint:nxplatform 11.1.34
-
Story Points:3
On the nuxeo master build, we often see the 'Run "dev" functional tests' stage failing with:
17:09:38 [ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.3.2:compile (scala-compile) on project nuxeo-server-gatling-tests: wrap: org.apache.maven.artifact.resolver.ArtifactResolutionException: Could not transfer artifact org.scala-lang:scala-compiler:jar:2.12.3 from/to nexus (http://nexus/repository/maven-group/): GET request of: org/scala-lang/scala-compiler/2.12.3/scala-compiler-2.12.3.jar from nexus failed 17:09:38 [ERROR] org.scala-lang:scala-compiler:jar:2.12.3 17:09:38 [ERROR] 17:09:38 [ERROR] from the specified remote repositories: 17:09:38 [ERROR] nexus (http://nexus/repository/maven-group/, releases=true, snapshots=true): Connection reset
On the Nexus side, we have the following error, full stack trace attached:
Caused by: java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcherImpl.write0(Native Method) at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47) at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93) at sun.nio.ch.IOUtil.write(IOUtil.java:51) at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471) at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:262) ... 102 common frames omitted
So, the connection is reset client side.
The issue can be reproduced by connecting to a running "nuxeo-platform-11-xxxxx" pod before the failing stage has actually been executed:
jx rsh nuxeo-platform-11-xxxxx -c maven cd workspace/nuxeo_nuxeo_PR-XXXX/server mvn -nsu -DskipTests install cd ../ftests/nuxeo-server-gatling-tests/ mvn verify -e
This produces the following Maven error, full stack trace attached:
Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException: Could not transfer artifact org.scala-lang:scala-compiler:jar:2.12.3 from/to nexus (http://nexus/repository/maven-group/): GET request of: org/scala-lang/scala-compiler/2.12.3/scala-compiler-2.12.3.jar from nexus failed org.scala-lang:scala-compiler:jar:2.12.3 from the specified remote repositories: nexus (http://nexus/repository/maven-group/, releases=true, snapshots=true) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve (DefaultArtifactResolver.java:225) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve (DefaultArtifactResolver.java:154) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve (DefaultArtifactResolver.java:567) at scala_maven.ScalaMojoSupport.getArtifactJar (ScalaMojoSupport.java:908) at scala_maven.ScalaMojoSupport.getCompilerJar (ScalaMojoSupport.java:886) at scala_maven.ScalaMojoSupport.addCompilerToClasspath (ScalaMojoSupport.java:558) at scala_maven.ScalaMojoSupport.getToolClasspath (ScalaMojoSupport.java:826) at scala_maven.ScalaMojoSupport.getEmptyScalaCommand (ScalaMojoSupport.java:798) at scala_maven.ScalaMojoSupport.getScalaCommand (ScalaMojoSupport.java:754) at scala_maven.ScalaMojoSupport.getScalaCommand (ScalaMojoSupport.java:733) at scala_maven.ScalaCompilerSupport.compile (ScalaCompilerSupport.java:153) at scala_maven.ScalaCompilerSupport.doExecute (ScalaCompilerSupport.java:99) at scala_maven.ScalaMojoSupport.execute (ScalaMojoSupport.java:585) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
The "random" aspect can be seen when rerunning "mvn verify" which doesn't fail. Yet, after purging the "/root/.mvnrepository/org/scala-lang/scala-compiler/" directory, the problem occurs again.