我能够在 GCP 上成功部署 BOSH 和 CF。我能够在我的工作机器上安装 cf cli,并且能够 cf 登录到 api 端点而没有任何问题。现在我正在尝试部署一个 python 和一个 node.js hello-world 风格的应用程序(cf push),但我遇到了以下错误:
Python:
**ERROR** Could not install python: Get https://buildpacks.cloudfoundry.org/dependencies/python/python-3.5.4-linux-x64-5c7aa3b0.tgz: dial tcp: lookup buildpacks.cloudfoundry.org on 169.254.0.2:53: read udp 10.255.61.196:36513->169.254.0.2:53: i/o timeout
Failed to compile droplet: Failed to run all supply scripts: exit status 14
节点JS
-----> Nodejs Buildpack version 1.6.28
-----> Installing binaries
engines.node (package.json): unspecified
engines.npm (package.json): unspecified (use default)
**WARNING** Node version not specified in package.json. See: http://docs.cloudfoundry.org/buildpacks/node/node-tips.html
-----> Installing node 6.14.3
Download [https://buildpacks.cloudfoundry.org/dependencies/node/node-6.14.3-linux-x64-ae2a82a5.tgz]
**ERROR** Unable to install node: Get https://buildpacks.cloudfoundry.org/dependencies/node/node-6.14.3-linux-x64-ae2a82a5.tgz: dial tcp: lookup buildpacks.cloudfoundry.org on 169.254.0.2:53: read udp 10.255.61.206:34802->169.254.0.2:53: i/o timeout
Failed to compile droplet: Failed to run all supply scripts: exit status 14
我能够在工作机器、jumpbox 和 bosh vms 上手动下载和 ping 构建包 url,因此我相信 DNS 在每种机器类型上都能正常工作。
作为默认部署的一部分,我相信创建了一个 socks5 隧道以允许从我的工作机器到 jumpbox 的通信,所以我认为这就是问题所在。https://docs.cloudfoundry.org/cf-cli/http-proxy.html
运行bbl print-env
时 export BOSH_ALL_PROXY=ssh+socks5://jumpbox@35.192.140.0:22?private-key=/tmp/bosh-jumpbox725514160/bosh_jumpbox_private.key
,但是当我导出https_proxy=socks5://jumpbox@35.192.140.0:22?private-key=/tmp/bosh-jumpbox389236516/bosh_jumpbox_private.key
并执行 cf push 时,我收到以下错误:
Request error: Get https://api.cloudfoundry.costub.com/v2/info: proxy: SOCKS5 proxy at 35.192.140.0:22 has unexpected version 83
TIP: If you are behind a firewall and require an HTTP proxy, verify the https_proxy environment variable is correctly set. Else, check your network connection.
FAILED
我在正确的轨道上吗?我的 https_proxy 变量格式是否正确?我也尝试https_proxy=socks5://jumpbox@35.192.140.0:22
过同样的结果。