Skip to content

buildctl attempts to use configured HTTP_PROXY/HTTPS_PROXY for local unix:// address #6002

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

Open
4 tasks done
Nunction opened this issue May 30, 2025 · 2 comments
Open
4 tasks done

Comments

@Nunction
Copy link

Contributing guidelines and issue reporting guide

Well-formed report checklist

  • I have found a bug that the documentation does not mention anything about my problem
  • I have found a bug that there are no open or closed issues that are related to my problem
  • I have provided version/information about my environment and done my best to provide a reproducer

Description of bug

Bug description

It seems that buildctl now attempts to to use the configured proxy for connections to unix:// addresses which results in proxy errors as they can not reach a local socket address. I am not sure if a unix:// could ever be reached via proxy and this is intended behavior but I would assume that the proxy should only be used for tcp:// style addresses.

Reproduction

Running buildctl with a configured proxy results in an error response from the proxy being printed with it being unable to find the requested address.

# export BUILDKIT_HOST=unix:///run/buildkit/buildkitd.sock
# export HTTP_PROXY=http://proxy.example.com:3128
# export HTTPS_PROXY=http://proxy.example.com:3128
# export http_proxy=http://proxy.example.com:3128
# export https_proxy=http://proxy.example.com:3128
# buildctl debug workers

error: failed to list workers: Unavailable: connection error: desc = "transport: Error while dialing: failed to do connect handshake, response: \"HTTP/1.1 503 Service Unavailable\\r\\nContent-Length: 3614\\r\\nContent-Language: en\\r\\nContent-Type: text/html;charset=utf-8\\r\\nDate: Fri, 30 May 2025 07:39:05 GMT\\r\\nMime-Version: 1.0\\r\\nServer: squid/3.5.27\\r\\nVary: Accept-Language\\r\\nX-Squid-Error: ERR_DNS_FAIL 0\\r\\n\\r\\n<!DOCTYPE html PUBLIC \\\"-//W3C//DTD HTML 4.01//EN\\\" \\\"http://www.w3.org/TR/html4/strict.dtd\\\">\\n<html><head>\\n<meta type=\\\"copyright\\\" content=\\\"Copyright (C) 1996-2017 The Squid Software Foundation and contributors\\\">\\n<meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset=utf-8\\\">\\n<title>ERROR: The requested URL could not be retrieved</title>\\n<style type=\\\"text/css\\\"><!-- \\n /*\\n * Copyright (C) 1996-2017 The Squid Software Foundation and contributors\\n *\\n * Squid software is distributed under GPLv2+ license and includes\\n * contributions from numerous individuals and organizations.\\n * Please see the COPYING and CONTRIBUTORS files for details.\\n */\\n\\n/*\\n Stylesheet for Squid Error pages\\n Adapted from design by Free CSS Templates\\n http://www.freecsstemplates.org\\n Released for free under a Creative Commons Attribution 2.5 License\\n*/\\n\\n/* Page basics */\\n* {\\n\\tfont-family: verdana, sans-serif;\\n}\\n\\nhtml body {\\n\\tmargin: 0;\\n\\tpadding: 0;\\n\\tbackground: #efefef;\\n\\tfont-size: 12px;\\n\\tcolor: #1e1e1e;\\n}\\n\\n/* Page displayed title area */\\n#titles {\\n\\tmargin-left: 15px;\\n\\tpadding: 10px;\\n\\tpadding-left: 100px;\\n\\tbackground: url('/squid-internal-static/icons/SN.png') no-repeat left;\\n}\\n\\n/* initial title */\\n#titles h1 {\\n\\tcolor: #000000;\\n}\\n#titles h2 {\\n\\tcolor: #000000;\\n}\\n\\n/* special event: FTP success page titles */\\n#titles ftpsuccess {\\n\\tbackground-color:#00ff00;\\n\\twidth:100%;\\n}\\n\\n/* Page displayed body content area */\\n#content {\\n\\tpadding: 10px;\\n\\tbackground: #ffffff;\\n}\\n\\n/* General text */\\np {\\n}\\n\\n/* error brief description */\\n#error p {\\n}\\n\\n/* some data which may have caused the problem */\\n#data {\\n}\\n\\n/* the error message received from the system or other software */\\n#sysmsg {\\n}\\n\\npre {\\n    font-family:sans-serif;\\n}\\n\\n/* special event: FTP / Gopher directory listing */\\n#dirmsg {\\n    font-family: courier;\\n    color: black;\\n    font-size: 10pt;\\n}\\n#dirlisting {\\n    margin-left: 2%;\\n    margin-right: 2%;\\n}\\n#dirlisting tr.entry td.icon,td.filename,td.size,td.date {\\n    border-bottom: groove;\\n}\\n#dirlisting td.size {\\n    width: 50px;\\n    text-align: right;\\n    padding-right: 5px;\\n}\\n\\n/* horizontal lines */\\nhr {\\n\\tmargin: 0;\\n}\\n\\n/* page displayed footer area */\\n#footer {\\n\\tfont-size: 9px;\\n\\tpadding-left: 10px;\\n}\\n\\n\\nbody\\n:lang(fa) { direction: rtl; font-size: 100%; font-family: Tahoma, Roya, sans-serif; float: right; }\\n:lang(he) { direction: rtl; }\\n --></style>\\n</head><body id=ERR_DNS_FAIL>\\n<div id=\\\"titles\\\">\\n<h1>ERROR</h1>\\n<h2>The requested URL could not be retrieved</h2>\\n</div>\\n<hr>\\n\\n<div id=\\\"content\\\">\\n<p>The following error was encountered while trying to retrieve the URL: <a href=\\\"https://http/1.1/*\\\">https://http/1.1/*</a></p>\\n\\n<blockquote id=\\\"error\\\">\\n<p><b>Unable to determine IP address from host name <q>http/1.1</q></b></p>\\n</blockquote>\\n\\n<p>The DNS server returned:</p>\\n<blockquote id=\\\"data\\\">\\n<pre>Name Error: The domain name does not exist.</pre>\\n</blockquote>\\n\\n<p>This means that the cache was not able to resolve the hostname presented in the URL. Check if the address is correct.</p>\\n\\n<p>Your cache administrator is <a href=\\\"mailto:REDACTED">noc@REDACTED</a>.</p>\\n<br>\\n</div>\\n\\n<hr>\\n<div id=\\\"footer\\\">\\n<p>Generated Fri, 30 May 2025 07:39:05 GMT by REDACTED (squid/3.5.27)</p>\\n<!-- ERR_DNS_FAIL **-->\\n</div>\\n</body></html>\\n\""

As a workaround / as verification that it is proxy related:
Setting .sock as a no proxy domain results in buildctl functioning like normal.

# export NO_PROXY=".sock"
# export no_proxy=".sock"

Version information

moby/buildkit@sha256:bd26cba1017fc236480bc4ecc0da799a6ad550d481c50bafe5fb468bd50c83a5

BuildKit: github.com/moby/buildkit ab80544 ab80544b39204300712c4415a0f8722ceee033c3

According to our CI pipelines this change was introduced sometime after:

BuildKit: github.com/moby/buildkit 7a94b80 7a94b8034f2a897c8450a2c7642f91d11f104bf9
@tonistiigi
Copy link
Member

🤔

I can't reproduce this.

/src # env
BUILDKIT_CNI_INIT_LOCK_PATH=/run/buildkit_cni_bridge.lock
HTTPS_PROXY=http://proxy.example.com:3128
BUILDKIT_HOST=unix:///run/buildkit/buildkitd.sock
CGO_ENABLED=0
HOSTNAME=be7a7f787373
SHLVL=1
HOME=/root
GOTOOLCHAIN=local
GOFLAGS=-mod=vendor
https_proxy=http://proxy.example.com:3128
http_proxy=http://proxy.example.com:3128
TERM=xterm
BUILDKIT_RUN_NETWORK_INTEGRATION_TESTS=1
PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
GOTESTSUM_FORMAT=standard-verbose
GOPATH=/go
BUILDKIT_SETUP_CGROUPV2_ROOT=1
BUILDKIT_INTEGRATION_ROOTLESS_IDPAIR=1000:1000
BUILDKIT_INTEGRATION_SNAPSHOTTER=stargz
PWD=/src
BUILDKIT_REGISTRY_MIRROR_DIR=/root/.cache/registry
HTTP_PROXY=http://proxy.example.com:3128
GOLANG_VERSION=1.24.3
/src # buildctl debug workers
ID                              PLATFORMS
p17cnvfj1ulhwfkcbo1suapyi       linux/arm64,linux/amd64,linux/amd64/v2,linux/riscv64,linux/ppc64le,linux/s390x,linux/386,linux/mips64le,linux/arm/v7,linux/arm/v6

@Nunction
Copy link
Author

Nunction commented Jun 1, 2025

Hi,
yeah just tried to reproduce it outside of our CI environment (GitLab runner + Docker) and it seems to take a weird combination of settings; I need to investigate a bit further what triggers it but the following compose produces the same behaviour on my personal machine (WSL + Docker):

compose.yml

networks:
  default:

services:
  proxy:
    image: ubuntu/squid
    networks:
      - default
    expose:
      - 3128

  buildkit:
    image: moby/buildkit@sha256:bd26cba1017fc236480bc4ecc0da799a6ad550d481c50bafe5fb468bd50c83a5
    privileged: true
    networks:
      - default
    environment:
      - HTTP_PROXY=http://proxy:3128
      - HTTPS_PROXY=http://proxy:3128
      - http_proxy=http://proxy:3128
      - https_proxy=http://proxy:3128
      - NO_PROXY=127.0.0.0/8,::1,localhost
      - no_proxy=127.0.0.0/8,::1,localhost
      - BUILDKIT_HOST=unix:///run/buildkit/buildkitd.sock
      - DOCKER_CONFIG=/root/.docker/
    volumes:
      - ./config.json:/root/.docker/config.json
    entrypoint: ["buildkitd"]
    command: ["--allow-insecure-entitlement=network.host", "--allow-insecure-entitlement=security.insecure", "--addr=unix:///run/buildkit/buildkitd.sock"]

config.json

{
  "proxies": {
    "default": {
      "httpProxy": "http://proxy:3128",
      "httpsProxy": "http://proxy:3128",
      "noProxy": "127.0.0.0/8,::1,localhost"
    }
  }
}

Exec:

# env
HTTPS_PROXY=http://proxy:3128
no_proxy=127.0.0.0/8,::1,localhost
BUILDKIT_HOST=unix:///run/buildkit/buildkitd.sock
HOSTNAME=0183b875d694
SHLVL=1
HOME=/root
NO_PROXY=127.0.0.0/8,::1,localhost
https_proxy=http://proxy:3128
http_proxy=http://proxy:3128
TERM=xterm
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
BUILDKIT_SETUP_CGROUPV2_ROOT=1
DOCKER_CONFIG=/root/.docker/
PWD=/
HTTP_PROXY=http://proxy:3128

# buildctl debug workers
error: failed to list workers: Unavailable: connection error: desc = "transport: Error while dialing: failed to do connect handshake, response: \"HTTP/1.1 400 Bad Request\\r\\nConnection: close\\r\\nContent-Length: 3325\\r\\nCache-Status: 58b85709dc2f\\r\\nContent-Language: en\\r\\nContent-Type: text/html;charset=utf-8\\r\\nDate: Sun, 01 Jun 2025 07:48:22 GMT\\r\\nMime-Version: 1.0\\r\\nServer: squid/6.10\\r\\nVary: Accept-Language\\r\\nVia: 1.1 58b85709dc2f (squid/6.10)\\r\\nX-Squid-Error: ERR_PROTOCOL_UNKNOWN 0\\r\\n\\r\\n<!DOCTYPE html PUBLIC \\\"-//W3C//DTD HTML 4.01//EN\\\" \\\"http://www.w3.org/TR/html4/strict.dtd\\\">\\n<html><head>\\n<meta type=\\\"copyright\\\" content=\\\"Copyright (C) 1996-2021 The Squid Software Foundation and contributors\\\">\\n<meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset=utf-8\\\">\\n<title>ERROR: The requested URL could not be retrieved</title>\\n<style type=\\\"text/css\\\"><!-- \\n /*\\n * Copyright (C) 1996-2023 The Squid Software Foundation and contributors\\n *\\n * Squid software is distributed under GPLv2+ license and includes\\n * contributions from numerous individuals and organizations.\\n * Please see the COPYING and CONTRIBUTORS files for details.\\n */\\n\\n/*\\n Stylesheet for Squid Error pages\\n Adapted from design by Free CSS Templates\\n http://www.freecsstemplates.org\\n Released for free under a Creative Commons Attribution 2.5 License\\n*/\\n\\n/* Page basics */\\n* {\\n\\tfont-family: verdana, sans-serif;\\n}\\n\\nhtml body {\\n\\tmargin: 0;\\n\\tpadding: 0;\\n\\tbackground: #efefef;\\n\\tfont-size: 12px;\\n\\tcolor: #1e1e1e;\\n}\\n\\n/* Page displayed title area */\\n#titles {\\n\\tmargin-left: 15px;\\n\\tpadding: 10px;\\n\\tpadding-left: 100px;\\n\\tbackground: url('/squid-internal-static/icons/SN.png') no-repeat left;\\n}\\n\\n/* initial title */\\n#titles h1 {\\n\\tcolor: #000000;\\n}\\n#titles h2 {\\n\\tcolor: #000000;\\n}\\n\\n/* special event: FTP success page titles */\\n#titles ftpsuccess {\\n\\tbackground-color:#00ff00;\\n\\twidth:100%;\\n}\\n\\n/* Page displayed body content area */\\n#content {\\n\\tpadding: 10px;\\n\\tbackground: #ffffff;\\n}\\n\\n/* General text */\\np {\\n}\\n\\n/* error brief description */\\n#error p {\\n}\\n\\n/* some data which may have caused the problem */\\n#data {\\n}\\n\\n/* the error message received from the system or other software */\\n#sysmsg {\\n}\\n\\npre {\\n}\\n\\n/* special event: FTP directory listing */\\n#dirmsg {\\n    font-family: courier, monospace;\\n    color: black;\\n    font-size: 10pt;\\n}\\n#dirlisting {\\n    margin-left: 2%;\\n    margin-right: 2%;\\n}\\n#dirlisting tr.entry td.icon,td.filename,td.size,td.date {\\n    border-bottom: groove;\\n}\\n#dirlisting td.size {\\n    width: 50px;\\n    text-align: right;\\n    padding-right: 5px;\\n}\\n\\n/* horizontal lines */\\nhr {\\n\\tmargin: 0;\\n}\\n\\n/* page displayed footer area */\\n#footer {\\n\\tfont-size: 9px;\\n\\tpadding-left: 10px;\\n}\\n\\n\\nbody\\n:lang(fa) { direction: rtl; font-size: 100%; font-family: Tahoma, Roya, sans-serif; float: right; }\\n:lang(he) { direction: rtl; }\\n --></style>\\n</head><body id=ERR_PROTOCOL_UNKNOWN>\\n<div id=\\\"titles\\\">\\n<h1>ERROR</h1>\\n<h2>The requested URL could not be retrieved</h2>\\n</div>\\n<hr>\\n\\n<div id=\\\"content\\\">\\n<p>The following error was encountered while trying to retrieve the URL: <a href=\\\"error:invalid-request\\\">error:invalid-request</a></p>\\n\\n<blockquote id=\\\"error\\\">\\n<p><b>Unsupported Protocol</b></p>\\n</blockquote>\\n\\n<p>Squid does not support some access protocols. For example, the SSH protocol is currently not supported.</p>\\n\\n<p>Your cache administrator is <a href=\\\"mailto:webmaster?subject=CacheErrorInfo%20-%20ERR_PROTOCOL_UNKNOWN&amp;body=CacheHost%3A%2058b85709dc2f%0D%0AErrPage%3A%20ERR_PROTOCOL_UNKNOWN%0D%0AErr%3A%20%5Bnone%5D%0D%0ATimeStamp%3A%20Sun,%2001%20Jun%202025%2007%3A48%3A22%20GMT%0D%0A%0D%0AClientIP%3A%20172.24.0.3%0D%0A%0D%0AHTTP%20Request%3A%0D%0A%0D%0A%0D%0A\\\">webmaster</a>.</p>\\n<br>\\n</div>\\n\\n<hr>\\n<div id=\\\"footer\\\">\\n<p>Generated Sun, 01 Jun 2025 07:48:22 GMT by 58b85709dc2f (squid/6.10)</p>\\n<!-- ERR_PROTOCOL_UNKNOWN -->\\n</div>\\n</body></html>\\n\""

# export NO_PROXY=.sock
/ # buildctl debug workers
ID                              PLATFORMS
tfvodji57427800saagxnze0u       linux/amd64,linux/amd64/v2,linux/amd64/v3,linux/arm64,linux/riscv64,linux/ppc64le,linux/s390x,linux/386,linux/arm/v7,linux/arm/v6

Squid log:

2025/06/01 07:33:00| Processing Configuration File: /etc/squid/squid.conf (depth 0)
2025/06/01 07:33:00| Processing Configuration File: /etc/squid/conf.d/debian.conf (depth 1)
2025/06/01 07:33:00| Processing Configuration File: /etc/squid/conf.d/rock.conf (depth 1)  
2025/06/01 07:33:00| Created PID file (/run/squid.pid)
2025/06/01 07:33:00| Set Current Directory to /var/spool/squid
2025/06/01 07:33:00| Creating missing swap directories
2025/06/01 07:33:00| No cache_dir stores are configured.
2025/06/01 07:33:00| Removing PID file (/run/squid.pid)
2025/06/01 07:33:00| Processing Configuration File: /etc/squid/squid.conf (depth 0)        
2025/06/01 07:33:00| Processing Configuration File: /etc/squid/conf.d/debian.conf (depth 1)
2025/06/01 07:33:00| Processing Configuration File: /etc/squid/conf.d/rock.conf (depth 1)  
2025/06/01 07:33:00| Created PID file (/run/squid.pid)
2025/06/01 07:33:00| Set Current Directory to /var/spool/squid
2025/06/01 07:33:00| Creating missing swap directories
2025/06/01 07:33:00| No cache_dir stores are configured.
2025/06/01 07:33:00| Removing PID file (/run/squid.pid)
2025/06/01 07:33:00| Processing Configuration File: /etc/squid/squid.conf (depth 0)
2025/06/01 07:33:00| Processing Configuration File: /etc/squid/conf.d/debian.conf (depth 1)
2025/06/01 07:33:00| Processing Configuration File: /etc/squid/conf.d/rock.conf (depth 1)
2025/06/01 07:33:00| Created PID file (/run/squid.pid)
2025/06/01 07:33:00| Set Current Directory to /var/spool/squid
2025/06/01 07:33:00| Starting Squid Cache version 6.10 for x86_64-pc-linux-gnu...
2025/06/01 07:33:00| Service Name: squid
2025/06/01 07:33:00| Process ID 40
2025/06/01 07:33:00| Process Roles: master worker
2025/06/01 07:33:00| With 1024 file descriptors available
2025/06/01 07:33:00| Initializing IP Cache...
2025/06/01 07:33:00| DNS IPv6 socket created at [::], FD 8
2025/06/01 07:33:00| DNS IPv4 socket created at 0.0.0.0, FD 9
2025/06/01 07:33:00| Adding nameserver 127.0.0.11 from /etc/resolv.conf
2025/06/01 07:33:00| Adding ndots 1 from /etc/resolv.conf
2025/06/01 07:33:00| Logfile: opening log daemon:/var/log/squid/access.log
2025/06/01 07:33:00| Logfile Daemon: opening log /var/log/squid/access.log
2025/06/01 07:33:00| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2025/06/01 07:33:00| Store logging disabled
2025/06/01 07:33:00| Swap maxSize 0 + 262144 KB, estimated 20164 objects
2025/06/01 07:33:00| Target number of buckets: 1008
2025/06/01 07:33:00| Using 8192 Store buckets
2025/06/01 07:33:00| Max Mem  size: 262144 KB
2025/06/01 07:33:00| Max Swap size: 0 KB
2025/06/01 07:33:00| Using Least Load store dir selection
2025/06/01 07:33:00| Set Current Directory to /var/spool/squid
2025/06/01 07:33:00| Finished loading MIME types and icons.
2025/06/01 07:33:00| HTCP Disabled.
2025/06/01 07:33:00| Pinger socket opened on FD 14
2025/06/01 07:33:00| Squid plugin modules loaded: 0
2025/06/01 07:33:00| Adaptation support is off.
2025/06/01 07:33:00| Accepting HTTP Socket connections at conn3 local=[::]:3128 remote=[::] FD 12 flags=9
    listening port: 3128
2025/06/01 07:33:00 pinger| Initialising ICMP pinger ...
2025/06/01 07:33:00 pinger| ICMP socket opened.
2025/06/01 07:33:00 pinger| ICMPv6 socket opened
2025/06/01 07:33:01| storeLateRelease: released 0 objects
1748764078.089      0 172.24.0.3 NONE_NONE/400 3657 - error:invalid-request - HIER_NONE/- text/html
1748764102.672      0 172.24.0.3 NONE_NONE/400 3657 - error:invalid-request - HIER_NONE/- text/html

EDIT:

Also seems to happen if I don't mount the config.json

# ls -al /root
total 12
drwx------    1 root     root          4096 Jun  1 07:59 .
drwxr-xr-x    1 root     root          4096 Jun  1 07:59 ..
-rw-------    1 root     root            36 Jun  1 08:00 .ash_history

# env
HTTPS_PROXY=http://proxy:3128
no_proxy=127.0.0.0/8,::1,localhost
BUILDKIT_HOST=unix:///run/buildkit/buildkitd.sock
HOSTNAME=be6207419124
SHLVL=1
HOME=/root
NO_PROXY=127.0.0.0/8,::1,localhost
https_proxy=http://proxy:3128
http_proxy=http://proxy:3128
TERM=xterm
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
BUILDKIT_SETUP_CGROUPV2_ROOT=1
DOCKER_CONFIG=/root/.docker/
PWD=/
HTTP_PROXY=http://proxy:3128

# buildctl debug workers
error: failed to list workers: Unavailable: connection error: desc = "transport: Error while dialing: failed to do connect handshake, response: \"HTTP/1.1 400 Bad Request\\r\\nConnection: close\\r\\nContent-Length: 3325\\r\\nCache-Status: 58b85709dc2f\\r\\nContent-Language: en\\r\\nContent-Type: text/html;charset=utf-8\\r\\nDate: Sun, 01 Jun 2025 07:59:56 GMT\\r\\nMime-Version: 1.0\\r\\nServer: squid/6.10\\r\\nVary: Accept-Language\\r\\nVia: 1.1 58b85709dc2f (squid/6.10)\\r\\nX-Squid-Error: ERR_PROTOCOL_UNKNOWN 0\\r\\n\\r\\n<!DOCTYPE html PUBLIC \\\"-//W3C//DTD HTML 4.01//EN\\\" \\\"http://www.w3.org/TR/html4/strict.dtd\\\">\\n<html><head>\\n<meta type=\\\"copyright\\\" content=\\\"Copyright (C) 1996-2021 The Squid Software Foundation and contributors\\\">\\n<meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset=utf-8\\\">\\n<title>ERROR: The requested URL could not be retrieved</title>\\n<style type=\\\"text/css\\\"><!-- \\n /*\\n * Copyright (C) 1996-2023 The Squid Software Foundation and contributors\\n *\\n * Squid software is distributed under GPLv2+ license and includes\\n * contributions from numerous individuals and organizations.\\n * Please see the COPYING and CONTRIBUTORS files for details.\\n */\\n\\n/*\\n Stylesheet for Squid Error pages\\n Adapted from design by Free CSS Templates\\n http://www.freecsstemplates.org\\n Released for free under a Creative Commons Attribution 2.5 License\\n*/\\n\\n/* Page basics */\\n* {\\n\\tfont-family: verdana, sans-serif;\\n}\\n\\nhtml body {\\n\\tmargin: 0;\\n\\tpadding: 0;\\n\\tbackground: #efefef;\\n\\tfont-size: 12px;\\n\\tcolor: #1e1e1e;\\n}\\n\\n/* Page displayed title area */\\n#titles {\\n\\tmargin-left: 15px;\\n\\tpadding: 10px;\\n\\tpadding-left: 100px;\\n\\tbackground: url('/squid-internal-static/icons/SN.png') no-repeat left;\\n}\\n\\n/* initial title */\\n#titles h1 {\\n\\tcolor: #000000;\\n}\\n#titles h2 {\\n\\tcolor: #000000;\\n}\\n\\n/* special event: FTP success page titles */\\n#titles ftpsuccess {\\n\\tbackground-color:#00ff00;\\n\\twidth:100%;\\n}\\n\\n/* Page displayed body content area */\\n#content {\\n\\tpadding: 10px;\\n\\tbackground: #ffffff;\\n}\\n\\n/* General text */\\np {\\n}\\n\\n/* error brief description */\\n#error p {\\n}\\n\\n/* some data which may have caused the problem */\\n#data {\\n}\\n\\n/* the error message received from the system or other software */\\n#sysmsg {\\n}\\n\\npre {\\n}\\n\\n/* special event: FTP directory listing */\\n#dirmsg {\\n    font-family: courier, monospace;\\n    color: black;\\n    font-size: 10pt;\\n}\\n#dirlisting {\\n    margin-left: 2%;\\n    margin-right: 2%;\\n}\\n#dirlisting tr.entry td.icon,td.filename,td.size,td.date {\\n    border-bottom: groove;\\n}\\n#dirlisting td.size {\\n    width: 50px;\\n    text-align: right;\\n    padding-right: 5px;\\n}\\n\\n/* horizontal lines */\\nhr {\\n\\tmargin: 0;\\n}\\n\\n/* page displayed footer area */\\n#footer {\\n\\tfont-size: 9px;\\n\\tpadding-left: 10px;\\n}\\n\\n\\nbody\\n:lang(fa) { direction: rtl; font-size: 100%; font-family: Tahoma, Roya, sans-serif; float: right; }\\n:lang(he) { direction: rtl; }\\n --></style>\\n</head><body id=ERR_PROTOCOL_UNKNOWN>\\n<div id=\\\"titles\\\">\\n<h1>ERROR</h1>\\n<h2>The requested URL could not be retrieved</h2>\\n</div>\\n<hr>\\n\\n<div id=\\\"content\\\">\\n<p>The following error was encountered while trying to retrieve the URL: <a href=\\\"error:invalid-request\\\">error:invalid-request</a></p>\\n\\n<blockquote id=\\\"error\\\">\\n<p><b>Unsupported Protocol</b></p>\\n</blockquote>\\n\\n<p>Squid does not support some access protocols. For example, the SSH protocol is currently not supported.</p>\\n\\n<p>Your cache administrator is <a href=\\\"mailto:webmaster?subject=CacheErrorInfo%20-%20ERR_PROTOCOL_UNKNOWN&amp;body=CacheHost%3A%2058b85709dc2f%0D%0AErrPage%3A%20ERR_PROTOCOL_UNKNOWN%0D%0AErr%3A%20%5Bnone%5D%0D%0ATimeStamp%3A%20Sun,%2001%20Jun%202025%2007%3A59%3A56%20GMT%0D%0A%0D%0AClientIP%3A%20172.24.0.3%0D%0A%0D%0AHTTP%20Request%3A%0D%0A%0D%0A%0D%0A\\\">webmaster</a>.</p>\\n<br>\\n</div>\\n\\n<hr>\\n<div id=\\\"footer\\\">\\n<p>Generated Sun, 01 Jun 2025 07:59:56 GMT by 58b85709dc2f (squid/6.10)</p>\\n<!-- ERR_PROTOCOL_UNKNOWN -->\\n</div>\\n</body></html>\\n\""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: New
Development

No branches or pull requests

2 participants