Getting this follwing error Response code 500. Message: session not created: DevToolsActivePort file doesn't exist

I am trying to launch the chrome using default profile setup. but i am getting the following error while executing the script.

“Response code 500. Message: session not created: DevToolsActivePort file doesn’t exist”

OS - Windows 11

Katalon Version -10.2.1

Chromedriver version - 143.0.7499.42

Here are the console screenshots for ref.

2 Likes

hi @vasavi.00

you can try to update your webdriver version. hope this help

4 Likes

after the above update the webdriver

1 Like

The test script by vasavi.00 has the following statements:

It refers to the GlobalVariable.chromeDriverPath. This implies that @vasavi.00 uses a custom path for ChromeDriver, which could be different from the one bundled in Katalon Studio and managed by “Update WebDriver” tool.

I doubt it. I suspect that the version of ChromeDriver stored at the GlobalVariable.chromeDriverPath is possibly not 143.0.7499.42.

1 Like

@vasavi.00

Please show

  1. the screenshot of the Chrome browser version
  2. the screenshot of the ChromeDriver version, which you have at the GlobalVariable.chromeDriverPath.

I have a doubt that the versions of the two differ significantly.

2 Likes

Are you launching with your own chrome profile? If so, make sure your existing chrome browser is closed. Chrome does not allow you to launch from the same directory twice.

If you want to use a chrome profile and keep your existing browser open, try creating a new profile in a different directory, specifically for automation use.

3 Likes

You can read the Chrome debug logs. See

Possibly you would find some immediate diagnostics from Chrome browser in the debug logs.

1 Like

The “Response code 500: session not created: DevToolsActivePort file doesn’t exist” error usually means ChromeDriver cannot start or attach to a Chrome instance, most often because of version mismatch or profile/port conflicts.​

Main causes

  • ChromeDriver version at GlobalVariable.chromeDriverPath does not match the installed Chrome browser version, even if you believe it is 143.0.7499.42.​
  • Multiple ChromeDriver processes or Chrome instances are already running and blocking startup.​
  • A custom Chrome profile directory is reused while Chrome is already open using the same directory.​

Fix steps

  1. Kill any stray ChromeDriver processes
  • From CMD:

bash

taskkill /F /IM chromedriver.exe /T
  • Then rerun the Katalon test.​
  1. Ensure ChromeDriver exactly matches Chrome
  • In Katalon, use Tools → Update WebDrivers → Chrome to sync the bundled driver to your Chrome version.​
  • If you override with GlobalVariable.chromeDriverPath, verify that file is the same driver version as shown in the Chrome “About” dialog and the Katalon “Update WebDriver” tool.​
  1. Check custom Chrome profile usage
  • If you pass a user-data-dir or custom profile directory via Chrome options, close all normal Chrome windows before running, or point automation to a separate, dedicated profile directory.​
  1. Inspect Chrome debug logs if it persists
  • Enable Chrome debug logs as per Google’s guide and review them for more specific startup failures (permissions, invalid flags, bad profile path, etc.)
1 Like

yes @kazurayam , the version of google chrome is 143.0.7499.110 and chromedriver version is 143.0.7499.42. Both screenshots are provided below.

I am able to get 143.0.7499.42 this version on the Chrome for Testing availability Page.

OK, thank you for the update. I think that the version difference is not significant.

There must be some other reason of the “session not created” error.

I think that you should look at the suggestion by @gia.esposito.

Ok, I am already closing the browser before the execution if it was open previously, but i’ll give a try and create a different profile and do a run

I have tried below ways but issue still exists.

  1. created new profile and closed all browsers before i ran script

  2. provide user-data-dir in code (screenshot attached)

  3. while trying to kill “taskkill /F /IM chromedriver.exe /T” , i am getting error chromdriver.exe is not found. please help me how to run this command .

The same code was working earlier in older version of chrome .

now even after upgrading chrome i m facing this issue.

i also got same error but post updating drivers it worked. now its not working .

You can let ChromeDriver to log errors into a file:

Try this to find out some immediate diagnostics in the log.

System.setProperty("webdriver.chrome.logfile", "D:\\chromedriver.log");

System.setProperty("webdriver.chrome.verboseLogging", "true");

It is nonsense to say this. Google Chrome tends to change its internal without notice. Users are supposed to accept ANY changes. You need to be prepared.

Thank you for your response. Yes, we are aware that Google frequently updates Chrome, which is why we always update the ChromeDriver and also update the drivers in Katalon. What I meant to say is that the code was working earlier, but now we are facing issues.

1 Like