Cloud Foundry CLI I / O超时

时间:2018-08-27 16:32:27

标签: google-cloud-platform cloudfoundry cf-bosh

我能够在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

NodeJS

-----> 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 vm上手动下载并ping build pack url,因此我相信DNS在每种机器上都能正常工作。

作为默认部署的一部分,我相信会创建一个socks5隧道以允许从我的工作机到Jumpbox的通信,所以我认为这是问题所在。 https://docs.cloudfoundry.org/cf-cli/http-proxy.html 运行bbl print-env时,导出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,但结果相同。

0 个答案:

没有答案