MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
WebPagetest Forums - Without dockerized attribute getting Connect to dev tools Error: HTTPConnectionPool

WebPagetest Forums

Full Version: Without dockerized attribute getting Connect to dev tools Error: HTTPConnectionPool
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
HI team ,
our wpt server are running on K8-docker where are using official wpt server docker image

our wpt agent machine we have built from scratch by following installation step
(non docker structure)
OS : amazon linux 2 (centos)
agent : 200604.150630


when we are running wptagent with dockerized command its wrking
sudo python ~/wptagent/wptagent.py --server <server> --location <location> --key <key> --xvfb -vvvvv

but when we are running without dockerized attribute its not working

sudo python ~/wptagent/wptagent.py --server <server> --location <location> --key <key> --xvfb --dockerized -vvvvv

getting errors as

22:43:22.957 - Connect to dev tools Error: HTTPConnectionPool(host='localhost', port=9222): Max retries exceeded with url: /json (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fc76c697ad0>: Failed to establish a new connection: [Errno 111] Connection refused',))


we have tried
1. increasing CONNECT_TIME_LIMIT to 60-300 seconds (refernce : https://www.webpagetest.org/forums/archi...022-2.html)
but no success


one more thing even its is getting passed with dockerized attribute results data is bit skewed pls refer image wptissue.png.

adding error logs

00:30:51.261 - Connect to dev tools Error: HTTPConnectionPool(host='localhost', port=9222): Max retries exceeded with url: /json (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f1fedd99750>: Failed to establish a new connection: [Errno 111] Connection refused',))
00:30:51.762 - Error connecting to dev tools interface
00:30:51.762 - Stopping browser
00:30:51.762 - Closing browser
00:30:51.762 - Terminating all instances of chrome
chrome: no process found
00:30:52.161 - Error backfilling bodies
Traceback (most recent call last):
File "/home/ec2-user/wptagent/internal/webpagetest.py", line 966, in get_bodies
with gzip.open(devtools_file, GZIP_READ_TEXT) as f_in:
File "/usr/lib64/python2.7/gzip.py", line 34, in open
return GzipFile(filename, mode, compresslevel)
File "/usr/lib64/python2.7/gzip.py", line 94, in __init__
fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: '/home/ec2-user/wptagent/work/ip-<ipaddress>.ec2.internal/200612_SX_ddc7ee39089a242dd30ae562184d1ab5.1.0/1_devtools_requests.json.gz'
we are able to resolve this issue by passing --ec2 instead of --dockerized attribute
Reference URL's