PCFDev Spring Cloud Data Server app import failes

365 views Asked by At

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 ?

3

There are 3 answers

1
Sabby Anandan On BEST ANSWER

This sounds more like a problem with the proxy IP perhaps not routable from within PCFDev VM. I found this section in the PCFDev docs and I thought it would be useful in either configuring the VM settings correctly or even bypass it altogether.

3
Ilayaperumal Gopinathan On

Check whether you have set the proxy properties correctly. A sample config would look like this:

$ 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
0
Khoa Nguyen On

You can try to add http.proxyHost and http.proxyPort to the command to start the shell. For example:

java -Dhttp.proxyHost=your.proxy.com -Dhttp.proxyPort=XXXX -jar spring-cloud-dataflow-shell-1.1.3.RELEASE.jar