conan-io / conan-io/training

Artifactory local server failing to connect

Open
#114 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
63
Forks
38
PR merge metrics
No merged PRs in 30d

Description

I am on **Exercise: Upload to Artifactory**. Each time I attempt to upload the `hello*` packages, I am met with a failure stating that it failed to establish a new connection (Errno 111). I'm not sure what I'm doing wrong or how to resolve the issue. Here's a terminal listing of the issues I have:

```bash
conan@f029d1791cf7:~/training$ conan remote add artifactory http://localhost:8082
conan@f029d1791cf7:~/training$ conan remote list
conancenter: https://center.conan.io [Verify SSL: True]
artifactory: http://localhost:8082 [Verify SSL: True]
conan@f029d1791cf7:~/training$ conan upload "hello*" -r artifactory
Are you sure you want to upload 'hello/0.1@user/testing' to 'artifactory'? (yes/no): yes
Uploading to remote 'artifactory':
Uploading hello/0.1@user/testing to remote 'artifactory'
Compressing conan_sources.tgz completed [3 files]
ERROR: hello/0.1@user/testing: Upload recipe to 'artifactory' failed: HTTPConnectionPool(host='localhost', port=8082): Max retries exceeded with url: /v1/ping (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))

Unable to connect to artifactory=http://localhost:8082
1. Make sure the remote is reachable or,
2. Disable it by using conan remote disable,
Then try again.

ERROR: Errors uploading some packages
conan@f029d1791cf7:~/training$ conan remote remove artifactory
conan@f029d1791cf7:~/training$ conan remote add artifactory http://localhost
conan@f029d1791cf7:~/training$ conan upload "hello*" -r artifactory
Are you sure you want to upload 'hello/0.1@user/testing' to 'artifactory'? (yes/no): yes
Uploading to remote 'artifactory':
Uploading hello/0.1@user/testing to remote 'artifactory'
ERROR: hello/0.1@user/testing: Upload recipe to 'artifactory' failed: HTTPConnectionPool(host='localhost', port=80): Max retries exceeded with url: /v1/ping (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))

Unable to connect to artifactory=http://localhost
1. Make sure the remote is reachable or,
2. Disable it by using conan remote disable,
Then try again.

ERROR: Errors uploading some packages
conan@f029d1791cf7:~/training$ conan remote remove artifactory
conan@f029d1791cf7:~/training$ conan remote add artifactory http://localhost:8082/artifactory
conan@f029d1791cf7:~/training$ conan upload "hello*" -r artifactory
Are you sure you want to upload 'hello/0.1@user/testing' to 'artifactory'? (yes/no): yes
Uploading to remote 'artifactory':
Uploading hello/0.1@user/testing to remote 'artifactory'
ERROR: hello/0.1@user/testing: Upload recipe to 'artifactory' failed: HTTPConnectionPool(host='localhost', port=8082): Max retries exceeded with url: /artifactory/v1/ping (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))

Unable to connect to artifactory=http://localhost:8082/artifactory
1. Make sure the remote is reachable or,
2. Disable it by using conan remote disable,
Then try again.

ERROR: Errors uploading some packages
conan@f029d1791cf7:~/training$ conan remote remove artifactory
conan@f029d1791cf7:~/training$ conan remote add artifactory http://localhost/artifactory
conan@f029d1791cf7:~/training$ conan upload "hello*" -r artifactory
Are you sure you want to upload 'hello/0.1@user/testing' to 'artifactory'? (yes/no): yes
Uploading to remote 'artifactory':
Uploading hello/0.1@user/testing to remote 'artifactory'
ERROR: hello/0.1@user/testing: Upload recipe to 'artifactory' failed: HTTPConnectionPool(host='localhost', port=80): Max retries exceeded with url: /artifactory/v1/ping (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))

Unable to connect to artifactory=http://localhost/artifactory
1. Make sure the remote is reachable or,
2. Disable it by using conan remote disable,
Then try again.

ERROR: Errors uploading some packages
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Exercise: Upload to Artifactory instructions and reproduce the `conan remote add` and `conan upload "hello*" -r artifactory` commands. Check whether the local Artifactory service is running and reachable at the configured URL, including the `/v1/ping` endpoint. Done means the upload completes without the connection-refused error.

Written by the indexing model from the issue text.

Assessment

Domain
devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.