conan: [bug] Failled to upload conan packafge to JFrog-Artifactory-Cpp-CE Server. 500 Server Error: Internal Server Error
Hello everyone!
I am not sure that this issue belongs here, it is possible it should go to Jfrog, but I do not know how to report issues for them.
My problem comes from conan uploading packages to a private Artifactory repository. I followed all of the steps documented in Artifactory Community Edition for C/C++ as well as within our Artifactory server web UI, and once I tried to upload a package I ran into the error 500 Server Error: Internal Server Error
. After a bit of digging within Artifactory logs it became clear, that local Checksum and the one that Artifactory calculates are different, thus rejecting the package.
Is there any know solution for this?
Environment Details (include every applicable attribute)
- Operating System+version: Linux Debian 10
- Compiler+version: gcc8
- Conan version: Conan version 1.25.0
- Python version: 3.7.3
- JFrog-Artifactory-Cpp-CE : 7.4.3
Steps to reproduce (Include if Applicable)
For clean setup:
sudo apt install python3.6
pip3 install conan
conan remote update artifactory https://[URL_TO_REPO] False
conan user -p testy_pwd -r artifactory testy
mkdir tmp
cd tmp
conan new hello/0.1 –t
conan create .
conan upload hello -r=artifactory
Logs (Executed commands with output) (Include/Attach if Applicable)
Client side error (when calling conan upload hello -r=artifactory
)
Uploading to remote 'artifactory':
Uploading hello/0.1 to remote 'artifactory'
Uploading conanfile.py completed [1.72k]
ERROR: 500 Server Error: Internal Server Error for url: [URL_TO_REPO]/artifactory/api/conan/[REPO_NAME]/v1/files/_/hello/0.1/_/0/export/conanfile.py
Waiting 5 seconds to retry...
Uploading conanfile.py completed [1.72k]
ERROR:
Error uploading file: conanfile.py, '500 Server Error: Internal Server Error for url: [URL_TO_REPO]/artifactory/api/conan/[REPO_NAME]/v1/files/_/hello/0.1/_/0/export/conanfile.py'
Uploading conanmanifest.txt completed [0.06k]
ERROR: 500 Server Error: Internal Server Error for url: [URL_TO_REPO]/artifactory/api/conan/[REPO_NAME]/v1/files/_/hello/0.1/_/0/export/conanmanifest.txt
Waiting 5 seconds to retry...
Uploading conanmanifest.txt completed [0.06k]
ERROR:
Error uploading file: conanmanifest.txt, '500 Server Error: Internal Server Error for url: [URL_TO_REPO]/artifactory/api/conan/[REPO_NAME]/v1/files/_/hello/0.1/_/0/export/conanmanifest.txt'
ERROR: Execute upload again to retry upload the failed files: conanfile.py, conanmanifest.txt. [Remote: artifactory]
ERROR: Errors uploading some packages
I had to mask the sensitive information with [URL_TO_REPO] and [REPO_NAME], otherwise the error message is unchanged
Server side error:
2020-05-12T13:32:13.558Z ESC[1;32m[jfrt ]ESC[0;39m ESC[31m[WARN ]ESC[0;39m [645b9b24b4c0a876] [.r.ArtifactoryResponseBase:125] [http-nio-8081-exec-5] - Sending HTTP error code 409: Checksum policy 'LocalRepoChecksumPolicy: CLIENT' rejected the artifact '[REPO_NAME]:_/hello/0.1/_/0/export/conanmanifest.txt'. Checksums info: ChecksumsInfo{checksums={SHA-1=ChecksumInfo{type=SHA-1, original='50e01c65fa2e9b6a2dc109cb124fe8abeee99808', actual='da39a3ee5e6b4b0d3255bfef95601890afd80709'}, MD5=ChecksumInfo{type=MD5, original='null', actual='d41d8cd98f00b204e9800998ecf8427e'}, SHA-256=ChecksumInfo{type=SHA-256, original='null', actual='e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'}}}
same as before, had to mask some information with [REPO_NAME]
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18 (7 by maintainers)
Also I got the details for our setup, we are using Nginx as a reverse proxy with this configuration: