instagram-profilecrawl icon indicating copy to clipboard operation
instagram-profilecrawl copied to clipboard

unknown error: DevToolsActivePort file doesn't exist

Open greyslater opened this issue 5 years ago • 3 comments

Can't get it running in a complete headless instance (everything up-to-date)

[WDM] - Current google-chrome version is 87.0.4280 [WDM] - Get LATEST driver version for 87.0.4280 [WDM] - Driver [/root/.wdm/drivers/chromedriver/linux64/87.0.4280.88/chromedriver] found in cache Traceback (most recent call last): File "/home/instagram-profilecrawl/crawl_profile.py", line 14, in with SetupBrowserEnvironment() as browser: File "/home/instagram-profilecrawl/util/chromedriver.py", line 37, in enter self.browser = init_chromedriver(self.chrome_options, self.capabilities) File "/home/instagram-profilecrawl/util/chromedriver.py", line 55, in init_chromedriver browser = webdriver.Chrome(ChromeDriverManager().install()) File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/chrome/webdriver.py", line 76, in init RemoteWebDriver.init( File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in init self.start_session(capabilities, browser_profile) File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute self.error_handler.check_response(response) File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally. (unknown error: DevToolsActivePort file doesn't exist) (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

greyslater avatar Jan 16 '21 16:01 greyslater

use chrome/firefox like mention in the docu not the one installed by os. Install the proper chromedriver for your operating system. Once you download it just drag and drop it into instagram-profilecrawl/assets directory.

timmoh avatar Jan 16 '21 16:01 timmoh

use chrome/firefox like mention in the docu not the one installed by os.

can't find anything special mentioned about chrome in the documentary I'm running on Buster with google-chrome-stable 87.0.4280

chromedriver is in assets but webdrivermanager uses cache though

greyslater avatar Jan 16 '21 16:01 greyslater

I tried different google-chrome settings in /util/chromedriver.py

chrome_options.add_argument('--disable-dev-shm-usage') chrome_options.add_argument('--remote-debugging-port=9222')

but no success

greyslater avatar Jan 19 '21 09:01 greyslater