You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run rockcraft pack from a system that is running behind a corporate http_proxy. The command fails to run since skopeo is trying to fetch a base ubuntu OCI image from AWS registry and it timeouts. The reason is that the LXD container being created by this project is not injected with proxy variables when those are set to the host. At the same time, this project here is taking care of snap behind proxy scenarios.
To Reproduce
Install rockcraft in a machine behind an http_proxy and then try to run rockcraft pack with any rockcraft.yaml
part yaml
No response
Relevant log output
ailed to copy image: Command '['/snap/rockcraft/1628/bin/skopeo', '--insecure-policy', '--override-arch', 'amd64', 'copy', '--retry-times', '5', 'docker://public.ecr.aws/ubuntu/ubuntu:22.04', 'oci:/root/images/ubuntu:22.04']' returned non-zero exit status 1. (time="2024-03-07T10:24:50Z" level=warning msg="Failed, retrying in 1s ... (1/5). Error: initializing source docker://public.ecr.aws/ubuntu/ubuntu:22.04: pinging container registry public.ecr.aws: Get \"https://public.ecr.aws/v2/\": dial tcp 99.83.145.10:443: i/o timeout"
time="2024-03-07T10:25:51Z" level=warning msg="Failed, retrying in 2s ... (2/5). Error: initializing source docker://public.ecr.aws/ubuntu/ubuntu:22.04: pinging container registry public.ecr.aws: Get \"https://public.ecr.aws/v2/\": dial tcp 75.2.101.78:443: i/o timeout"
time="2024-03-07T10:26:53Z" level=warning msg="Failed, retrying in 4s ... (3/5). Error: initializing source docker://public.ecr.aws/ubuntu/ubuntu:22.04: pinging container registry public.ecr.aws: Get \"https://public.ecr.aws/v2/\": dial tcp 99.83.145.10:443: i/o timeout"
time="2024-03-07T10:27:57Z" level=warning msg="Failed, retrying in 8s ... (4/5). Error: initializing source docker://public.ecr.aws/ubuntu/ubuntu:22.04: pinging container registry public.ecr.aws: Get \"https://public.ecr.aws/v2/\": dial tcp 75.2.101.78:443: i/o timeout"
time="2024-03-07T10:29:05Z" level=warning msg="Failed, retrying in 16s ... (5/5). Error: initializing source docker://public.ecr.aws/ubuntu/ubuntu:22.04: pinging container registry public.ecr.aws: Get \"https://public.ecr.aws/v2/\": dial tcp 99.83.145.10:443: i/o timeout"
time="2024-03-07T10:30:21Z" level=fatal msg="initializing source docker://public.ecr.aws/ubuntu/ubuntu:22.04: pinging container registry public.ecr.aws: Get \"https://public.ecr.aws/v2/\": dial tcp 99.83.145.10:443: i/o timeout")
Failed to execute rockcraft in instance.
The text was updated successfully, but these errors were encountered:
Craft-application has an opportunity to provide environment variables to craft-providers here. We should probably upstream this code from snapcraft into craft-application.
Snapcraft accepts --http-proxy and --https-proxy but not --no-proxy for reasons unknown. Should these parameters be upstreamed too?
Bug Description
I am trying to run
rockcraft pack
from a system that is running behind a corporate http_proxy. The command fails to run since skopeo is trying to fetch a base ubuntu OCI image from AWS registry and it timeouts. The reason is that the LXD container being created by this project is not injected with proxy variables when those are set to the host. At the same time, this project here is taking care of snap behind proxy scenarios.To Reproduce
Install rockcraft in a machine behind an http_proxy and then try to run
rockcraft pack
with anyrockcraft.yaml
part yaml
No response
Relevant log output
The text was updated successfully, but these errors were encountered: