Unable to use my own browser
INFO [agent] 📍 Step 1 INFO [browser] 🌐 Storing Browser Profile user data dir in: C:\Users\Administrator\AppData\Local\Google\Chrome\User Data ERROR [browser] ❌ Failed to start a new Chrome instance: BrowserType.connect_over_cdp: connect ECONNREFUSED ::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 instance. 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 instance. (did the browser process quit?) WARNING [browser] ⚠️ Page load failed, continuing... INFO [browser] 🌐 Storing Browser Profile user data dir in: C:\Users\Administrator\AppData\Local\Google\Chrome\User Data ERROR [browser] ❌ Failed to start a new Chrome instance: BrowserType.connect_over_cdp: connect ECONNREFUSED ::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 instance. 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 instance. (did the browser process quit?) ERROR [agent] ❌ Result failed 1/3 times: 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. INFO [agent] 📍 Step 1 INFO [browser] 🌐 Storing Browser Profile user data dir in: C:\Users\Administrator\AppData\Local\Google\Chrome\User Data INFO [src.webui.components.browser_use_agent_tab] Stop button clicked. INFO [src.webui.components.browser_use_agent_tab] Agent has stopped (internally or via stop button). INFO [src.agent.browser_use.browser_use_agent] Agent stopped WARNING [agent] No history to create GIF from INFO [src.webui.components.browser_use_agent_tab] Agent task completing... INFO [src.webui.components.browser_use_agent_tab] Agent task completed processing. INFO [src.webui.components.browser_use_agent_tab] Explicitly saving agent history to: ./tmp/agent_history\893eff04-add1-40e6-a3f0-56f9277441db\893eff04-add1-40e6-a3f0-56f9277441db.json INFO [src.webui.components.browser_use_agent_tab] Clear button clicked. INFO [src.webui.components.browser_use_agent_tab] Agent state and browser resources cleared. INFO [src.webui.components.browser_use_agent_tab] Submit button clicked for new task. INFO [src.webui.components.browser_use_agent_tab] Initializing LLM: Provider=alibaba, Model=qwen-plus, Temp=0.6 INFO [src.webui.components.browser_use_agent_tab] Initializing new agent for task: … INFO [agent] 🧠 Starting an agent with main_model=qwen-plus +tools +memory, planner_model=None, extraction_model=qwen-plus WARNING [agent] ❌ Expected LLM API Key environment variables might be missing for ChatOpenAI: OPENAI_API_KEY INFO [mem0.vector_stores.faiss] Loaded FAISS index from /tmp/mem0_1536_faiss/mem0.faiss with 0 vectors INFO [mem0.vector_stores.faiss] Loaded FAISS index from C:\Users\Administrator.mem0\migrations_faiss/mem0_migrations.faiss with 15 vectors INFO [agent] 🚀 Starting task: … INFO [agent] 📍 Step 1 INFO [browser] 🌐 Storing Browser Profile user data dir in: C:\Users\Administrator\AppData\Local\Google\Chrome\User Data ERROR [browser] ❌ Failed to start a new Chrome instance: BrowserType.connect_over_cdp: connect ECONNREFUSED ::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 instance. 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 instance. (did the browser process quit?) WARNING [browser] ⚠️ Page load failed, continuing... INFO [browser] 🌐 Storing Browser Profile user data dir in: C:\Users\Administrator\AppData\Local\Google\Chrome\User Data ERROR [browser] ❌ Failed to start a new Chrome instance: BrowserType.connect_over_cdp: connect ECONNREFUSED ::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 instance. 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 instance. (did the browser process quit?) ERROR [agent] ❌ Result failed 1/3 times: 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. INFO [agent] 📍 Step 1 INFO [browser] 🌐 Storing Browser Profile user data dir in: C:\Users\Administrator\AppData\Local\Google\Chrome\User Data ERROR [browser] ❌ Failed to start a new Chrome instance: BrowserType.connect_over_cdp: connect ECONNREFUSED ::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 instance. 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 instance. (did the browser process quit?) WARNING [browser] ⚠️ Page load failed, continuing... INFO [browser] 🌐 Storing Browser Profile user data dir in: C:\Users\Administrator\AppData\Local\Google\Chrome\User Data ERROR [browser] ❌ Failed to start a new Chrome instance: BrowserType.connect_over_cdp: connect ECONNREFUSED ::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 instance. 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 instance. (did the browser process quit?) ERROR [agent] ❌ Result failed 2/3 times: 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. INFO [agent] 📍 Step 1 INFO [browser] 🌐 Storing Browser Profile user data dir in: C:\Users\Administrator\AppData\Local\Google\Chrome\User Data ERROR [browser] ❌ Failed to start a new Chrome instance: BrowserType.connect_over_cdp: connect ECONNREFUSED ::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 instance. 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 instance. (did the browser process quit?) WARNING [browser] ⚠️ Page load failed, continuing... INFO [browser] 🌐 Storing Browser Profile user data dir in: C:\Users\Administrator\AppData\Local\Google\Chrome\User Data ERROR [browser] ❌ Failed to start a new Chrome instance: BrowserType.connect_over_cdp: connect ECONNREFUSED ::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 instance. 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 instance. (did the browser process quit?) ERROR [agent] ❌ Result failed 3/3 times: 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. ERROR [src.agent.browser_use.browser_use_agent] ❌ Stopping due to 3 consecutive failures WARNING [agent] No history to create GIF from INFO [src.webui.components.browser_use_agent_tab] Agent task completing... INFO [src.webui.components.browser_use_agent_tab] Agent task completed processing. INFO [src.webui.components.browser_use_agent_tab] Explicitly saving agent history to: ./tmp/agent_history\0877c625-ca22-414f-a91a-a6c6b5174fc0\0877c625-ca22-414f-a91a-a6c6b5174fc0.json
.env file settings BROWSER_PATH=C:\Program Files\Google\Chrome\Application\chrome.exe BROWSER_USER_DATA=C:\Users\Administrator\AppData\Local\Google\Chrome\User Data
Yo same!!!
I am encountering the same issue on Windows 10.
- I have killed all running chrome.exe in task manager.
- I am using Firefox to access the UI at http://127.0.0.1:7788.
- I have configured the environment variables as follows:
BROWSER_PATH="C:\Program Files\Google\Chrome\Application\chrome.exe"
BROWSER_USER_DATA="C:\Users\Me\AppData\Local\Google\Chrome\User Data"
- I'm running the latest version:
Me@DESKTOP-3S08TSC MINGW64 /f/projects/web-ui (main)
$ git log -1 --oneline
886ba8f (HEAD -> main, origin/main, origin/HEAD) Merge pull request #607 from balaboom123/main
same here, i am using these
browser_profile = BrowserProfile(
cdp_url='http://localhost:9242',
profile_directory='Default', # macOS
user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36",
user_data_dir='/Users/jsc/Library/Application Support/Google/Chrome', # macOS
)
and the command for making chrome run in debug mode
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \ --remote-debugging-port=9242 \ --user-data-dir="/Users/jsc/Library/Application Support/Google/Chrome" \ --profile-directory="Default"
@julurisaichandu May I ask where the above code was modified? Can the web ui I am currently using perform the same operation