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)

Most upvoted comments

Also I got the details for our setup, we are using Nginx as a reverse proxy with this configuration:

 server {
  listen       *:443 ssl;

  server_name  server.privat server;

  ssl_certificate           /etc/ssl/private/server.privat.crt;
  ssl_certificate_key       /etc/ssl/private/server.key;
  ssl_session_cache         shared:SSL:10m;
  ssl_session_timeout       5m;
  ssl_protocols             TLSv1 TLSv1.1 TLSv1.2;
  ssl_ciphers               ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS;
  ssl_prefer_server_ciphers on;

  index  index.html index.htm index.php;

  access_log            /var/log/nginx/server.privat_HTTPS.access.log combined;
  error_log             /var/log/nginx/server_HTTPS.error.log;

  location / {
    proxy_pass            http://127.0.0.1:8082;
    proxy_read_timeout    90s;
    proxy_connect_timeout 90s;
    proxy_send_timeout    90s;
    proxy_set_header      Host $host;
    proxy_set_header      X-Real-IP $remote_addr;
    proxy_set_header      X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header      Proxy "";
  }
}