Search code examples
artifactoryjfrog-cli

Getting "Server response: 409" while jf gp


I am facing the following error while trying to publish Go module to local Go registry on JFROG.

The command I used is:

jf gp --project <project_name> v0.0.0-20210107165309-348f09dbbbc0

I also faced a similar error while publishing with CURL:

curl -X PUT -H  "X-JFrog-Art-Api:TOKEN" -H "X-Explode-Archive: true" <ARTIFACTORY_URL> -T github.com.zip

The error response was:

"message" : "Error during deployment: Cannot deploy file 'v0.0.0-20170929234023-d6e3b3328b78.mod'. The repository 'repo' rejected the resolution of an artifact 'repo:github.com/!azure/go-ansiterm/@v/v0.0.0-20170929234023-d6e3b3328b78.mod' due to conflict in the snapshot release handling policy."

Though while trying with clean versions like v0.4.0 both jf gp and curl work fine.

Can anyone help, please?


Solution

  • There is some property that need to be configured at JFROG end to enable snapshot version handling. Unfortunately I do not have privileges to manage the go registry configuration. Hope the attached snapshot helps. enter image description here