The c50 docker container has been configured to use a proxy server in order to connect to the AppNeta APM instance. The container
fails to connect and the monitoring point never comes online.
mp-compose.yaml
Release : HW
The container is configured to use port 80 and then 8080 in that order by default. The proxy server did not allow the connection to
pass to port 80 and when the container attempted the second port (8080) it did not respect the proxy setting and attempted to make a
direct connection to the apm-xx instance which failed.
06:13:11.907241 NisConnector::attemptConnections) attempt connection via proxy http://http.proxy.XXXX.net:8000/ 06:13:17.335385 NisConnector[0]::connectToNis) Connection address: app-xx.pm.appneta.com, NIS address: app-xx.pm.appneta.com, Port: 8080 |
The EMP 13.10.x versions do not seem to respect the proxy setting for the second port (if the connection to AppNeta using the first port fails the second is tried).
Defect (MP-6980) has been raised to address this in a future EMP release.
The current workaround is to change the order of ports in the .env file so that when the container starts it uses 8080 first (which was allowed through the proxy as port 80 was not)
.env
APPNETA_SERVER_PORTS=80,8080
Change to
APPNETA_SERVER_PORTS=8080,80
Useful Docker Commands
# Container Logs - generate and collect logs
sudo docker exec <CONTAINER ID> /sbin/logs.sh > /tmp/c50_logs_verbose.tar.gz
# Container up
sudo docker-compose -f mp-compose.yaml up -d
# Container stop
sudo docker-compose -f mp-compose.yaml stop