Hi,
We’ve been running a private instance on docker for a long time on-premises expanding to two datacenters in different geographic locations. Today we migrated the server to a swarm cluster on aws and left the agents on the old infrastructure to have localized tests. I split the docker-compose file in three parts, one for the server that is now running on the swarm cluster on aws (updated to run as a stack on swarm), and two docker-compose files for each of the agent locations. For the server we use letsecncrypt certificates that were correctly generated on the swarm cluster on aws (using a traefik load balancer) after pointing the private instance DNS name to the new location, but on the agent logs I’m seeing this error:
19:41:12.891 - Starting new HTTPS connection (1): wpt.xxxx.com:443
agent-pe_1 | /usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py:988: InsecureRequestWarning: Unverified HTTPS request is being made to host 'wpt.xxxxx.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
Which is weird as the ssl certificate is valid from letsencrypt, no errors when going to the private instance web interface. The tests seem to work fine on one of the agents, but on the other one we get a broken waterfall image on the first view for some tests, or “First View: Test Data Missing” on others, which I’m not sure if this has anything to do with this error.
Both agents use the same docker configuration which did not change when they got split into separate files, same agent docker images and are running on the same hosts as before, so I really don’t get why now some of the tests have this problem. How can I start to debug this ? agent logs are lengthy and don’t I know what to look for on them.
Thanks in advance for any pointers.
[hr]
This is the docker-compose file of the agent with issues:
version: "2"
services:
agent-pe:
image: webpagetest/agent
init: true
shm_size: 256mb
environment:
SERVER_URL: https://wpt.xxxxx.com/work/
LOCATION: desktop_lima
EXTRA_ARGS: "-m debug --checknet yes --log /debug.log -vvvv"
volumes:
- "/etc/localtime:/etc/localtime:ro"
cap_add:
- NET_ADMIN
privileged: true
restart: "always"