Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-17683

Nexus Upload Archives failing sometimes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: 3.12.0
    • Fix Version/s: None
    • Component/s: Repository
    • Labels:
      None

      Description

      Jenkins - 2.121.2

      Nexus - 3.12.0-01

      Above are the versions of Jenkins and Nexus using and both installed on same server.

      Some times uploadArchives is success and sometimes throwing error. When Nexus restarted it is success for sometime and again fails. Below is the Error.

      11:06:09.688 [ERROR] [system.err] Transferring 49981K from remote 11:06:10.263 [DEBUG] [sun.net.www.protocol.http.HttpURLConnection] sun.net.www.MessageHeader@48158b866 pairs: \{PUT /repository/releases/com/novation/app/portal/1.35.0.584/portal-1.35.0.584.jar HTTP/1.1: null}\{User-Agent: maven-artifact/3.0.4 (Java 1.8.0_172; Linux 3.10.0-862.9.1.el7.x86_64)}\{Host: acldlt04sav.test.corp.vizientinc.com:8081}\{Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2}\{Connection: keep-alive}\{Content-Length: 51180213} 11:06:10.276 [DEBUG] [sun.net.www.protocol.http.HttpURLConnection] sun.net.www.MessageHeader@48158b866 pairs: \{PUT /repository/releases/com/novation/app/portal/1.35.0.584/portal-1.35.0.584.jar HTTP/1.1: null}\{User-Agent: maven-artifact/3.0.4 (Java 1.8.0_172; Linux 3.10.0-862.9.1.el7.x86_64)}\{Host: acldlt04sav.test.corp.vizientinc.com:8081}\{Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2}\{Connection: keep-alive}\{Content-Length: 51180213} 11:06:10.283 [ERROR] [system.err] Error writing to server 11:06:10.285 [INFO] [org.gradle.api.internal.project.ant.AntLoggingAdapter] [ant:null] An error has occurred while processing the Maven artifact tasks. Diagnosis: Error deploying artifact 'com.novation.app:portal:jar': Error deploying artifact: Error transferring file Error writing to server 11:06:10.286 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':uploadArchives' 11:06:10.288 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :uploadArchives FAILED 11:06:10.288 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :uploadArchives (Thread[main,5,main]) completed. Took 1.355 secs. 11:06:10.289 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[main,5,main]] finished, busy: 28.964 secs, idle: 0.007 secs 11:06:10.309 [ERROR] [org.gradle.BuildExceptionReporter] 11:06:10.309 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception. 11:06:10.310 [ERROR] [org.gradle.BuildExceptionReporter] 11:06:10.310 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong: 11:06:10.310 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':uploadArchives'. 11:06:10.310 [ERROR] [org.gradle.BuildExceptionReporter] > Could not publish configuration 'archives' 11:06:10.310 [ERROR] [org.gradle.BuildExceptionReporter] > Error deploying artifact 'com.novation.app:portal:jar': Error deploying artifact: Error transferring file 11:06:10.311 [ERROR] [org.gradle.BuildExceptionReporter] 11:06:10.311 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is: 11:06:10.316 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':uploadArchives'. 11:06:10.317 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69) 11:06:10.318 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46) 11:06:10.318 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35) 11:06:10.318 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64) 11:06:10.318 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) 11:06:10.318 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42) 11:06:10.318 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52) 11:06:10.318 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53) 11:06:10.318 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) 11:06:10.319 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:305) 11:06:10.319 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79) 11:06:10.319 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63) 11:06:10.319 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51) 11:06:10.319 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:23) 11:06:10.319 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:88) 11:06:10.319 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29) 11:06:10.319 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62) 11:06:10.319 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23) 11:06:10.320 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:68) 11:06:10.320 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32) 11:06:10.320 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62) 11:06:10.321 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:55) 11:06:10.321 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:149) 11:06:10.323 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:106) 11:06:10.323 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:86) 11:06:10.323 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:80) 11:06:10.323 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33) 11:06:10.323 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24) 11:06:10.323 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:36) 11:06:10.323 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26) 11:06:10.323 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:51) 11:06:10.324 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:171) 11:06:10.324 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237) 11:06:10.324 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210) 11:06:10.324 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35) 11:06:10.324 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24) 11:06:10.324 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206) 11:06:10.324 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169) 11:06:10.324 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33) 11:06:10.325 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22) 11:06:10.325 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.doAction(Main.java:33) 11:06:10.325 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45) 11:06:10.325 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54) 11:06:10.325 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35) 11:06:10.325 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.GradleMain.main(GradleMain.java:23) 11:06:10.325 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30) 11:06:10.325 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127) 11:06:10.325 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:56) 11:06:10.326 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: org.gradle.api.artifacts.PublishException: Could not publish configuration 'archives' 11:06:10.326 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.tasks.Upload.upload(Upload.java:66) 11:06:10.326 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63) 11:06:10.326 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:218) 11:06:10.326 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:211) 11:06:10.326 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:200) 11:06:10.326 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:579) 11:06:10.327 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:562) 11:06:10.327 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80) 11:06:10.328 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61) 11:06:10.328 [ERROR] [org.gradle.BuildExceptionReporter] ... 47 more 11:06:10.329 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: Error deploying artifact 'com.novation.app:portal:jar': Error deploying artifact: Error transferring file 11:06:10.329 [ERROR] [org.gradle.BuildExceptionReporter] at org.apache.maven.artifact.ant.DeployTask.doExecute(DeployTask.java:144) 11:06:10.329 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.publication.maven.internal.ant.CustomDeployTask.doExecute(CustomDeployTask.java:39) 11:06:10.329 [ERROR] [org.gradle.BuildExceptionReporter] at org.apache.maven.artifact.ant.AbstractArtifactTask.execute(AbstractArtifactTask.java:751) 11:06:10.329 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.publication.maven.internal.ant.AbstractMavenResolver.execute(AbstractMavenResolver.java:111) 11:06:10.329 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.publication.maven.internal.ant.AbstractMavenResolver.publish(AbstractMavenResolver.java:102) 11:06:10.329 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.publication.maven.internal.ant.AbstractMavenResolver.publish(AbstractMavenResolver.java:80) 11:06:10.329 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.DefaultIvyDependencyPublisher.publish(DefaultIvyDependencyPublisher.java:42) 11:06:10.329 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.IvyBackedArtifactPublisher$1.execute(IvyBackedArtifactPublisher.java:79) 11:06:10.330 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.IvyBackedArtifactPublisher$1.execute(IvyBackedArtifactPublisher.java:54) 11:06:10.330 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.Transformers$3.transform(Transformers.java:131) 11:06:10.330 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.DefaultIvyContextManager.withIvy(DefaultIvyContextManager.java:61) 11:06:10.330 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.DefaultIvyContextManager.withIvy(DefaultIvyContextManager.java:39) 11:06:10.330 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.artifacts.ivyservice.IvyBackedArtifactPublisher.publish(IvyBackedArtifactPublisher.java:54) 11:06:10.330 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.tasks.Upload.upload(Upload.java:64) 11:06:10.330 [ERROR] [org.gradle.BuildExceptionReporter] ... 55 more 11:06:10.332 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error deploying artifact: Error transferring file 11:06:10.332 [ERROR] [org.gradle.BuildExceptionReporter] at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:121) 11:06:10.332 [ERROR] [org.gradle.BuildExceptionReporter] at org.apache.maven.artifact.ant.DeployTask.doExecute(DeployTask.java:125) 11:06:10.332 [ERROR] [org.gradle.BuildExceptionReporter] ... 68 more 11:06:10.332 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: org.apache.maven.wagon.TransferFailedException: Error transferring file 11:06:10.332 [ERROR] [org.gradle.BuildExceptionReporter] at org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:213) 11:06:10.332 [ERROR] [org.gradle.BuildExceptionReporter] at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:413) 11:06:10.333 [ERROR] [org.gradle.BuildExceptionReporter] at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392) 11:06:10.333 [ERROR] [org.gradle.BuildExceptionReporter] at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365) 11:06:10.333 [ERROR] [org.gradle.BuildExceptionReporter] at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163) 11:06:10.333 [ERROR] [org.gradle.BuildExceptionReporter] at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:317) 11:06:10.333 [ERROR] [org.gradle.BuildExceptionReporter] at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:227) 11:06:10.335 [ERROR] [org.gradle.BuildExceptionReporter] at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:107) 11:06:10.335 [ERROR] [org.gradle.BuildExceptionReporter] ... 69 more 11:06:10.335 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.io.IOException: Error writing to server 11:06:10.335 [ERROR] [org.gradle.BuildExceptionReporter] at org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:185) 11:06:10.335 [ERROR] [org.gradle.BuildExceptionReporter] ... 76 more 11:06:10.335 [ERROR] [org.gradle.BuildExceptionReporter] 11:06:10.335 [LIFECYCLE] [org.gradle.BuildResultLogger] 11:06:10.335 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED 11:06:10.336 [LIFECYCLE] [org.gradle.BuildResultLogger]
      

      Build.gradle.
      uploadArchives {
      repositories {
      mavenDeployer {
      repository(url: nexusURL + "releases")

      { authentication(userName: nexusUsername, password: nexusPassword) }

      pom.version = version + "." + buildNumber
      pom.artifactId = artifactId
      pom.groupId = groupId
      pom {

      project {
      dependencyManagement {
      dependencies {
      dependency {
      groupId 'org.springframework.boot'
      artifactId 'spring-boot-dependencies'
      version "${springBootVersion}"
      type "pom"
      scope "import"
      }
      }
      }
      }
      }
      }
      }
      }
       

      nexusURL, nexusUsername, nexusPassword are set in Jenkins.

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            alingam AL
            Last Updated By:
            Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title