The following error occurs when trying to instrument the below NGINX image using NGINX for UMA
IMAGE: registry.redhat.io/rhscl/nginx-118-rhel7:1
Configuration details:
Dockerfile:
COPY contrib/ca-apm/APMAgent.config /etc/opt/rh/rh-nginx118/nginx/
COPY contrib/ca-apm/ca-apm.conf /opt/rh/rh-nginx118/root/usr/share/nginx/modules
COPY contrib/ca-apm/ngx_http_ca_apm_agent_module.so /opt/rh/rh-nginx118/root/usr/lib64/nginx/modules
COPY contrib/ca-apm/libWilyAPMSDK.so /usr/lib64/
nginx.conf:
load_module "/opt/rh/rh-nginx118/root/usr/lib64/nginx/modules/ngx_http_ca_apm_agent_module.so";
env COLLECTOR_AGENT_HOST;
env COLLECTOR_AGENT_PORT;
env CA_APM_PROBENAME;
STARTUP ERROR:
2021/05/10 13:44:54 [emerg] 1#0: module "/opt/rh/rh-nginx118/root/usr/lib64/nginx/modules/ngx_http_ca_apm_agent_module.so" is not binary compatible in /opt/rh/rh-nginx118/root/usr/share/nginx/modules/ca-apm.conf:1
bash-4.2$ nginx -v
nginx version: nginx/1.18.0
Application Performance Management SaaS
the issue is related to defect DE508080
To be fixed in next APM SaaS (current release is 21.6)
Workaround:
Attached a potential fix. If the problem persists, open a support case and provide logs
libWilyAPMSDK.so
ngx_http_ca_apm_agent_module.so content in nginx-1.18.0 directory