Web policy agents 4 install fails with messages such as send_session_request or Server returned HTTP response code
The purpose of this article is to provide assistance if your Web policy agent 4 install fails with messages such as "send_session_request(): response status code: 200" or "Server returned HTTP response code: 500 for URL:".
Archived
This article has been archived and is no longer maintained by ForgeRock.
Symptoms
These are two separate issues but they both cause the installer to fail and have the same resolution:
Silent Install
When performing a silent install for IIS or Apache™ web policy agents, the installation fails with a message similar to the following:
Error validating OpenAM - Agent configuration. See installation log C:\web_agents\iis_agent\bin\..\log\install_20160215316004.log file for more details. Exiting. Cleaning up validation data... Installation failed. See installation log C:\web_agents\iis_agent\bin\..\log\install_20160215316004.log file for more details. Exiting.Corresponding error shown in the install log:
<Response><![CDATA[<SessionResponse vers="1.0" reqid="2"> <AddSessionListener> <Exception>AQIC5wM2LY4Sfcxwo1cOJAMRkbIsn0bS8Pm1IB623MLBCnM=@AAJTSQACNDAAAlMxAAIzMA==# Server returned HTTP response code: 500 for URL: http://openam.example.com:8080/amserver/sessionservice</Exception> </AddSessionListener> </SessionResponse>]]></Response>Interactive install
When performing an interactive install for IIS or Apache web policy agents, the following error is shown in the install log when the install fails:
2016-02-15 12:37:13 send_session_request(): response status code: 200 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ResponseSet vers="1.0" svcid="session" reqid="0"> <Response><![CDATA[<SessionResponse vers="1.0" reqid="1"> <GetSession> ... </Session></GetSession> </SessionResponse>]]></Response> <Response><![CDATA[<SessionResponse vers="1.0" reqid="2"> <AddSessionListener> <Exception>AQIC5wM2LY4Sfcxwo1cOJAMRkbIsn0bS8Pm1IB623MLBCnM http://host/openam/sessionservice</Exception> </AddSessionListener> </SessionResponse>]]></Response> </ResponseSet> 2016-02-15 12:37:13 send_session_request(): status: error 2016-02-15 12:37:13 am_agent_login(): closing connection after failureRecent Changes
N/A
Causes
Silent Install
The policy agent installer performs some unnecessary profile checks using the agent profile; the installation stops if these checks fail.
Interactive install
The policy agent installer performs an unnecessary session notification subscription, which causes the installer to fail in interactive mode.
Solution
This issue can be resolved by upgrading to Web Policy Agent 4.0.1 or later; you can download this from BackStage.
Alternatively, you can include the --forceInstall switch and perform a silent install, using the following command depending on your operating system:
- UNIX® example: $ agentadmin --s --forceInstall
- Microsoft® Windows® example: $ agentadmin.exe --s --forceInstall
See Also
How do I upgrade to Web Policy Agent 4.x from a previous version?
Tips and feature insights for Web Policy Agents 4.x
Best practice for installing IIS Web Agents (All versions)
OpenAM Web Policy Agent 4 Release Notes
OpenAM Web Policy Agent 4 User's Guide
Related Training
N/A
Related Issue Tracker IDs
OPENAM-7452 (WPA4 agent might crash in configuration validation phase (silent install) )