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

Agent 5.x does not install when the AM server is running on wildfly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.0.0, 5.5.0.0
    • Fix Version/s: 5.5.1.0
    • Component/s: None
    • Labels:
    • Environment:
      Centos 7
      Java 1.8
      Wildfly 10.1/ Wildfly 14.1
      AM 5.5.1
      Agent 5.5

      Description

      Bug description

      When Installing Agent 5.5 on Wildfly the installation fails

      How to reproduce the issue

      1. Install Wildfly (with tuning)  following PRE AM preparations.
      2. Drop AM into deployment directory. Start/install/configure
      3. Setup webAgent on AM.
      4. Try Install Agent 5.5
      Expected behaviour
      Installation complete without issues
      Current behaviour
      018-10-25 15:15:28 OpenAM Web Agent for Apache Server interactive installation
      2018-10-25 15:15:28 license was accepted earlier
      2018-10-25 15:15:47 Found user apache, uid 48, gid 48
      2018-10-25 15:15:47 Found group apache, gid 48
      2018-10-25 15:15:47 server configuration file /etc/httpd/conf/httpd.conf
      2018-10-25 15:15:47 init_ssl(): trying libssl...
      2018-10-25 15:15:47 init_ssl(): libssl.so.1.1 dlopen error: libssl.so.1.1: cannot open shared object file: No such file or directory
      2018-10-25 15:15:47 init_ssl(): found libssl.so.10
      2018-10-25 15:15:47 init_ssl(): failed to load OPENSSL_init_ssl
      2018-10-25 15:15:47 init_ssl(): failed to load TLS_client_method
      2018-10-25 15:15:47 init_ssl(): failed to load SSL_get_state
      2018-10-25 15:15:47 init_ssl(): trying libcrypto...
      2018-10-25 15:15:47 init_ssl(): libcrypto.so.1.1 dlopen error: libcrypto.so.1.1: cannot open shared object file: No such file or directory
      2018-10-25 15:15:47 init_ssl(): found libcrypto.so.10
      2018-10-25 15:15:47 init_ssl(): OpenSSL v1.0.x/0.9.8 library support is available
      2018-10-25 15:16:02 OpenAM URL http://wildfly.example.com:8080/openam
      2018-10-25 15:16:14 Agent URL http://agent.example.com:80
      2018-10-25 15:16:20 Agent Profile name webAgent
      2018-10-25 15:16:22 Agent realm/organization name /
      2018-10-25 15:16:31 Agent password file /home/fr/pwd.txt
      2018-10-25 15:16:31 agent password file /home/fr/pwd.txt opened successfully
      2018-10-25 15:16:36 validating configuration parameters...
      2018-10-25 15:16:36 error validating OpenAM agent configuration
      2018-10-25 15:16:36 installation error
      agent login to http://wildfly.example.com:8080/openam fails
      2018-10-25 15:16:36 installation exit 

       Analysis

      wildfly does not report a length if you send connection: close
      agent cannot handle that, even though it is allowed if you are closing the socket - on the repeat, then it is 0 bytes and we throw an EOF
      which percolates down to an error

       Workaround

      two workarounds: turn keepalive on, or change the code if got >=0 to handle the response
      unfortunately both of these are code based solutions. fortunately the first could be quite easy

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              edward.barker edwardb
              Reporter:
              jdewer James Dewer
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: