Licensing issue via web proxy

Francois Nel

New Member
Because the site where the WCS server is installed is behind a web proxy we had to edit the file
/usr/local/FlashphonerWebCallServer/bin/proxy.sh
We then managed to activate our license (Web Call Server Monthly Subscription) via
/usr/local/FlashphonerWebCallServer/bin/activation.sh

However, now the WCS server only serves video for about 45 to 60min (sometimes less). The log file shows the following when it fails:
upload_2017-4-25_12-56-10.png

We have emailed support@flashphoner.com and they confirmed that our license is valid.
We are currently demoing our product (which uses WCS as part of it) and I have to keep on restarting the WCS to allow the video to work.
 

Max

Administrator
Staff member
Please zip and send following files to logs@flashphoner.com
Code:
/usr/local/FlashphonerWebCallServer/logs
/usr/local/FlashphonerWebCallServer/bin
tcpdump -s 4096 -i any -w log.pcap
Do you see packets to my.flashphoner.com:443 in the log.pcap ?
 

Francois Nel

New Member
I have run tcpdump (filtering only port 443 and 8181) and something (I would assume WCS) is trying to access my.flashphoner.com (52.57.65.20) via port 443, where it should actually be making a connection to an IP on port 8181 (the proxy). I have emailed the logs.
 

Max

Administrator
Staff member
We have checked this.
Indeed, the proxy.sh config is applicable for activation only. It does not affect subscription check requests.
To enable proxy for subscription check requests:
1. Edit WCS_HOME/bin/setenv.sh
And replace
Code:
WCS_JAVA_OPTS="$WCS_JAVA_OPTS -XX:ErrorFile=$WCS_APP_HOME/logs/error%p.log -Xloggc:$WCS_APP_HOME/logs/gc-core.log"
with
Code:
WCS_JAVA_OPTS="$WCS_JAVA_OPTS -Dhttps.proxyHost=$PROXY_HOST -Dhttps.proxyPort=$PROXY_PORT -Dhttp.nonProxyHosts='localhost|127.0.0.1|10.*|169.254.169.254' -XX:ErrorFile=$WCS_APP_HOME/logs/error%p.log -Xloggc:$WCS_APP_HOME/logs/gc-core.log"
Here
PROXY_HOST - your https proxy host
PROXY_PORT - your https proxy port
localhost|127.0.0.1|10.*|169.254.169.254 - do not use proxy for these resources
After wcs restart, subscription checks should go through the proxy.
Please check pcap and send logs again.
 

Francois Nel

New Member
Thanks, this solved our problem. But oh boy, you need to make it easier to set. There are proxy settings in the flashphoner.properties file, why not just use that for all proxy connections?
 

Max

Administrator
Staff member
Good to hear it is solved for you. We will fix it in future builds.
Note. Scripts located in /usr/local/FlashphonerWebCallServer/bin will be overwriten during next update.
So please backup your bin folder to save proxy settings and repair after update.
 

Max

Administrator
Staff member
Hello
Just to inform that we have isolated proxy settings in WCS_HOME/conf/wcs-core.properties file and therefore proxy settings will no longer been rewritten during updates.
Example of wcs-core.properties:
Code:
# Proxy configuration
#-Dhttps.proxyHost="192.168.1.1"
#-Dhttps.proxyPort="3128"
#-Dhttp.proxyHost="192.168.1.1"
#-Dhttp.proxyPort="3128"
#-Dhttp.nonProxyHosts="localhost|127.0.0.1|10.*|169.254.169.254"
Available in latest server builds:
https://flashphoner.com/download
 
Top