Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows agent setup failure #419

Open
chidhambaram7 opened this issue Jul 3, 2021 · 0 comments
Open

windows agent setup failure #419

chidhambaram7 opened this issue Jul 3, 2021 · 0 comments

Comments

@chidhambaram7
Copy link

chidhambaram7 commented Jul 3, 2021

Recently we come across wpt windows agent issue where the agent was not connecting to master. To debug the issue, took RDP of windows agent and tried to run the setup script and found that internal/webpagetest.py file failed to recognise the platform and trying to run Linux routing commands.

This issue is observed after this commit.

Got the below exception while executing wptagent.py file.

11:29:10.470 - powershell.exe C:\WebPageTest\wptagent\internal\support\ec2\win_routes.ps1
11:29:16.017 - Starting new HTTP connection (1): 169.254.169.254:80
11:29:16.033 - http://169.254.169.254:80 "GET /latest/user-data HTTP/1.1" 200 99
11:29:16.033 - User Data: wpt_server=10.248.220.72 wpt_loc=us-east-1,us-east-1_IE11 wpt_key=8sctMkh7LRGPaM7REeDOUWsXVwPnSH48
11:29:16.033 - Setting config option "wpt_server" to "10.248.220.72"
11:29:16.033 - Setting config option "wpt_loc" to "us-east-1,us-east-1_IE11"
11:29:16.033 - Setting config option "wpt_key" to "8sctMkh7LRGPaM7REeDOUWsXVwPnSH48"
11:29:16.033 - http://169.254.169.254:80 "GET /latest/meta-data/instance-id HTTP/1.1" 200 19
11:29:16.033 - http://169.254.169.254:80 "GET /latest/meta-data/placement/availability-zone HTTP/1.1" 200 10
11:29:16.033 - Starting new HTTP connection (1): 169.254.169.254:80
11:29:16.033 - http://169.254.169.254:80 "GET /latest/meta-data/identity-credentials/ec2/security-credentials/ec2-instance HTTP/1.1" 200 1330
Traceback (most recent call last):
File "C:\WebPageTest\wptagent\wptagent.py", line 1146, in
main()
File "C:\WebPageTest\wptagent\wptagent.py", line 1136, in main
agent = WPTAgent(options, browsers)
File "C:\WebPageTest\wptagent\wptagent.py", line 46, in init
self.wpt = WebPageTest(options, os.path.join(self.root_path, "work"))
File "C:\WebPageTest\wptagent\internal\webpagetest.py", line 168, in init
self.block_metadata()
File "C:\WebPageTest\wptagent\internal\webpagetest.py", line 367, in block_metadata
subprocess.call(['sudo', 'route', 'add', '169.254.169.254', 'gw', '127.0.0.1', 'lo'])
File "C:\Python27\lib\subprocess.py", line 168, in call
return Popen(*popenargs, **kwargs).wait()
File "C:\Python27\lib\subprocess.py", line 390, in init
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 640, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant