question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] Can't upload Conan package to Artifactory CE

See original GitHub issue

I run a Artifactory CE instance using the Docker installation on a server. I create a repository of type Conan, called conan-test

Then I configure my Conan client as such:

conan remote add artifactory http://<IP>:8081/artifactory/api/conan/conan-test False

When I now try to upload, after successful authentication, I get a timeout

RROR: 
Error uploading file: conanfile.py, 'HTTPConnectionPool(host='52.215.203.143', port=80): Max retries exceeded with url: /artifactory/api/conan/conan-test/v1/files/_/hello/0.4/_/0/export/conanfile.py (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f273415f700>, 'Connection to 52.215.203.143 timed out. (connect timeout=60.0)'))'

NOTE that there is certainly communication with the server, as conan asks me user & password and only goes on if I enter the correct ones, otherwise it says “authentication failed”.

Environment Details (include every applicable attribute)

  • Operating System+version: Ubuntu 20.04
  • Conan version: 1.34.0
  • Python version: 3.8

Steps to reproduce (Include if Applicable)

Logs (Executed commands with output) (Include/Attach if Applicable)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
yoav-kleincommented, Sep 3, 2021
0reactions
lasotecommented, Sep 3, 2021

@lasote, where is it documented that you must run Artifactory on port 80? @memsharded

Nowhere, you can run it where you want. I was just noticing that the error trace you pasted was using the 80:

Error uploading file: conanfile.py, 'HTTPConnectionPool(host='52.215.203.143', port=80):

seems that this was solved

Great!!

What is this setting good for anyway? references please.

Yes, you are good without a “Custom Base URL”. Here are some docs: https://www.jfrog.com/confluence/display/RTF6X/Configuring+Artifactory

Just note that we are not experts in Artifactory configuration, much more focused on the Conan tool but if you have any questions we can assist or find a person from another team that will do it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't upload a package to artifactory using ... - GitHub
We're unable to upload a package into a artifactory hosted conan server using the CONAN_LOGIN_USERNAME and CONAN_PASSWORD method of ...
Read more >
Conan packages in the Package Registry - GitLab Docs
The GitLab Conan repository supports the following Conan CLI commands: conan upload : Upload your recipe and package files to the Package Registry....
Read more >
Introduction — conan 1.42.2 documentation
Introduction¶. Conan is a dependency and package manager for C and C++ languages. It is free and open-source, and it works in all...
Read more >
Release Notes - Artifactory 6.x - JFrog Wiki
Overview. This page presents release notes for JFrog Artifactory describing the main fixes and enhancements made to each version as it is released....
Read more >
why is the Artifactory CE service Port is not the configured Port?
Regarding the service port, it may be that you have another formating problem that causes artifactory not to pick the new port configuration ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found