conan: Upload error while building multiple configurations

Operating system: Linux Python version: 3.6.2 Conan version: 1.8.2 Conan-package-tools: 0.19.4

When uploading a package built with multiple configurations using conan package tools I get the following error while trying to upload second build. The user has write permissions but not delete permissions.

Uploading conanmanifest.txt                                           
ERROR: 
Error uploading file: conanmanifest.txt, '{
  "errors" : [ {
    "status" : 500,
    "message" : "Not enough permissions to overwrite artifact 'local-conan:user/zlib/1.2.11-14/master/export/conanmanifest.txt' (user 'user' needs DELETE permission)."
  } ]
}'

Same operation works without problems when using version 1.7.4 and same version of conan package tools.

To help us debug your issue please explain:

  • I’ve read the CONTRIBUTING guide.
  • I’ve specified the Conan version, operating system version and any tool that can be relevant.
  • I’ve explained the steps to reproduce the error or the motivation/use case of the question/suggestion.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

New release works perfectly. Thank you!

Hi, are you using Artifactory, right? Are you also uploading packages from different operating systems (including windows), right? I think what it could be happening is when you are doing the git clone of the source repository (or calling the source() method) git is messing with the endlines. so:

  • One job uploads the recipe (let’s say in windows with \r\n) and the packages.
  • A different job uploads the recipe and the packages (the recipe is always uploaded) but with \n, so the manifest changes and it fails to override it because of the permissions configured (the permissions configured like that are right). When the recipe and the manifest are equal it doesn’t fail because it really doesn’t upload anything.

You can find information about how to adjust it here: https://help.github.com/articles/dealing-with-line-endings/#platform-all

We have a related FAQ here: https://docs.conan.io/en/latest/faq/using.html#packages-got-outdated-when-uploading-an-unchanged-recipe-from-a-different-machine

Related with #2997.