'Jfrog Artifactory Jenkins plugins upload fails
I'm using the Bitnami JFrog artifactory and I'm trying to run the example pipeline to upload. The upload fails, without any valuable information. Uploading files using curl works, and from the logs, it looks like the upload was done in some way, but then suddently there's the 404 error.
Here are the logs:
java.lang.Exception: Error occurred during operation, please refer to logs for more information.
at org.jfrog.build.extractor.producerConsumer.ProducerConsumerExecutor.start(ProducerConsumerExecutor.java:85)
at org.jfrog.build.extractor.clientConfiguration.util.spec.SpecsHelper.uploadArtifactsBySpec(SpecsHelper.java:110)
at org.jfrog.hudson.generic.GenericArtifactsDeployer$FilesDeployerCallable.invoke(GenericArtifactsDeployer.java:157)
Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to on-prem
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1795)
at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
at hudson.remoting.Channel.call(Channel.java:1001)
at hudson.FilePath.act(FilePath.java:1167)
at hudson.FilePath.act(FilePath.java:1156)
at org.jfrog.hudson.pipeline.common.executors.GenericUploadExecutor.execute(GenericUploadExecutor.java:56)
at org.jfrog.hudson.pipeline.declarative.steps.generic.UploadStep$Execution.runStep(UploadStep.java:39)
at org.jfrog.hudson.pipeline.declarative.steps.generic.UploadStep$Execution.runStep(UploadStep.java:24)
at org.jfrog.hudson.pipeline.ArtifactorySynchronousNonBlockingStepExecution.run(ArtifactorySynchronousNonBlockingStepExecution.java:54)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
Caused: java.lang.RuntimeException: Failed uploading artifacts by spec
at org.jfrog.hudson.generic.GenericArtifactsDeployer$FilesDeployerCallable.invoke(GenericArtifactsDeployer.java:159)
at org.jfrog.hudson.generic.GenericArtifactsDeployer$FilesDeployerCallable.invoke(GenericArtifactsDeployer.java:108)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3331)
at hudson.remoting.UserRequest.perform(UserRequest.java:211)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:376)
at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Finished: FAILURE
Jenkins logs shows the following:
Oct 12, 2021 10:42:41 AM FINEST org.jfrog.hudson.util.JenkinsBuildInfoLog
Extracting Vcs details from the .git directory.
Oct 12, 2021 10:42:41 AM FINEST org.jfrog.hudson.util.JenkinsBuildInfoLog
Fetched revision from git config: 8447d9aab187f09e7f84e6ff3d85039f1d3324e8
Oct 12, 2021 10:42:41 AM FINEST org.jfrog.hudson.util.JenkinsBuildInfoLog
Fetched url from git config: ssh://[email protected]:29418/sandbox.git
Oct 12, 2021 10:42:41 AM FINEST org.jfrog.hudson.util.JenkinsBuildInfoLog
[Thread producer_0] starting run()
Oct 12, 2021 10:42:41 AM FINEST org.jfrog.hudson.util.JenkinsBuildInfoLog
[Thread producer_0] getting deploy details from the following json:
FileSpec{aql=null, pattern='Jenkinsfile', target='aspen/', props='null', recursive='null', flat='null', regexp='null', build='null', explode='null', excludePatterns='null', exclusions='null', sortBy='null', sortOrder='null', offset='null', limit='null'}
Oct 12, 2021 10:42:41 AM INFO org.jfrog.hudson.util.JenkinsBuildInfoLog info
[consumer_0] Deploying artifact: https://artifactory.port.corp/artifactory/aspen/Jenkinsfile
Oct 12, 2021 10:42:41 AM FINEST org.jfrog.hudson.util.JenkinsBuildInfoLog
Base URL: api/system/version
Oct 12, 2021 10:42:46 AM FINEST org.jfrog.hudson.util.JenkinsBuildInfoLog
Version result: {"version":"7.7.3","revision":"70703900","addons":[],"license":"Artifactory OSS"}
Oct 12, 2021 10:42:46 AM FINEST org.jfrog.hudson.util.JenkinsBuildInfoLog
Skipping checksum deploy of file size 365 bytes, falling back to regular deployment.
Oct 12, 2021 10:42:46 AM FINEST org.jfrog.hudson.util.JenkinsBuildInfoLog
Failed artifact checksum deploy of file Jenkinsfile : c6a819884e5631d5f035423b4f1d9562dd2a6d7a
Oct 12, 2021 10:42:46 AM FINEST org.jfrog.hudson.util.JenkinsBuildInfoLog
Full Artifact Http path: PUT aspen/Jenkinsfile;vcs.revision=8447d9aab187f09e7f84e6ff3d85039f1d3324e8;build.timestamp=1634035353868;build.name=sandbox;build.number=16;vcs.url=ssh%3A%2F%2Fnrl-ci%40gerrit.port.corp%3A29418%2Fsandbox HTTP/1.1
@Http Headers: [X-Checksum-Sha1: c6a819884e5631d5f035423b4f1d9562dd2a6d7a, X-Checksum-Md5: 363095709443a6667a9e90713cb20f66]
Oct 12, 2021 10:42:46 AM FINEST org.jfrog.hudson.util.JenkinsBuildInfoLog
Base URL: aspen/Jenkinsfile;vcs.revision=8447d9aab187f09e7f84e6ff3d85039f1d3324e8;build.timestamp=1634035353868;build.name=sandbox;build.number=16;vcs.url=ssh%3A%2F%2Fnrl-ci%40gerrit.port.corp%3A29418%2Fsandbox
Oct 12, 2021 10:42:46 AM SEVERE org.jfrog.hudson.util.JenkinsBuildInfoLog error
Failed to upload file
Oct 12, 2021 10:42:46 AM SEVERE org.jfrog.hudson.util.JenkinsBuildInfoLog error
[consumer_0] An exception occurred during execution:
java.lang.RuntimeException: java.io.IOException: JFrog service failed. Received 404: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
</body></html>
at org.jfrog.build.extractor.clientConfiguration.util.spec.SpecDeploymentConsumer.consumerRun(SpecDeploymentConsumer.java:44)
at org.jfrog.build.extractor.producerConsumer.ConsumerRunnableBase.run(ConsumerRunnableBase.java:11)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.io.IOException: JFrog service failed. Received 404: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
</body></html>
at org.jfrog.build.extractor.clientConfiguration.client.JFrogService.throwException(JFrogService.java:53)
at org.jfrog.build.extractor.clientConfiguration.client.artifactory.services.Upload.handleUnsuccessfulResponse(Upload.java:59)
at org.jfrog.build.extractor.clientConfiguration.client.JFrogService.execute(JFrogService.java:130)
at org.jfrog.build.extractor.clientConfiguration.client.artifactory.services.Upload.execute(Upload.java:77)
at org.jfrog.build.extractor.clientConfiguration.client.artifactory.ArtifactoryManager.upload(ArtifactoryManager.java:262)
at org.jfrog.build.extractor.clientConfiguration.client.artifactory.ArtifactoryManager.upload(ArtifactoryManager.java:257)
at org.jfrog.build.extractor.clientConfiguration.util.spec.SpecDeploymentConsumer.consumerRun(SpecDeploymentConsumer.java:39)
... 2 more
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
