Chrome crashes while connected to VPN

Hello community,

I’m up against a wall here, chrome browser crashes immediately when I try to launch it while connected to a VPN.
-Not an issue for firefox, launches without any problem !
-Chrome launches fine while NOT connected to VPN !

I’ve tried rolling back to previous versions of Katalon, as well as tried different combinations of chrome/chromedriver but nothing seems to work.

I’d be eternally grateful for your help, have spent hours stuck here :frowning:

Test script : WebUI.openBrowser(‘www.google.com’)

Errors :
Test Cases/SandBox FAILED.

Reason:

com.kms.katalon.core.exception.StepFailedException: Unable to open browser with url: ‘www.google.com’ (Root cause: org.openqa.selenium.SessionNotCreatedException: session not created

from disconnected: unable to connect to renderer

(Session info: chrome=72.0.3626.121)

(Driver info: chromedriver=72.0.3626.69 (3c16f8a135abc0d4da2dff33804db79b849a7c38),platform=Mac OS X 10.13.4 x86_64) (WARNING: The server did not provide any stacktrace information)

Command duration or timeout: 935 milliseconds

Build info: version: ‘3.7.1’, revision: ‘8a0099a’, time: ‘2017-11-06T21:07:36.161Z’

System info: host: ‘Williams-MacBook-Pro.local’, ip: ‘0:0:0:0:cea:5bff:1413:3254%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.13.4’, java.version: ‘1.8.0_181’

Driver info: driver.version: CChromeDriver)

at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:36)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:65)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:27)
at com.kms.katalon.core.webui.keyword.builtin.OpenBrowserKeyword.openBrowser(OpenBrowserKeyword.groovy:81)
at com.kms.katalon.core.webui.keyword.builtin.OpenBrowserKeyword.execute(OpenBrowserKeyword.groovy:67)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:53)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.openBrowser(WebUiBuiltInKeywords.groovy:60)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$openBrowser.call(Unknown Source)
at SandBox.run(SandBox:16)
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:328)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:319)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:298)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:290)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:224)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:106)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:97)
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
at TempTestCase1552188171608.run(TempTestCase1552188171608.groovy:22)

Hi

Does this only happen when trying to use chrome in conjuction with KA or does chrome just crash in general when connected to a VPN? if so then its definately not an issue to do with KA. The best thing to do would be to have a look through on google chrome support and try find a solution.

https://support.google.com/chrome/answer/142063?hl=en-GB&co=GENIE.Platform=Desktop

maybe the chromedriver got “damaged” - try re-installing chrome on your machine.

Hi,
Thanks for your response ! This is an issue only when chrome is used with Katalon while connected to VPN, chrome launches fine manually when connected to VPN.

Does chrome its self give you any errors? or does it simply just crash? Could you check the console when it attempts to open to see if anything is recorded in there.

Also maybe have a read of this, im not sure what may be causing you this issue - maybe something with your setup
https://docs.katalon.com/katalon-studio/tutorials/configure_katalon_studio_web_automation_test_project.html#internet-explorer-configurations

Hi again,

Thanks for this tip : chrome doesn’t launch, crashes right away. Here are the logs from console.
019-03-12 14:03:56.925 INFO c.k.katalon.core.main.TestCaseExecutor - --------------------
2019-03-12 14:03:56.927 INFO c.k.katalon.core.main.TestCaseExecutor - START Test Cases/SandBox
2019-03-12 14:03:57.401 DEBUG testcase.SandBox - 1: openBrowser(“www.google.com”)
2019-03-12 14:03:57.880 INFO c.k.k.core.webui.driver.DriverFactory - Starting ‘Chrome’ driver
2019-03-12 14:03:57.907 INFO c.k.k.core.webui.driver.DriverFactory - Action delay is set to 0 seconds
Starting ChromeDriver 72.0.3626.69 (3c16f8a135abc0d4da2dff33804db79b849a7c38) on port 20211
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
2019-03-12 14:03:59.483 ERROR c.k.k.core.keyword.internal.KeywordMain - :x: Unable to open browser with url: ‘www.google.com’ (Root cause: org.openqa.selenium.SessionNotCreatedException: session not created
from disconnected: unable to connect to renderer
(Session info: chrome=72.0.3626.121)
(Driver info: chromedriver=72.0.3626.69 (3c16f8a135abc0d4da2dff33804db79b849a7c38),platform=Mac OS X 10.13.4 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 787 milliseconds
Build info: version: ‘3.7.1’, revision: ‘8a0099a’, time: ‘2017-11-06T21:07:36.161Z’
System info: host: ‘Williams-MacBook-Pro.local’, ip: ‘fe80:0:0:0:cea:5bff:1413:3254%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.13.4’, java.version: ‘1.8.0_181’
Driver info: driver.version: CChromeDriver)
2019-03-12 14:03:59.490 ERROR c.k.katalon.core.main.TestCaseExecutor - :x: openBrowser(“www.google.com”) FAILED.

Here are logs when I’m not using VPN. Looks like the port number is different here, and that’s causing this issue ?

2019-03-12 13:57:50.645 INFO c.k.katalon.core.main.TestCaseExecutor - --------------------
2019-03-12 13:57:50.648 INFO c.k.katalon.core.main.TestCaseExecutor - START Test Cases/SandBox
2019-03-12 13:57:51.248 DEBUG testcase.SandBox - 1: openBrowser(“www.google.com”)
2019-03-12 13:57:51.872 INFO c.k.k.core.webui.driver.DriverFactory - Starting ‘Chrome’ driver
2019-03-12 13:57:51.895 INFO c.k.k.core.webui.driver.DriverFactory - Action delay is set to 0 seconds
Starting ChromeDriver 72.0.3626.69 (3c16f8a135abc0d4da2dff33804db79b849a7c38) on port 33409
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
Mar 12, 2019 1:57:53 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
2019-03-12 13:57:53.376 INFO c.k.k.core.webui.driver.DriverFactory - sessionId = afb58497868a2c5900626274c8a9425b
2019-03-12 13:57:53.416 INFO c.k.k.core.webui.driver.DriverFactory - browser = Chrome 72.0.3626.121
2019-03-12 13:57:53.417 INFO c.k.k.core.webui.driver.DriverFactory - platform = Mac OS X
2019-03-12 13:57:53.419 INFO c.k.k.core.webui.driver.DriverFactory - seleniumVersion = 3.7.1
2019-03-12 13:57:53.421 INFO c.k.k.core.webui.driver.DriverFactory - proxyInformation = ProxyInformation{proxyOption=NO_PROXY, proxyServerType=HTTP, password=, proxyServerAddress=, proxyServerPort=0}
2019-03-12 13:57:58.703 INFO c.k.katalon.core.main.TestCaseExecutor - END Test Cases/SandBox

============

I read the link above - I don’t have any proxy settings and have ‘skip certificate validations’ checked. :thinking:Preformatted text

If im honest - i dont have an awnser for you - theres a thread similar that hasnt been resolved, maybe have a read for anything on there that might help. Other than that your just going to have to try to fix yourself or hope some1 whos encountered this before will see this thread and solve your issue. Maybe try googling parts of the error logs and see if other have encountered it - im sure your not the only one.

Can i ask why you are using a VPN in the first place? Im guessing you might work remote. Like Russ says in the other thread, it sounds like to me its a devops issue, something isnt set up correctly. Sorry i cant help any further.

On another project I worked I did a network scan with a network admin to see which ports were used for automation. After having identified the numbers, we checked firewall settings of the company and we had to manuelly change the settings to allow automation suite to communicate with enterprise systems.

So my advice - contact your network admin and monitor the traffic and check corporate network settings.

Thank you for your response, will give this a shot :slight_smile:

Which Chrome VPN are you using?

Are you using Ivacy Chrome VPN?