Details
Description
Bug description
When Installing Agent 5.5 on Wildfly the installation fails
How to reproduce the issue
- Install Wildfly (with tuning) following PRE AM preparations.
- Drop AM into deployment directory. Start/install/configure
- Setup webAgent on AM.
- 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
- is related to
-
AMAGENTS-2102 Docker: Deploy AM on wildfly for agent tests
- Closed
-
AMAGENTS-2091 Expose keepalive option as environment variable for installer
- Open