Uploaded image for project: 'OpenAM Agents'
  1. OpenAM Agents
  2. AMAGENTS-258

If the Web agent Installation take more than 4 sec , it will throw "error validating OpenAM agent configuration"

    Details

      Description

      Whenever the web agent installer, OpenAM will search for the "web agent" userid in all the datastores configured in it

      It has been reported that if the sql query take a long time ( > 4 sec ) , the web agent installation will fail due to the default timeout of 4 sec

      with the following exception in the installation log

      2016-11-09 19:51:48  OpenAM Web Agent for Apache server silent installation
      2016-11-09 19:51:48  license accepted with --acceptLicence option
      2016-11-09 19:51:48  license was accepted earlier
      2016-11-09 19:51:48  Found user daemon, uid 2, gid 2
      2016-11-09 19:51:48  Found group daemon, gid 2
      2016-11-09 19:51:48  validating configuration parameters...
      2016-11-09 19:51:48  send_authcontext_request(): sending 478 bytes to http://openam.example.com:8080/openam/authservice
      2016-11-09 19:51:48  send_authcontext_request(): response status code: 200
      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <ResponseSet vers="1.0" svcid="auth" reqid="0">
      <Response><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
      <AuthContext version="1.0"><Response authIdentifier="AQIC5wM2LY4SfcxNLEus6KL8UsRPKe4RllCMrr8FUWeHJN4.*AAJTSQACMDEAAlNLABQtMzY0OTY0MDkyODAyNDI5NjU2OAACUzEAAA..*"><LoginStatus status="in_progress"></LoginStatus></Response></AuthContext>]]></Response>
      </ResponseSet>
      2016-11-09 19:51:48  create_cookie_header(): request header: Cookie: JSESSIONID=560865713D547572387F4A9C331752BC; amlbcookie=01^M
      2016-11-09 19:51:48  send_login_request(): sending 1207 bytes to http://openam.example.com:8080/openam/authservice
      
      Notice the timestamp differences of 4 sec <======= 
      
      2016-11-09 19:51:52  send_login_request(): authenticate response status code: 0
      (empty)
      2016-11-09 19:51:52  am_agent_login(): closing connection after failure
      2016-11-09 19:51:52  error validating OpenAM agent configuration
      2016-11-09 19:51:52  installation error
      2016-11-09 19:51:52  installation exit
      

      This exception can be easily replicated by "freezing" the OpenDJ using a kill -STOP <OpenDJ PID> command

      It will be good if we can have a configurable timeout for the installer

        Attachments

          Issue Links

          There are no Sub-Tasks for this issue.

            Activity

              People

              • Assignee:
                mareks Mareks Malnacs
                Reporter:
                sam.phua Sam Phua
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.05h
                  1.05h