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

Logging for situation where no client certificate is supplied in agent config but client certificate is required by AM could have better logging

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.6.0.0
    • Fix Version/s: None
    • Component/s: Web Agents
    • Labels:
    • Environment:
      AM 6.5, Agent 5.6.0

      Description

      Set up Agent so that there is no key:

      com.forgerock.agents.config.cert.key = 
      

      Set up AM so that tomcat requires client authentication e.g :

      certificateVerification="required"
      

      in the conf/server.xml file for tomcat.

      Then we find that the agent can not download the am config which is expected but the log messages are not so helpful.

      2019-05-23 06:42:30 GMT ERROR   [8c7ef7f4-25b8-5a2d-2bce-d9d18566ab96]: http request write failure openam.localtest.me:8443
      2019-05-23 06:42:30 GMT ERROR   [8c7ef7f4-25b8-5a2d-2bce-d9d18566ab96]: agent login to https://openam.localtest.me:8443/am fails
      2019-05-23 06:42:30 GMT ERROR   [8c7ef7f4-25b8-5a2d-2bce-d9d18566ab96]: config_fetch():  failed to load configuration for agent: / wpa-agent, error error
      2019-05-23 06:42:34 GMT ERROR   [8c7ef7f4-25b8-5a2d-2bce-d9d18566ab96]: http request write failure openam.localtest.me:8443
      2019-05-23 06:42:34 GMT ERROR   [8c7ef7f4-25b8-5a2d-2bce-d9d18566ab96]: agent login to https://openam.localtest.me:8443/am fails
      2019-05-23 06:42:34 GMT ERROR   [8c7ef7f4-25b8-5a2d-2bce-d9d18566ab96]: config_fetch():  failed to load configuration for agent: / wpa-agent, error error
      2019-05-23 06:42:39 GMT ERROR   [8c7ef7f4-25b8-5a2d-2bce-d9d18566ab96]: http request write failure openam.localtest.me:8443
      2019-05-23 06:42:39 GMT ERROR   [8c7ef7f4-25b8-5a2d-2bce-d9d18566ab96]: agent login to https://openam.localtest.me:8443/am fails
      2019-05-23 06:42:39 GMT ERROR   [8c7ef7f4-25b8-5a2d-2bce-d9d18566ab96]: config_fetch():  failed to load configuration for agent: / wpa-agent, error error
      2019-05-23 06:42:44 GMT ERROR   [8c7ef7f4-25b8-5a2d-2bce-d9d18566ab96]: http request write failure openam.localtest.me:8443
      2019-05-23 06:42:44 GMT ERROR   [8c7ef7f4-25b8-5a2d-2bce-d9d18566ab96]: agent login to https://openam.localtest.me:8443/am fails
      2019-05-23 06:42:44 GMT ERROR   [8c7ef7f4-25b8-5a2d-2bce-d9d18566ab96]: config_fetch():  failed to load configuration for agent: / wpa-agent, error error
      2019-05-23 06:42:50 GMT ERROR   [8c7ef7f4-25b8-5a2d-2bce-d9d18566ab96]: http request write failure openam.localtest.me:8443
      2019-05-23 06:42:50 GMT ERROR   [8c7ef7f4-25b8-5a2d-2bce-d9d18566ab96]: agent login to https://openam.localtest.me:8443/am fails
      2019-05-23 06:42:50 GMT ERROR   [8c7ef7f4-25b8-5a2d-2bce-d9d18566ab96]: config_fetch():  failed to load configuration for agent: / wpa-agent, error error
      2019-05-23 06:42:58 GMT ERROR   [8c7ef7f4-25b8-5a2d-2bce-d9d18566ab96]: http request write failure openam.localtest.me:8443
      2019-05-23 06:42:58 GMT ERROR   [8c7ef7f4-25b8-5a2d-2bce-d9d18566ab96]: agent login to https://openam.localtest.me:8443/am fails
      2019-05-23 06:42:58 GMT ERROR   [8c7ef7f4-25b8-5a2d-2bce-d9d18566ab96]: config_fetch():  failed to load configuration for agent: / wpa-agent, error error
      2019-05-23 06:43:07 GMT ERROR   [8c7ef7f4-25b8-5a2d-2bce-d9d18566ab96]: http request write failure openam.localtest.me:8443
      2019-05-23 06:43:07 GMT ERROR   [8c7ef7f4-25b8-5a2d-2bce-d9d18566ab96]: agent login to https://openam.localtest.me:8443/am fails
      2019-05-23 06:43:07 GMT ERROR   [8c7ef7f4-25b8-5a2d-2bce-d9d18566ab96]: config_fetch():  failed to load configuration for agent: / wpa-agent, error error
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            edward.barker edwardb
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: