Current time: 09-19-2020, 07:45 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Without dockerized attribute getting Connect to dev tools Error: HTTPConnectionPool
06-12-2020, 04:47 PM (This post was last modified: 06-12-2020 04:52 PM by pmohite@ancestry.com.)
Post: #1
Without dockerized attribute getting Connect to dev tools Error: HTTPConnectionPool
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'


Attached File(s) Image(s)
   
Find all posts by this user
Quote this message in a reply
06-18-2020, 03:50 PM
Post: #2
RE: Without dockerized attribute getting Connect to dev tools Error: HTTPConnectionPool
we are able to resolve this issue by passing --ec2 instead of --dockerized attribute
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)