web-ui icon indicating copy to clipboard operation
web-ui copied to clipboard

Failed to initialize Playwright browser when i check "Use your existing browser instance"

Open klei30 opened this issue 10 months ago • 7 comments

I am stuck for hours at this error

ERROR [browser] Failed to initialize Playwright browser: To start chrome in Debug mode, you need to close all existing Chrome instances and try again otherwise we can not connect to the instance. WARNING [browser] Page load failed, continuing...

any help would be appriciated

klei30 avatar Jan 28 '25 15:01 klei30

I am also facing the same issue when I try to use Chrome browser

anilkumarpt12 avatar Jan 30 '25 21:01 anilkumarpt12

close all existing Chrome instances before runinng

warmshao avatar Feb 06 '25 01:02 warmshao

Even after closing, same problem persists

anmol-aidora avatar Mar 24 '25 10:03 anmol-aidora

You Can Manually Launch Chrome in Debug Mode

open cmd and run "C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222 --user-data-dir="C:\Temp\ChromeDebug"

use your own browser path. my one is: "C:\Program Files\Google\Chrome\Application\chrome.exe" then you can run the application and try

KusalThiwanka avatar May 09 '25 16:05 KusalThiwanka

ERROR [browser] ❌ Failed to start a new Chrome instance: BrowserType.connect_over_cdp: connect ECONNREFUSED 127.0.0.1:9242 Call log:

  • retrieving websocket url from http://localhost:9242

ERROR [browser] Failed to initialize Playwright browser: To start chrome in Debug mode, you need to close all existing Chrome instances and try again otherwise we can not connect to the inst ance. ERROR [browser] ❌ Failed to create new browser session: To start chrome in Debug mode, you need to close all existing Chrome instances and try again otherwise we can not connect to the ins tance. (did the browser process quit?)

nankingguo avatar Jun 21 '25 06:06 nankingguo

same here. Closed all chrome instances. Even closed Brave browser

drago1520 avatar Jun 23 '25 10:06 drago1520

You Can Manually Launch Chrome in Debug Mode

open cmd and run "C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222 --user-data-dir="C:\Temp\ChromeDebug"

use your own browser path. my one is: "C:\Program Files\Google\Chrome\Application\chrome.exe" then you can run the application and try

This problem will not occur when using an existing browser and setting a separate user-data-dir at the same time. And I started chrome with the command line. It seems that configuring user-data-dir in the web-ui is ineffective

leoooven avatar Jul 09 '25 09:07 leoooven