티스토리 뷰

반응형

EC2 리눅스 환경에서 크롤링을 하던도중 크롬브라우저를 띄울때 

나오는 에러를 마주했다.

selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.  (unknown error: DevToolsActivePort file doesn't exist)

 

해결법

# linux 환경에서 필요한 option
chrome_options.add_argument('--no-sandbox')
chrome_options.add_argument('--disable-dev-shm-usage')

 

 

반응형
댓글
공지사항
반응형