-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
can't run same user_data_dir again #1380
Comments
Same here, maybe is a port issues on Linux. |
yes , for me I just moved to windows |
I have the same problem with a Linux docker container and natively on macOS. I only experience this issue when running in headless mode. Has anyone found a workaround or solution? |
I think this problem may be related to the version of chrome, these days I have been using uc on windows, everything was fine a few days ago, now I have the same problem, the only change is that my chrome automatically updated to version 115. |
In windows it is updated automatically and with that the problem is solved, is that it? Already in linux, chrome is not updated automatically and from there the problems begin to arise, do you think this is the error? |
I have the same problem, i use UC on Ubuntu.
|
The problem is the SingletonLock file. I submitted a PR for a fix here #1505 . Also be aware that if you use the substring 'headless' in your profile path, things will break. I submitted another PR #1506 to at least drop a warning about this but the logic for removing args that contain 'headless' should be updated. |
I have the same issue on #1670 |
get the same issue on centos docker |
the problem is first time I run the program with user_data_dir
then I do my stuff like login or something
if I run the program again to same folder ( but this time shoud be already logged in to my website)
this problem appear
driver =uc.Chrome(options = options, user_data_dir="/root/Aladdin") File "/usr/local/lib/python3.10/dist-packages/undetected_chromedriver/__init__.py", line 443, in __init__ super(Chrome, self).__init__( File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/chrome/webdriver.py", line 49, in __init__ super().__init__( File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/chromium/webdriver.py", line 54, in __init__ super().__init__( File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webdriver.py", line 206, in __init__ self.start_session(capabilities) File "/usr/local/lib/python3.10/dist-packages/undetected_chromedriver/__init__.py", line 674, in start_session super(selenium.webdriver.chrome.webdriver.WebDriver, self).start_session( File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webdriver.py", line 291, in start_session response = self.execute(Command.NEW_SESSION, caps)["value"] File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webdriver.py", line 346, in execute self.error_handler.check_response(response) File "/usr/local/lib/python3.10/dist-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:58797 from chrome not reachable
forget to mention _ problem happen on linux only , on windows works fine
The text was updated successfully, but these errors were encountered: