java.io.IOException: Failed to deploy file: Not Found

Jenkins JIRA | jvalerio | 6 years ago
  1. 0

    When performing a m2release it performs everything correctly, and then the artifactory plugin tries to deploy the next snapshot artifacts, and I get the stack trace that follows. As you can see the m2release completes successful. It correctly deploys the next snapshots jar, and fails on the pom. I traced it to the ArtifactDeployer and ensured that the source pom file exists on the hudson server running the release. The wording of the IO error is a little odd. Makes me think that the IO error is wrapped. I verified this by breaking on IOExceptions and it threw quite a few. That is when I gave up and decided to file a ticket. [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 31 seconds [INFO] Finished at: Thu Jul 01 11:06:20 EDT 2010 [INFO] Final Memory: 17M/41M [INFO] ------------------------------------------------------------------------ channel stopped Deploying artifacts to https://repository.its.yale.edu/maven2 Deploying artifacts of module: edu.yale.its:yale-junit Deploying artifact: https://repository.its.yale.edu/maven2/lib-snapshots-public/edu/yale/its/yale-junit/1.0.14-SNAPSHOT/yale-junit-1.0.14-SNAPSHOT.jar Deploying artifact: https://repository.its.yale.edu/maven2/lib-snapshots-public/edu/yale/its/yale-junit/1.0.14-SNAPSHOT/yale-junit-1.0.14-SNAPSHOT.pom ERROR: Failed to deploy file: Not Found java.io.IOException: Failed to deploy file: Not Found at org.jfrog.build.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:310) at org.jfrog.build.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:234) at org.jfrog.hudson.ArtifactsDeployer.deployArtifact(ArtifactsDeployer.java:99) at org.jfrog.hudson.ArtifactsDeployer.deploy(ArtifactsDeployer.java:64) at org.jfrog.hudson.ArtifactoryRedeployPublisher.perform(ArtifactoryRedeployPublisher.java:108) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580) at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:598) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528) at hudson.model.Run.run(Run.java:1280) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:306) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:127) Finished: FAILURE

    Jenkins JIRA | 6 years ago | jvalerio
    java.io.IOException: Failed to deploy file: Not Found
  2. 0

    When performing a m2release it performs everything correctly, and then the artifactory plugin tries to deploy the next snapshot artifacts, and I get the stack trace that follows. As you can see the m2release completes successful. It correctly deploys the next snapshots jar, and fails on the pom. I traced it to the ArtifactDeployer and ensured that the source pom file exists on the hudson server running the release. The wording of the IO error is a little odd. Makes me think that the IO error is wrapped. I verified this by breaking on IOExceptions and it threw quite a few. That is when I gave up and decided to file a ticket. [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 31 seconds [INFO] Finished at: Thu Jul 01 11:06:20 EDT 2010 [INFO] Final Memory: 17M/41M [INFO] ------------------------------------------------------------------------ channel stopped Deploying artifacts to https://repository.its.yale.edu/maven2 Deploying artifacts of module: edu.yale.its:yale-junit Deploying artifact: https://repository.its.yale.edu/maven2/lib-snapshots-public/edu/yale/its/yale-junit/1.0.14-SNAPSHOT/yale-junit-1.0.14-SNAPSHOT.jar Deploying artifact: https://repository.its.yale.edu/maven2/lib-snapshots-public/edu/yale/its/yale-junit/1.0.14-SNAPSHOT/yale-junit-1.0.14-SNAPSHOT.pom ERROR: Failed to deploy file: Not Found java.io.IOException: Failed to deploy file: Not Found at org.jfrog.build.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:310) at org.jfrog.build.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:234) at org.jfrog.hudson.ArtifactsDeployer.deployArtifact(ArtifactsDeployer.java:99) at org.jfrog.hudson.ArtifactsDeployer.deploy(ArtifactsDeployer.java:64) at org.jfrog.hudson.ArtifactoryRedeployPublisher.perform(ArtifactoryRedeployPublisher.java:108) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580) at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:598) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528) at hudson.model.Run.run(Run.java:1280) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:306) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:127) Finished: FAILURE

    Jenkins JIRA | 6 years ago | jvalerio
    java.io.IOException: Failed to deploy file: Not Found
  3. 0

    Artifactory - Users - deploy response code: 500 (but not allways)

    jfrog.org | 6 months ago
    java.io.IOException: Failed to deploy file: HTTP response code: 500. HTTP response message: Internal Server Error
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Currently running into an issue with how the artifactory plugin is working when performing a release in Hudson using the maven release plugin (http://wiki.hudson-ci.org/display/HUDSON/M2+Release+Plugin). The problem occurs at the end of the release when it is trying to publish the new snapshot to artifactory. For some reason the artifactory plugin things it is working with the old snapshot version and won't let the artifact be put into artifactory. Here is the relevant log entry on hudson. {code} Deploying artifacts to http://artifactory-repo:8081 Deploying artifacts of module: groupid:artifactid Deploying artifact: http://artifactory-repo:8081/local-snapshots/groupid/artifactid/0.0.7-SNAPSHOT/artifactid-0.0.7-SNAPSHOT.pom ERROR: Failed to deploy file: HTTP response code: 404. HTTP response message: The target deployment path 'groupid/artifactid/0.0.7-SNAPSHOT/artifactid-0.0.7-SNAPSHOT.pom' does not match the POM's expected path prefix 'groupid/artifactid/0.0.8-SNAPSHOT'. Please verify your POM content for correctness and make sure the source path is a valid Maven 2 repository root path. java.io.IOException: Failed to deploy file: HTTP response code: 404. HTTP response message: The target deployment path 'groupid/artifactid/0.0.7-SNAPSHOT/artifactid-0.0.7-SNAPSHOT.pom' does not match the POM's expected path prefix 'groupid/artifactid/0.0.8-SNAPSHOT'. Please verify your POM content for correctness and make sure the source path is a valid Maven 2 repository root path. at org.jfrog.build.client.ArtifactoryBuildInfoClient.throwHttpIOException(ArtifactoryBuildInfoClient.java:441) at org.jfrog.build.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:374) at org.jfrog.build.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:275) at org.jfrog.hudson.maven2.ArtifactsDeployer.deployArtifact(ArtifactsDeployer.java:125) at org.jfrog.hudson.maven2.ArtifactsDeployer.deploy(ArtifactsDeployer.java:89) at org.jfrog.hudson.ArtifactoryRedeployPublisher.perform(ArtifactoryRedeployPublisher.java:177) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580) at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:595) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528) at hudson.model.Run.run(Run.java:1303) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:293) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:137) Skipping sonar analysis due to bad build status FAILURE Finished: FAILURE {code} artifactory-repo, groupid, and artifactid are replacements for non-public domain information.

    JFrog JIRA | 6 years ago | Shawn Clark
    java.io.IOException: Failed to deploy file: HTTP response code: 404. HTTP response message: The target deployment path 'groupid/artifactid/0.0.7-SNAPSHOT/artifactid-0.0.7-SNAPSHOT.pom' does not match the POM's expected path prefix 'groupid/artifactid/0.0.8-SNAPSHOT'. Please verify your POM content for correctness and make sure the source path is a valid Maven 2 repository root path.

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      Failed to deploy file: Not Found

      at org.jfrog.build.client.ArtifactoryBuildInfoClient.uploadFile()
    2. org.jfrog.build
      ArtifactoryBuildInfoClient.deployArtifact
      1. org.jfrog.build.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:310)
      2. org.jfrog.build.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:234)
      2 frames
    3. org.jfrog.hudson
      ArtifactoryRedeployPublisher.perform
      1. org.jfrog.hudson.ArtifactsDeployer.deployArtifact(ArtifactsDeployer.java:99)
      2. org.jfrog.hudson.ArtifactsDeployer.deploy(ArtifactsDeployer.java:64)
      3. org.jfrog.hudson.ArtifactoryRedeployPublisher.perform(ArtifactoryRedeployPublisher.java:108)
      3 frames
    4. Hudson
      AbstractBuild$AbstractRunner.performAllBuildSteps
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601)
      3. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580)
      3 frames
    5. Hudson Maven Embedder
      MavenModuleSetBuild$RunnerImpl.post2
      1. hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:598)
      1 frame
    6. Hudson
      Run.run
      1. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
      2. hudson.model.Run.run(Run.java:1280)
      2 frames
    7. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:306)
      1 frame
    8. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:88)
      2. hudson.model.Executor.run(Executor.java:127)
      2 frames