Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: cannot connect to chrome at 127.0.0.1:port #45

Closed
catalpaaa opened this issue Apr 28, 2023 · 2 comments
Closed

Error: cannot connect to chrome at 127.0.0.1:port #45

catalpaaa opened this issue Apr 28, 2023 · 2 comments

Comments

@catalpaaa
Copy link

catalpaaa commented Apr 28, 2023

Exception in thread Thread-2 (start_chrome):
Traceback (most recent call last):
File "/home/catalpa/mambaforge/envs/owl/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/home/catalpa/mambaforge/envs/owl/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/home/catalpa/nas/program/ow-league-tokens/src/app.py", line 33, in start_chrome
driver = uc.Chrome(
File "/home/catalpa/mambaforge/envs/owl/lib/python3.10/site-packages/undetected_chromedriver/init.py", line 441, in init
super(Chrome, self).init(
File "/home/catalpa/mambaforge/envs/owl/lib/python3.10/site-packages/selenium/webdriver/chrome/webdriver.py", line 84, in init
super().init(
File "/home/catalpa/mambaforge/envs/owl/lib/python3.10/site-packages/selenium/webdriver/chromium/webdriver.py", line 104, in init
super().init(
File "/home/catalpa/mambaforge/envs/owl/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 286, in init
self.start_session(capabilities, browser_profile)
File "/home/catalpa/mambaforge/envs/owl/lib/python3.10/site-packages/undetected_chromedriver/init.py", line 704, in start_session
super(selenium.webdriver.chrome.webdriver.WebDriver, self).start_session(
File "/home/catalpa/mambaforge/envs/owl/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 378, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/home/catalpa/mambaforge/envs/owl/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute
self.error_handler.check_response(response)
File "/home/catalpa/mambaforge/envs/owl/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:37609
from chrome not reachable
Stacktrace:
#0 0x55672c11afe3
#1 0x55672be59bc1
#2 0x55672be47ff6
#3 0x55672be86e00
#4 0x55672be7e352
#5 0x55672bec0af7
#6 0x55672bec011f
#7 0x55672beb7693
#8 0x55672be8a03a
#9 0x55672be8b17e
#10 0x55672c0dcdbd
#11 0x55672c0e0c6c
#12 0x55672c0ea4b0
#13 0x55672c0e1d63
#14 0x55672c0b4c35
#15 0x55672c105138
#16 0x55672c1052c7
#17 0x55672c113093
#18 0x7f423a494b43

boot with python src/main.py --nomenu on headless Ubuntu 22

@tired9494
Copy link

Did you end up fixing this? I'm trying to get this to work on ARM and I'm now running into this error

@catalpaaa
Copy link
Author

Did you end up fixing this? I'm trying to get this to work on ARM and I'm now running into this error

You cant run over ssh, or you have to let it open a chrome gui though ssh with DISPLAY=:0 python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants