Error: "Checksum deploy failed. No existing file with SHA1" during artifactoryPublish task


(Kalaiventhan Annadurai) #1

Hi,

I have called the artifactoryPublish task for uploading my custom WAR package and it is throwing the checksum error. I have also provided the code below and could you please met me know your valuable suggestions.

apply plugin: "com.jfrog.artifactory"
apply plugin: ‘maven-publish’

artifactory {
contextUrl = 'http://artifactory.repo.com
publish {
contextUrl = 'http://artifactory.repo.com
repository {
repoKey = 'libs-release-local’
username = ‘anonymous’
ivy {
ivyLayout = '[organization]/[module]/[revision]/[type]s/ivy-[revision].xml’
artifactLayout = '[organization]/[module]/[revision]/[module]-revision.[ext]'
mavenCompatible = true
}
}

	defaults {
		publications ('maven')		
	}
}	
resolve {
	repository {
		repoKey = 'libs-release-local'   
		username = 'anonymous' 		      
	}
}

}

publishing {
publications {
maven(MavenPublication) {
groupId 'com.homedepot.sa.pt.pos’
artifactId 'SelfServiceWebApp’
version '2016.064.001’
artifact file(‘build/libs/SelfServiceWebApp-2016.064.001.war’)
}
}
}


(Kalaiventhan Annadurai) #2

I have provided the full error below… FYI
:artifactoryPublish
Deploying artifact: http://artifactory.homedepot.com/libs-release-local/com/homedepot/sa/pt/pos/SelfServiceWebApp/2016.064.001/SelfServiceWebApp-2016.064.001.pom
Deploying artifact: http://artifactory.homedepot.com/libs-release-local/com/homedepot/sa/pt/pos/SelfServiceWebApp/2016.064.001/SelfServiceWebApp-2016.064.001.war
Response received:

Apache Tomcat/6.0.32 - Error report

HTTP Status 404 - Checksum deploy failed. No existing file with SHA1: d921e9cc842c3b5b0341fcf84825a653b877e459

type Status report

message Checksum deploy failed. No existing file with SHA1: d921e9cc842c3b5b0341fcf84825a653b877e459

description The requested resource (Checksum deploy failed. No existing file with SHA1: d921e9cc842c3b5b0341fcf84825a653b877e459) is not available.


Apache Tomcat/6.0.32

Failed while reading the response from: PUT http://artifactory.homedepot.com/libs-release-local/com/homedepot/sa/pt/pos/SelfServiceWebApp/2016.064.001/SelfServiceWebApp-2016.064.001.war;build.name=SelfServiceWebApp;build.timestamp=1457110079596;build.number=1457110080672 HTTP/1.1
org.codehaus.jackson.JsonParseException: Unexpected character (’<’ (code 60)): expected a valid value (number, String, array, object, ‘true’, ‘false’ or ‘null’)
at [Source: java.io.StringReader@9d744; line: 1, column: 2]
at org.codehaus.jackson.JsonParser._constructError(JsonParser.java:1433)
at org.codehaus.jackson.impl.JsonParserMinimalBase._reportError(JsonParserMinimalBase.java:521)
at org.codehaus.jackson.impl.JsonParserMinimalBase._reportUnexpectedChar(JsonParserMinimalBase.java:442)
at org.codehaus.jackson.impl.ReaderBasedParser._handleUnexpectedValue(ReaderBasedParser.java:1198)
at org.codehaus.jackson.impl.ReaderBasedParser.nextToken(ReaderBasedParser.java:485)
at org.codehaus.jackson.map.ObjectMapper._initForReading(ObjectMapper.java:2770)
at org.codehaus.jackson.map.ObjectMapper._readValue(ObjectMapper.java:2691)
at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1286)
at org.codehaus.jackson.JsonParser.readValueAs(JsonParser.java:1337)
at org.jfrog.build.client.ArtifactoryHttpClient.execute(ArtifactoryHttpClient.java:209)


(Benjamin Paz) #3

My issue is similar to yours. I am not sure how I am supposed to configure artifactoryPublish so that I can use the ‘groupId’ in ‘publications’. When I leave the ‘groupId’ undefined, then in my case the jar and POM are deployed as I expect. If I identify the groupId (similar to org.mycompany.division.name) then it I receive the following error: “[DEBUG] [org.jfrog.gradle.plugin.artifactory.task.BuildInfoBaseTask] Failed checksum deploy of checksum ‘xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx’ with statusCode: 409”.

If you removed the groupId in the publications section what would happen? Being a newbie I believe that I am doing something wrong. This may not get you further but maybe it will.