Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't pull behind proxy on version 0.13.0 #513

Closed
danielzhanghl opened this issue Aug 22, 2022 · 5 comments · Fixed by #514
Closed

can't pull behind proxy on version 0.13.0 #513

danielzhanghl opened this issue Aug 22, 2022 · 5 comments · Fixed by #514
Assignees
Labels
bug Something isn't working
Milestone

Comments

@danielzhanghl
Copy link

Hi,
I met issue when pull one artifact behind proxy with 0.13.0, procedure is as below, and if I use the version 0.12, that works fine(the proxy is set correctly, as I could download ORAS and curl the endpoint ), is there anything I missed?
thanks,

curl -LO https://github.com/oras-project/oras/releases/download/v0.13.0/oras_0.13.0_linux_amd64.tar.gz

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 3112k 100 3112k 0 0 2427k 0 0:00:01 0:00:01 --:--:-- 8125k

tar xvf oras_0.13.0_linux_amd64.tar.gz

LICENSE
oras

./oras pull -d ghcr.io/aquasecurity/trivy-db:2

DEBU[0000] Request URL: "https://ghcr.io/v2/aquasecurity/trivy-db/manifests/2"
DEBU[0000] Request method: "GET"
DEBU[0000] Request headers:
DEBU[0000] "Accept": "application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json, application/vnd.cncf.oras.artifact.manifest.v1+json"
DEBU[0000] "User-Agent": "oras/0.13.0"

ERRO[0128] Error in getting response: %!w(*net.OpError=&{dial tcp 0xc0001824e0 0xc0000629a0})
Error: Get "https://ghcr.io/v2/aquasecurity/trivy-db/manifests/2": dial tcp 140.82.112.34:443: connect: connection timed out
]# ./oras version
Version: 0.13.0
Go version: go1.18.1
Git commit: bb75f50
Git tree state: clean

curl https://ghcr.io/v2/aquasecurity/trivy-db/manifests/2

{"errors":[{"code":"UNAUTHORIZED","message":"authentication required"}]}

env |grep -i proxy

http_proxy=13.24.48.34:8000
https_proxy=13.24.48.34:8000
HTTPS_PROXY=13.24.48.34:8000
HTTP_PROXY=13.24.48.34:8000

@qweeah
Copy link
Contributor

qweeah commented Aug 22, 2022

@danielzhanghl Thanks for reporting this. Will fix in #514 and release it today in 0.14.0

@shizhMSFT
Copy link
Contributor

Reopen for now and will be closed once #512 is resolved.

@shizhMSFT shizhMSFT reopened this Aug 22, 2022
@danielzhanghl
Copy link
Author

thanks for the quick action! will have a try in 0.14.0

@shizhMSFT shizhMSFT added the bug Something isn't working label Aug 22, 2022
@shizhMSFT shizhMSFT added this to the v0.14.0 milestone Aug 22, 2022
@shizhMSFT
Copy link
Contributor

@danielzhanghl oras CLI v0.14.0 is released! Could you have a try?

@danielzhanghl
Copy link
Author

0.14.0 works very well, thank!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants