catchpoint / WebPageTest.agent

Cross-platform WebPageTest agent
Other
210 stars 138 forks source link

Error: NaCl helper process running without a sandbox! #631

Closed nikolailevshakov closed 1 year ago

nikolailevshakov commented 1 year ago

Can't successfully run tests in docker (using Ubuntu 20.04), logs:

Starting new HTTP connection (1): localhost:9227 14:22:36.883 - http://localhost:9227/ "GET /json/close/498481E623E36C325478623D6F726854 HTTP/1.1" 200 17 14:22:36.883 - Stopping browser 14:22:36.883 - Closing browser 14:22:36.883 - Terminating all instances of chrome [0712/142236.886111:ERROR:nacl_helper_linux.cc(355)] NaCl helper process running without a sandbox! Most likely you need to configure your SUID sandbox correctly 14:22:36.887 - ffmpeg: frame= 376 fps= 10 q=0.0 size= 3584kB time=00:00:35.60 bitrate= 824.7kbits/s speed=0.952x 14:22:36.888 - Netlog streaming thread exiting [1792:1792:0712/142236.889658:ERROR:zygote_communication_linux.cc(291)] Failed to send GetTerminationStatus message to zygote 14:22:36.890 - Waiting up to 30 seconds for chrome to exit [1792:1792:0712/142236.891544:ERROR:zygote_communication_linux.cc(291)] Failed to send GetTerminationStatus message to zygote 14:22:36.901 - ffmpeg: frame= 232 fps= 10 q=0.0 size= 2048kB time=00:00:21.20 bitrate= 791.4kbits/s speed=0.921x 14:22:36.903 - ffmpeg: frame= 568 fps= 10 q=0.0 size= 5632kB time=00:00:54.80 bitrate= 841.9kbits/s speed=0.968x 14:22:36.921 - ffmpeg: frame= 699 fps= 10 q=0.0 size= 7168kB time=00:01:07.90 bitrate= 864.8kbits/s speed=0.974x Exception in thread Thread-26 (background_thread): Traceback (most recent call last): File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/usr/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/wptagent/internal/desktop_browser.py", line 861, in background_thread 'video_file' in self.task and \ TypeError: argument of type 'NoneType' is not iterable 14:22:36.983 - Restoring backup of hosts file chrome: no process found 14:22:37.037 - Error backfilling bodies Traceback (most recent call last): File "/wptagent/internal/webpagetest.py", line 1269, in get_bodies with gzip.open(devtools_file, GZIP_READ_TEXT) as f_in: File "/usr/lib/python3.10/gzip.py", line 58, in open binary_file = GzipFile(filename, gz_mode, compresslevel) File "/usr/lib/python3.10/gzip.py", line 174, in init fileobj = self.myfileobj = builtins.open(filename, mode or 'rb') FileNotFoundError: [Errno 2] No such file or directory: '/wptagent/work/Docker/230712_5X_b6fa823e9bc5e798baf12e1e711c327c.3.0/3_devtools_requests.json.gz' 14:22:37.037 - Test run time: 11.844 sec 14:22:37.037 - Uploading result 14:22:37.037 - Error post-processing test Traceback (most recent call last): File "/wptagent/internal/webpagetest.py", line 1573, in upload_task_result ProcessTest(self.options, self.job, task) File "/wptagent/internal/process_test.py", line 55, in init self.run_processing() File "/wptagent/internal/process_test.py", line 59, in run_processing self.load_data() File "/wptagent/internal/process_test.py", line 154, in load_data raise Exception("Devtools file not present") Exception: Devtools file not present 14:22:37.038 - Storing 3_devtools.json.gz (0 bytes) 14:22:37.038 - Storing 3_bodies.zip (0 bytes) 14:22:37.038 - https://wpt1.speedcurve.com/work/workdone.php?id=230712_5X_b6fa823e9bc5e798baf12e1e711c327c&location=sephora-01&run=3&cached=0&testinfo=1&pc=Docker&key=cfp8dg7urjhaf9bqxc3l7urlf3ullg&done=1&error=Error+configuring+traffic-shaping&