This article provides the necessary steps for debugging Mobile Access Web Applications.
Client machine:
Mobile Access Gateway
$CVPNDIR/conf/httpd.conf file:[Expert@HostName]# cp $CVPNDIR/conf/httpd.conf $CVPNDIR/conf/httpd.conf_ORIGINAL
$CVPNDIR/conf/httpd.conf file:[Expert@HostName]# vi $CVPNDIR/conf/httpd.conf
LogLevel emerg
to:
LogLevel debug
$CVPNDIR/conf/httpd.conf file: In R66 / R66.1: Uncomment these lines (remove the # in the beginning)LoadModule trace_logger /opt/CPcvpn-R66/lib/libModTrace.so CvpnTraceLogDir /opt/CPcvpn-R66/log/trace_log/ CvpnTraceLogMaxByte 10000000
In R71.X / R75 / R75.10 / R75.20 / R75.30: Uncomment this line (remove the # in the beginning)
LoadModule trace_logger /opt/CPcvpn-R7X/lib/libModTrace.so
In R75.40 / R75.40VS / R75.45 / R75.46 / R75.47: Nothing else needs to be changed. In R76 / R77 / R77.10 and above: Change this line from:
CvpnTraceApache Off
to:
CvpnTraceApache On
[Expert@HostName]# cvpnd_admin policy
Note: This will gracefully restart the HTTPD daemon without disconnecting existing sessions.
$CVPNDIR/log/httpd.log file: [Expert@HostName]# tail -f $CVPNDIR/log/httpd.log
If debug outputs are not printed, then restart the Mobile Access:
[Expert@HostName]# cvpnrestart
Note: This will restart both CVPND daemon and HTTPD daemon - all existing connections will be disconnected!
[Expert@HostName]# cvpnd_admin debug trace users=UserName_1,UserName_2,UserName_3,...
[Expert@HostName]# cvpnd_admin debug set TDERROR_ALL_ALL=5
[Expert@HostName]# fw monitor -e "accept;" -o /var/log/fw_monitor.cap
[Expert@HostName]# cvpnd_admin debug off
$CVPNDIR/conf/httpd.conf file: [Expert@HostName]# cp $CVPNDIR/conf/httpd.conf $CVPNDIR/conf/httpd.conf_DEBUG
[Expert@HostName]# cp $CVPNDIR/conf/httpd.conf_ORIGINAL $CVPNDIR/conf/httpd.conf
</conde>
- Reload the Mobile Access with the original settings: <code> [Expert@HostName]# cvpnd_admin policy
Note: This will gracefully restart the HTTPD daemon without disconnecting existing sessions.
$CVPNDIR/log/httpd.log file: [Expert@HostName]# tail -f $CVPNDIR/log/httpd.log
If debugs output are still being printed, then restart the Mobile Access:
[Expert@HostName]# cvpnrestart
Note: This will restart both CVPND daemon and HTTPD daemon - all existing connections will be disconnected!
/var/log/fw_monitor.cap $CVPNDIR/log/httpd.log* $CVPNDIR/log/cvpnd.elg* The entire directory $CVPNDIR/log/trace_log/ CPinfo file from Mobile Access Gateway (use the latest version of CPinfo utility from sk92739). In addition, CPinfo file from the involved Security Management Server / Domain Management Server.