WebPagetest Forums
EC2 AMI agent failures on startup - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Private Instances (/forumdisplay.php?fid=12)
+--- Thread: EC2 AMI agent failures on startup (/showthread.php?tid=14249)

EC2 AMI agent failures on startup - shawn.siefkas@meredith.com - 03-17-2016 12:21 AM

I'm seeing a "Failed to launch browser" error on EC2 agents in most cases (see attachment). The server is built according to https://github.com/WPO-Foundation/webpagetest/blob/master/docs/EC2/Server%20AMI.md. The issue appears with instances automatically created by the server and instances manually started with the appropriate user data. Some instances will execute tests correctly but the majority fail. As far as I can tell an instance never works once it displays this error.

How do I go about troubleshooting this? Is it possible to enable some type of debug logging on the agents to diagnose?


RE: EC2 AMI agent failures on startup - pmeenan - 03-31-2016 05:54 AM

Can you tell what version of the agent is running? http://<server>/getTesters.php will list the software version. For Chrome/Firefox/modern IE (wptdriver) the current version is

When the EC2 agents start up, they install the current release of Chrome and Firefox and then when they poll the server for work the server will send down a software update if they are not running the current version.

Docs for updating the server to the latest agents are here: https://sites.google.com/a/webpagetest.org/docs/private-instances#TOC-Updating-Test-Agents

Optionally, if you are running a recent release (2.19 certainly, maybe 2.18) you can enable a setting in settings.ini on the server to have it automatically update to the latest agent from the public instance as they are released: https://github.com/WPO-Foundation/webpagetest/blob/master/www/settings/settings.ini.sample#L92

My guess is that it is probably an older agent that has issues working with the latest release of Chrome.

RE: EC2 AMI agent failures on startup - shawn.siefkas@meredith.com - 04-19-2016 07:48 AM

Thanks for the information Patrick. Our environment is using

After further research these issues appear to crop up when deploying agents in a private VPC subnet behind a NAT gateway. This architecture may work if the settings.ini is tweaked to hit the server over a VPC private address instead. Ultimately the NAT gateway was not required for us so I've simply removed it. Things seem to be working more smoothly now.