liang860908 / apjp

Automatically exported from code.google.com/p/apjp
0 stars 0 forks source link

APJP & JAP deployment on Openshift Attention #171

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
** What steps will reproduce the problem?
1. For APJP
1) Remote: APJP_REMOTE_JAVA-1.0.0.zip
2) Local: APJP_LOCAL_JAVA-1.0.1.zip
3) Deployment Wiki: 
https://code.google.com/p/apjp/wiki/InstallGuideOnOpenShift
2. For JAP
1) Remote: JAP_WS_REMOTE_PYTHON_OPENSHIFT-2.0.0-SNAPSHOT-4.zip
2) Local: JAP_WS_LOCAL_PYTHON-2.0.0-SNAPSHOT-3.zip
3) Deployment Wiki: 
https://code.google.com/p/jap/wiki/JAP_WS_REMOTE
https://code.google.com/p/jap/wiki/JAP_WS_LOCAL

** What is the expected output? What do you see instead?
1. For APJP:
Process stops in the stage of "APJP: TEST_HTTP_REQUESTS"
2. For JAP:
Connection speed is slower than normal

** What version of the product are you using? On what operating system?
1. OS: Archlinux + LXDE
2. JAVA:
$ java -version
java version "1.7.0_21"
OpenJDK Runtime Environment (IcedTea 2.3.9) (ArchLinux build 7.u21_2.3.9-1-i686)
OpenJDK Client VM (build 23.7-b01, mixed mode)

** Please provide any additional information below.

*** Cause ***
1. China GFW blocks HTTP connection of appid-domain.rhcloud.com (pass HTTPS)
2. China GFW blocks (? or make it worse) SSH to Openshift
3. China GFW blocks (? or make it worse) 23.*.*.* IPs of rhcloud.com

*** Attention ***
1. For increasing success, better to deploy via proxy
1) connect your VPN, or
2) use your another proxy such as goagent/wallproxy/freegate
a) $ export http_proxy=http://127.0.0.1:your_proxy_port  # for rhc connection 
via proxy
b) $ nano ~/.ssh/config                                                         
   # for ssh connection via proxy
Host *
ProxyCommand corkscrew 127.0.0.1 your_proxy_port %h %p
(see more https://code.google.com/p/jap/issues/detail?id=44 )

2. Check your Openshift apps address:
$ ping your_appid-your_domain.rhcloud.com                         # or goto 
just-ping.com
If it's 23.*.*.*, you bad luck guy have to delete the apps
$ rhc app delete your_appid
and go recreating it till you get the other address like 54.*.*.*

3. Configure

1) For APJP (supported father proxy)
$ nano /path/to/APJP_LOCAL.properties
APJP_KEY=match_your_server_key
...
APJP_REMOTE_HTTP_SERVER_1_REQUEST_URL=https://54.*.*.*/HTTP  # your apps IP
APJP_REMOTE_HTTP_SERVER_1_REQUEST_PROPERTY_1_KEY=Host
APJP_REMOTE_HTTP_SERVER_1_REQUEST_PROPERTY_1_VALUE=your_appid-your_domain.rhclou
d.com
...
APJP_REMOTE_HTTPS_SERVER_1_REQUEST_URL=https://54.*.*.*/HTTPS  # your apps IP
APJP_REMOTE_HTTPS_SERVER_1_REQUEST_PROPERTY_1_KEY=Host
APJP_REMOTE_HTTPS_SERVER_1_REQUEST_PROPERTY_1_VALUE=your_appid-your_domain.rhclo
ud.com

2) For JAP (I can not successfully setup father proxy)
$ nano /path/to/JAP_WS_LOCAL.json
"REMOTE_PROXY_SERVERS":
...
            "TYPE": "HTTPS",
            "ADDRESS": "your_appid-your_domain.rhcloud.com",
            "PORT": 8443,
            "AUTHENTICATION":
...
                "USERNAME": "your_username",
                "PASSWORD": "your_password"

Wish you success. Be happy. ^_^

Original issue reported on code.google.com by westmin...@gmail.com on 27 Apr 2013 at 1:24