-
Notifications
You must be signed in to change notification settings - Fork 189
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
Chrome Webdriver error: DevToolsActivePort file doesn't exist #195
Comments
To add on, I reinstalled google-chrome-stable already, run on Debian10, and did NOT use root to run the bot. |
Hi Leolele99. 👋 Please provide context to the following questions:
Thank you! 😊 |
Hi,
Thansk for taking a look at this. |
I have the same issue when running Docker (macOS Intel).
|
@Leolele99 and @abuchmueller, could you try out my solution suggested in this issue and tell me whether it worked? Thank you! |
@Leolele99 @abuchmueller did you have any additional feedback here? Otherwise I would close this. |
I think this is fixed, docker runs stable for quite some time now with the right driver args. |
Im trying to crawl Immobilienscout and have it all setup on the nwest version, but constantly run into this error:
[2022/08/06 10:35:58| |DEBUG ]: ====== WebDriver manager ======
[2022/08/06 10:35:58| |DEBUG ]: Get LATEST chromedriver version for google-chrome 104.0.5112
[2022/08/06 10:35:58| |DEBUG ]: Driver [/home/flathunter/.wdm/drivers/chromedriver/linux64/104.0.5112/chromedriver] found in cache
Traceback (most recent call last):
File "flathunt.py", line 105, in
main()
File "flathunt.py", line 76, in main
config.init_searchers()
File "/opt/flathunter/flathunter/config.py", line 44, in init_searchers
CrawlImmobilienscout(self),
File "/opt/flathunter/flathunter/crawl_immobilienscout.py", line 38, in init
self.driver = self.configure_driver(driver_arguments)
File "/opt/flathunter/flathunter/abstract_crawler.py", line 62, in configure_driver
options=chrome_options
File "/home/flathunter/.local/share/virtualenvs/flathunter--s35lxKo/lib/python3.7/site-packages/selenium/webdriver/chrome/webdriver.py", line 72, in init
service_log_path, service, keep_alive)
File "/home/flathunter/.local/share/virtualenvs/flathunter--s35lxKo/lib/python3.7/site-packages/selenium/webdriver/chromium/webdriver.py", line 97, in init
options=options)
File "/home/flathunter/.local/share/virtualenvs/flathunter--s35lxKo/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 277, in init
self.start_session(capabilities, browser_profile)
File "/home/flathunter/.local/share/virtualenvs/flathunter--s35lxKo/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 370, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/home/flathunter/.local/share/virtualenvs/flathunter--s35lxKo/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 435, in execute
self.error_handler.check_response(response)
File "/home/flathunter/.local/share/virtualenvs/flathunter--s35lxKo/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 247, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: DevToolsActivePort file doesn't exist
Stacktrace:
My driver arguments so far are:
driver_arguments:
- "--headless"
- "--disable-dev-shm-usage"
- "--no-sandbox"
- "--disable-extensions"
The text was updated successfully, but these errors were encountered: