Conan develop branch
Artifactory 6.11.3
Permissions without DELETE permission.
Upload a package with exports_sources, modify sources upload again.
Artifactory:
2019-12-06 21:16:18,371 [http-nio-8081-exec-9] [INFO ] (o.a.e.UploadServiceImpl:401) - Deploy to 'conan-local2:_/hello/0.1/_/0/package/2bb76c9adac7b8cd7c5e3b377ac9f06934aba606/0/conaninfo.txt' Content-Length: 432
2019-12-06 21:16:18,434 [http-nio-8081-exec-3] [INFO ] (o.a.e.UploadServiceImpl:401) - Deploy to 'conan-local2:_/hello/0.1/_/0/package/2bb76c9adac7b8cd7c5e3b377ac9f06934aba606/0/conanmanifest.txt' Content-Length: 157
2019-12-06 21:16:31,182 [http-nio-8081-exec-8] [WARN ] (o.a.r.ArtifactoryResponseBase:125) - Sending HTTP error code 403: Not enough permissions to overwrite artifact 'conan-local2:_/hello/0.1/_/0/export/conan_sources.tgz' (user 'memsharded' needs DELETE permission).
2019-12-06 21:16:36,221 [http-nio-8081-exec-1] [WARN ] (o.a.r.ArtifactoryResponseBase:125) - Sending HTTP error code 403: Not enough permissions to overwrite artifact 'conan-local2:_/hello/0.1/_/0/export/conan_sources.tgz' (user 'memsharded' needs DELETE permission).
2019-12-06 21:16:36,236 [http-nio-8081-exec-6] [INFO ] (o.a.e.UploadServiceImpl:401) - Deploy to 'conan-local2:_/hello/0.1/_/0/export/conanfile.py' Content-Length: 0
Client:
(conan37) 位 conan upload * -r=local2 --all --confirm
Uploading to remote 'local2':
Uploading hello/0.1 to remote 'local2'
Compressing conan_sources.tgz completed [3 files]
Uploading conan_sources.tgz completed [0.47k]
ERROR: 500 Server Error: Internal Server Error for url: http://localhost:8081/artifactory/api/conan/conan-local2/v1/files/_/hello/0.1/_/0/export/conan_sources.tgz
Waiting 5 seconds to retry...
Uploading conan_sources.tgz completed [0.47k]
ERROR:
Error uploading file: conan_sources.tgz, '500 Server Error: Internal Server Error for url: http://localhost:8081/artifactory/api/conan/conan-local2/v1/files/_/hello/0.1/_/0/export/conan_sources.tgz'
Uploading conanmanifest.txt completed [0.24k]
ERROR: 500 Server Error: Internal Server Error for url: http://localhost:8081/artifactory/api/conan/conan-local2/v1/files/_/hello/0.1/_/0/export/conanmanifest.txt
Waiting 5 seconds to retry...
Uploading conanmanifest.txt completed [0.24k]
ERROR:
Error uploading file: conanmanifest.txt, '500 Server Error: Internal Server Error for url: http://localhost:8081/artifactory/api/conan/conan-local2/v1/files/_/hello/0.1/_/0/export/conanmanifest.txt'
ERROR: Execute upload again to retry upload the failed files: conan_sources.tgz, conanmanifest.txt. [Remote: local2]
ERROR: Errors uploading some packages
Traced the error in the Conan client into the python-requests library, and getting:
{\r\n "errors" : [ {\r\n "status" : 500,\r\n
"message" : "Not enough permissions to overwrite artifact \'conan-local2:_/hello/0.1/_/0/export/conanmanifest.txt\'
(user \'memsharded\' needs DELETE permission)."\r\n } ]\r\n}'
So it seems that Artifactory is returning a 500 despite telling in the output that is doing a 403. Please @jgsogo have a look when possible.
I think there is nothing to do on the Conan side. Having a look at the request.log file I can find that the response is 500:
20191210114819|2|REQUEST|172.19.0.1|jgsogo|POST|/api/conan/test-6193/v1/conans/hellolib/0.1/_/_/upload_urls|HTTP/1.1|200|73
20191210114819|4|REQUEST|172.19.0.1|jgsogo|PUT|/api/conan/test-6193/v1/files/_/hellolib/0.1/_/0/export/conan_sources.tgz|HTTP/1.1|404|0
20191210114819|8|REQUEST|172.19.0.1|jgsogo|PUT|/api/conan/test-6193/v1/files/_/hellolib/0.1/_/0/export/conan_sources.tgz|HTTP/1.1|500|739
20191210114824|10|REQUEST|172.19.0.1|jgsogo|PUT|/api/conan/test-6193/v1/files/_/hellolib/0.1/_/0/export/conan_sources.tgz|HTTP/1.1|500|739
20191210114824|35|REQUEST|172.19.0.1|jgsogo|PUT|/api/conan/test-6193/v1/files/_/hellolib/0.1/_/0/export/conanfile.py|HTTP/1.1|201|0
20191210114824|4|REQUEST|172.19.0.1|jgsogo|PUT|/api/conan/test-6193/v1/files/_/hellolib/0.1/_/0/export/conanmanifest.txt|HTTP/1.1|404|0
20191210114824|7|REQUEST|172.19.0.1|jgsogo|PUT|/api/conan/test-6193/v1/files/_/hellolib/0.1/_/0/export/conanmanifest.txt|HTTP/1.1|500|314
We should open the ticket in the Artifactory Jira
Most helpful comment
https://www.jfrog.com/jira/browse/RTFACT-20877