0

I have installed PCFDev in a corporate environment behind proxy. All proxy environments are setup and able to get to maven repos from commandline. in SCDF server however doesn't seem to reach to maven repo. System provided environment variables are set correctly

{
  "staging_env_json": {
    "HTTP_PROXY": "XXX",
    "HTTPS_PROXY": "XXX",
    "NO_PROXY": "localhost,127.0.0.1,192.168.11.1,192.168.11.11,local.pcfdev.io,.local.pcfdev.io",
    "http_proxy": "XXXX",
    "https_proxy": "XXX",
    "no_proxy": "localhost,127.0.0.1,192.168.11.1,192.168.11.11,local.pcfdev.io,.local.pcfdev.io"
  },
  "running_env_json": {
    "HTTP_PROXY": "XXX",
    "HTTPS_PROXY": "XXX",
    "NO_PROXY": "localhost,127.0.0.1,192.168.11.1,192.168.11.11,local.pcfdev.io,.local.pcfdev.io",
    "http_proxy": "XXX",
    "https_proxy": "XXX",
    "no_proxy": "localhost,127.0.0.1,192.168.11.1,192.168.11.11,local.pcfdev.io,.local.pcfdev.io"
  },

I have also tried to set environment variable SPRING_APPLICATION_JSON and also provided

aether:
    proxy: 
    host: XXX
    port: XXX

in menifest-scdf.yml file which use to push dataflow server.

when I do app import from dataflow client cli it fails (or from dashboard)

Command failed java.lang.IllegalArgumentException: java.net.ConnectException: Connection timed out: connect

What are the correct ways to set proxy in pcfdev environment ?

4

3 回答 3

0

检查您是否正确设置了代理属性。示例配置如下所示:

$ java -jar SCDF.jar 
 --maven.remote-repositories.repo1.url=https://repo1
 --maven.remote-repositories.repo1.auth.username=user1
 --maven.remote-repositories.repo1.auth.password=pass1
 --maven.remote-repositories.repo2.url=https://repo2 --maven.proxy.host=proxy1
 --maven.proxy.port=9010 --maven.proxy.auth.username=proxyuser1
 --maven.proxy.auth.password=proxypass1
于 2017-01-09T09:28:28.747 回答
0

您可以尝试在命令中添加 http.proxyHost 和 http.proxyPort 以启动 shell。例如:

java -Dhttp.proxyHost=your.proxy.com -Dhttp.proxyPort=XXXX -jar spring-cloud-dataflow-shell-1.1.3.RELEASE.jar
于 2017-02-20T19:10:36.407 回答
0

这听起来更像是代理 IP 的问题,可能无法从 PCFDev VM 中路由。我在 PCFDev 文档中找到了这一部分,我认为它对于正确配置 VM 设置甚至完全绕过它都会很有用。

于 2017-01-06T18:13:03.207 回答