Troubleshooting
Problem
When clicking on SAS Grid Manager interface to view hosts/cluster information via PWS, customer sees an error pops up: "There was a problem in contacting Platform Web Services. "
Diagnosing The Problem
1. First, make sure PWS server is working well: input the two below API URLs directly from browser instead of using Grid Manager.
(1) https:<host>:port/PlatformWebServices/ws/version, this call can tell if there is any communication problem between the client host and PWS server host and if PWS server is running well and responds to requests properly.
(2) https:<host>:port/PlatformWebServices/ws/jobs/<job_id>, this call can tell if PWS can communicate with LSF successfully.
2. Then, enable PWS debugging to see if the requests from client (SAS Grid Manager) reach to PWS server or not.
Steps to enable PWS debugging:
(1) Stop PWS service
(2) Edit file <PWS_TOP>/<instance>/webapps/platform.web.services.war/WEB-INF/classes/log4j.xml
<category additivity="false" name="com.platform">
<!-- User can modify the 'INFO' to FATAL, ERROR, WARN or DEBUG -->
<priority value="DEBUG"/>
<appender-ref ref="PWS_FILE_APPEND"/>
</category>
(3) Start PWS service
For this case, when the issue happens, PWS log file doesn't get updated, which means that the requests didn't even go to PWS server yet
3. Open "Developer tools" to look into the requests sent out
(1) Press F12 on Chrome to launch Developer tools.
(2)Click on "Network" Tab
(3) connect PWS using Grid Manager to reproduce the issue
(4) Under Developer Tools-> Network, we should be able to see the details of requests, which can be "save as HAR with content" with right-click.
Resolving The Problem
Based on the HAR file collected in above step 3, the root cause of the issue is CAS authentication failure of the service ticket used by requesting PWS service. After SAS solves the CAS authentication problem, connection to PWS using Grid Manager works successfully and the error is gone.
(Reference Material: https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2018/1775-2018.pdf. The document clarifies the configurations for successful communication between the components for a SAS Grid in SAS Environment Manager and external URLs. Particularly, the flow related to authentication and validation is discussed in depth )
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
isg3T1027650