Skip to content

bug: use-proxy not working #1807

Open
Open
@ghpu

Description

@ghpu

Are you use the envd server?

  • Yes, I am using the envd server.
  • No, I am not using the envd server.

Describe the bug

envd up --use-proxy is recognized, but HTTP(S)_PROXY en variables don't seemt o be sent to the moby/buildkit images, and build fails when trying to access the internet :
ERRO[2023-11-30T15:19:07+01:00] Buildkit error: failed to solve: failed to load cache key: failed to do request: Head "https://ghcr.io/v2/flyteorg/flytekit/manifests/py3.11-1.10.1": dial tcp 140.82.121.33:443: connect: connection refused

To Reproduce

  • Have no direct internet access.
  • configure access by proxy and fill HTTP(S)_PROXY variables
  • envd up

Expected behavior

proxy variables sent to buildkit container, and build working.

The docker info output

Client: Docker Engine - Community
Version: 24.0.7
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.11.2
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.21.0
Path: /usr/libexec/docker/cli-plugins/docker-compose

Server:
Containers: 2
Running: 2
Paused: 0
Stopped: 0
Images: 116
Server Version: 24.0.7
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: false
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: d8f198a4ed8892c764191ef7b3b06d8a2eeb5c7f
runc version: v1.1.10-0-g18a0cb0
init version: de40ad0
Security Options:
apparmor
seccomp
Profile: builtin
cgroupns
Kernel Version: 6.5.0-13-generic
Operating System: Ubuntu 23.10
OSType: linux
Architecture: x86_64
CPUs: 20
Total Memory: 62.48GiB
Name: yd-4GVSJX3
ID: c4ff2738-d309-454f-96df-1a0eb58714a4
Docker Root Dir: /var/lib/docker
Debug Mode: false
HTTP Proxy: [redacted]
HTTPS Proxy: [redacted]
No Proxy: localhost,127.0.0.1
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Default Address Pools:
Base: 172.30.0.0/16, Size: 24

The envd version output

envd: v0.3.40
BuildDate: 2023-09-01T08:46:03Z
GitCommit: d99cfa4
GitTreeState: clean
GitTag: v0.3.40
GoVersion: go1.19.10
Compiler: gc
Platform: linux/amd64

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions